GET dfareporting.accountActiveAdSummaries.get
{{baseUrl}}/userprofiles/:profileId/accountActiveAdSummaries/:summaryAccountId
QUERY PARAMS

profileId
summaryAccountId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/accountActiveAdSummaries/:summaryAccountId");

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

(client/get "{{baseUrl}}/userprofiles/:profileId/accountActiveAdSummaries/:summaryAccountId")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/accountActiveAdSummaries/:summaryAccountId"

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

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

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/accountActiveAdSummaries/:summaryAccountId"

	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/userprofiles/:profileId/accountActiveAdSummaries/:summaryAccountId HTTP/1.1
Host: example.com

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/accountActiveAdSummaries/:summaryAccountId"))
    .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}}/userprofiles/:profileId/accountActiveAdSummaries/:summaryAccountId")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/accountActiveAdSummaries/:summaryAccountId")
  .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}}/userprofiles/:profileId/accountActiveAdSummaries/:summaryAccountId');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/accountActiveAdSummaries/:summaryAccountId'
};

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/accountActiveAdSummaries/:summaryAccountId")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/accountActiveAdSummaries/:summaryAccountId',
  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}}/userprofiles/:profileId/accountActiveAdSummaries/:summaryAccountId'
};

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

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

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/accountActiveAdSummaries/:summaryAccountId');

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}}/userprofiles/:profileId/accountActiveAdSummaries/:summaryAccountId'
};

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

const url = '{{baseUrl}}/userprofiles/:profileId/accountActiveAdSummaries/:summaryAccountId';
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}}/userprofiles/:profileId/accountActiveAdSummaries/:summaryAccountId"]
                                                       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}}/userprofiles/:profileId/accountActiveAdSummaries/:summaryAccountId" in

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

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/accountActiveAdSummaries/:summaryAccountId');
$request->setMethod(HTTP_METH_GET);

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

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

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

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

conn.request("GET", "/baseUrl/userprofiles/:profileId/accountActiveAdSummaries/:summaryAccountId")

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

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

url = "{{baseUrl}}/userprofiles/:profileId/accountActiveAdSummaries/:summaryAccountId"

response = requests.get(url)

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

url <- "{{baseUrl}}/userprofiles/:profileId/accountActiveAdSummaries/:summaryAccountId"

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

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

url = URI("{{baseUrl}}/userprofiles/:profileId/accountActiveAdSummaries/:summaryAccountId")

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/userprofiles/:profileId/accountActiveAdSummaries/:summaryAccountId') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/accountActiveAdSummaries/:summaryAccountId";

    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}}/userprofiles/:profileId/accountActiveAdSummaries/:summaryAccountId
http GET {{baseUrl}}/userprofiles/:profileId/accountActiveAdSummaries/:summaryAccountId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/accountActiveAdSummaries/:summaryAccountId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/accountActiveAdSummaries/:summaryAccountId")! 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 dfareporting.accountPermissionGroups.get
{{baseUrl}}/userprofiles/:profileId/accountPermissionGroups/:id
QUERY PARAMS

profileId
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/accountPermissionGroups/:id");

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

(client/get "{{baseUrl}}/userprofiles/:profileId/accountPermissionGroups/:id")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/accountPermissionGroups/:id"

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

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

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/accountPermissionGroups/:id"

	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/userprofiles/:profileId/accountPermissionGroups/:id HTTP/1.1
Host: example.com

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/accountPermissionGroups/:id"))
    .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}}/userprofiles/:profileId/accountPermissionGroups/:id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/accountPermissionGroups/:id")
  .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}}/userprofiles/:profileId/accountPermissionGroups/:id');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/accountPermissionGroups/:id'
};

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/accountPermissionGroups/:id")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/accountPermissionGroups/:id',
  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}}/userprofiles/:profileId/accountPermissionGroups/:id'
};

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

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

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/accountPermissionGroups/:id');

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}}/userprofiles/:profileId/accountPermissionGroups/:id'
};

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

const url = '{{baseUrl}}/userprofiles/:profileId/accountPermissionGroups/:id';
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}}/userprofiles/:profileId/accountPermissionGroups/:id"]
                                                       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}}/userprofiles/:profileId/accountPermissionGroups/:id" in

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

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/accountPermissionGroups/:id');
$request->setMethod(HTTP_METH_GET);

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

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

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

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

conn.request("GET", "/baseUrl/userprofiles/:profileId/accountPermissionGroups/:id")

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

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

url = "{{baseUrl}}/userprofiles/:profileId/accountPermissionGroups/:id"

response = requests.get(url)

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

url <- "{{baseUrl}}/userprofiles/:profileId/accountPermissionGroups/:id"

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

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

url = URI("{{baseUrl}}/userprofiles/:profileId/accountPermissionGroups/:id")

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/userprofiles/:profileId/accountPermissionGroups/:id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/accountPermissionGroups/:id";

    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}}/userprofiles/:profileId/accountPermissionGroups/:id
http GET {{baseUrl}}/userprofiles/:profileId/accountPermissionGroups/:id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/accountPermissionGroups/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/accountPermissionGroups/:id")! 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 dfareporting.accountPermissionGroups.list
{{baseUrl}}/userprofiles/:profileId/accountPermissionGroups
QUERY PARAMS

profileId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/accountPermissionGroups");

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

(client/get "{{baseUrl}}/userprofiles/:profileId/accountPermissionGroups")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/accountPermissionGroups"

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

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

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/accountPermissionGroups"

	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/userprofiles/:profileId/accountPermissionGroups HTTP/1.1
Host: example.com

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

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

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/accountPermissionGroups'
};

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/accountPermissionGroups")
  .get()
  .build()

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

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

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

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

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/accountPermissionGroups');

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}}/userprofiles/:profileId/accountPermissionGroups'
};

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

const url = '{{baseUrl}}/userprofiles/:profileId/accountPermissionGroups';
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}}/userprofiles/:profileId/accountPermissionGroups"]
                                                       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}}/userprofiles/:profileId/accountPermissionGroups" in

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

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/accountPermissionGroups');
$request->setMethod(HTTP_METH_GET);

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

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

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

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

conn.request("GET", "/baseUrl/userprofiles/:profileId/accountPermissionGroups")

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

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

url = "{{baseUrl}}/userprofiles/:profileId/accountPermissionGroups"

response = requests.get(url)

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

url <- "{{baseUrl}}/userprofiles/:profileId/accountPermissionGroups"

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

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

url = URI("{{baseUrl}}/userprofiles/:profileId/accountPermissionGroups")

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/userprofiles/:profileId/accountPermissionGroups') do |req|
end

puts response.status
puts response.body
use reqwest;

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

    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}}/userprofiles/:profileId/accountPermissionGroups
http GET {{baseUrl}}/userprofiles/:profileId/accountPermissionGroups
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/accountPermissionGroups
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/accountPermissionGroups")! 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 dfareporting.accountPermissions.get
{{baseUrl}}/userprofiles/:profileId/accountPermissions/:id
QUERY PARAMS

profileId
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/accountPermissions/:id");

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

(client/get "{{baseUrl}}/userprofiles/:profileId/accountPermissions/:id")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/accountPermissions/:id"

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

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

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/accountPermissions/:id"

	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/userprofiles/:profileId/accountPermissions/:id HTTP/1.1
Host: example.com

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/accountPermissions/:id"))
    .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}}/userprofiles/:profileId/accountPermissions/:id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/accountPermissions/:id")
  .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}}/userprofiles/:profileId/accountPermissions/:id');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/accountPermissions/:id'
};

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/accountPermissions/:id")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/accountPermissions/:id',
  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}}/userprofiles/:profileId/accountPermissions/:id'
};

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

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

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/accountPermissions/:id');

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}}/userprofiles/:profileId/accountPermissions/:id'
};

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

const url = '{{baseUrl}}/userprofiles/:profileId/accountPermissions/:id';
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}}/userprofiles/:profileId/accountPermissions/:id"]
                                                       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}}/userprofiles/:profileId/accountPermissions/:id" in

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

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/accountPermissions/:id');
$request->setMethod(HTTP_METH_GET);

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

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

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

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

conn.request("GET", "/baseUrl/userprofiles/:profileId/accountPermissions/:id")

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

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

url = "{{baseUrl}}/userprofiles/:profileId/accountPermissions/:id"

response = requests.get(url)

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

url <- "{{baseUrl}}/userprofiles/:profileId/accountPermissions/:id"

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

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

url = URI("{{baseUrl}}/userprofiles/:profileId/accountPermissions/:id")

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/userprofiles/:profileId/accountPermissions/:id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/accountPermissions/:id";

    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}}/userprofiles/:profileId/accountPermissions/:id
http GET {{baseUrl}}/userprofiles/:profileId/accountPermissions/:id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/accountPermissions/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/accountPermissions/:id")! 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 dfareporting.accountPermissions.list
{{baseUrl}}/userprofiles/:profileId/accountPermissions
QUERY PARAMS

profileId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/accountPermissions");

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

(client/get "{{baseUrl}}/userprofiles/:profileId/accountPermissions")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/accountPermissions"

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

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

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/accountPermissions"

	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/userprofiles/:profileId/accountPermissions HTTP/1.1
Host: example.com

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

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

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/accountPermissions'
};

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/accountPermissions")
  .get()
  .build()

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

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

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

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

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/accountPermissions');

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}}/userprofiles/:profileId/accountPermissions'
};

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

const url = '{{baseUrl}}/userprofiles/:profileId/accountPermissions';
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}}/userprofiles/:profileId/accountPermissions"]
                                                       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}}/userprofiles/:profileId/accountPermissions" in

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

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/accountPermissions');
$request->setMethod(HTTP_METH_GET);

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

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

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

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

conn.request("GET", "/baseUrl/userprofiles/:profileId/accountPermissions")

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

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

url = "{{baseUrl}}/userprofiles/:profileId/accountPermissions"

response = requests.get(url)

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

url <- "{{baseUrl}}/userprofiles/:profileId/accountPermissions"

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

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

url = URI("{{baseUrl}}/userprofiles/:profileId/accountPermissions")

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/userprofiles/:profileId/accountPermissions') do |req|
end

puts response.status
puts response.body
use reqwest;

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

    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}}/userprofiles/:profileId/accountPermissions
http GET {{baseUrl}}/userprofiles/:profileId/accountPermissions
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/accountPermissions
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/accountPermissions")! 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 dfareporting.accounts.get
{{baseUrl}}/userprofiles/:profileId/accounts/:id
QUERY PARAMS

profileId
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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

(client/get "{{baseUrl}}/userprofiles/:profileId/accounts/:id")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/accounts/:id"

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

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

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/accounts/:id"

	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/userprofiles/:profileId/accounts/:id HTTP/1.1
Host: example.com

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/accounts/:id"))
    .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}}/userprofiles/:profileId/accounts/:id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/accounts/:id")
  .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}}/userprofiles/:profileId/accounts/:id');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/accounts/:id'
};

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

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

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

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/accounts/:id',
  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}}/userprofiles/:profileId/accounts/:id'
};

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

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

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

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}}/userprofiles/:profileId/accounts/:id'
};

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

const url = '{{baseUrl}}/userprofiles/:profileId/accounts/:id';
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}}/userprofiles/:profileId/accounts/:id"]
                                                       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}}/userprofiles/:profileId/accounts/:id" in

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

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

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

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

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

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

conn.request("GET", "/baseUrl/userprofiles/:profileId/accounts/:id")

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

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

url = "{{baseUrl}}/userprofiles/:profileId/accounts/:id"

response = requests.get(url)

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

url <- "{{baseUrl}}/userprofiles/:profileId/accounts/:id"

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

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

url = URI("{{baseUrl}}/userprofiles/:profileId/accounts/:id")

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/userprofiles/:profileId/accounts/:id') do |req|
end

puts response.status
puts response.body
use reqwest;

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

    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}}/userprofiles/:profileId/accounts/:id
http GET {{baseUrl}}/userprofiles/:profileId/accounts/:id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/accounts/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/accounts/:id")! 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 dfareporting.accounts.list
{{baseUrl}}/userprofiles/:profileId/accounts
QUERY PARAMS

profileId
Examples
REQUEST

CURL *hnd = curl_easy_init();

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

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

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

url = "{{baseUrl}}/userprofiles/:profileId/accounts"

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

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

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/accounts"

	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/userprofiles/:profileId/accounts HTTP/1.1
Host: example.com

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

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

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

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

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

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

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

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

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

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

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

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

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

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}}/userprofiles/:profileId/accounts'
};

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

const url = '{{baseUrl}}/userprofiles/:profileId/accounts';
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}}/userprofiles/:profileId/accounts"]
                                                       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}}/userprofiles/:profileId/accounts" in

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

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

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

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

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

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

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

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

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

url = "{{baseUrl}}/userprofiles/:profileId/accounts"

response = requests.get(url)

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

url <- "{{baseUrl}}/userprofiles/:profileId/accounts"

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

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

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

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/userprofiles/:profileId/accounts') do |req|
end

puts response.status
puts response.body
use reqwest;

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

    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}}/userprofiles/:profileId/accounts
http GET {{baseUrl}}/userprofiles/:profileId/accounts
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/accounts
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/accounts")! 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 dfareporting.accounts.patch
{{baseUrl}}/userprofiles/:profileId/accounts
QUERY PARAMS

id
profileId
BODY json

{
  "accountPermissionIds": [],
  "accountProfile": "",
  "active": false,
  "activeAdsLimitTier": "",
  "activeViewOptOut": false,
  "availablePermissionIds": [],
  "countryId": "",
  "currencyId": "",
  "defaultCreativeSizeId": "",
  "description": "",
  "id": "",
  "kind": "",
  "locale": "",
  "maximumImageSize": "",
  "name": "",
  "nielsenOcrEnabled": false,
  "reportsConfiguration": {
    "exposureToConversionEnabled": false,
    "lookbackConfiguration": {
      "clickDuration": 0,
      "postImpressionActivitiesDuration": 0
    },
    "reportGenerationTimeZoneId": ""
  },
  "shareReportsWithTwitter": false,
  "teaserSizeLimit": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/accounts?id=");

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  \"accountPermissionIds\": [],\n  \"accountProfile\": \"\",\n  \"active\": false,\n  \"activeAdsLimitTier\": \"\",\n  \"activeViewOptOut\": false,\n  \"availablePermissionIds\": [],\n  \"countryId\": \"\",\n  \"currencyId\": \"\",\n  \"defaultCreativeSizeId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"locale\": \"\",\n  \"maximumImageSize\": \"\",\n  \"name\": \"\",\n  \"nielsenOcrEnabled\": false,\n  \"reportsConfiguration\": {\n    \"exposureToConversionEnabled\": false,\n    \"lookbackConfiguration\": {\n      \"clickDuration\": 0,\n      \"postImpressionActivitiesDuration\": 0\n    },\n    \"reportGenerationTimeZoneId\": \"\"\n  },\n  \"shareReportsWithTwitter\": false,\n  \"teaserSizeLimit\": \"\"\n}");

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

(client/patch "{{baseUrl}}/userprofiles/:profileId/accounts" {:query-params {:id ""}
                                                                              :content-type :json
                                                                              :form-params {:accountPermissionIds []
                                                                                            :accountProfile ""
                                                                                            :active false
                                                                                            :activeAdsLimitTier ""
                                                                                            :activeViewOptOut false
                                                                                            :availablePermissionIds []
                                                                                            :countryId ""
                                                                                            :currencyId ""
                                                                                            :defaultCreativeSizeId ""
                                                                                            :description ""
                                                                                            :id ""
                                                                                            :kind ""
                                                                                            :locale ""
                                                                                            :maximumImageSize ""
                                                                                            :name ""
                                                                                            :nielsenOcrEnabled false
                                                                                            :reportsConfiguration {:exposureToConversionEnabled false
                                                                                                                   :lookbackConfiguration {:clickDuration 0
                                                                                                                                           :postImpressionActivitiesDuration 0}
                                                                                                                   :reportGenerationTimeZoneId ""}
                                                                                            :shareReportsWithTwitter false
                                                                                            :teaserSizeLimit ""}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/accounts?id="
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"accountPermissionIds\": [],\n  \"accountProfile\": \"\",\n  \"active\": false,\n  \"activeAdsLimitTier\": \"\",\n  \"activeViewOptOut\": false,\n  \"availablePermissionIds\": [],\n  \"countryId\": \"\",\n  \"currencyId\": \"\",\n  \"defaultCreativeSizeId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"locale\": \"\",\n  \"maximumImageSize\": \"\",\n  \"name\": \"\",\n  \"nielsenOcrEnabled\": false,\n  \"reportsConfiguration\": {\n    \"exposureToConversionEnabled\": false,\n    \"lookbackConfiguration\": {\n      \"clickDuration\": 0,\n      \"postImpressionActivitiesDuration\": 0\n    },\n    \"reportGenerationTimeZoneId\": \"\"\n  },\n  \"shareReportsWithTwitter\": false,\n  \"teaserSizeLimit\": \"\"\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}}/userprofiles/:profileId/accounts?id="),
    Content = new StringContent("{\n  \"accountPermissionIds\": [],\n  \"accountProfile\": \"\",\n  \"active\": false,\n  \"activeAdsLimitTier\": \"\",\n  \"activeViewOptOut\": false,\n  \"availablePermissionIds\": [],\n  \"countryId\": \"\",\n  \"currencyId\": \"\",\n  \"defaultCreativeSizeId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"locale\": \"\",\n  \"maximumImageSize\": \"\",\n  \"name\": \"\",\n  \"nielsenOcrEnabled\": false,\n  \"reportsConfiguration\": {\n    \"exposureToConversionEnabled\": false,\n    \"lookbackConfiguration\": {\n      \"clickDuration\": 0,\n      \"postImpressionActivitiesDuration\": 0\n    },\n    \"reportGenerationTimeZoneId\": \"\"\n  },\n  \"shareReportsWithTwitter\": false,\n  \"teaserSizeLimit\": \"\"\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}}/userprofiles/:profileId/accounts?id=");
var request = new RestRequest("", Method.Patch);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"accountPermissionIds\": [],\n  \"accountProfile\": \"\",\n  \"active\": false,\n  \"activeAdsLimitTier\": \"\",\n  \"activeViewOptOut\": false,\n  \"availablePermissionIds\": [],\n  \"countryId\": \"\",\n  \"currencyId\": \"\",\n  \"defaultCreativeSizeId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"locale\": \"\",\n  \"maximumImageSize\": \"\",\n  \"name\": \"\",\n  \"nielsenOcrEnabled\": false,\n  \"reportsConfiguration\": {\n    \"exposureToConversionEnabled\": false,\n    \"lookbackConfiguration\": {\n      \"clickDuration\": 0,\n      \"postImpressionActivitiesDuration\": 0\n    },\n    \"reportGenerationTimeZoneId\": \"\"\n  },\n  \"shareReportsWithTwitter\": false,\n  \"teaserSizeLimit\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/accounts?id="

	payload := strings.NewReader("{\n  \"accountPermissionIds\": [],\n  \"accountProfile\": \"\",\n  \"active\": false,\n  \"activeAdsLimitTier\": \"\",\n  \"activeViewOptOut\": false,\n  \"availablePermissionIds\": [],\n  \"countryId\": \"\",\n  \"currencyId\": \"\",\n  \"defaultCreativeSizeId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"locale\": \"\",\n  \"maximumImageSize\": \"\",\n  \"name\": \"\",\n  \"nielsenOcrEnabled\": false,\n  \"reportsConfiguration\": {\n    \"exposureToConversionEnabled\": false,\n    \"lookbackConfiguration\": {\n      \"clickDuration\": 0,\n      \"postImpressionActivitiesDuration\": 0\n    },\n    \"reportGenerationTimeZoneId\": \"\"\n  },\n  \"shareReportsWithTwitter\": false,\n  \"teaserSizeLimit\": \"\"\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/userprofiles/:profileId/accounts?id= HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 648

{
  "accountPermissionIds": [],
  "accountProfile": "",
  "active": false,
  "activeAdsLimitTier": "",
  "activeViewOptOut": false,
  "availablePermissionIds": [],
  "countryId": "",
  "currencyId": "",
  "defaultCreativeSizeId": "",
  "description": "",
  "id": "",
  "kind": "",
  "locale": "",
  "maximumImageSize": "",
  "name": "",
  "nielsenOcrEnabled": false,
  "reportsConfiguration": {
    "exposureToConversionEnabled": false,
    "lookbackConfiguration": {
      "clickDuration": 0,
      "postImpressionActivitiesDuration": 0
    },
    "reportGenerationTimeZoneId": ""
  },
  "shareReportsWithTwitter": false,
  "teaserSizeLimit": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/userprofiles/:profileId/accounts?id=")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"accountPermissionIds\": [],\n  \"accountProfile\": \"\",\n  \"active\": false,\n  \"activeAdsLimitTier\": \"\",\n  \"activeViewOptOut\": false,\n  \"availablePermissionIds\": [],\n  \"countryId\": \"\",\n  \"currencyId\": \"\",\n  \"defaultCreativeSizeId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"locale\": \"\",\n  \"maximumImageSize\": \"\",\n  \"name\": \"\",\n  \"nielsenOcrEnabled\": false,\n  \"reportsConfiguration\": {\n    \"exposureToConversionEnabled\": false,\n    \"lookbackConfiguration\": {\n      \"clickDuration\": 0,\n      \"postImpressionActivitiesDuration\": 0\n    },\n    \"reportGenerationTimeZoneId\": \"\"\n  },\n  \"shareReportsWithTwitter\": false,\n  \"teaserSizeLimit\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/accounts?id="))
    .header("content-type", "application/json")
    .method("PATCH", HttpRequest.BodyPublishers.ofString("{\n  \"accountPermissionIds\": [],\n  \"accountProfile\": \"\",\n  \"active\": false,\n  \"activeAdsLimitTier\": \"\",\n  \"activeViewOptOut\": false,\n  \"availablePermissionIds\": [],\n  \"countryId\": \"\",\n  \"currencyId\": \"\",\n  \"defaultCreativeSizeId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"locale\": \"\",\n  \"maximumImageSize\": \"\",\n  \"name\": \"\",\n  \"nielsenOcrEnabled\": false,\n  \"reportsConfiguration\": {\n    \"exposureToConversionEnabled\": false,\n    \"lookbackConfiguration\": {\n      \"clickDuration\": 0,\n      \"postImpressionActivitiesDuration\": 0\n    },\n    \"reportGenerationTimeZoneId\": \"\"\n  },\n  \"shareReportsWithTwitter\": false,\n  \"teaserSizeLimit\": \"\"\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  \"accountPermissionIds\": [],\n  \"accountProfile\": \"\",\n  \"active\": false,\n  \"activeAdsLimitTier\": \"\",\n  \"activeViewOptOut\": false,\n  \"availablePermissionIds\": [],\n  \"countryId\": \"\",\n  \"currencyId\": \"\",\n  \"defaultCreativeSizeId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"locale\": \"\",\n  \"maximumImageSize\": \"\",\n  \"name\": \"\",\n  \"nielsenOcrEnabled\": false,\n  \"reportsConfiguration\": {\n    \"exposureToConversionEnabled\": false,\n    \"lookbackConfiguration\": {\n      \"clickDuration\": 0,\n      \"postImpressionActivitiesDuration\": 0\n    },\n    \"reportGenerationTimeZoneId\": \"\"\n  },\n  \"shareReportsWithTwitter\": false,\n  \"teaserSizeLimit\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/accounts?id=")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/userprofiles/:profileId/accounts?id=")
  .header("content-type", "application/json")
  .body("{\n  \"accountPermissionIds\": [],\n  \"accountProfile\": \"\",\n  \"active\": false,\n  \"activeAdsLimitTier\": \"\",\n  \"activeViewOptOut\": false,\n  \"availablePermissionIds\": [],\n  \"countryId\": \"\",\n  \"currencyId\": \"\",\n  \"defaultCreativeSizeId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"locale\": \"\",\n  \"maximumImageSize\": \"\",\n  \"name\": \"\",\n  \"nielsenOcrEnabled\": false,\n  \"reportsConfiguration\": {\n    \"exposureToConversionEnabled\": false,\n    \"lookbackConfiguration\": {\n      \"clickDuration\": 0,\n      \"postImpressionActivitiesDuration\": 0\n    },\n    \"reportGenerationTimeZoneId\": \"\"\n  },\n  \"shareReportsWithTwitter\": false,\n  \"teaserSizeLimit\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  accountPermissionIds: [],
  accountProfile: '',
  active: false,
  activeAdsLimitTier: '',
  activeViewOptOut: false,
  availablePermissionIds: [],
  countryId: '',
  currencyId: '',
  defaultCreativeSizeId: '',
  description: '',
  id: '',
  kind: '',
  locale: '',
  maximumImageSize: '',
  name: '',
  nielsenOcrEnabled: false,
  reportsConfiguration: {
    exposureToConversionEnabled: false,
    lookbackConfiguration: {
      clickDuration: 0,
      postImpressionActivitiesDuration: 0
    },
    reportGenerationTimeZoneId: ''
  },
  shareReportsWithTwitter: false,
  teaserSizeLimit: ''
});

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

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

xhr.open('PATCH', '{{baseUrl}}/userprofiles/:profileId/accounts?id=');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/userprofiles/:profileId/accounts',
  params: {id: ''},
  headers: {'content-type': 'application/json'},
  data: {
    accountPermissionIds: [],
    accountProfile: '',
    active: false,
    activeAdsLimitTier: '',
    activeViewOptOut: false,
    availablePermissionIds: [],
    countryId: '',
    currencyId: '',
    defaultCreativeSizeId: '',
    description: '',
    id: '',
    kind: '',
    locale: '',
    maximumImageSize: '',
    name: '',
    nielsenOcrEnabled: false,
    reportsConfiguration: {
      exposureToConversionEnabled: false,
      lookbackConfiguration: {clickDuration: 0, postImpressionActivitiesDuration: 0},
      reportGenerationTimeZoneId: ''
    },
    shareReportsWithTwitter: false,
    teaserSizeLimit: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/accounts?id=';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"accountPermissionIds":[],"accountProfile":"","active":false,"activeAdsLimitTier":"","activeViewOptOut":false,"availablePermissionIds":[],"countryId":"","currencyId":"","defaultCreativeSizeId":"","description":"","id":"","kind":"","locale":"","maximumImageSize":"","name":"","nielsenOcrEnabled":false,"reportsConfiguration":{"exposureToConversionEnabled":false,"lookbackConfiguration":{"clickDuration":0,"postImpressionActivitiesDuration":0},"reportGenerationTimeZoneId":""},"shareReportsWithTwitter":false,"teaserSizeLimit":""}'
};

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}}/userprofiles/:profileId/accounts?id=',
  method: 'PATCH',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "accountPermissionIds": [],\n  "accountProfile": "",\n  "active": false,\n  "activeAdsLimitTier": "",\n  "activeViewOptOut": false,\n  "availablePermissionIds": [],\n  "countryId": "",\n  "currencyId": "",\n  "defaultCreativeSizeId": "",\n  "description": "",\n  "id": "",\n  "kind": "",\n  "locale": "",\n  "maximumImageSize": "",\n  "name": "",\n  "nielsenOcrEnabled": false,\n  "reportsConfiguration": {\n    "exposureToConversionEnabled": false,\n    "lookbackConfiguration": {\n      "clickDuration": 0,\n      "postImpressionActivitiesDuration": 0\n    },\n    "reportGenerationTimeZoneId": ""\n  },\n  "shareReportsWithTwitter": false,\n  "teaserSizeLimit": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"accountPermissionIds\": [],\n  \"accountProfile\": \"\",\n  \"active\": false,\n  \"activeAdsLimitTier\": \"\",\n  \"activeViewOptOut\": false,\n  \"availablePermissionIds\": [],\n  \"countryId\": \"\",\n  \"currencyId\": \"\",\n  \"defaultCreativeSizeId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"locale\": \"\",\n  \"maximumImageSize\": \"\",\n  \"name\": \"\",\n  \"nielsenOcrEnabled\": false,\n  \"reportsConfiguration\": {\n    \"exposureToConversionEnabled\": false,\n    \"lookbackConfiguration\": {\n      \"clickDuration\": 0,\n      \"postImpressionActivitiesDuration\": 0\n    },\n    \"reportGenerationTimeZoneId\": \"\"\n  },\n  \"shareReportsWithTwitter\": false,\n  \"teaserSizeLimit\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/accounts?id=")
  .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/userprofiles/:profileId/accounts?id=',
  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({
  accountPermissionIds: [],
  accountProfile: '',
  active: false,
  activeAdsLimitTier: '',
  activeViewOptOut: false,
  availablePermissionIds: [],
  countryId: '',
  currencyId: '',
  defaultCreativeSizeId: '',
  description: '',
  id: '',
  kind: '',
  locale: '',
  maximumImageSize: '',
  name: '',
  nielsenOcrEnabled: false,
  reportsConfiguration: {
    exposureToConversionEnabled: false,
    lookbackConfiguration: {clickDuration: 0, postImpressionActivitiesDuration: 0},
    reportGenerationTimeZoneId: ''
  },
  shareReportsWithTwitter: false,
  teaserSizeLimit: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/userprofiles/:profileId/accounts',
  qs: {id: ''},
  headers: {'content-type': 'application/json'},
  body: {
    accountPermissionIds: [],
    accountProfile: '',
    active: false,
    activeAdsLimitTier: '',
    activeViewOptOut: false,
    availablePermissionIds: [],
    countryId: '',
    currencyId: '',
    defaultCreativeSizeId: '',
    description: '',
    id: '',
    kind: '',
    locale: '',
    maximumImageSize: '',
    name: '',
    nielsenOcrEnabled: false,
    reportsConfiguration: {
      exposureToConversionEnabled: false,
      lookbackConfiguration: {clickDuration: 0, postImpressionActivitiesDuration: 0},
      reportGenerationTimeZoneId: ''
    },
    shareReportsWithTwitter: false,
    teaserSizeLimit: ''
  },
  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}}/userprofiles/:profileId/accounts');

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

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

req.type('json');
req.send({
  accountPermissionIds: [],
  accountProfile: '',
  active: false,
  activeAdsLimitTier: '',
  activeViewOptOut: false,
  availablePermissionIds: [],
  countryId: '',
  currencyId: '',
  defaultCreativeSizeId: '',
  description: '',
  id: '',
  kind: '',
  locale: '',
  maximumImageSize: '',
  name: '',
  nielsenOcrEnabled: false,
  reportsConfiguration: {
    exposureToConversionEnabled: false,
    lookbackConfiguration: {
      clickDuration: 0,
      postImpressionActivitiesDuration: 0
    },
    reportGenerationTimeZoneId: ''
  },
  shareReportsWithTwitter: false,
  teaserSizeLimit: ''
});

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}}/userprofiles/:profileId/accounts',
  params: {id: ''},
  headers: {'content-type': 'application/json'},
  data: {
    accountPermissionIds: [],
    accountProfile: '',
    active: false,
    activeAdsLimitTier: '',
    activeViewOptOut: false,
    availablePermissionIds: [],
    countryId: '',
    currencyId: '',
    defaultCreativeSizeId: '',
    description: '',
    id: '',
    kind: '',
    locale: '',
    maximumImageSize: '',
    name: '',
    nielsenOcrEnabled: false,
    reportsConfiguration: {
      exposureToConversionEnabled: false,
      lookbackConfiguration: {clickDuration: 0, postImpressionActivitiesDuration: 0},
      reportGenerationTimeZoneId: ''
    },
    shareReportsWithTwitter: false,
    teaserSizeLimit: ''
  }
};

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

const url = '{{baseUrl}}/userprofiles/:profileId/accounts?id=';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"accountPermissionIds":[],"accountProfile":"","active":false,"activeAdsLimitTier":"","activeViewOptOut":false,"availablePermissionIds":[],"countryId":"","currencyId":"","defaultCreativeSizeId":"","description":"","id":"","kind":"","locale":"","maximumImageSize":"","name":"","nielsenOcrEnabled":false,"reportsConfiguration":{"exposureToConversionEnabled":false,"lookbackConfiguration":{"clickDuration":0,"postImpressionActivitiesDuration":0},"reportGenerationTimeZoneId":""},"shareReportsWithTwitter":false,"teaserSizeLimit":""}'
};

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 = @{ @"accountPermissionIds": @[  ],
                              @"accountProfile": @"",
                              @"active": @NO,
                              @"activeAdsLimitTier": @"",
                              @"activeViewOptOut": @NO,
                              @"availablePermissionIds": @[  ],
                              @"countryId": @"",
                              @"currencyId": @"",
                              @"defaultCreativeSizeId": @"",
                              @"description": @"",
                              @"id": @"",
                              @"kind": @"",
                              @"locale": @"",
                              @"maximumImageSize": @"",
                              @"name": @"",
                              @"nielsenOcrEnabled": @NO,
                              @"reportsConfiguration": @{ @"exposureToConversionEnabled": @NO, @"lookbackConfiguration": @{ @"clickDuration": @0, @"postImpressionActivitiesDuration": @0 }, @"reportGenerationTimeZoneId": @"" },
                              @"shareReportsWithTwitter": @NO,
                              @"teaserSizeLimit": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/userprofiles/:profileId/accounts?id="]
                                                       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}}/userprofiles/:profileId/accounts?id=" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"accountPermissionIds\": [],\n  \"accountProfile\": \"\",\n  \"active\": false,\n  \"activeAdsLimitTier\": \"\",\n  \"activeViewOptOut\": false,\n  \"availablePermissionIds\": [],\n  \"countryId\": \"\",\n  \"currencyId\": \"\",\n  \"defaultCreativeSizeId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"locale\": \"\",\n  \"maximumImageSize\": \"\",\n  \"name\": \"\",\n  \"nielsenOcrEnabled\": false,\n  \"reportsConfiguration\": {\n    \"exposureToConversionEnabled\": false,\n    \"lookbackConfiguration\": {\n      \"clickDuration\": 0,\n      \"postImpressionActivitiesDuration\": 0\n    },\n    \"reportGenerationTimeZoneId\": \"\"\n  },\n  \"shareReportsWithTwitter\": false,\n  \"teaserSizeLimit\": \"\"\n}" in

Client.call ~headers ~body `PATCH uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/accounts?id=",
  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([
    'accountPermissionIds' => [
        
    ],
    'accountProfile' => '',
    'active' => null,
    'activeAdsLimitTier' => '',
    'activeViewOptOut' => null,
    'availablePermissionIds' => [
        
    ],
    'countryId' => '',
    'currencyId' => '',
    'defaultCreativeSizeId' => '',
    'description' => '',
    'id' => '',
    'kind' => '',
    'locale' => '',
    'maximumImageSize' => '',
    'name' => '',
    'nielsenOcrEnabled' => null,
    'reportsConfiguration' => [
        'exposureToConversionEnabled' => null,
        'lookbackConfiguration' => [
                'clickDuration' => 0,
                'postImpressionActivitiesDuration' => 0
        ],
        'reportGenerationTimeZoneId' => ''
    ],
    'shareReportsWithTwitter' => null,
    'teaserSizeLimit' => ''
  ]),
  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}}/userprofiles/:profileId/accounts?id=', [
  'body' => '{
  "accountPermissionIds": [],
  "accountProfile": "",
  "active": false,
  "activeAdsLimitTier": "",
  "activeViewOptOut": false,
  "availablePermissionIds": [],
  "countryId": "",
  "currencyId": "",
  "defaultCreativeSizeId": "",
  "description": "",
  "id": "",
  "kind": "",
  "locale": "",
  "maximumImageSize": "",
  "name": "",
  "nielsenOcrEnabled": false,
  "reportsConfiguration": {
    "exposureToConversionEnabled": false,
    "lookbackConfiguration": {
      "clickDuration": 0,
      "postImpressionActivitiesDuration": 0
    },
    "reportGenerationTimeZoneId": ""
  },
  "shareReportsWithTwitter": false,
  "teaserSizeLimit": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/accounts');
$request->setMethod(HttpRequest::HTTP_METH_PATCH);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'accountPermissionIds' => [
    
  ],
  'accountProfile' => '',
  'active' => null,
  'activeAdsLimitTier' => '',
  'activeViewOptOut' => null,
  'availablePermissionIds' => [
    
  ],
  'countryId' => '',
  'currencyId' => '',
  'defaultCreativeSizeId' => '',
  'description' => '',
  'id' => '',
  'kind' => '',
  'locale' => '',
  'maximumImageSize' => '',
  'name' => '',
  'nielsenOcrEnabled' => null,
  'reportsConfiguration' => [
    'exposureToConversionEnabled' => null,
    'lookbackConfiguration' => [
        'clickDuration' => 0,
        'postImpressionActivitiesDuration' => 0
    ],
    'reportGenerationTimeZoneId' => ''
  ],
  'shareReportsWithTwitter' => null,
  'teaserSizeLimit' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'accountPermissionIds' => [
    
  ],
  'accountProfile' => '',
  'active' => null,
  'activeAdsLimitTier' => '',
  'activeViewOptOut' => null,
  'availablePermissionIds' => [
    
  ],
  'countryId' => '',
  'currencyId' => '',
  'defaultCreativeSizeId' => '',
  'description' => '',
  'id' => '',
  'kind' => '',
  'locale' => '',
  'maximumImageSize' => '',
  'name' => '',
  'nielsenOcrEnabled' => null,
  'reportsConfiguration' => [
    'exposureToConversionEnabled' => null,
    'lookbackConfiguration' => [
        'clickDuration' => 0,
        'postImpressionActivitiesDuration' => 0
    ],
    'reportGenerationTimeZoneId' => ''
  ],
  'shareReportsWithTwitter' => null,
  'teaserSizeLimit' => ''
]));
$request->setRequestUrl('{{baseUrl}}/userprofiles/:profileId/accounts');
$request->setRequestMethod('PATCH');
$request->setBody($body);

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

$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}}/userprofiles/:profileId/accounts?id=' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "accountPermissionIds": [],
  "accountProfile": "",
  "active": false,
  "activeAdsLimitTier": "",
  "activeViewOptOut": false,
  "availablePermissionIds": [],
  "countryId": "",
  "currencyId": "",
  "defaultCreativeSizeId": "",
  "description": "",
  "id": "",
  "kind": "",
  "locale": "",
  "maximumImageSize": "",
  "name": "",
  "nielsenOcrEnabled": false,
  "reportsConfiguration": {
    "exposureToConversionEnabled": false,
    "lookbackConfiguration": {
      "clickDuration": 0,
      "postImpressionActivitiesDuration": 0
    },
    "reportGenerationTimeZoneId": ""
  },
  "shareReportsWithTwitter": false,
  "teaserSizeLimit": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/accounts?id=' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "accountPermissionIds": [],
  "accountProfile": "",
  "active": false,
  "activeAdsLimitTier": "",
  "activeViewOptOut": false,
  "availablePermissionIds": [],
  "countryId": "",
  "currencyId": "",
  "defaultCreativeSizeId": "",
  "description": "",
  "id": "",
  "kind": "",
  "locale": "",
  "maximumImageSize": "",
  "name": "",
  "nielsenOcrEnabled": false,
  "reportsConfiguration": {
    "exposureToConversionEnabled": false,
    "lookbackConfiguration": {
      "clickDuration": 0,
      "postImpressionActivitiesDuration": 0
    },
    "reportGenerationTimeZoneId": ""
  },
  "shareReportsWithTwitter": false,
  "teaserSizeLimit": ""
}'
import http.client

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

payload = "{\n  \"accountPermissionIds\": [],\n  \"accountProfile\": \"\",\n  \"active\": false,\n  \"activeAdsLimitTier\": \"\",\n  \"activeViewOptOut\": false,\n  \"availablePermissionIds\": [],\n  \"countryId\": \"\",\n  \"currencyId\": \"\",\n  \"defaultCreativeSizeId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"locale\": \"\",\n  \"maximumImageSize\": \"\",\n  \"name\": \"\",\n  \"nielsenOcrEnabled\": false,\n  \"reportsConfiguration\": {\n    \"exposureToConversionEnabled\": false,\n    \"lookbackConfiguration\": {\n      \"clickDuration\": 0,\n      \"postImpressionActivitiesDuration\": 0\n    },\n    \"reportGenerationTimeZoneId\": \"\"\n  },\n  \"shareReportsWithTwitter\": false,\n  \"teaserSizeLimit\": \"\"\n}"

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

conn.request("PATCH", "/baseUrl/userprofiles/:profileId/accounts?id=", payload, headers)

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

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

url = "{{baseUrl}}/userprofiles/:profileId/accounts"

querystring = {"id":""}

payload = {
    "accountPermissionIds": [],
    "accountProfile": "",
    "active": False,
    "activeAdsLimitTier": "",
    "activeViewOptOut": False,
    "availablePermissionIds": [],
    "countryId": "",
    "currencyId": "",
    "defaultCreativeSizeId": "",
    "description": "",
    "id": "",
    "kind": "",
    "locale": "",
    "maximumImageSize": "",
    "name": "",
    "nielsenOcrEnabled": False,
    "reportsConfiguration": {
        "exposureToConversionEnabled": False,
        "lookbackConfiguration": {
            "clickDuration": 0,
            "postImpressionActivitiesDuration": 0
        },
        "reportGenerationTimeZoneId": ""
    },
    "shareReportsWithTwitter": False,
    "teaserSizeLimit": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/userprofiles/:profileId/accounts"

queryString <- list(id = "")

payload <- "{\n  \"accountPermissionIds\": [],\n  \"accountProfile\": \"\",\n  \"active\": false,\n  \"activeAdsLimitTier\": \"\",\n  \"activeViewOptOut\": false,\n  \"availablePermissionIds\": [],\n  \"countryId\": \"\",\n  \"currencyId\": \"\",\n  \"defaultCreativeSizeId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"locale\": \"\",\n  \"maximumImageSize\": \"\",\n  \"name\": \"\",\n  \"nielsenOcrEnabled\": false,\n  \"reportsConfiguration\": {\n    \"exposureToConversionEnabled\": false,\n    \"lookbackConfiguration\": {\n      \"clickDuration\": 0,\n      \"postImpressionActivitiesDuration\": 0\n    },\n    \"reportGenerationTimeZoneId\": \"\"\n  },\n  \"shareReportsWithTwitter\": false,\n  \"teaserSizeLimit\": \"\"\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/userprofiles/:profileId/accounts?id=")

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  \"accountPermissionIds\": [],\n  \"accountProfile\": \"\",\n  \"active\": false,\n  \"activeAdsLimitTier\": \"\",\n  \"activeViewOptOut\": false,\n  \"availablePermissionIds\": [],\n  \"countryId\": \"\",\n  \"currencyId\": \"\",\n  \"defaultCreativeSizeId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"locale\": \"\",\n  \"maximumImageSize\": \"\",\n  \"name\": \"\",\n  \"nielsenOcrEnabled\": false,\n  \"reportsConfiguration\": {\n    \"exposureToConversionEnabled\": false,\n    \"lookbackConfiguration\": {\n      \"clickDuration\": 0,\n      \"postImpressionActivitiesDuration\": 0\n    },\n    \"reportGenerationTimeZoneId\": \"\"\n  },\n  \"shareReportsWithTwitter\": false,\n  \"teaserSizeLimit\": \"\"\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/userprofiles/:profileId/accounts') do |req|
  req.params['id'] = ''
  req.body = "{\n  \"accountPermissionIds\": [],\n  \"accountProfile\": \"\",\n  \"active\": false,\n  \"activeAdsLimitTier\": \"\",\n  \"activeViewOptOut\": false,\n  \"availablePermissionIds\": [],\n  \"countryId\": \"\",\n  \"currencyId\": \"\",\n  \"defaultCreativeSizeId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"locale\": \"\",\n  \"maximumImageSize\": \"\",\n  \"name\": \"\",\n  \"nielsenOcrEnabled\": false,\n  \"reportsConfiguration\": {\n    \"exposureToConversionEnabled\": false,\n    \"lookbackConfiguration\": {\n      \"clickDuration\": 0,\n      \"postImpressionActivitiesDuration\": 0\n    },\n    \"reportGenerationTimeZoneId\": \"\"\n  },\n  \"shareReportsWithTwitter\": false,\n  \"teaserSizeLimit\": \"\"\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}}/userprofiles/:profileId/accounts";

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

    let payload = json!({
        "accountPermissionIds": (),
        "accountProfile": "",
        "active": false,
        "activeAdsLimitTier": "",
        "activeViewOptOut": false,
        "availablePermissionIds": (),
        "countryId": "",
        "currencyId": "",
        "defaultCreativeSizeId": "",
        "description": "",
        "id": "",
        "kind": "",
        "locale": "",
        "maximumImageSize": "",
        "name": "",
        "nielsenOcrEnabled": false,
        "reportsConfiguration": json!({
            "exposureToConversionEnabled": false,
            "lookbackConfiguration": json!({
                "clickDuration": 0,
                "postImpressionActivitiesDuration": 0
            }),
            "reportGenerationTimeZoneId": ""
        }),
        "shareReportsWithTwitter": false,
        "teaserSizeLimit": ""
    });

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

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

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

    dbg!(results);
}
curl --request PATCH \
  --url '{{baseUrl}}/userprofiles/:profileId/accounts?id=' \
  --header 'content-type: application/json' \
  --data '{
  "accountPermissionIds": [],
  "accountProfile": "",
  "active": false,
  "activeAdsLimitTier": "",
  "activeViewOptOut": false,
  "availablePermissionIds": [],
  "countryId": "",
  "currencyId": "",
  "defaultCreativeSizeId": "",
  "description": "",
  "id": "",
  "kind": "",
  "locale": "",
  "maximumImageSize": "",
  "name": "",
  "nielsenOcrEnabled": false,
  "reportsConfiguration": {
    "exposureToConversionEnabled": false,
    "lookbackConfiguration": {
      "clickDuration": 0,
      "postImpressionActivitiesDuration": 0
    },
    "reportGenerationTimeZoneId": ""
  },
  "shareReportsWithTwitter": false,
  "teaserSizeLimit": ""
}'
echo '{
  "accountPermissionIds": [],
  "accountProfile": "",
  "active": false,
  "activeAdsLimitTier": "",
  "activeViewOptOut": false,
  "availablePermissionIds": [],
  "countryId": "",
  "currencyId": "",
  "defaultCreativeSizeId": "",
  "description": "",
  "id": "",
  "kind": "",
  "locale": "",
  "maximumImageSize": "",
  "name": "",
  "nielsenOcrEnabled": false,
  "reportsConfiguration": {
    "exposureToConversionEnabled": false,
    "lookbackConfiguration": {
      "clickDuration": 0,
      "postImpressionActivitiesDuration": 0
    },
    "reportGenerationTimeZoneId": ""
  },
  "shareReportsWithTwitter": false,
  "teaserSizeLimit": ""
}' |  \
  http PATCH '{{baseUrl}}/userprofiles/:profileId/accounts?id=' \
  content-type:application/json
wget --quiet \
  --method PATCH \
  --header 'content-type: application/json' \
  --body-data '{\n  "accountPermissionIds": [],\n  "accountProfile": "",\n  "active": false,\n  "activeAdsLimitTier": "",\n  "activeViewOptOut": false,\n  "availablePermissionIds": [],\n  "countryId": "",\n  "currencyId": "",\n  "defaultCreativeSizeId": "",\n  "description": "",\n  "id": "",\n  "kind": "",\n  "locale": "",\n  "maximumImageSize": "",\n  "name": "",\n  "nielsenOcrEnabled": false,\n  "reportsConfiguration": {\n    "exposureToConversionEnabled": false,\n    "lookbackConfiguration": {\n      "clickDuration": 0,\n      "postImpressionActivitiesDuration": 0\n    },\n    "reportGenerationTimeZoneId": ""\n  },\n  "shareReportsWithTwitter": false,\n  "teaserSizeLimit": ""\n}' \
  --output-document \
  - '{{baseUrl}}/userprofiles/:profileId/accounts?id='
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "accountPermissionIds": [],
  "accountProfile": "",
  "active": false,
  "activeAdsLimitTier": "",
  "activeViewOptOut": false,
  "availablePermissionIds": [],
  "countryId": "",
  "currencyId": "",
  "defaultCreativeSizeId": "",
  "description": "",
  "id": "",
  "kind": "",
  "locale": "",
  "maximumImageSize": "",
  "name": "",
  "nielsenOcrEnabled": false,
  "reportsConfiguration": [
    "exposureToConversionEnabled": false,
    "lookbackConfiguration": [
      "clickDuration": 0,
      "postImpressionActivitiesDuration": 0
    ],
    "reportGenerationTimeZoneId": ""
  ],
  "shareReportsWithTwitter": false,
  "teaserSizeLimit": ""
] as [String : Any]

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

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

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

dataTask.resume()
PUT dfareporting.accounts.update
{{baseUrl}}/userprofiles/:profileId/accounts
QUERY PARAMS

profileId
BODY json

{
  "accountPermissionIds": [],
  "accountProfile": "",
  "active": false,
  "activeAdsLimitTier": "",
  "activeViewOptOut": false,
  "availablePermissionIds": [],
  "countryId": "",
  "currencyId": "",
  "defaultCreativeSizeId": "",
  "description": "",
  "id": "",
  "kind": "",
  "locale": "",
  "maximumImageSize": "",
  "name": "",
  "nielsenOcrEnabled": false,
  "reportsConfiguration": {
    "exposureToConversionEnabled": false,
    "lookbackConfiguration": {
      "clickDuration": 0,
      "postImpressionActivitiesDuration": 0
    },
    "reportGenerationTimeZoneId": ""
  },
  "shareReportsWithTwitter": false,
  "teaserSizeLimit": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/accounts");

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  \"accountPermissionIds\": [],\n  \"accountProfile\": \"\",\n  \"active\": false,\n  \"activeAdsLimitTier\": \"\",\n  \"activeViewOptOut\": false,\n  \"availablePermissionIds\": [],\n  \"countryId\": \"\",\n  \"currencyId\": \"\",\n  \"defaultCreativeSizeId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"locale\": \"\",\n  \"maximumImageSize\": \"\",\n  \"name\": \"\",\n  \"nielsenOcrEnabled\": false,\n  \"reportsConfiguration\": {\n    \"exposureToConversionEnabled\": false,\n    \"lookbackConfiguration\": {\n      \"clickDuration\": 0,\n      \"postImpressionActivitiesDuration\": 0\n    },\n    \"reportGenerationTimeZoneId\": \"\"\n  },\n  \"shareReportsWithTwitter\": false,\n  \"teaserSizeLimit\": \"\"\n}");

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

(client/put "{{baseUrl}}/userprofiles/:profileId/accounts" {:content-type :json
                                                                            :form-params {:accountPermissionIds []
                                                                                          :accountProfile ""
                                                                                          :active false
                                                                                          :activeAdsLimitTier ""
                                                                                          :activeViewOptOut false
                                                                                          :availablePermissionIds []
                                                                                          :countryId ""
                                                                                          :currencyId ""
                                                                                          :defaultCreativeSizeId ""
                                                                                          :description ""
                                                                                          :id ""
                                                                                          :kind ""
                                                                                          :locale ""
                                                                                          :maximumImageSize ""
                                                                                          :name ""
                                                                                          :nielsenOcrEnabled false
                                                                                          :reportsConfiguration {:exposureToConversionEnabled false
                                                                                                                 :lookbackConfiguration {:clickDuration 0
                                                                                                                                         :postImpressionActivitiesDuration 0}
                                                                                                                 :reportGenerationTimeZoneId ""}
                                                                                          :shareReportsWithTwitter false
                                                                                          :teaserSizeLimit ""}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/accounts"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"accountPermissionIds\": [],\n  \"accountProfile\": \"\",\n  \"active\": false,\n  \"activeAdsLimitTier\": \"\",\n  \"activeViewOptOut\": false,\n  \"availablePermissionIds\": [],\n  \"countryId\": \"\",\n  \"currencyId\": \"\",\n  \"defaultCreativeSizeId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"locale\": \"\",\n  \"maximumImageSize\": \"\",\n  \"name\": \"\",\n  \"nielsenOcrEnabled\": false,\n  \"reportsConfiguration\": {\n    \"exposureToConversionEnabled\": false,\n    \"lookbackConfiguration\": {\n      \"clickDuration\": 0,\n      \"postImpressionActivitiesDuration\": 0\n    },\n    \"reportGenerationTimeZoneId\": \"\"\n  },\n  \"shareReportsWithTwitter\": false,\n  \"teaserSizeLimit\": \"\"\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/userprofiles/:profileId/accounts"),
    Content = new StringContent("{\n  \"accountPermissionIds\": [],\n  \"accountProfile\": \"\",\n  \"active\": false,\n  \"activeAdsLimitTier\": \"\",\n  \"activeViewOptOut\": false,\n  \"availablePermissionIds\": [],\n  \"countryId\": \"\",\n  \"currencyId\": \"\",\n  \"defaultCreativeSizeId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"locale\": \"\",\n  \"maximumImageSize\": \"\",\n  \"name\": \"\",\n  \"nielsenOcrEnabled\": false,\n  \"reportsConfiguration\": {\n    \"exposureToConversionEnabled\": false,\n    \"lookbackConfiguration\": {\n      \"clickDuration\": 0,\n      \"postImpressionActivitiesDuration\": 0\n    },\n    \"reportGenerationTimeZoneId\": \"\"\n  },\n  \"shareReportsWithTwitter\": false,\n  \"teaserSizeLimit\": \"\"\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}}/userprofiles/:profileId/accounts");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"accountPermissionIds\": [],\n  \"accountProfile\": \"\",\n  \"active\": false,\n  \"activeAdsLimitTier\": \"\",\n  \"activeViewOptOut\": false,\n  \"availablePermissionIds\": [],\n  \"countryId\": \"\",\n  \"currencyId\": \"\",\n  \"defaultCreativeSizeId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"locale\": \"\",\n  \"maximumImageSize\": \"\",\n  \"name\": \"\",\n  \"nielsenOcrEnabled\": false,\n  \"reportsConfiguration\": {\n    \"exposureToConversionEnabled\": false,\n    \"lookbackConfiguration\": {\n      \"clickDuration\": 0,\n      \"postImpressionActivitiesDuration\": 0\n    },\n    \"reportGenerationTimeZoneId\": \"\"\n  },\n  \"shareReportsWithTwitter\": false,\n  \"teaserSizeLimit\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/accounts"

	payload := strings.NewReader("{\n  \"accountPermissionIds\": [],\n  \"accountProfile\": \"\",\n  \"active\": false,\n  \"activeAdsLimitTier\": \"\",\n  \"activeViewOptOut\": false,\n  \"availablePermissionIds\": [],\n  \"countryId\": \"\",\n  \"currencyId\": \"\",\n  \"defaultCreativeSizeId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"locale\": \"\",\n  \"maximumImageSize\": \"\",\n  \"name\": \"\",\n  \"nielsenOcrEnabled\": false,\n  \"reportsConfiguration\": {\n    \"exposureToConversionEnabled\": false,\n    \"lookbackConfiguration\": {\n      \"clickDuration\": 0,\n      \"postImpressionActivitiesDuration\": 0\n    },\n    \"reportGenerationTimeZoneId\": \"\"\n  },\n  \"shareReportsWithTwitter\": false,\n  \"teaserSizeLimit\": \"\"\n}")

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

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

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

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

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

}
PUT /baseUrl/userprofiles/:profileId/accounts HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 648

{
  "accountPermissionIds": [],
  "accountProfile": "",
  "active": false,
  "activeAdsLimitTier": "",
  "activeViewOptOut": false,
  "availablePermissionIds": [],
  "countryId": "",
  "currencyId": "",
  "defaultCreativeSizeId": "",
  "description": "",
  "id": "",
  "kind": "",
  "locale": "",
  "maximumImageSize": "",
  "name": "",
  "nielsenOcrEnabled": false,
  "reportsConfiguration": {
    "exposureToConversionEnabled": false,
    "lookbackConfiguration": {
      "clickDuration": 0,
      "postImpressionActivitiesDuration": 0
    },
    "reportGenerationTimeZoneId": ""
  },
  "shareReportsWithTwitter": false,
  "teaserSizeLimit": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/userprofiles/:profileId/accounts")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"accountPermissionIds\": [],\n  \"accountProfile\": \"\",\n  \"active\": false,\n  \"activeAdsLimitTier\": \"\",\n  \"activeViewOptOut\": false,\n  \"availablePermissionIds\": [],\n  \"countryId\": \"\",\n  \"currencyId\": \"\",\n  \"defaultCreativeSizeId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"locale\": \"\",\n  \"maximumImageSize\": \"\",\n  \"name\": \"\",\n  \"nielsenOcrEnabled\": false,\n  \"reportsConfiguration\": {\n    \"exposureToConversionEnabled\": false,\n    \"lookbackConfiguration\": {\n      \"clickDuration\": 0,\n      \"postImpressionActivitiesDuration\": 0\n    },\n    \"reportGenerationTimeZoneId\": \"\"\n  },\n  \"shareReportsWithTwitter\": false,\n  \"teaserSizeLimit\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/accounts"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"accountPermissionIds\": [],\n  \"accountProfile\": \"\",\n  \"active\": false,\n  \"activeAdsLimitTier\": \"\",\n  \"activeViewOptOut\": false,\n  \"availablePermissionIds\": [],\n  \"countryId\": \"\",\n  \"currencyId\": \"\",\n  \"defaultCreativeSizeId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"locale\": \"\",\n  \"maximumImageSize\": \"\",\n  \"name\": \"\",\n  \"nielsenOcrEnabled\": false,\n  \"reportsConfiguration\": {\n    \"exposureToConversionEnabled\": false,\n    \"lookbackConfiguration\": {\n      \"clickDuration\": 0,\n      \"postImpressionActivitiesDuration\": 0\n    },\n    \"reportGenerationTimeZoneId\": \"\"\n  },\n  \"shareReportsWithTwitter\": false,\n  \"teaserSizeLimit\": \"\"\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  \"accountPermissionIds\": [],\n  \"accountProfile\": \"\",\n  \"active\": false,\n  \"activeAdsLimitTier\": \"\",\n  \"activeViewOptOut\": false,\n  \"availablePermissionIds\": [],\n  \"countryId\": \"\",\n  \"currencyId\": \"\",\n  \"defaultCreativeSizeId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"locale\": \"\",\n  \"maximumImageSize\": \"\",\n  \"name\": \"\",\n  \"nielsenOcrEnabled\": false,\n  \"reportsConfiguration\": {\n    \"exposureToConversionEnabled\": false,\n    \"lookbackConfiguration\": {\n      \"clickDuration\": 0,\n      \"postImpressionActivitiesDuration\": 0\n    },\n    \"reportGenerationTimeZoneId\": \"\"\n  },\n  \"shareReportsWithTwitter\": false,\n  \"teaserSizeLimit\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/accounts")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/userprofiles/:profileId/accounts")
  .header("content-type", "application/json")
  .body("{\n  \"accountPermissionIds\": [],\n  \"accountProfile\": \"\",\n  \"active\": false,\n  \"activeAdsLimitTier\": \"\",\n  \"activeViewOptOut\": false,\n  \"availablePermissionIds\": [],\n  \"countryId\": \"\",\n  \"currencyId\": \"\",\n  \"defaultCreativeSizeId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"locale\": \"\",\n  \"maximumImageSize\": \"\",\n  \"name\": \"\",\n  \"nielsenOcrEnabled\": false,\n  \"reportsConfiguration\": {\n    \"exposureToConversionEnabled\": false,\n    \"lookbackConfiguration\": {\n      \"clickDuration\": 0,\n      \"postImpressionActivitiesDuration\": 0\n    },\n    \"reportGenerationTimeZoneId\": \"\"\n  },\n  \"shareReportsWithTwitter\": false,\n  \"teaserSizeLimit\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  accountPermissionIds: [],
  accountProfile: '',
  active: false,
  activeAdsLimitTier: '',
  activeViewOptOut: false,
  availablePermissionIds: [],
  countryId: '',
  currencyId: '',
  defaultCreativeSizeId: '',
  description: '',
  id: '',
  kind: '',
  locale: '',
  maximumImageSize: '',
  name: '',
  nielsenOcrEnabled: false,
  reportsConfiguration: {
    exposureToConversionEnabled: false,
    lookbackConfiguration: {
      clickDuration: 0,
      postImpressionActivitiesDuration: 0
    },
    reportGenerationTimeZoneId: ''
  },
  shareReportsWithTwitter: false,
  teaserSizeLimit: ''
});

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

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

xhr.open('PUT', '{{baseUrl}}/userprofiles/:profileId/accounts');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/userprofiles/:profileId/accounts',
  headers: {'content-type': 'application/json'},
  data: {
    accountPermissionIds: [],
    accountProfile: '',
    active: false,
    activeAdsLimitTier: '',
    activeViewOptOut: false,
    availablePermissionIds: [],
    countryId: '',
    currencyId: '',
    defaultCreativeSizeId: '',
    description: '',
    id: '',
    kind: '',
    locale: '',
    maximumImageSize: '',
    name: '',
    nielsenOcrEnabled: false,
    reportsConfiguration: {
      exposureToConversionEnabled: false,
      lookbackConfiguration: {clickDuration: 0, postImpressionActivitiesDuration: 0},
      reportGenerationTimeZoneId: ''
    },
    shareReportsWithTwitter: false,
    teaserSizeLimit: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/accounts';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"accountPermissionIds":[],"accountProfile":"","active":false,"activeAdsLimitTier":"","activeViewOptOut":false,"availablePermissionIds":[],"countryId":"","currencyId":"","defaultCreativeSizeId":"","description":"","id":"","kind":"","locale":"","maximumImageSize":"","name":"","nielsenOcrEnabled":false,"reportsConfiguration":{"exposureToConversionEnabled":false,"lookbackConfiguration":{"clickDuration":0,"postImpressionActivitiesDuration":0},"reportGenerationTimeZoneId":""},"shareReportsWithTwitter":false,"teaserSizeLimit":""}'
};

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}}/userprofiles/:profileId/accounts',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "accountPermissionIds": [],\n  "accountProfile": "",\n  "active": false,\n  "activeAdsLimitTier": "",\n  "activeViewOptOut": false,\n  "availablePermissionIds": [],\n  "countryId": "",\n  "currencyId": "",\n  "defaultCreativeSizeId": "",\n  "description": "",\n  "id": "",\n  "kind": "",\n  "locale": "",\n  "maximumImageSize": "",\n  "name": "",\n  "nielsenOcrEnabled": false,\n  "reportsConfiguration": {\n    "exposureToConversionEnabled": false,\n    "lookbackConfiguration": {\n      "clickDuration": 0,\n      "postImpressionActivitiesDuration": 0\n    },\n    "reportGenerationTimeZoneId": ""\n  },\n  "shareReportsWithTwitter": false,\n  "teaserSizeLimit": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"accountPermissionIds\": [],\n  \"accountProfile\": \"\",\n  \"active\": false,\n  \"activeAdsLimitTier\": \"\",\n  \"activeViewOptOut\": false,\n  \"availablePermissionIds\": [],\n  \"countryId\": \"\",\n  \"currencyId\": \"\",\n  \"defaultCreativeSizeId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"locale\": \"\",\n  \"maximumImageSize\": \"\",\n  \"name\": \"\",\n  \"nielsenOcrEnabled\": false,\n  \"reportsConfiguration\": {\n    \"exposureToConversionEnabled\": false,\n    \"lookbackConfiguration\": {\n      \"clickDuration\": 0,\n      \"postImpressionActivitiesDuration\": 0\n    },\n    \"reportGenerationTimeZoneId\": \"\"\n  },\n  \"shareReportsWithTwitter\": false,\n  \"teaserSizeLimit\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/accounts")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

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

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/accounts',
  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({
  accountPermissionIds: [],
  accountProfile: '',
  active: false,
  activeAdsLimitTier: '',
  activeViewOptOut: false,
  availablePermissionIds: [],
  countryId: '',
  currencyId: '',
  defaultCreativeSizeId: '',
  description: '',
  id: '',
  kind: '',
  locale: '',
  maximumImageSize: '',
  name: '',
  nielsenOcrEnabled: false,
  reportsConfiguration: {
    exposureToConversionEnabled: false,
    lookbackConfiguration: {clickDuration: 0, postImpressionActivitiesDuration: 0},
    reportGenerationTimeZoneId: ''
  },
  shareReportsWithTwitter: false,
  teaserSizeLimit: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/userprofiles/:profileId/accounts',
  headers: {'content-type': 'application/json'},
  body: {
    accountPermissionIds: [],
    accountProfile: '',
    active: false,
    activeAdsLimitTier: '',
    activeViewOptOut: false,
    availablePermissionIds: [],
    countryId: '',
    currencyId: '',
    defaultCreativeSizeId: '',
    description: '',
    id: '',
    kind: '',
    locale: '',
    maximumImageSize: '',
    name: '',
    nielsenOcrEnabled: false,
    reportsConfiguration: {
      exposureToConversionEnabled: false,
      lookbackConfiguration: {clickDuration: 0, postImpressionActivitiesDuration: 0},
      reportGenerationTimeZoneId: ''
    },
    shareReportsWithTwitter: false,
    teaserSizeLimit: ''
  },
  json: true
};

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

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

const req = unirest('PUT', '{{baseUrl}}/userprofiles/:profileId/accounts');

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

req.type('json');
req.send({
  accountPermissionIds: [],
  accountProfile: '',
  active: false,
  activeAdsLimitTier: '',
  activeViewOptOut: false,
  availablePermissionIds: [],
  countryId: '',
  currencyId: '',
  defaultCreativeSizeId: '',
  description: '',
  id: '',
  kind: '',
  locale: '',
  maximumImageSize: '',
  name: '',
  nielsenOcrEnabled: false,
  reportsConfiguration: {
    exposureToConversionEnabled: false,
    lookbackConfiguration: {
      clickDuration: 0,
      postImpressionActivitiesDuration: 0
    },
    reportGenerationTimeZoneId: ''
  },
  shareReportsWithTwitter: false,
  teaserSizeLimit: ''
});

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

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

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/userprofiles/:profileId/accounts',
  headers: {'content-type': 'application/json'},
  data: {
    accountPermissionIds: [],
    accountProfile: '',
    active: false,
    activeAdsLimitTier: '',
    activeViewOptOut: false,
    availablePermissionIds: [],
    countryId: '',
    currencyId: '',
    defaultCreativeSizeId: '',
    description: '',
    id: '',
    kind: '',
    locale: '',
    maximumImageSize: '',
    name: '',
    nielsenOcrEnabled: false,
    reportsConfiguration: {
      exposureToConversionEnabled: false,
      lookbackConfiguration: {clickDuration: 0, postImpressionActivitiesDuration: 0},
      reportGenerationTimeZoneId: ''
    },
    shareReportsWithTwitter: false,
    teaserSizeLimit: ''
  }
};

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

const url = '{{baseUrl}}/userprofiles/:profileId/accounts';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"accountPermissionIds":[],"accountProfile":"","active":false,"activeAdsLimitTier":"","activeViewOptOut":false,"availablePermissionIds":[],"countryId":"","currencyId":"","defaultCreativeSizeId":"","description":"","id":"","kind":"","locale":"","maximumImageSize":"","name":"","nielsenOcrEnabled":false,"reportsConfiguration":{"exposureToConversionEnabled":false,"lookbackConfiguration":{"clickDuration":0,"postImpressionActivitiesDuration":0},"reportGenerationTimeZoneId":""},"shareReportsWithTwitter":false,"teaserSizeLimit":""}'
};

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 = @{ @"accountPermissionIds": @[  ],
                              @"accountProfile": @"",
                              @"active": @NO,
                              @"activeAdsLimitTier": @"",
                              @"activeViewOptOut": @NO,
                              @"availablePermissionIds": @[  ],
                              @"countryId": @"",
                              @"currencyId": @"",
                              @"defaultCreativeSizeId": @"",
                              @"description": @"",
                              @"id": @"",
                              @"kind": @"",
                              @"locale": @"",
                              @"maximumImageSize": @"",
                              @"name": @"",
                              @"nielsenOcrEnabled": @NO,
                              @"reportsConfiguration": @{ @"exposureToConversionEnabled": @NO, @"lookbackConfiguration": @{ @"clickDuration": @0, @"postImpressionActivitiesDuration": @0 }, @"reportGenerationTimeZoneId": @"" },
                              @"shareReportsWithTwitter": @NO,
                              @"teaserSizeLimit": @"" };

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

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

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

let uri = Uri.of_string "{{baseUrl}}/userprofiles/:profileId/accounts" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"accountPermissionIds\": [],\n  \"accountProfile\": \"\",\n  \"active\": false,\n  \"activeAdsLimitTier\": \"\",\n  \"activeViewOptOut\": false,\n  \"availablePermissionIds\": [],\n  \"countryId\": \"\",\n  \"currencyId\": \"\",\n  \"defaultCreativeSizeId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"locale\": \"\",\n  \"maximumImageSize\": \"\",\n  \"name\": \"\",\n  \"nielsenOcrEnabled\": false,\n  \"reportsConfiguration\": {\n    \"exposureToConversionEnabled\": false,\n    \"lookbackConfiguration\": {\n      \"clickDuration\": 0,\n      \"postImpressionActivitiesDuration\": 0\n    },\n    \"reportGenerationTimeZoneId\": \"\"\n  },\n  \"shareReportsWithTwitter\": false,\n  \"teaserSizeLimit\": \"\"\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/accounts",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'accountPermissionIds' => [
        
    ],
    'accountProfile' => '',
    'active' => null,
    'activeAdsLimitTier' => '',
    'activeViewOptOut' => null,
    'availablePermissionIds' => [
        
    ],
    'countryId' => '',
    'currencyId' => '',
    'defaultCreativeSizeId' => '',
    'description' => '',
    'id' => '',
    'kind' => '',
    'locale' => '',
    'maximumImageSize' => '',
    'name' => '',
    'nielsenOcrEnabled' => null,
    'reportsConfiguration' => [
        'exposureToConversionEnabled' => null,
        'lookbackConfiguration' => [
                'clickDuration' => 0,
                'postImpressionActivitiesDuration' => 0
        ],
        'reportGenerationTimeZoneId' => ''
    ],
    'shareReportsWithTwitter' => null,
    'teaserSizeLimit' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/userprofiles/:profileId/accounts', [
  'body' => '{
  "accountPermissionIds": [],
  "accountProfile": "",
  "active": false,
  "activeAdsLimitTier": "",
  "activeViewOptOut": false,
  "availablePermissionIds": [],
  "countryId": "",
  "currencyId": "",
  "defaultCreativeSizeId": "",
  "description": "",
  "id": "",
  "kind": "",
  "locale": "",
  "maximumImageSize": "",
  "name": "",
  "nielsenOcrEnabled": false,
  "reportsConfiguration": {
    "exposureToConversionEnabled": false,
    "lookbackConfiguration": {
      "clickDuration": 0,
      "postImpressionActivitiesDuration": 0
    },
    "reportGenerationTimeZoneId": ""
  },
  "shareReportsWithTwitter": false,
  "teaserSizeLimit": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/accounts');
$request->setMethod(HTTP_METH_PUT);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'accountPermissionIds' => [
    
  ],
  'accountProfile' => '',
  'active' => null,
  'activeAdsLimitTier' => '',
  'activeViewOptOut' => null,
  'availablePermissionIds' => [
    
  ],
  'countryId' => '',
  'currencyId' => '',
  'defaultCreativeSizeId' => '',
  'description' => '',
  'id' => '',
  'kind' => '',
  'locale' => '',
  'maximumImageSize' => '',
  'name' => '',
  'nielsenOcrEnabled' => null,
  'reportsConfiguration' => [
    'exposureToConversionEnabled' => null,
    'lookbackConfiguration' => [
        'clickDuration' => 0,
        'postImpressionActivitiesDuration' => 0
    ],
    'reportGenerationTimeZoneId' => ''
  ],
  'shareReportsWithTwitter' => null,
  'teaserSizeLimit' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'accountPermissionIds' => [
    
  ],
  'accountProfile' => '',
  'active' => null,
  'activeAdsLimitTier' => '',
  'activeViewOptOut' => null,
  'availablePermissionIds' => [
    
  ],
  'countryId' => '',
  'currencyId' => '',
  'defaultCreativeSizeId' => '',
  'description' => '',
  'id' => '',
  'kind' => '',
  'locale' => '',
  'maximumImageSize' => '',
  'name' => '',
  'nielsenOcrEnabled' => null,
  'reportsConfiguration' => [
    'exposureToConversionEnabled' => null,
    'lookbackConfiguration' => [
        'clickDuration' => 0,
        'postImpressionActivitiesDuration' => 0
    ],
    'reportGenerationTimeZoneId' => ''
  ],
  'shareReportsWithTwitter' => null,
  'teaserSizeLimit' => ''
]));
$request->setRequestUrl('{{baseUrl}}/userprofiles/:profileId/accounts');
$request->setRequestMethod('PUT');
$request->setBody($body);

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

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/accounts' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "accountPermissionIds": [],
  "accountProfile": "",
  "active": false,
  "activeAdsLimitTier": "",
  "activeViewOptOut": false,
  "availablePermissionIds": [],
  "countryId": "",
  "currencyId": "",
  "defaultCreativeSizeId": "",
  "description": "",
  "id": "",
  "kind": "",
  "locale": "",
  "maximumImageSize": "",
  "name": "",
  "nielsenOcrEnabled": false,
  "reportsConfiguration": {
    "exposureToConversionEnabled": false,
    "lookbackConfiguration": {
      "clickDuration": 0,
      "postImpressionActivitiesDuration": 0
    },
    "reportGenerationTimeZoneId": ""
  },
  "shareReportsWithTwitter": false,
  "teaserSizeLimit": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/accounts' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "accountPermissionIds": [],
  "accountProfile": "",
  "active": false,
  "activeAdsLimitTier": "",
  "activeViewOptOut": false,
  "availablePermissionIds": [],
  "countryId": "",
  "currencyId": "",
  "defaultCreativeSizeId": "",
  "description": "",
  "id": "",
  "kind": "",
  "locale": "",
  "maximumImageSize": "",
  "name": "",
  "nielsenOcrEnabled": false,
  "reportsConfiguration": {
    "exposureToConversionEnabled": false,
    "lookbackConfiguration": {
      "clickDuration": 0,
      "postImpressionActivitiesDuration": 0
    },
    "reportGenerationTimeZoneId": ""
  },
  "shareReportsWithTwitter": false,
  "teaserSizeLimit": ""
}'
import http.client

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

payload = "{\n  \"accountPermissionIds\": [],\n  \"accountProfile\": \"\",\n  \"active\": false,\n  \"activeAdsLimitTier\": \"\",\n  \"activeViewOptOut\": false,\n  \"availablePermissionIds\": [],\n  \"countryId\": \"\",\n  \"currencyId\": \"\",\n  \"defaultCreativeSizeId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"locale\": \"\",\n  \"maximumImageSize\": \"\",\n  \"name\": \"\",\n  \"nielsenOcrEnabled\": false,\n  \"reportsConfiguration\": {\n    \"exposureToConversionEnabled\": false,\n    \"lookbackConfiguration\": {\n      \"clickDuration\": 0,\n      \"postImpressionActivitiesDuration\": 0\n    },\n    \"reportGenerationTimeZoneId\": \"\"\n  },\n  \"shareReportsWithTwitter\": false,\n  \"teaserSizeLimit\": \"\"\n}"

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

conn.request("PUT", "/baseUrl/userprofiles/:profileId/accounts", payload, headers)

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

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

url = "{{baseUrl}}/userprofiles/:profileId/accounts"

payload = {
    "accountPermissionIds": [],
    "accountProfile": "",
    "active": False,
    "activeAdsLimitTier": "",
    "activeViewOptOut": False,
    "availablePermissionIds": [],
    "countryId": "",
    "currencyId": "",
    "defaultCreativeSizeId": "",
    "description": "",
    "id": "",
    "kind": "",
    "locale": "",
    "maximumImageSize": "",
    "name": "",
    "nielsenOcrEnabled": False,
    "reportsConfiguration": {
        "exposureToConversionEnabled": False,
        "lookbackConfiguration": {
            "clickDuration": 0,
            "postImpressionActivitiesDuration": 0
        },
        "reportGenerationTimeZoneId": ""
    },
    "shareReportsWithTwitter": False,
    "teaserSizeLimit": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/userprofiles/:profileId/accounts"

payload <- "{\n  \"accountPermissionIds\": [],\n  \"accountProfile\": \"\",\n  \"active\": false,\n  \"activeAdsLimitTier\": \"\",\n  \"activeViewOptOut\": false,\n  \"availablePermissionIds\": [],\n  \"countryId\": \"\",\n  \"currencyId\": \"\",\n  \"defaultCreativeSizeId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"locale\": \"\",\n  \"maximumImageSize\": \"\",\n  \"name\": \"\",\n  \"nielsenOcrEnabled\": false,\n  \"reportsConfiguration\": {\n    \"exposureToConversionEnabled\": false,\n    \"lookbackConfiguration\": {\n      \"clickDuration\": 0,\n      \"postImpressionActivitiesDuration\": 0\n    },\n    \"reportGenerationTimeZoneId\": \"\"\n  },\n  \"shareReportsWithTwitter\": false,\n  \"teaserSizeLimit\": \"\"\n}"

encode <- "json"

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

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

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

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

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"accountPermissionIds\": [],\n  \"accountProfile\": \"\",\n  \"active\": false,\n  \"activeAdsLimitTier\": \"\",\n  \"activeViewOptOut\": false,\n  \"availablePermissionIds\": [],\n  \"countryId\": \"\",\n  \"currencyId\": \"\",\n  \"defaultCreativeSizeId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"locale\": \"\",\n  \"maximumImageSize\": \"\",\n  \"name\": \"\",\n  \"nielsenOcrEnabled\": false,\n  \"reportsConfiguration\": {\n    \"exposureToConversionEnabled\": false,\n    \"lookbackConfiguration\": {\n      \"clickDuration\": 0,\n      \"postImpressionActivitiesDuration\": 0\n    },\n    \"reportGenerationTimeZoneId\": \"\"\n  },\n  \"shareReportsWithTwitter\": false,\n  \"teaserSizeLimit\": \"\"\n}"

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

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

response = conn.put('/baseUrl/userprofiles/:profileId/accounts') do |req|
  req.body = "{\n  \"accountPermissionIds\": [],\n  \"accountProfile\": \"\",\n  \"active\": false,\n  \"activeAdsLimitTier\": \"\",\n  \"activeViewOptOut\": false,\n  \"availablePermissionIds\": [],\n  \"countryId\": \"\",\n  \"currencyId\": \"\",\n  \"defaultCreativeSizeId\": \"\",\n  \"description\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"locale\": \"\",\n  \"maximumImageSize\": \"\",\n  \"name\": \"\",\n  \"nielsenOcrEnabled\": false,\n  \"reportsConfiguration\": {\n    \"exposureToConversionEnabled\": false,\n    \"lookbackConfiguration\": {\n      \"clickDuration\": 0,\n      \"postImpressionActivitiesDuration\": 0\n    },\n    \"reportGenerationTimeZoneId\": \"\"\n  },\n  \"shareReportsWithTwitter\": false,\n  \"teaserSizeLimit\": \"\"\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}}/userprofiles/:profileId/accounts";

    let payload = json!({
        "accountPermissionIds": (),
        "accountProfile": "",
        "active": false,
        "activeAdsLimitTier": "",
        "activeViewOptOut": false,
        "availablePermissionIds": (),
        "countryId": "",
        "currencyId": "",
        "defaultCreativeSizeId": "",
        "description": "",
        "id": "",
        "kind": "",
        "locale": "",
        "maximumImageSize": "",
        "name": "",
        "nielsenOcrEnabled": false,
        "reportsConfiguration": json!({
            "exposureToConversionEnabled": false,
            "lookbackConfiguration": json!({
                "clickDuration": 0,
                "postImpressionActivitiesDuration": 0
            }),
            "reportGenerationTimeZoneId": ""
        }),
        "shareReportsWithTwitter": false,
        "teaserSizeLimit": ""
    });

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

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

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

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/userprofiles/:profileId/accounts \
  --header 'content-type: application/json' \
  --data '{
  "accountPermissionIds": [],
  "accountProfile": "",
  "active": false,
  "activeAdsLimitTier": "",
  "activeViewOptOut": false,
  "availablePermissionIds": [],
  "countryId": "",
  "currencyId": "",
  "defaultCreativeSizeId": "",
  "description": "",
  "id": "",
  "kind": "",
  "locale": "",
  "maximumImageSize": "",
  "name": "",
  "nielsenOcrEnabled": false,
  "reportsConfiguration": {
    "exposureToConversionEnabled": false,
    "lookbackConfiguration": {
      "clickDuration": 0,
      "postImpressionActivitiesDuration": 0
    },
    "reportGenerationTimeZoneId": ""
  },
  "shareReportsWithTwitter": false,
  "teaserSizeLimit": ""
}'
echo '{
  "accountPermissionIds": [],
  "accountProfile": "",
  "active": false,
  "activeAdsLimitTier": "",
  "activeViewOptOut": false,
  "availablePermissionIds": [],
  "countryId": "",
  "currencyId": "",
  "defaultCreativeSizeId": "",
  "description": "",
  "id": "",
  "kind": "",
  "locale": "",
  "maximumImageSize": "",
  "name": "",
  "nielsenOcrEnabled": false,
  "reportsConfiguration": {
    "exposureToConversionEnabled": false,
    "lookbackConfiguration": {
      "clickDuration": 0,
      "postImpressionActivitiesDuration": 0
    },
    "reportGenerationTimeZoneId": ""
  },
  "shareReportsWithTwitter": false,
  "teaserSizeLimit": ""
}' |  \
  http PUT {{baseUrl}}/userprofiles/:profileId/accounts \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "accountPermissionIds": [],\n  "accountProfile": "",\n  "active": false,\n  "activeAdsLimitTier": "",\n  "activeViewOptOut": false,\n  "availablePermissionIds": [],\n  "countryId": "",\n  "currencyId": "",\n  "defaultCreativeSizeId": "",\n  "description": "",\n  "id": "",\n  "kind": "",\n  "locale": "",\n  "maximumImageSize": "",\n  "name": "",\n  "nielsenOcrEnabled": false,\n  "reportsConfiguration": {\n    "exposureToConversionEnabled": false,\n    "lookbackConfiguration": {\n      "clickDuration": 0,\n      "postImpressionActivitiesDuration": 0\n    },\n    "reportGenerationTimeZoneId": ""\n  },\n  "shareReportsWithTwitter": false,\n  "teaserSizeLimit": ""\n}' \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/accounts
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "accountPermissionIds": [],
  "accountProfile": "",
  "active": false,
  "activeAdsLimitTier": "",
  "activeViewOptOut": false,
  "availablePermissionIds": [],
  "countryId": "",
  "currencyId": "",
  "defaultCreativeSizeId": "",
  "description": "",
  "id": "",
  "kind": "",
  "locale": "",
  "maximumImageSize": "",
  "name": "",
  "nielsenOcrEnabled": false,
  "reportsConfiguration": [
    "exposureToConversionEnabled": false,
    "lookbackConfiguration": [
      "clickDuration": 0,
      "postImpressionActivitiesDuration": 0
    ],
    "reportGenerationTimeZoneId": ""
  ],
  "shareReportsWithTwitter": false,
  "teaserSizeLimit": ""
] as [String : Any]

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

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

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

dataTask.resume()
GET dfareporting.accountUserProfiles.get
{{baseUrl}}/userprofiles/:profileId/accountUserProfiles/:id
QUERY PARAMS

profileId
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/accountUserProfiles/:id");

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

(client/get "{{baseUrl}}/userprofiles/:profileId/accountUserProfiles/:id")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/accountUserProfiles/:id"

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

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

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/accountUserProfiles/:id"

	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/userprofiles/:profileId/accountUserProfiles/:id HTTP/1.1
Host: example.com

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/accountUserProfiles/:id"))
    .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}}/userprofiles/:profileId/accountUserProfiles/:id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/accountUserProfiles/:id")
  .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}}/userprofiles/:profileId/accountUserProfiles/:id');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/accountUserProfiles/:id'
};

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/accountUserProfiles/:id")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/accountUserProfiles/:id',
  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}}/userprofiles/:profileId/accountUserProfiles/:id'
};

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

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

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/accountUserProfiles/:id');

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}}/userprofiles/:profileId/accountUserProfiles/:id'
};

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

const url = '{{baseUrl}}/userprofiles/:profileId/accountUserProfiles/:id';
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}}/userprofiles/:profileId/accountUserProfiles/:id"]
                                                       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}}/userprofiles/:profileId/accountUserProfiles/:id" in

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

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/accountUserProfiles/:id');
$request->setMethod(HTTP_METH_GET);

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

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

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

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

conn.request("GET", "/baseUrl/userprofiles/:profileId/accountUserProfiles/:id")

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

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

url = "{{baseUrl}}/userprofiles/:profileId/accountUserProfiles/:id"

response = requests.get(url)

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

url <- "{{baseUrl}}/userprofiles/:profileId/accountUserProfiles/:id"

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

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

url = URI("{{baseUrl}}/userprofiles/:profileId/accountUserProfiles/:id")

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/userprofiles/:profileId/accountUserProfiles/:id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/accountUserProfiles/:id";

    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}}/userprofiles/:profileId/accountUserProfiles/:id
http GET {{baseUrl}}/userprofiles/:profileId/accountUserProfiles/:id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/accountUserProfiles/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/accountUserProfiles/:id")! 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 dfareporting.accountUserProfiles.insert
{{baseUrl}}/userprofiles/:profileId/accountUserProfiles
QUERY PARAMS

profileId
BODY json

{
  "accountId": "",
  "active": false,
  "advertiserFilter": {
    "kind": "",
    "objectIds": [],
    "status": ""
  },
  "campaignFilter": {},
  "comments": "",
  "email": "",
  "id": "",
  "kind": "",
  "locale": "",
  "name": "",
  "siteFilter": {},
  "subaccountId": "",
  "traffickerType": "",
  "userAccessType": "",
  "userRoleFilter": {},
  "userRoleId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/accountUserProfiles");

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  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserFilter\": {\n    \"kind\": \"\",\n    \"objectIds\": [],\n    \"status\": \"\"\n  },\n  \"campaignFilter\": {},\n  \"comments\": \"\",\n  \"email\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"locale\": \"\",\n  \"name\": \"\",\n  \"siteFilter\": {},\n  \"subaccountId\": \"\",\n  \"traffickerType\": \"\",\n  \"userAccessType\": \"\",\n  \"userRoleFilter\": {},\n  \"userRoleId\": \"\"\n}");

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

(client/post "{{baseUrl}}/userprofiles/:profileId/accountUserProfiles" {:content-type :json
                                                                                        :form-params {:accountId ""
                                                                                                      :active false
                                                                                                      :advertiserFilter {:kind ""
                                                                                                                         :objectIds []
                                                                                                                         :status ""}
                                                                                                      :campaignFilter {}
                                                                                                      :comments ""
                                                                                                      :email ""
                                                                                                      :id ""
                                                                                                      :kind ""
                                                                                                      :locale ""
                                                                                                      :name ""
                                                                                                      :siteFilter {}
                                                                                                      :subaccountId ""
                                                                                                      :traffickerType ""
                                                                                                      :userAccessType ""
                                                                                                      :userRoleFilter {}
                                                                                                      :userRoleId ""}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/accountUserProfiles"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserFilter\": {\n    \"kind\": \"\",\n    \"objectIds\": [],\n    \"status\": \"\"\n  },\n  \"campaignFilter\": {},\n  \"comments\": \"\",\n  \"email\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"locale\": \"\",\n  \"name\": \"\",\n  \"siteFilter\": {},\n  \"subaccountId\": \"\",\n  \"traffickerType\": \"\",\n  \"userAccessType\": \"\",\n  \"userRoleFilter\": {},\n  \"userRoleId\": \"\"\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}}/userprofiles/:profileId/accountUserProfiles"),
    Content = new StringContent("{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserFilter\": {\n    \"kind\": \"\",\n    \"objectIds\": [],\n    \"status\": \"\"\n  },\n  \"campaignFilter\": {},\n  \"comments\": \"\",\n  \"email\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"locale\": \"\",\n  \"name\": \"\",\n  \"siteFilter\": {},\n  \"subaccountId\": \"\",\n  \"traffickerType\": \"\",\n  \"userAccessType\": \"\",\n  \"userRoleFilter\": {},\n  \"userRoleId\": \"\"\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}}/userprofiles/:profileId/accountUserProfiles");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserFilter\": {\n    \"kind\": \"\",\n    \"objectIds\": [],\n    \"status\": \"\"\n  },\n  \"campaignFilter\": {},\n  \"comments\": \"\",\n  \"email\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"locale\": \"\",\n  \"name\": \"\",\n  \"siteFilter\": {},\n  \"subaccountId\": \"\",\n  \"traffickerType\": \"\",\n  \"userAccessType\": \"\",\n  \"userRoleFilter\": {},\n  \"userRoleId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/accountUserProfiles"

	payload := strings.NewReader("{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserFilter\": {\n    \"kind\": \"\",\n    \"objectIds\": [],\n    \"status\": \"\"\n  },\n  \"campaignFilter\": {},\n  \"comments\": \"\",\n  \"email\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"locale\": \"\",\n  \"name\": \"\",\n  \"siteFilter\": {},\n  \"subaccountId\": \"\",\n  \"traffickerType\": \"\",\n  \"userAccessType\": \"\",\n  \"userRoleFilter\": {},\n  \"userRoleId\": \"\"\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/userprofiles/:profileId/accountUserProfiles HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 370

{
  "accountId": "",
  "active": false,
  "advertiserFilter": {
    "kind": "",
    "objectIds": [],
    "status": ""
  },
  "campaignFilter": {},
  "comments": "",
  "email": "",
  "id": "",
  "kind": "",
  "locale": "",
  "name": "",
  "siteFilter": {},
  "subaccountId": "",
  "traffickerType": "",
  "userAccessType": "",
  "userRoleFilter": {},
  "userRoleId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/userprofiles/:profileId/accountUserProfiles")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserFilter\": {\n    \"kind\": \"\",\n    \"objectIds\": [],\n    \"status\": \"\"\n  },\n  \"campaignFilter\": {},\n  \"comments\": \"\",\n  \"email\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"locale\": \"\",\n  \"name\": \"\",\n  \"siteFilter\": {},\n  \"subaccountId\": \"\",\n  \"traffickerType\": \"\",\n  \"userAccessType\": \"\",\n  \"userRoleFilter\": {},\n  \"userRoleId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/accountUserProfiles"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserFilter\": {\n    \"kind\": \"\",\n    \"objectIds\": [],\n    \"status\": \"\"\n  },\n  \"campaignFilter\": {},\n  \"comments\": \"\",\n  \"email\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"locale\": \"\",\n  \"name\": \"\",\n  \"siteFilter\": {},\n  \"subaccountId\": \"\",\n  \"traffickerType\": \"\",\n  \"userAccessType\": \"\",\n  \"userRoleFilter\": {},\n  \"userRoleId\": \"\"\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  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserFilter\": {\n    \"kind\": \"\",\n    \"objectIds\": [],\n    \"status\": \"\"\n  },\n  \"campaignFilter\": {},\n  \"comments\": \"\",\n  \"email\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"locale\": \"\",\n  \"name\": \"\",\n  \"siteFilter\": {},\n  \"subaccountId\": \"\",\n  \"traffickerType\": \"\",\n  \"userAccessType\": \"\",\n  \"userRoleFilter\": {},\n  \"userRoleId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/accountUserProfiles")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/userprofiles/:profileId/accountUserProfiles")
  .header("content-type", "application/json")
  .body("{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserFilter\": {\n    \"kind\": \"\",\n    \"objectIds\": [],\n    \"status\": \"\"\n  },\n  \"campaignFilter\": {},\n  \"comments\": \"\",\n  \"email\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"locale\": \"\",\n  \"name\": \"\",\n  \"siteFilter\": {},\n  \"subaccountId\": \"\",\n  \"traffickerType\": \"\",\n  \"userAccessType\": \"\",\n  \"userRoleFilter\": {},\n  \"userRoleId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  accountId: '',
  active: false,
  advertiserFilter: {
    kind: '',
    objectIds: [],
    status: ''
  },
  campaignFilter: {},
  comments: '',
  email: '',
  id: '',
  kind: '',
  locale: '',
  name: '',
  siteFilter: {},
  subaccountId: '',
  traffickerType: '',
  userAccessType: '',
  userRoleFilter: {},
  userRoleId: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/userprofiles/:profileId/accountUserProfiles');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/userprofiles/:profileId/accountUserProfiles',
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    active: false,
    advertiserFilter: {kind: '', objectIds: [], status: ''},
    campaignFilter: {},
    comments: '',
    email: '',
    id: '',
    kind: '',
    locale: '',
    name: '',
    siteFilter: {},
    subaccountId: '',
    traffickerType: '',
    userAccessType: '',
    userRoleFilter: {},
    userRoleId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/accountUserProfiles';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","active":false,"advertiserFilter":{"kind":"","objectIds":[],"status":""},"campaignFilter":{},"comments":"","email":"","id":"","kind":"","locale":"","name":"","siteFilter":{},"subaccountId":"","traffickerType":"","userAccessType":"","userRoleFilter":{},"userRoleId":""}'
};

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}}/userprofiles/:profileId/accountUserProfiles',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "accountId": "",\n  "active": false,\n  "advertiserFilter": {\n    "kind": "",\n    "objectIds": [],\n    "status": ""\n  },\n  "campaignFilter": {},\n  "comments": "",\n  "email": "",\n  "id": "",\n  "kind": "",\n  "locale": "",\n  "name": "",\n  "siteFilter": {},\n  "subaccountId": "",\n  "traffickerType": "",\n  "userAccessType": "",\n  "userRoleFilter": {},\n  "userRoleId": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserFilter\": {\n    \"kind\": \"\",\n    \"objectIds\": [],\n    \"status\": \"\"\n  },\n  \"campaignFilter\": {},\n  \"comments\": \"\",\n  \"email\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"locale\": \"\",\n  \"name\": \"\",\n  \"siteFilter\": {},\n  \"subaccountId\": \"\",\n  \"traffickerType\": \"\",\n  \"userAccessType\": \"\",\n  \"userRoleFilter\": {},\n  \"userRoleId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/accountUserProfiles")
  .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/userprofiles/:profileId/accountUserProfiles',
  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({
  accountId: '',
  active: false,
  advertiserFilter: {kind: '', objectIds: [], status: ''},
  campaignFilter: {},
  comments: '',
  email: '',
  id: '',
  kind: '',
  locale: '',
  name: '',
  siteFilter: {},
  subaccountId: '',
  traffickerType: '',
  userAccessType: '',
  userRoleFilter: {},
  userRoleId: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/userprofiles/:profileId/accountUserProfiles',
  headers: {'content-type': 'application/json'},
  body: {
    accountId: '',
    active: false,
    advertiserFilter: {kind: '', objectIds: [], status: ''},
    campaignFilter: {},
    comments: '',
    email: '',
    id: '',
    kind: '',
    locale: '',
    name: '',
    siteFilter: {},
    subaccountId: '',
    traffickerType: '',
    userAccessType: '',
    userRoleFilter: {},
    userRoleId: ''
  },
  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}}/userprofiles/:profileId/accountUserProfiles');

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

req.type('json');
req.send({
  accountId: '',
  active: false,
  advertiserFilter: {
    kind: '',
    objectIds: [],
    status: ''
  },
  campaignFilter: {},
  comments: '',
  email: '',
  id: '',
  kind: '',
  locale: '',
  name: '',
  siteFilter: {},
  subaccountId: '',
  traffickerType: '',
  userAccessType: '',
  userRoleFilter: {},
  userRoleId: ''
});

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}}/userprofiles/:profileId/accountUserProfiles',
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    active: false,
    advertiserFilter: {kind: '', objectIds: [], status: ''},
    campaignFilter: {},
    comments: '',
    email: '',
    id: '',
    kind: '',
    locale: '',
    name: '',
    siteFilter: {},
    subaccountId: '',
    traffickerType: '',
    userAccessType: '',
    userRoleFilter: {},
    userRoleId: ''
  }
};

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

const url = '{{baseUrl}}/userprofiles/:profileId/accountUserProfiles';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","active":false,"advertiserFilter":{"kind":"","objectIds":[],"status":""},"campaignFilter":{},"comments":"","email":"","id":"","kind":"","locale":"","name":"","siteFilter":{},"subaccountId":"","traffickerType":"","userAccessType":"","userRoleFilter":{},"userRoleId":""}'
};

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 = @{ @"accountId": @"",
                              @"active": @NO,
                              @"advertiserFilter": @{ @"kind": @"", @"objectIds": @[  ], @"status": @"" },
                              @"campaignFilter": @{  },
                              @"comments": @"",
                              @"email": @"",
                              @"id": @"",
                              @"kind": @"",
                              @"locale": @"",
                              @"name": @"",
                              @"siteFilter": @{  },
                              @"subaccountId": @"",
                              @"traffickerType": @"",
                              @"userAccessType": @"",
                              @"userRoleFilter": @{  },
                              @"userRoleId": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/userprofiles/:profileId/accountUserProfiles"]
                                                       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}}/userprofiles/:profileId/accountUserProfiles" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserFilter\": {\n    \"kind\": \"\",\n    \"objectIds\": [],\n    \"status\": \"\"\n  },\n  \"campaignFilter\": {},\n  \"comments\": \"\",\n  \"email\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"locale\": \"\",\n  \"name\": \"\",\n  \"siteFilter\": {},\n  \"subaccountId\": \"\",\n  \"traffickerType\": \"\",\n  \"userAccessType\": \"\",\n  \"userRoleFilter\": {},\n  \"userRoleId\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/accountUserProfiles",
  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([
    'accountId' => '',
    'active' => null,
    'advertiserFilter' => [
        'kind' => '',
        'objectIds' => [
                
        ],
        'status' => ''
    ],
    'campaignFilter' => [
        
    ],
    'comments' => '',
    'email' => '',
    'id' => '',
    'kind' => '',
    'locale' => '',
    'name' => '',
    'siteFilter' => [
        
    ],
    'subaccountId' => '',
    'traffickerType' => '',
    'userAccessType' => '',
    'userRoleFilter' => [
        
    ],
    'userRoleId' => ''
  ]),
  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}}/userprofiles/:profileId/accountUserProfiles', [
  'body' => '{
  "accountId": "",
  "active": false,
  "advertiserFilter": {
    "kind": "",
    "objectIds": [],
    "status": ""
  },
  "campaignFilter": {},
  "comments": "",
  "email": "",
  "id": "",
  "kind": "",
  "locale": "",
  "name": "",
  "siteFilter": {},
  "subaccountId": "",
  "traffickerType": "",
  "userAccessType": "",
  "userRoleFilter": {},
  "userRoleId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/accountUserProfiles');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'accountId' => '',
  'active' => null,
  'advertiserFilter' => [
    'kind' => '',
    'objectIds' => [
        
    ],
    'status' => ''
  ],
  'campaignFilter' => [
    
  ],
  'comments' => '',
  'email' => '',
  'id' => '',
  'kind' => '',
  'locale' => '',
  'name' => '',
  'siteFilter' => [
    
  ],
  'subaccountId' => '',
  'traffickerType' => '',
  'userAccessType' => '',
  'userRoleFilter' => [
    
  ],
  'userRoleId' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'accountId' => '',
  'active' => null,
  'advertiserFilter' => [
    'kind' => '',
    'objectIds' => [
        
    ],
    'status' => ''
  ],
  'campaignFilter' => [
    
  ],
  'comments' => '',
  'email' => '',
  'id' => '',
  'kind' => '',
  'locale' => '',
  'name' => '',
  'siteFilter' => [
    
  ],
  'subaccountId' => '',
  'traffickerType' => '',
  'userAccessType' => '',
  'userRoleFilter' => [
    
  ],
  'userRoleId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/userprofiles/:profileId/accountUserProfiles');
$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}}/userprofiles/:profileId/accountUserProfiles' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "active": false,
  "advertiserFilter": {
    "kind": "",
    "objectIds": [],
    "status": ""
  },
  "campaignFilter": {},
  "comments": "",
  "email": "",
  "id": "",
  "kind": "",
  "locale": "",
  "name": "",
  "siteFilter": {},
  "subaccountId": "",
  "traffickerType": "",
  "userAccessType": "",
  "userRoleFilter": {},
  "userRoleId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/accountUserProfiles' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "active": false,
  "advertiserFilter": {
    "kind": "",
    "objectIds": [],
    "status": ""
  },
  "campaignFilter": {},
  "comments": "",
  "email": "",
  "id": "",
  "kind": "",
  "locale": "",
  "name": "",
  "siteFilter": {},
  "subaccountId": "",
  "traffickerType": "",
  "userAccessType": "",
  "userRoleFilter": {},
  "userRoleId": ""
}'
import http.client

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

payload = "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserFilter\": {\n    \"kind\": \"\",\n    \"objectIds\": [],\n    \"status\": \"\"\n  },\n  \"campaignFilter\": {},\n  \"comments\": \"\",\n  \"email\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"locale\": \"\",\n  \"name\": \"\",\n  \"siteFilter\": {},\n  \"subaccountId\": \"\",\n  \"traffickerType\": \"\",\n  \"userAccessType\": \"\",\n  \"userRoleFilter\": {},\n  \"userRoleId\": \"\"\n}"

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

conn.request("POST", "/baseUrl/userprofiles/:profileId/accountUserProfiles", payload, headers)

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

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

url = "{{baseUrl}}/userprofiles/:profileId/accountUserProfiles"

payload = {
    "accountId": "",
    "active": False,
    "advertiserFilter": {
        "kind": "",
        "objectIds": [],
        "status": ""
    },
    "campaignFilter": {},
    "comments": "",
    "email": "",
    "id": "",
    "kind": "",
    "locale": "",
    "name": "",
    "siteFilter": {},
    "subaccountId": "",
    "traffickerType": "",
    "userAccessType": "",
    "userRoleFilter": {},
    "userRoleId": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/userprofiles/:profileId/accountUserProfiles"

payload <- "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserFilter\": {\n    \"kind\": \"\",\n    \"objectIds\": [],\n    \"status\": \"\"\n  },\n  \"campaignFilter\": {},\n  \"comments\": \"\",\n  \"email\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"locale\": \"\",\n  \"name\": \"\",\n  \"siteFilter\": {},\n  \"subaccountId\": \"\",\n  \"traffickerType\": \"\",\n  \"userAccessType\": \"\",\n  \"userRoleFilter\": {},\n  \"userRoleId\": \"\"\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}}/userprofiles/:profileId/accountUserProfiles")

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  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserFilter\": {\n    \"kind\": \"\",\n    \"objectIds\": [],\n    \"status\": \"\"\n  },\n  \"campaignFilter\": {},\n  \"comments\": \"\",\n  \"email\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"locale\": \"\",\n  \"name\": \"\",\n  \"siteFilter\": {},\n  \"subaccountId\": \"\",\n  \"traffickerType\": \"\",\n  \"userAccessType\": \"\",\n  \"userRoleFilter\": {},\n  \"userRoleId\": \"\"\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/userprofiles/:profileId/accountUserProfiles') do |req|
  req.body = "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserFilter\": {\n    \"kind\": \"\",\n    \"objectIds\": [],\n    \"status\": \"\"\n  },\n  \"campaignFilter\": {},\n  \"comments\": \"\",\n  \"email\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"locale\": \"\",\n  \"name\": \"\",\n  \"siteFilter\": {},\n  \"subaccountId\": \"\",\n  \"traffickerType\": \"\",\n  \"userAccessType\": \"\",\n  \"userRoleFilter\": {},\n  \"userRoleId\": \"\"\n}"
end

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

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

    let payload = json!({
        "accountId": "",
        "active": false,
        "advertiserFilter": json!({
            "kind": "",
            "objectIds": (),
            "status": ""
        }),
        "campaignFilter": json!({}),
        "comments": "",
        "email": "",
        "id": "",
        "kind": "",
        "locale": "",
        "name": "",
        "siteFilter": json!({}),
        "subaccountId": "",
        "traffickerType": "",
        "userAccessType": "",
        "userRoleFilter": json!({}),
        "userRoleId": ""
    });

    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}}/userprofiles/:profileId/accountUserProfiles \
  --header 'content-type: application/json' \
  --data '{
  "accountId": "",
  "active": false,
  "advertiserFilter": {
    "kind": "",
    "objectIds": [],
    "status": ""
  },
  "campaignFilter": {},
  "comments": "",
  "email": "",
  "id": "",
  "kind": "",
  "locale": "",
  "name": "",
  "siteFilter": {},
  "subaccountId": "",
  "traffickerType": "",
  "userAccessType": "",
  "userRoleFilter": {},
  "userRoleId": ""
}'
echo '{
  "accountId": "",
  "active": false,
  "advertiserFilter": {
    "kind": "",
    "objectIds": [],
    "status": ""
  },
  "campaignFilter": {},
  "comments": "",
  "email": "",
  "id": "",
  "kind": "",
  "locale": "",
  "name": "",
  "siteFilter": {},
  "subaccountId": "",
  "traffickerType": "",
  "userAccessType": "",
  "userRoleFilter": {},
  "userRoleId": ""
}' |  \
  http POST {{baseUrl}}/userprofiles/:profileId/accountUserProfiles \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "accountId": "",\n  "active": false,\n  "advertiserFilter": {\n    "kind": "",\n    "objectIds": [],\n    "status": ""\n  },\n  "campaignFilter": {},\n  "comments": "",\n  "email": "",\n  "id": "",\n  "kind": "",\n  "locale": "",\n  "name": "",\n  "siteFilter": {},\n  "subaccountId": "",\n  "traffickerType": "",\n  "userAccessType": "",\n  "userRoleFilter": {},\n  "userRoleId": ""\n}' \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/accountUserProfiles
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "accountId": "",
  "active": false,
  "advertiserFilter": [
    "kind": "",
    "objectIds": [],
    "status": ""
  ],
  "campaignFilter": [],
  "comments": "",
  "email": "",
  "id": "",
  "kind": "",
  "locale": "",
  "name": "",
  "siteFilter": [],
  "subaccountId": "",
  "traffickerType": "",
  "userAccessType": "",
  "userRoleFilter": [],
  "userRoleId": ""
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/accountUserProfiles")! 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 dfareporting.accountUserProfiles.list
{{baseUrl}}/userprofiles/:profileId/accountUserProfiles
QUERY PARAMS

profileId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/accountUserProfiles");

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

(client/get "{{baseUrl}}/userprofiles/:profileId/accountUserProfiles")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/accountUserProfiles"

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

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

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/accountUserProfiles"

	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/userprofiles/:profileId/accountUserProfiles HTTP/1.1
Host: example.com

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

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

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/accountUserProfiles'
};

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/accountUserProfiles")
  .get()
  .build()

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

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

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

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

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/accountUserProfiles');

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}}/userprofiles/:profileId/accountUserProfiles'
};

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

const url = '{{baseUrl}}/userprofiles/:profileId/accountUserProfiles';
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}}/userprofiles/:profileId/accountUserProfiles"]
                                                       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}}/userprofiles/:profileId/accountUserProfiles" in

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

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/accountUserProfiles');
$request->setMethod(HTTP_METH_GET);

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

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

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

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

conn.request("GET", "/baseUrl/userprofiles/:profileId/accountUserProfiles")

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

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

url = "{{baseUrl}}/userprofiles/:profileId/accountUserProfiles"

response = requests.get(url)

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

url <- "{{baseUrl}}/userprofiles/:profileId/accountUserProfiles"

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

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

url = URI("{{baseUrl}}/userprofiles/:profileId/accountUserProfiles")

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/userprofiles/:profileId/accountUserProfiles') do |req|
end

puts response.status
puts response.body
use reqwest;

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

    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}}/userprofiles/:profileId/accountUserProfiles
http GET {{baseUrl}}/userprofiles/:profileId/accountUserProfiles
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/accountUserProfiles
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/accountUserProfiles")! 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 dfareporting.accountUserProfiles.patch
{{baseUrl}}/userprofiles/:profileId/accountUserProfiles
QUERY PARAMS

id
profileId
BODY json

{
  "accountId": "",
  "active": false,
  "advertiserFilter": {
    "kind": "",
    "objectIds": [],
    "status": ""
  },
  "campaignFilter": {},
  "comments": "",
  "email": "",
  "id": "",
  "kind": "",
  "locale": "",
  "name": "",
  "siteFilter": {},
  "subaccountId": "",
  "traffickerType": "",
  "userAccessType": "",
  "userRoleFilter": {},
  "userRoleId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/accountUserProfiles?id=");

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  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserFilter\": {\n    \"kind\": \"\",\n    \"objectIds\": [],\n    \"status\": \"\"\n  },\n  \"campaignFilter\": {},\n  \"comments\": \"\",\n  \"email\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"locale\": \"\",\n  \"name\": \"\",\n  \"siteFilter\": {},\n  \"subaccountId\": \"\",\n  \"traffickerType\": \"\",\n  \"userAccessType\": \"\",\n  \"userRoleFilter\": {},\n  \"userRoleId\": \"\"\n}");

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

(client/patch "{{baseUrl}}/userprofiles/:profileId/accountUserProfiles" {:query-params {:id ""}
                                                                                         :content-type :json
                                                                                         :form-params {:accountId ""
                                                                                                       :active false
                                                                                                       :advertiserFilter {:kind ""
                                                                                                                          :objectIds []
                                                                                                                          :status ""}
                                                                                                       :campaignFilter {}
                                                                                                       :comments ""
                                                                                                       :email ""
                                                                                                       :id ""
                                                                                                       :kind ""
                                                                                                       :locale ""
                                                                                                       :name ""
                                                                                                       :siteFilter {}
                                                                                                       :subaccountId ""
                                                                                                       :traffickerType ""
                                                                                                       :userAccessType ""
                                                                                                       :userRoleFilter {}
                                                                                                       :userRoleId ""}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/accountUserProfiles?id="
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserFilter\": {\n    \"kind\": \"\",\n    \"objectIds\": [],\n    \"status\": \"\"\n  },\n  \"campaignFilter\": {},\n  \"comments\": \"\",\n  \"email\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"locale\": \"\",\n  \"name\": \"\",\n  \"siteFilter\": {},\n  \"subaccountId\": \"\",\n  \"traffickerType\": \"\",\n  \"userAccessType\": \"\",\n  \"userRoleFilter\": {},\n  \"userRoleId\": \"\"\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}}/userprofiles/:profileId/accountUserProfiles?id="),
    Content = new StringContent("{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserFilter\": {\n    \"kind\": \"\",\n    \"objectIds\": [],\n    \"status\": \"\"\n  },\n  \"campaignFilter\": {},\n  \"comments\": \"\",\n  \"email\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"locale\": \"\",\n  \"name\": \"\",\n  \"siteFilter\": {},\n  \"subaccountId\": \"\",\n  \"traffickerType\": \"\",\n  \"userAccessType\": \"\",\n  \"userRoleFilter\": {},\n  \"userRoleId\": \"\"\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}}/userprofiles/:profileId/accountUserProfiles?id=");
var request = new RestRequest("", Method.Patch);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserFilter\": {\n    \"kind\": \"\",\n    \"objectIds\": [],\n    \"status\": \"\"\n  },\n  \"campaignFilter\": {},\n  \"comments\": \"\",\n  \"email\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"locale\": \"\",\n  \"name\": \"\",\n  \"siteFilter\": {},\n  \"subaccountId\": \"\",\n  \"traffickerType\": \"\",\n  \"userAccessType\": \"\",\n  \"userRoleFilter\": {},\n  \"userRoleId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/accountUserProfiles?id="

	payload := strings.NewReader("{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserFilter\": {\n    \"kind\": \"\",\n    \"objectIds\": [],\n    \"status\": \"\"\n  },\n  \"campaignFilter\": {},\n  \"comments\": \"\",\n  \"email\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"locale\": \"\",\n  \"name\": \"\",\n  \"siteFilter\": {},\n  \"subaccountId\": \"\",\n  \"traffickerType\": \"\",\n  \"userAccessType\": \"\",\n  \"userRoleFilter\": {},\n  \"userRoleId\": \"\"\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/userprofiles/:profileId/accountUserProfiles?id= HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 370

{
  "accountId": "",
  "active": false,
  "advertiserFilter": {
    "kind": "",
    "objectIds": [],
    "status": ""
  },
  "campaignFilter": {},
  "comments": "",
  "email": "",
  "id": "",
  "kind": "",
  "locale": "",
  "name": "",
  "siteFilter": {},
  "subaccountId": "",
  "traffickerType": "",
  "userAccessType": "",
  "userRoleFilter": {},
  "userRoleId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/userprofiles/:profileId/accountUserProfiles?id=")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserFilter\": {\n    \"kind\": \"\",\n    \"objectIds\": [],\n    \"status\": \"\"\n  },\n  \"campaignFilter\": {},\n  \"comments\": \"\",\n  \"email\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"locale\": \"\",\n  \"name\": \"\",\n  \"siteFilter\": {},\n  \"subaccountId\": \"\",\n  \"traffickerType\": \"\",\n  \"userAccessType\": \"\",\n  \"userRoleFilter\": {},\n  \"userRoleId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/accountUserProfiles?id="))
    .header("content-type", "application/json")
    .method("PATCH", HttpRequest.BodyPublishers.ofString("{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserFilter\": {\n    \"kind\": \"\",\n    \"objectIds\": [],\n    \"status\": \"\"\n  },\n  \"campaignFilter\": {},\n  \"comments\": \"\",\n  \"email\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"locale\": \"\",\n  \"name\": \"\",\n  \"siteFilter\": {},\n  \"subaccountId\": \"\",\n  \"traffickerType\": \"\",\n  \"userAccessType\": \"\",\n  \"userRoleFilter\": {},\n  \"userRoleId\": \"\"\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  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserFilter\": {\n    \"kind\": \"\",\n    \"objectIds\": [],\n    \"status\": \"\"\n  },\n  \"campaignFilter\": {},\n  \"comments\": \"\",\n  \"email\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"locale\": \"\",\n  \"name\": \"\",\n  \"siteFilter\": {},\n  \"subaccountId\": \"\",\n  \"traffickerType\": \"\",\n  \"userAccessType\": \"\",\n  \"userRoleFilter\": {},\n  \"userRoleId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/accountUserProfiles?id=")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/userprofiles/:profileId/accountUserProfiles?id=")
  .header("content-type", "application/json")
  .body("{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserFilter\": {\n    \"kind\": \"\",\n    \"objectIds\": [],\n    \"status\": \"\"\n  },\n  \"campaignFilter\": {},\n  \"comments\": \"\",\n  \"email\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"locale\": \"\",\n  \"name\": \"\",\n  \"siteFilter\": {},\n  \"subaccountId\": \"\",\n  \"traffickerType\": \"\",\n  \"userAccessType\": \"\",\n  \"userRoleFilter\": {},\n  \"userRoleId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  accountId: '',
  active: false,
  advertiserFilter: {
    kind: '',
    objectIds: [],
    status: ''
  },
  campaignFilter: {},
  comments: '',
  email: '',
  id: '',
  kind: '',
  locale: '',
  name: '',
  siteFilter: {},
  subaccountId: '',
  traffickerType: '',
  userAccessType: '',
  userRoleFilter: {},
  userRoleId: ''
});

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

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

xhr.open('PATCH', '{{baseUrl}}/userprofiles/:profileId/accountUserProfiles?id=');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/userprofiles/:profileId/accountUserProfiles',
  params: {id: ''},
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    active: false,
    advertiserFilter: {kind: '', objectIds: [], status: ''},
    campaignFilter: {},
    comments: '',
    email: '',
    id: '',
    kind: '',
    locale: '',
    name: '',
    siteFilter: {},
    subaccountId: '',
    traffickerType: '',
    userAccessType: '',
    userRoleFilter: {},
    userRoleId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/accountUserProfiles?id=';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","active":false,"advertiserFilter":{"kind":"","objectIds":[],"status":""},"campaignFilter":{},"comments":"","email":"","id":"","kind":"","locale":"","name":"","siteFilter":{},"subaccountId":"","traffickerType":"","userAccessType":"","userRoleFilter":{},"userRoleId":""}'
};

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}}/userprofiles/:profileId/accountUserProfiles?id=',
  method: 'PATCH',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "accountId": "",\n  "active": false,\n  "advertiserFilter": {\n    "kind": "",\n    "objectIds": [],\n    "status": ""\n  },\n  "campaignFilter": {},\n  "comments": "",\n  "email": "",\n  "id": "",\n  "kind": "",\n  "locale": "",\n  "name": "",\n  "siteFilter": {},\n  "subaccountId": "",\n  "traffickerType": "",\n  "userAccessType": "",\n  "userRoleFilter": {},\n  "userRoleId": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserFilter\": {\n    \"kind\": \"\",\n    \"objectIds\": [],\n    \"status\": \"\"\n  },\n  \"campaignFilter\": {},\n  \"comments\": \"\",\n  \"email\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"locale\": \"\",\n  \"name\": \"\",\n  \"siteFilter\": {},\n  \"subaccountId\": \"\",\n  \"traffickerType\": \"\",\n  \"userAccessType\": \"\",\n  \"userRoleFilter\": {},\n  \"userRoleId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/accountUserProfiles?id=")
  .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/userprofiles/:profileId/accountUserProfiles?id=',
  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({
  accountId: '',
  active: false,
  advertiserFilter: {kind: '', objectIds: [], status: ''},
  campaignFilter: {},
  comments: '',
  email: '',
  id: '',
  kind: '',
  locale: '',
  name: '',
  siteFilter: {},
  subaccountId: '',
  traffickerType: '',
  userAccessType: '',
  userRoleFilter: {},
  userRoleId: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/userprofiles/:profileId/accountUserProfiles',
  qs: {id: ''},
  headers: {'content-type': 'application/json'},
  body: {
    accountId: '',
    active: false,
    advertiserFilter: {kind: '', objectIds: [], status: ''},
    campaignFilter: {},
    comments: '',
    email: '',
    id: '',
    kind: '',
    locale: '',
    name: '',
    siteFilter: {},
    subaccountId: '',
    traffickerType: '',
    userAccessType: '',
    userRoleFilter: {},
    userRoleId: ''
  },
  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}}/userprofiles/:profileId/accountUserProfiles');

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

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

req.type('json');
req.send({
  accountId: '',
  active: false,
  advertiserFilter: {
    kind: '',
    objectIds: [],
    status: ''
  },
  campaignFilter: {},
  comments: '',
  email: '',
  id: '',
  kind: '',
  locale: '',
  name: '',
  siteFilter: {},
  subaccountId: '',
  traffickerType: '',
  userAccessType: '',
  userRoleFilter: {},
  userRoleId: ''
});

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}}/userprofiles/:profileId/accountUserProfiles',
  params: {id: ''},
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    active: false,
    advertiserFilter: {kind: '', objectIds: [], status: ''},
    campaignFilter: {},
    comments: '',
    email: '',
    id: '',
    kind: '',
    locale: '',
    name: '',
    siteFilter: {},
    subaccountId: '',
    traffickerType: '',
    userAccessType: '',
    userRoleFilter: {},
    userRoleId: ''
  }
};

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

const url = '{{baseUrl}}/userprofiles/:profileId/accountUserProfiles?id=';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","active":false,"advertiserFilter":{"kind":"","objectIds":[],"status":""},"campaignFilter":{},"comments":"","email":"","id":"","kind":"","locale":"","name":"","siteFilter":{},"subaccountId":"","traffickerType":"","userAccessType":"","userRoleFilter":{},"userRoleId":""}'
};

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 = @{ @"accountId": @"",
                              @"active": @NO,
                              @"advertiserFilter": @{ @"kind": @"", @"objectIds": @[  ], @"status": @"" },
                              @"campaignFilter": @{  },
                              @"comments": @"",
                              @"email": @"",
                              @"id": @"",
                              @"kind": @"",
                              @"locale": @"",
                              @"name": @"",
                              @"siteFilter": @{  },
                              @"subaccountId": @"",
                              @"traffickerType": @"",
                              @"userAccessType": @"",
                              @"userRoleFilter": @{  },
                              @"userRoleId": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/userprofiles/:profileId/accountUserProfiles?id="]
                                                       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}}/userprofiles/:profileId/accountUserProfiles?id=" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserFilter\": {\n    \"kind\": \"\",\n    \"objectIds\": [],\n    \"status\": \"\"\n  },\n  \"campaignFilter\": {},\n  \"comments\": \"\",\n  \"email\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"locale\": \"\",\n  \"name\": \"\",\n  \"siteFilter\": {},\n  \"subaccountId\": \"\",\n  \"traffickerType\": \"\",\n  \"userAccessType\": \"\",\n  \"userRoleFilter\": {},\n  \"userRoleId\": \"\"\n}" in

Client.call ~headers ~body `PATCH uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/accountUserProfiles?id=",
  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([
    'accountId' => '',
    'active' => null,
    'advertiserFilter' => [
        'kind' => '',
        'objectIds' => [
                
        ],
        'status' => ''
    ],
    'campaignFilter' => [
        
    ],
    'comments' => '',
    'email' => '',
    'id' => '',
    'kind' => '',
    'locale' => '',
    'name' => '',
    'siteFilter' => [
        
    ],
    'subaccountId' => '',
    'traffickerType' => '',
    'userAccessType' => '',
    'userRoleFilter' => [
        
    ],
    'userRoleId' => ''
  ]),
  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}}/userprofiles/:profileId/accountUserProfiles?id=', [
  'body' => '{
  "accountId": "",
  "active": false,
  "advertiserFilter": {
    "kind": "",
    "objectIds": [],
    "status": ""
  },
  "campaignFilter": {},
  "comments": "",
  "email": "",
  "id": "",
  "kind": "",
  "locale": "",
  "name": "",
  "siteFilter": {},
  "subaccountId": "",
  "traffickerType": "",
  "userAccessType": "",
  "userRoleFilter": {},
  "userRoleId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/accountUserProfiles');
$request->setMethod(HttpRequest::HTTP_METH_PATCH);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'accountId' => '',
  'active' => null,
  'advertiserFilter' => [
    'kind' => '',
    'objectIds' => [
        
    ],
    'status' => ''
  ],
  'campaignFilter' => [
    
  ],
  'comments' => '',
  'email' => '',
  'id' => '',
  'kind' => '',
  'locale' => '',
  'name' => '',
  'siteFilter' => [
    
  ],
  'subaccountId' => '',
  'traffickerType' => '',
  'userAccessType' => '',
  'userRoleFilter' => [
    
  ],
  'userRoleId' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'accountId' => '',
  'active' => null,
  'advertiserFilter' => [
    'kind' => '',
    'objectIds' => [
        
    ],
    'status' => ''
  ],
  'campaignFilter' => [
    
  ],
  'comments' => '',
  'email' => '',
  'id' => '',
  'kind' => '',
  'locale' => '',
  'name' => '',
  'siteFilter' => [
    
  ],
  'subaccountId' => '',
  'traffickerType' => '',
  'userAccessType' => '',
  'userRoleFilter' => [
    
  ],
  'userRoleId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/userprofiles/:profileId/accountUserProfiles');
$request->setRequestMethod('PATCH');
$request->setBody($body);

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

$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}}/userprofiles/:profileId/accountUserProfiles?id=' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "active": false,
  "advertiserFilter": {
    "kind": "",
    "objectIds": [],
    "status": ""
  },
  "campaignFilter": {},
  "comments": "",
  "email": "",
  "id": "",
  "kind": "",
  "locale": "",
  "name": "",
  "siteFilter": {},
  "subaccountId": "",
  "traffickerType": "",
  "userAccessType": "",
  "userRoleFilter": {},
  "userRoleId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/accountUserProfiles?id=' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "active": false,
  "advertiserFilter": {
    "kind": "",
    "objectIds": [],
    "status": ""
  },
  "campaignFilter": {},
  "comments": "",
  "email": "",
  "id": "",
  "kind": "",
  "locale": "",
  "name": "",
  "siteFilter": {},
  "subaccountId": "",
  "traffickerType": "",
  "userAccessType": "",
  "userRoleFilter": {},
  "userRoleId": ""
}'
import http.client

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

payload = "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserFilter\": {\n    \"kind\": \"\",\n    \"objectIds\": [],\n    \"status\": \"\"\n  },\n  \"campaignFilter\": {},\n  \"comments\": \"\",\n  \"email\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"locale\": \"\",\n  \"name\": \"\",\n  \"siteFilter\": {},\n  \"subaccountId\": \"\",\n  \"traffickerType\": \"\",\n  \"userAccessType\": \"\",\n  \"userRoleFilter\": {},\n  \"userRoleId\": \"\"\n}"

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

conn.request("PATCH", "/baseUrl/userprofiles/:profileId/accountUserProfiles?id=", payload, headers)

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

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

url = "{{baseUrl}}/userprofiles/:profileId/accountUserProfiles"

querystring = {"id":""}

payload = {
    "accountId": "",
    "active": False,
    "advertiserFilter": {
        "kind": "",
        "objectIds": [],
        "status": ""
    },
    "campaignFilter": {},
    "comments": "",
    "email": "",
    "id": "",
    "kind": "",
    "locale": "",
    "name": "",
    "siteFilter": {},
    "subaccountId": "",
    "traffickerType": "",
    "userAccessType": "",
    "userRoleFilter": {},
    "userRoleId": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/userprofiles/:profileId/accountUserProfiles"

queryString <- list(id = "")

payload <- "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserFilter\": {\n    \"kind\": \"\",\n    \"objectIds\": [],\n    \"status\": \"\"\n  },\n  \"campaignFilter\": {},\n  \"comments\": \"\",\n  \"email\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"locale\": \"\",\n  \"name\": \"\",\n  \"siteFilter\": {},\n  \"subaccountId\": \"\",\n  \"traffickerType\": \"\",\n  \"userAccessType\": \"\",\n  \"userRoleFilter\": {},\n  \"userRoleId\": \"\"\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/userprofiles/:profileId/accountUserProfiles?id=")

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  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserFilter\": {\n    \"kind\": \"\",\n    \"objectIds\": [],\n    \"status\": \"\"\n  },\n  \"campaignFilter\": {},\n  \"comments\": \"\",\n  \"email\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"locale\": \"\",\n  \"name\": \"\",\n  \"siteFilter\": {},\n  \"subaccountId\": \"\",\n  \"traffickerType\": \"\",\n  \"userAccessType\": \"\",\n  \"userRoleFilter\": {},\n  \"userRoleId\": \"\"\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/userprofiles/:profileId/accountUserProfiles') do |req|
  req.params['id'] = ''
  req.body = "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserFilter\": {\n    \"kind\": \"\",\n    \"objectIds\": [],\n    \"status\": \"\"\n  },\n  \"campaignFilter\": {},\n  \"comments\": \"\",\n  \"email\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"locale\": \"\",\n  \"name\": \"\",\n  \"siteFilter\": {},\n  \"subaccountId\": \"\",\n  \"traffickerType\": \"\",\n  \"userAccessType\": \"\",\n  \"userRoleFilter\": {},\n  \"userRoleId\": \"\"\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}}/userprofiles/:profileId/accountUserProfiles";

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

    let payload = json!({
        "accountId": "",
        "active": false,
        "advertiserFilter": json!({
            "kind": "",
            "objectIds": (),
            "status": ""
        }),
        "campaignFilter": json!({}),
        "comments": "",
        "email": "",
        "id": "",
        "kind": "",
        "locale": "",
        "name": "",
        "siteFilter": json!({}),
        "subaccountId": "",
        "traffickerType": "",
        "userAccessType": "",
        "userRoleFilter": json!({}),
        "userRoleId": ""
    });

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

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

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

    dbg!(results);
}
curl --request PATCH \
  --url '{{baseUrl}}/userprofiles/:profileId/accountUserProfiles?id=' \
  --header 'content-type: application/json' \
  --data '{
  "accountId": "",
  "active": false,
  "advertiserFilter": {
    "kind": "",
    "objectIds": [],
    "status": ""
  },
  "campaignFilter": {},
  "comments": "",
  "email": "",
  "id": "",
  "kind": "",
  "locale": "",
  "name": "",
  "siteFilter": {},
  "subaccountId": "",
  "traffickerType": "",
  "userAccessType": "",
  "userRoleFilter": {},
  "userRoleId": ""
}'
echo '{
  "accountId": "",
  "active": false,
  "advertiserFilter": {
    "kind": "",
    "objectIds": [],
    "status": ""
  },
  "campaignFilter": {},
  "comments": "",
  "email": "",
  "id": "",
  "kind": "",
  "locale": "",
  "name": "",
  "siteFilter": {},
  "subaccountId": "",
  "traffickerType": "",
  "userAccessType": "",
  "userRoleFilter": {},
  "userRoleId": ""
}' |  \
  http PATCH '{{baseUrl}}/userprofiles/:profileId/accountUserProfiles?id=' \
  content-type:application/json
wget --quiet \
  --method PATCH \
  --header 'content-type: application/json' \
  --body-data '{\n  "accountId": "",\n  "active": false,\n  "advertiserFilter": {\n    "kind": "",\n    "objectIds": [],\n    "status": ""\n  },\n  "campaignFilter": {},\n  "comments": "",\n  "email": "",\n  "id": "",\n  "kind": "",\n  "locale": "",\n  "name": "",\n  "siteFilter": {},\n  "subaccountId": "",\n  "traffickerType": "",\n  "userAccessType": "",\n  "userRoleFilter": {},\n  "userRoleId": ""\n}' \
  --output-document \
  - '{{baseUrl}}/userprofiles/:profileId/accountUserProfiles?id='
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "accountId": "",
  "active": false,
  "advertiserFilter": [
    "kind": "",
    "objectIds": [],
    "status": ""
  ],
  "campaignFilter": [],
  "comments": "",
  "email": "",
  "id": "",
  "kind": "",
  "locale": "",
  "name": "",
  "siteFilter": [],
  "subaccountId": "",
  "traffickerType": "",
  "userAccessType": "",
  "userRoleFilter": [],
  "userRoleId": ""
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/accountUserProfiles?id=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PATCH"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

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

dataTask.resume()
PUT dfareporting.accountUserProfiles.update
{{baseUrl}}/userprofiles/:profileId/accountUserProfiles
QUERY PARAMS

profileId
BODY json

{
  "accountId": "",
  "active": false,
  "advertiserFilter": {
    "kind": "",
    "objectIds": [],
    "status": ""
  },
  "campaignFilter": {},
  "comments": "",
  "email": "",
  "id": "",
  "kind": "",
  "locale": "",
  "name": "",
  "siteFilter": {},
  "subaccountId": "",
  "traffickerType": "",
  "userAccessType": "",
  "userRoleFilter": {},
  "userRoleId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/accountUserProfiles");

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  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserFilter\": {\n    \"kind\": \"\",\n    \"objectIds\": [],\n    \"status\": \"\"\n  },\n  \"campaignFilter\": {},\n  \"comments\": \"\",\n  \"email\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"locale\": \"\",\n  \"name\": \"\",\n  \"siteFilter\": {},\n  \"subaccountId\": \"\",\n  \"traffickerType\": \"\",\n  \"userAccessType\": \"\",\n  \"userRoleFilter\": {},\n  \"userRoleId\": \"\"\n}");

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

(client/put "{{baseUrl}}/userprofiles/:profileId/accountUserProfiles" {:content-type :json
                                                                                       :form-params {:accountId ""
                                                                                                     :active false
                                                                                                     :advertiserFilter {:kind ""
                                                                                                                        :objectIds []
                                                                                                                        :status ""}
                                                                                                     :campaignFilter {}
                                                                                                     :comments ""
                                                                                                     :email ""
                                                                                                     :id ""
                                                                                                     :kind ""
                                                                                                     :locale ""
                                                                                                     :name ""
                                                                                                     :siteFilter {}
                                                                                                     :subaccountId ""
                                                                                                     :traffickerType ""
                                                                                                     :userAccessType ""
                                                                                                     :userRoleFilter {}
                                                                                                     :userRoleId ""}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/accountUserProfiles"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserFilter\": {\n    \"kind\": \"\",\n    \"objectIds\": [],\n    \"status\": \"\"\n  },\n  \"campaignFilter\": {},\n  \"comments\": \"\",\n  \"email\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"locale\": \"\",\n  \"name\": \"\",\n  \"siteFilter\": {},\n  \"subaccountId\": \"\",\n  \"traffickerType\": \"\",\n  \"userAccessType\": \"\",\n  \"userRoleFilter\": {},\n  \"userRoleId\": \"\"\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/userprofiles/:profileId/accountUserProfiles"),
    Content = new StringContent("{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserFilter\": {\n    \"kind\": \"\",\n    \"objectIds\": [],\n    \"status\": \"\"\n  },\n  \"campaignFilter\": {},\n  \"comments\": \"\",\n  \"email\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"locale\": \"\",\n  \"name\": \"\",\n  \"siteFilter\": {},\n  \"subaccountId\": \"\",\n  \"traffickerType\": \"\",\n  \"userAccessType\": \"\",\n  \"userRoleFilter\": {},\n  \"userRoleId\": \"\"\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}}/userprofiles/:profileId/accountUserProfiles");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserFilter\": {\n    \"kind\": \"\",\n    \"objectIds\": [],\n    \"status\": \"\"\n  },\n  \"campaignFilter\": {},\n  \"comments\": \"\",\n  \"email\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"locale\": \"\",\n  \"name\": \"\",\n  \"siteFilter\": {},\n  \"subaccountId\": \"\",\n  \"traffickerType\": \"\",\n  \"userAccessType\": \"\",\n  \"userRoleFilter\": {},\n  \"userRoleId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/accountUserProfiles"

	payload := strings.NewReader("{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserFilter\": {\n    \"kind\": \"\",\n    \"objectIds\": [],\n    \"status\": \"\"\n  },\n  \"campaignFilter\": {},\n  \"comments\": \"\",\n  \"email\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"locale\": \"\",\n  \"name\": \"\",\n  \"siteFilter\": {},\n  \"subaccountId\": \"\",\n  \"traffickerType\": \"\",\n  \"userAccessType\": \"\",\n  \"userRoleFilter\": {},\n  \"userRoleId\": \"\"\n}")

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

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

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

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

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

}
PUT /baseUrl/userprofiles/:profileId/accountUserProfiles HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 370

{
  "accountId": "",
  "active": false,
  "advertiserFilter": {
    "kind": "",
    "objectIds": [],
    "status": ""
  },
  "campaignFilter": {},
  "comments": "",
  "email": "",
  "id": "",
  "kind": "",
  "locale": "",
  "name": "",
  "siteFilter": {},
  "subaccountId": "",
  "traffickerType": "",
  "userAccessType": "",
  "userRoleFilter": {},
  "userRoleId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/userprofiles/:profileId/accountUserProfiles")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserFilter\": {\n    \"kind\": \"\",\n    \"objectIds\": [],\n    \"status\": \"\"\n  },\n  \"campaignFilter\": {},\n  \"comments\": \"\",\n  \"email\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"locale\": \"\",\n  \"name\": \"\",\n  \"siteFilter\": {},\n  \"subaccountId\": \"\",\n  \"traffickerType\": \"\",\n  \"userAccessType\": \"\",\n  \"userRoleFilter\": {},\n  \"userRoleId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/accountUserProfiles"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserFilter\": {\n    \"kind\": \"\",\n    \"objectIds\": [],\n    \"status\": \"\"\n  },\n  \"campaignFilter\": {},\n  \"comments\": \"\",\n  \"email\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"locale\": \"\",\n  \"name\": \"\",\n  \"siteFilter\": {},\n  \"subaccountId\": \"\",\n  \"traffickerType\": \"\",\n  \"userAccessType\": \"\",\n  \"userRoleFilter\": {},\n  \"userRoleId\": \"\"\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  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserFilter\": {\n    \"kind\": \"\",\n    \"objectIds\": [],\n    \"status\": \"\"\n  },\n  \"campaignFilter\": {},\n  \"comments\": \"\",\n  \"email\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"locale\": \"\",\n  \"name\": \"\",\n  \"siteFilter\": {},\n  \"subaccountId\": \"\",\n  \"traffickerType\": \"\",\n  \"userAccessType\": \"\",\n  \"userRoleFilter\": {},\n  \"userRoleId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/accountUserProfiles")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/userprofiles/:profileId/accountUserProfiles")
  .header("content-type", "application/json")
  .body("{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserFilter\": {\n    \"kind\": \"\",\n    \"objectIds\": [],\n    \"status\": \"\"\n  },\n  \"campaignFilter\": {},\n  \"comments\": \"\",\n  \"email\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"locale\": \"\",\n  \"name\": \"\",\n  \"siteFilter\": {},\n  \"subaccountId\": \"\",\n  \"traffickerType\": \"\",\n  \"userAccessType\": \"\",\n  \"userRoleFilter\": {},\n  \"userRoleId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  accountId: '',
  active: false,
  advertiserFilter: {
    kind: '',
    objectIds: [],
    status: ''
  },
  campaignFilter: {},
  comments: '',
  email: '',
  id: '',
  kind: '',
  locale: '',
  name: '',
  siteFilter: {},
  subaccountId: '',
  traffickerType: '',
  userAccessType: '',
  userRoleFilter: {},
  userRoleId: ''
});

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

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

xhr.open('PUT', '{{baseUrl}}/userprofiles/:profileId/accountUserProfiles');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/userprofiles/:profileId/accountUserProfiles',
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    active: false,
    advertiserFilter: {kind: '', objectIds: [], status: ''},
    campaignFilter: {},
    comments: '',
    email: '',
    id: '',
    kind: '',
    locale: '',
    name: '',
    siteFilter: {},
    subaccountId: '',
    traffickerType: '',
    userAccessType: '',
    userRoleFilter: {},
    userRoleId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/accountUserProfiles';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","active":false,"advertiserFilter":{"kind":"","objectIds":[],"status":""},"campaignFilter":{},"comments":"","email":"","id":"","kind":"","locale":"","name":"","siteFilter":{},"subaccountId":"","traffickerType":"","userAccessType":"","userRoleFilter":{},"userRoleId":""}'
};

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}}/userprofiles/:profileId/accountUserProfiles',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "accountId": "",\n  "active": false,\n  "advertiserFilter": {\n    "kind": "",\n    "objectIds": [],\n    "status": ""\n  },\n  "campaignFilter": {},\n  "comments": "",\n  "email": "",\n  "id": "",\n  "kind": "",\n  "locale": "",\n  "name": "",\n  "siteFilter": {},\n  "subaccountId": "",\n  "traffickerType": "",\n  "userAccessType": "",\n  "userRoleFilter": {},\n  "userRoleId": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserFilter\": {\n    \"kind\": \"\",\n    \"objectIds\": [],\n    \"status\": \"\"\n  },\n  \"campaignFilter\": {},\n  \"comments\": \"\",\n  \"email\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"locale\": \"\",\n  \"name\": \"\",\n  \"siteFilter\": {},\n  \"subaccountId\": \"\",\n  \"traffickerType\": \"\",\n  \"userAccessType\": \"\",\n  \"userRoleFilter\": {},\n  \"userRoleId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/accountUserProfiles")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

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

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/accountUserProfiles',
  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({
  accountId: '',
  active: false,
  advertiserFilter: {kind: '', objectIds: [], status: ''},
  campaignFilter: {},
  comments: '',
  email: '',
  id: '',
  kind: '',
  locale: '',
  name: '',
  siteFilter: {},
  subaccountId: '',
  traffickerType: '',
  userAccessType: '',
  userRoleFilter: {},
  userRoleId: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/userprofiles/:profileId/accountUserProfiles',
  headers: {'content-type': 'application/json'},
  body: {
    accountId: '',
    active: false,
    advertiserFilter: {kind: '', objectIds: [], status: ''},
    campaignFilter: {},
    comments: '',
    email: '',
    id: '',
    kind: '',
    locale: '',
    name: '',
    siteFilter: {},
    subaccountId: '',
    traffickerType: '',
    userAccessType: '',
    userRoleFilter: {},
    userRoleId: ''
  },
  json: true
};

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

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

const req = unirest('PUT', '{{baseUrl}}/userprofiles/:profileId/accountUserProfiles');

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

req.type('json');
req.send({
  accountId: '',
  active: false,
  advertiserFilter: {
    kind: '',
    objectIds: [],
    status: ''
  },
  campaignFilter: {},
  comments: '',
  email: '',
  id: '',
  kind: '',
  locale: '',
  name: '',
  siteFilter: {},
  subaccountId: '',
  traffickerType: '',
  userAccessType: '',
  userRoleFilter: {},
  userRoleId: ''
});

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

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

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/userprofiles/:profileId/accountUserProfiles',
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    active: false,
    advertiserFilter: {kind: '', objectIds: [], status: ''},
    campaignFilter: {},
    comments: '',
    email: '',
    id: '',
    kind: '',
    locale: '',
    name: '',
    siteFilter: {},
    subaccountId: '',
    traffickerType: '',
    userAccessType: '',
    userRoleFilter: {},
    userRoleId: ''
  }
};

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

const url = '{{baseUrl}}/userprofiles/:profileId/accountUserProfiles';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","active":false,"advertiserFilter":{"kind":"","objectIds":[],"status":""},"campaignFilter":{},"comments":"","email":"","id":"","kind":"","locale":"","name":"","siteFilter":{},"subaccountId":"","traffickerType":"","userAccessType":"","userRoleFilter":{},"userRoleId":""}'
};

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 = @{ @"accountId": @"",
                              @"active": @NO,
                              @"advertiserFilter": @{ @"kind": @"", @"objectIds": @[  ], @"status": @"" },
                              @"campaignFilter": @{  },
                              @"comments": @"",
                              @"email": @"",
                              @"id": @"",
                              @"kind": @"",
                              @"locale": @"",
                              @"name": @"",
                              @"siteFilter": @{  },
                              @"subaccountId": @"",
                              @"traffickerType": @"",
                              @"userAccessType": @"",
                              @"userRoleFilter": @{  },
                              @"userRoleId": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/userprofiles/:profileId/accountUserProfiles"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

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

let uri = Uri.of_string "{{baseUrl}}/userprofiles/:profileId/accountUserProfiles" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserFilter\": {\n    \"kind\": \"\",\n    \"objectIds\": [],\n    \"status\": \"\"\n  },\n  \"campaignFilter\": {},\n  \"comments\": \"\",\n  \"email\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"locale\": \"\",\n  \"name\": \"\",\n  \"siteFilter\": {},\n  \"subaccountId\": \"\",\n  \"traffickerType\": \"\",\n  \"userAccessType\": \"\",\n  \"userRoleFilter\": {},\n  \"userRoleId\": \"\"\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/accountUserProfiles",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'accountId' => '',
    'active' => null,
    'advertiserFilter' => [
        'kind' => '',
        'objectIds' => [
                
        ],
        'status' => ''
    ],
    'campaignFilter' => [
        
    ],
    'comments' => '',
    'email' => '',
    'id' => '',
    'kind' => '',
    'locale' => '',
    'name' => '',
    'siteFilter' => [
        
    ],
    'subaccountId' => '',
    'traffickerType' => '',
    'userAccessType' => '',
    'userRoleFilter' => [
        
    ],
    'userRoleId' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/userprofiles/:profileId/accountUserProfiles', [
  'body' => '{
  "accountId": "",
  "active": false,
  "advertiserFilter": {
    "kind": "",
    "objectIds": [],
    "status": ""
  },
  "campaignFilter": {},
  "comments": "",
  "email": "",
  "id": "",
  "kind": "",
  "locale": "",
  "name": "",
  "siteFilter": {},
  "subaccountId": "",
  "traffickerType": "",
  "userAccessType": "",
  "userRoleFilter": {},
  "userRoleId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/accountUserProfiles');
$request->setMethod(HTTP_METH_PUT);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'accountId' => '',
  'active' => null,
  'advertiserFilter' => [
    'kind' => '',
    'objectIds' => [
        
    ],
    'status' => ''
  ],
  'campaignFilter' => [
    
  ],
  'comments' => '',
  'email' => '',
  'id' => '',
  'kind' => '',
  'locale' => '',
  'name' => '',
  'siteFilter' => [
    
  ],
  'subaccountId' => '',
  'traffickerType' => '',
  'userAccessType' => '',
  'userRoleFilter' => [
    
  ],
  'userRoleId' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'accountId' => '',
  'active' => null,
  'advertiserFilter' => [
    'kind' => '',
    'objectIds' => [
        
    ],
    'status' => ''
  ],
  'campaignFilter' => [
    
  ],
  'comments' => '',
  'email' => '',
  'id' => '',
  'kind' => '',
  'locale' => '',
  'name' => '',
  'siteFilter' => [
    
  ],
  'subaccountId' => '',
  'traffickerType' => '',
  'userAccessType' => '',
  'userRoleFilter' => [
    
  ],
  'userRoleId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/userprofiles/:profileId/accountUserProfiles');
$request->setRequestMethod('PUT');
$request->setBody($body);

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

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/accountUserProfiles' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "active": false,
  "advertiserFilter": {
    "kind": "",
    "objectIds": [],
    "status": ""
  },
  "campaignFilter": {},
  "comments": "",
  "email": "",
  "id": "",
  "kind": "",
  "locale": "",
  "name": "",
  "siteFilter": {},
  "subaccountId": "",
  "traffickerType": "",
  "userAccessType": "",
  "userRoleFilter": {},
  "userRoleId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/accountUserProfiles' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "active": false,
  "advertiserFilter": {
    "kind": "",
    "objectIds": [],
    "status": ""
  },
  "campaignFilter": {},
  "comments": "",
  "email": "",
  "id": "",
  "kind": "",
  "locale": "",
  "name": "",
  "siteFilter": {},
  "subaccountId": "",
  "traffickerType": "",
  "userAccessType": "",
  "userRoleFilter": {},
  "userRoleId": ""
}'
import http.client

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

payload = "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserFilter\": {\n    \"kind\": \"\",\n    \"objectIds\": [],\n    \"status\": \"\"\n  },\n  \"campaignFilter\": {},\n  \"comments\": \"\",\n  \"email\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"locale\": \"\",\n  \"name\": \"\",\n  \"siteFilter\": {},\n  \"subaccountId\": \"\",\n  \"traffickerType\": \"\",\n  \"userAccessType\": \"\",\n  \"userRoleFilter\": {},\n  \"userRoleId\": \"\"\n}"

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

conn.request("PUT", "/baseUrl/userprofiles/:profileId/accountUserProfiles", payload, headers)

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

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

url = "{{baseUrl}}/userprofiles/:profileId/accountUserProfiles"

payload = {
    "accountId": "",
    "active": False,
    "advertiserFilter": {
        "kind": "",
        "objectIds": [],
        "status": ""
    },
    "campaignFilter": {},
    "comments": "",
    "email": "",
    "id": "",
    "kind": "",
    "locale": "",
    "name": "",
    "siteFilter": {},
    "subaccountId": "",
    "traffickerType": "",
    "userAccessType": "",
    "userRoleFilter": {},
    "userRoleId": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/userprofiles/:profileId/accountUserProfiles"

payload <- "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserFilter\": {\n    \"kind\": \"\",\n    \"objectIds\": [],\n    \"status\": \"\"\n  },\n  \"campaignFilter\": {},\n  \"comments\": \"\",\n  \"email\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"locale\": \"\",\n  \"name\": \"\",\n  \"siteFilter\": {},\n  \"subaccountId\": \"\",\n  \"traffickerType\": \"\",\n  \"userAccessType\": \"\",\n  \"userRoleFilter\": {},\n  \"userRoleId\": \"\"\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/userprofiles/:profileId/accountUserProfiles")

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

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserFilter\": {\n    \"kind\": \"\",\n    \"objectIds\": [],\n    \"status\": \"\"\n  },\n  \"campaignFilter\": {},\n  \"comments\": \"\",\n  \"email\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"locale\": \"\",\n  \"name\": \"\",\n  \"siteFilter\": {},\n  \"subaccountId\": \"\",\n  \"traffickerType\": \"\",\n  \"userAccessType\": \"\",\n  \"userRoleFilter\": {},\n  \"userRoleId\": \"\"\n}"

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

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

response = conn.put('/baseUrl/userprofiles/:profileId/accountUserProfiles') do |req|
  req.body = "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserFilter\": {\n    \"kind\": \"\",\n    \"objectIds\": [],\n    \"status\": \"\"\n  },\n  \"campaignFilter\": {},\n  \"comments\": \"\",\n  \"email\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"locale\": \"\",\n  \"name\": \"\",\n  \"siteFilter\": {},\n  \"subaccountId\": \"\",\n  \"traffickerType\": \"\",\n  \"userAccessType\": \"\",\n  \"userRoleFilter\": {},\n  \"userRoleId\": \"\"\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}}/userprofiles/:profileId/accountUserProfiles";

    let payload = json!({
        "accountId": "",
        "active": false,
        "advertiserFilter": json!({
            "kind": "",
            "objectIds": (),
            "status": ""
        }),
        "campaignFilter": json!({}),
        "comments": "",
        "email": "",
        "id": "",
        "kind": "",
        "locale": "",
        "name": "",
        "siteFilter": json!({}),
        "subaccountId": "",
        "traffickerType": "",
        "userAccessType": "",
        "userRoleFilter": json!({}),
        "userRoleId": ""
    });

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

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

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

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/userprofiles/:profileId/accountUserProfiles \
  --header 'content-type: application/json' \
  --data '{
  "accountId": "",
  "active": false,
  "advertiserFilter": {
    "kind": "",
    "objectIds": [],
    "status": ""
  },
  "campaignFilter": {},
  "comments": "",
  "email": "",
  "id": "",
  "kind": "",
  "locale": "",
  "name": "",
  "siteFilter": {},
  "subaccountId": "",
  "traffickerType": "",
  "userAccessType": "",
  "userRoleFilter": {},
  "userRoleId": ""
}'
echo '{
  "accountId": "",
  "active": false,
  "advertiserFilter": {
    "kind": "",
    "objectIds": [],
    "status": ""
  },
  "campaignFilter": {},
  "comments": "",
  "email": "",
  "id": "",
  "kind": "",
  "locale": "",
  "name": "",
  "siteFilter": {},
  "subaccountId": "",
  "traffickerType": "",
  "userAccessType": "",
  "userRoleFilter": {},
  "userRoleId": ""
}' |  \
  http PUT {{baseUrl}}/userprofiles/:profileId/accountUserProfiles \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "accountId": "",\n  "active": false,\n  "advertiserFilter": {\n    "kind": "",\n    "objectIds": [],\n    "status": ""\n  },\n  "campaignFilter": {},\n  "comments": "",\n  "email": "",\n  "id": "",\n  "kind": "",\n  "locale": "",\n  "name": "",\n  "siteFilter": {},\n  "subaccountId": "",\n  "traffickerType": "",\n  "userAccessType": "",\n  "userRoleFilter": {},\n  "userRoleId": ""\n}' \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/accountUserProfiles
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "accountId": "",
  "active": false,
  "advertiserFilter": [
    "kind": "",
    "objectIds": [],
    "status": ""
  ],
  "campaignFilter": [],
  "comments": "",
  "email": "",
  "id": "",
  "kind": "",
  "locale": "",
  "name": "",
  "siteFilter": [],
  "subaccountId": "",
  "traffickerType": "",
  "userAccessType": "",
  "userRoleFilter": [],
  "userRoleId": ""
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/accountUserProfiles")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

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

dataTask.resume()
GET dfareporting.ads.get
{{baseUrl}}/userprofiles/:profileId/ads/:id
QUERY PARAMS

profileId
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/ads/:id");

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

(client/get "{{baseUrl}}/userprofiles/:profileId/ads/:id")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/ads/:id"

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

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

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/ads/:id"

	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/userprofiles/:profileId/ads/:id HTTP/1.1
Host: example.com

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/ads/:id"))
    .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}}/userprofiles/:profileId/ads/:id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/ads/:id")
  .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}}/userprofiles/:profileId/ads/:id');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/ads/:id'
};

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/ads/:id")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/ads/:id',
  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}}/userprofiles/:profileId/ads/:id'
};

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

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

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/ads/:id');

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}}/userprofiles/:profileId/ads/:id'
};

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

const url = '{{baseUrl}}/userprofiles/:profileId/ads/:id';
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}}/userprofiles/:profileId/ads/:id"]
                                                       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}}/userprofiles/:profileId/ads/:id" in

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

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/ads/:id');
$request->setMethod(HTTP_METH_GET);

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

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

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

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

conn.request("GET", "/baseUrl/userprofiles/:profileId/ads/:id")

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

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

url = "{{baseUrl}}/userprofiles/:profileId/ads/:id"

response = requests.get(url)

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

url <- "{{baseUrl}}/userprofiles/:profileId/ads/:id"

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

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

url = URI("{{baseUrl}}/userprofiles/:profileId/ads/:id")

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/userprofiles/:profileId/ads/:id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/ads/:id";

    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}}/userprofiles/:profileId/ads/:id
http GET {{baseUrl}}/userprofiles/:profileId/ads/:id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/ads/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/ads/:id")! 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 dfareporting.ads.insert
{{baseUrl}}/userprofiles/:profileId/ads
QUERY PARAMS

profileId
BODY json

{
  "accountId": "",
  "active": false,
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "archived": false,
  "audienceSegmentId": "",
  "campaignId": "",
  "campaignIdDimensionValue": {},
  "clickThroughUrl": {
    "computedClickThroughUrl": "",
    "customClickThroughUrl": "",
    "defaultLandingPage": false,
    "landingPageId": ""
  },
  "clickThroughUrlSuffixProperties": {
    "clickThroughUrlSuffix": "",
    "overrideInheritedSuffix": false
  },
  "comments": "",
  "compatibility": "",
  "createInfo": {
    "time": ""
  },
  "creativeGroupAssignments": [
    {
      "creativeGroupId": "",
      "creativeGroupNumber": ""
    }
  ],
  "creativeRotation": {
    "creativeAssignments": [
      {
        "active": false,
        "applyEventTags": false,
        "clickThroughUrl": {},
        "companionCreativeOverrides": [
          {
            "clickThroughUrl": {},
            "creativeId": ""
          }
        ],
        "creativeGroupAssignments": [
          {}
        ],
        "creativeId": "",
        "creativeIdDimensionValue": {},
        "endTime": "",
        "richMediaExitOverrides": [
          {
            "clickThroughUrl": {},
            "enabled": false,
            "exitId": ""
          }
        ],
        "sequence": 0,
        "sslCompliant": false,
        "startTime": "",
        "weight": 0
      }
    ],
    "creativeOptimizationConfigurationId": "",
    "type": "",
    "weightCalculationStrategy": ""
  },
  "dayPartTargeting": {
    "daysOfWeek": [],
    "hoursOfDay": [],
    "userLocalTime": false
  },
  "defaultClickThroughEventTagProperties": {
    "defaultClickThroughEventTagId": "",
    "overrideInheritedEventTag": false
  },
  "deliverySchedule": {
    "frequencyCap": {
      "duration": "",
      "impressions": ""
    },
    "hardCutoff": false,
    "impressionRatio": "",
    "priority": ""
  },
  "dynamicClickTracker": false,
  "endTime": "",
  "eventTagOverrides": [
    {
      "enabled": false,
      "id": ""
    }
  ],
  "geoTargeting": {
    "cities": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "metroCode": "",
        "metroDmaId": "",
        "name": "",
        "regionCode": "",
        "regionDartId": ""
      }
    ],
    "countries": [
      {
        "countryCode": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "sslEnabled": false
      }
    ],
    "excludeCountries": false,
    "metros": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "dmaId": "",
        "kind": "",
        "metroCode": "",
        "name": ""
      }
    ],
    "postalCodes": [
      {
        "code": "",
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": ""
      }
    ],
    "regions": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "regionCode": ""
      }
    ]
  },
  "id": "",
  "idDimensionValue": {},
  "keyValueTargetingExpression": {
    "expression": ""
  },
  "kind": "",
  "languageTargeting": {
    "languages": [
      {
        "id": "",
        "kind": "",
        "languageCode": "",
        "name": ""
      }
    ]
  },
  "lastModifiedInfo": {},
  "name": "",
  "placementAssignments": [
    {
      "active": false,
      "placementId": "",
      "placementIdDimensionValue": {},
      "sslRequired": false
    }
  ],
  "remarketingListExpression": {
    "expression": ""
  },
  "size": {
    "height": 0,
    "iab": false,
    "id": "",
    "kind": "",
    "width": 0
  },
  "sslCompliant": false,
  "sslRequired": false,
  "startTime": "",
  "subaccountId": "",
  "targetingTemplateId": "",
  "technologyTargeting": {
    "browsers": [
      {
        "browserVersionId": "",
        "dartId": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": ""
      }
    ],
    "connectionTypes": [
      {
        "id": "",
        "kind": "",
        "name": ""
      }
    ],
    "mobileCarriers": [
      {
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": "",
        "name": ""
      }
    ],
    "operatingSystemVersions": [
      {
        "id": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": "",
        "operatingSystem": {
          "dartId": "",
          "desktop": false,
          "kind": "",
          "mobile": false,
          "name": ""
        }
      }
    ],
    "operatingSystems": [
      {}
    ],
    "platformTypes": [
      {
        "id": "",
        "kind": "",
        "name": ""
      }
    ]
  },
  "type": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/ads");

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  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"audienceSegmentId\": \"\",\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"clickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"defaultLandingPage\": false,\n    \"landingPageId\": \"\"\n  },\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comments\": \"\",\n  \"compatibility\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupAssignments\": [\n    {\n      \"creativeGroupId\": \"\",\n      \"creativeGroupNumber\": \"\"\n    }\n  ],\n  \"creativeRotation\": {\n    \"creativeAssignments\": [\n      {\n        \"active\": false,\n        \"applyEventTags\": false,\n        \"clickThroughUrl\": {},\n        \"companionCreativeOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"creativeId\": \"\"\n          }\n        ],\n        \"creativeGroupAssignments\": [\n          {}\n        ],\n        \"creativeId\": \"\",\n        \"creativeIdDimensionValue\": {},\n        \"endTime\": \"\",\n        \"richMediaExitOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"enabled\": false,\n            \"exitId\": \"\"\n          }\n        ],\n        \"sequence\": 0,\n        \"sslCompliant\": false,\n        \"startTime\": \"\",\n        \"weight\": 0\n      }\n    ],\n    \"creativeOptimizationConfigurationId\": \"\",\n    \"type\": \"\",\n    \"weightCalculationStrategy\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"deliverySchedule\": {\n    \"frequencyCap\": {\n      \"duration\": \"\",\n      \"impressions\": \"\"\n    },\n    \"hardCutoff\": false,\n    \"impressionRatio\": \"\",\n    \"priority\": \"\"\n  },\n  \"dynamicClickTracker\": false,\n  \"endTime\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementAssignments\": [\n    {\n      \"active\": false,\n      \"placementId\": \"\",\n      \"placementIdDimensionValue\": {},\n      \"sslRequired\": false\n    }\n  ],\n  \"remarketingListExpression\": {\n    \"expression\": \"\"\n  },\n  \"size\": {\n    \"height\": 0,\n    \"iab\": false,\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"width\": 0\n  },\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"startTime\": \"\",\n  \"subaccountId\": \"\",\n  \"targetingTemplateId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"type\": \"\"\n}");

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

(client/post "{{baseUrl}}/userprofiles/:profileId/ads" {:content-type :json
                                                                        :form-params {:accountId ""
                                                                                      :active false
                                                                                      :advertiserId ""
                                                                                      :advertiserIdDimensionValue {:dimensionName ""
                                                                                                                   :etag ""
                                                                                                                   :id ""
                                                                                                                   :kind ""
                                                                                                                   :matchType ""
                                                                                                                   :value ""}
                                                                                      :archived false
                                                                                      :audienceSegmentId ""
                                                                                      :campaignId ""
                                                                                      :campaignIdDimensionValue {}
                                                                                      :clickThroughUrl {:computedClickThroughUrl ""
                                                                                                        :customClickThroughUrl ""
                                                                                                        :defaultLandingPage false
                                                                                                        :landingPageId ""}
                                                                                      :clickThroughUrlSuffixProperties {:clickThroughUrlSuffix ""
                                                                                                                        :overrideInheritedSuffix false}
                                                                                      :comments ""
                                                                                      :compatibility ""
                                                                                      :createInfo {:time ""}
                                                                                      :creativeGroupAssignments [{:creativeGroupId ""
                                                                                                                  :creativeGroupNumber ""}]
                                                                                      :creativeRotation {:creativeAssignments [{:active false
                                                                                                                                :applyEventTags false
                                                                                                                                :clickThroughUrl {}
                                                                                                                                :companionCreativeOverrides [{:clickThroughUrl {}
                                                                                                                                                              :creativeId ""}]
                                                                                                                                :creativeGroupAssignments [{}]
                                                                                                                                :creativeId ""
                                                                                                                                :creativeIdDimensionValue {}
                                                                                                                                :endTime ""
                                                                                                                                :richMediaExitOverrides [{:clickThroughUrl {}
                                                                                                                                                          :enabled false
                                                                                                                                                          :exitId ""}]
                                                                                                                                :sequence 0
                                                                                                                                :sslCompliant false
                                                                                                                                :startTime ""
                                                                                                                                :weight 0}]
                                                                                                         :creativeOptimizationConfigurationId ""
                                                                                                         :type ""
                                                                                                         :weightCalculationStrategy ""}
                                                                                      :dayPartTargeting {:daysOfWeek []
                                                                                                         :hoursOfDay []
                                                                                                         :userLocalTime false}
                                                                                      :defaultClickThroughEventTagProperties {:defaultClickThroughEventTagId ""
                                                                                                                              :overrideInheritedEventTag false}
                                                                                      :deliverySchedule {:frequencyCap {:duration ""
                                                                                                                        :impressions ""}
                                                                                                         :hardCutoff false
                                                                                                         :impressionRatio ""
                                                                                                         :priority ""}
                                                                                      :dynamicClickTracker false
                                                                                      :endTime ""
                                                                                      :eventTagOverrides [{:enabled false
                                                                                                           :id ""}]
                                                                                      :geoTargeting {:cities [{:countryCode ""
                                                                                                               :countryDartId ""
                                                                                                               :dartId ""
                                                                                                               :kind ""
                                                                                                               :metroCode ""
                                                                                                               :metroDmaId ""
                                                                                                               :name ""
                                                                                                               :regionCode ""
                                                                                                               :regionDartId ""}]
                                                                                                     :countries [{:countryCode ""
                                                                                                                  :dartId ""
                                                                                                                  :kind ""
                                                                                                                  :name ""
                                                                                                                  :sslEnabled false}]
                                                                                                     :excludeCountries false
                                                                                                     :metros [{:countryCode ""
                                                                                                               :countryDartId ""
                                                                                                               :dartId ""
                                                                                                               :dmaId ""
                                                                                                               :kind ""
                                                                                                               :metroCode ""
                                                                                                               :name ""}]
                                                                                                     :postalCodes [{:code ""
                                                                                                                    :countryCode ""
                                                                                                                    :countryDartId ""
                                                                                                                    :id ""
                                                                                                                    :kind ""}]
                                                                                                     :regions [{:countryCode ""
                                                                                                                :countryDartId ""
                                                                                                                :dartId ""
                                                                                                                :kind ""
                                                                                                                :name ""
                                                                                                                :regionCode ""}]}
                                                                                      :id ""
                                                                                      :idDimensionValue {}
                                                                                      :keyValueTargetingExpression {:expression ""}
                                                                                      :kind ""
                                                                                      :languageTargeting {:languages [{:id ""
                                                                                                                       :kind ""
                                                                                                                       :languageCode ""
                                                                                                                       :name ""}]}
                                                                                      :lastModifiedInfo {}
                                                                                      :name ""
                                                                                      :placementAssignments [{:active false
                                                                                                              :placementId ""
                                                                                                              :placementIdDimensionValue {}
                                                                                                              :sslRequired false}]
                                                                                      :remarketingListExpression {:expression ""}
                                                                                      :size {:height 0
                                                                                             :iab false
                                                                                             :id ""
                                                                                             :kind ""
                                                                                             :width 0}
                                                                                      :sslCompliant false
                                                                                      :sslRequired false
                                                                                      :startTime ""
                                                                                      :subaccountId ""
                                                                                      :targetingTemplateId ""
                                                                                      :technologyTargeting {:browsers [{:browserVersionId ""
                                                                                                                        :dartId ""
                                                                                                                        :kind ""
                                                                                                                        :majorVersion ""
                                                                                                                        :minorVersion ""
                                                                                                                        :name ""}]
                                                                                                            :connectionTypes [{:id ""
                                                                                                                               :kind ""
                                                                                                                               :name ""}]
                                                                                                            :mobileCarriers [{:countryCode ""
                                                                                                                              :countryDartId ""
                                                                                                                              :id ""
                                                                                                                              :kind ""
                                                                                                                              :name ""}]
                                                                                                            :operatingSystemVersions [{:id ""
                                                                                                                                       :kind ""
                                                                                                                                       :majorVersion ""
                                                                                                                                       :minorVersion ""
                                                                                                                                       :name ""
                                                                                                                                       :operatingSystem {:dartId ""
                                                                                                                                                         :desktop false
                                                                                                                                                         :kind ""
                                                                                                                                                         :mobile false
                                                                                                                                                         :name ""}}]
                                                                                                            :operatingSystems [{}]
                                                                                                            :platformTypes [{:id ""
                                                                                                                             :kind ""
                                                                                                                             :name ""}]}
                                                                                      :type ""}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/ads"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"audienceSegmentId\": \"\",\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"clickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"defaultLandingPage\": false,\n    \"landingPageId\": \"\"\n  },\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comments\": \"\",\n  \"compatibility\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupAssignments\": [\n    {\n      \"creativeGroupId\": \"\",\n      \"creativeGroupNumber\": \"\"\n    }\n  ],\n  \"creativeRotation\": {\n    \"creativeAssignments\": [\n      {\n        \"active\": false,\n        \"applyEventTags\": false,\n        \"clickThroughUrl\": {},\n        \"companionCreativeOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"creativeId\": \"\"\n          }\n        ],\n        \"creativeGroupAssignments\": [\n          {}\n        ],\n        \"creativeId\": \"\",\n        \"creativeIdDimensionValue\": {},\n        \"endTime\": \"\",\n        \"richMediaExitOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"enabled\": false,\n            \"exitId\": \"\"\n          }\n        ],\n        \"sequence\": 0,\n        \"sslCompliant\": false,\n        \"startTime\": \"\",\n        \"weight\": 0\n      }\n    ],\n    \"creativeOptimizationConfigurationId\": \"\",\n    \"type\": \"\",\n    \"weightCalculationStrategy\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"deliverySchedule\": {\n    \"frequencyCap\": {\n      \"duration\": \"\",\n      \"impressions\": \"\"\n    },\n    \"hardCutoff\": false,\n    \"impressionRatio\": \"\",\n    \"priority\": \"\"\n  },\n  \"dynamicClickTracker\": false,\n  \"endTime\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementAssignments\": [\n    {\n      \"active\": false,\n      \"placementId\": \"\",\n      \"placementIdDimensionValue\": {},\n      \"sslRequired\": false\n    }\n  ],\n  \"remarketingListExpression\": {\n    \"expression\": \"\"\n  },\n  \"size\": {\n    \"height\": 0,\n    \"iab\": false,\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"width\": 0\n  },\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"startTime\": \"\",\n  \"subaccountId\": \"\",\n  \"targetingTemplateId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"type\": \"\"\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}}/userprofiles/:profileId/ads"),
    Content = new StringContent("{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"audienceSegmentId\": \"\",\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"clickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"defaultLandingPage\": false,\n    \"landingPageId\": \"\"\n  },\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comments\": \"\",\n  \"compatibility\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupAssignments\": [\n    {\n      \"creativeGroupId\": \"\",\n      \"creativeGroupNumber\": \"\"\n    }\n  ],\n  \"creativeRotation\": {\n    \"creativeAssignments\": [\n      {\n        \"active\": false,\n        \"applyEventTags\": false,\n        \"clickThroughUrl\": {},\n        \"companionCreativeOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"creativeId\": \"\"\n          }\n        ],\n        \"creativeGroupAssignments\": [\n          {}\n        ],\n        \"creativeId\": \"\",\n        \"creativeIdDimensionValue\": {},\n        \"endTime\": \"\",\n        \"richMediaExitOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"enabled\": false,\n            \"exitId\": \"\"\n          }\n        ],\n        \"sequence\": 0,\n        \"sslCompliant\": false,\n        \"startTime\": \"\",\n        \"weight\": 0\n      }\n    ],\n    \"creativeOptimizationConfigurationId\": \"\",\n    \"type\": \"\",\n    \"weightCalculationStrategy\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"deliverySchedule\": {\n    \"frequencyCap\": {\n      \"duration\": \"\",\n      \"impressions\": \"\"\n    },\n    \"hardCutoff\": false,\n    \"impressionRatio\": \"\",\n    \"priority\": \"\"\n  },\n  \"dynamicClickTracker\": false,\n  \"endTime\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementAssignments\": [\n    {\n      \"active\": false,\n      \"placementId\": \"\",\n      \"placementIdDimensionValue\": {},\n      \"sslRequired\": false\n    }\n  ],\n  \"remarketingListExpression\": {\n    \"expression\": \"\"\n  },\n  \"size\": {\n    \"height\": 0,\n    \"iab\": false,\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"width\": 0\n  },\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"startTime\": \"\",\n  \"subaccountId\": \"\",\n  \"targetingTemplateId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"type\": \"\"\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}}/userprofiles/:profileId/ads");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"audienceSegmentId\": \"\",\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"clickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"defaultLandingPage\": false,\n    \"landingPageId\": \"\"\n  },\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comments\": \"\",\n  \"compatibility\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupAssignments\": [\n    {\n      \"creativeGroupId\": \"\",\n      \"creativeGroupNumber\": \"\"\n    }\n  ],\n  \"creativeRotation\": {\n    \"creativeAssignments\": [\n      {\n        \"active\": false,\n        \"applyEventTags\": false,\n        \"clickThroughUrl\": {},\n        \"companionCreativeOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"creativeId\": \"\"\n          }\n        ],\n        \"creativeGroupAssignments\": [\n          {}\n        ],\n        \"creativeId\": \"\",\n        \"creativeIdDimensionValue\": {},\n        \"endTime\": \"\",\n        \"richMediaExitOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"enabled\": false,\n            \"exitId\": \"\"\n          }\n        ],\n        \"sequence\": 0,\n        \"sslCompliant\": false,\n        \"startTime\": \"\",\n        \"weight\": 0\n      }\n    ],\n    \"creativeOptimizationConfigurationId\": \"\",\n    \"type\": \"\",\n    \"weightCalculationStrategy\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"deliverySchedule\": {\n    \"frequencyCap\": {\n      \"duration\": \"\",\n      \"impressions\": \"\"\n    },\n    \"hardCutoff\": false,\n    \"impressionRatio\": \"\",\n    \"priority\": \"\"\n  },\n  \"dynamicClickTracker\": false,\n  \"endTime\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementAssignments\": [\n    {\n      \"active\": false,\n      \"placementId\": \"\",\n      \"placementIdDimensionValue\": {},\n      \"sslRequired\": false\n    }\n  ],\n  \"remarketingListExpression\": {\n    \"expression\": \"\"\n  },\n  \"size\": {\n    \"height\": 0,\n    \"iab\": false,\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"width\": 0\n  },\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"startTime\": \"\",\n  \"subaccountId\": \"\",\n  \"targetingTemplateId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"type\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/ads"

	payload := strings.NewReader("{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"audienceSegmentId\": \"\",\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"clickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"defaultLandingPage\": false,\n    \"landingPageId\": \"\"\n  },\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comments\": \"\",\n  \"compatibility\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupAssignments\": [\n    {\n      \"creativeGroupId\": \"\",\n      \"creativeGroupNumber\": \"\"\n    }\n  ],\n  \"creativeRotation\": {\n    \"creativeAssignments\": [\n      {\n        \"active\": false,\n        \"applyEventTags\": false,\n        \"clickThroughUrl\": {},\n        \"companionCreativeOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"creativeId\": \"\"\n          }\n        ],\n        \"creativeGroupAssignments\": [\n          {}\n        ],\n        \"creativeId\": \"\",\n        \"creativeIdDimensionValue\": {},\n        \"endTime\": \"\",\n        \"richMediaExitOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"enabled\": false,\n            \"exitId\": \"\"\n          }\n        ],\n        \"sequence\": 0,\n        \"sslCompliant\": false,\n        \"startTime\": \"\",\n        \"weight\": 0\n      }\n    ],\n    \"creativeOptimizationConfigurationId\": \"\",\n    \"type\": \"\",\n    \"weightCalculationStrategy\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"deliverySchedule\": {\n    \"frequencyCap\": {\n      \"duration\": \"\",\n      \"impressions\": \"\"\n    },\n    \"hardCutoff\": false,\n    \"impressionRatio\": \"\",\n    \"priority\": \"\"\n  },\n  \"dynamicClickTracker\": false,\n  \"endTime\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementAssignments\": [\n    {\n      \"active\": false,\n      \"placementId\": \"\",\n      \"placementIdDimensionValue\": {},\n      \"sslRequired\": false\n    }\n  ],\n  \"remarketingListExpression\": {\n    \"expression\": \"\"\n  },\n  \"size\": {\n    \"height\": 0,\n    \"iab\": false,\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"width\": 0\n  },\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"startTime\": \"\",\n  \"subaccountId\": \"\",\n  \"targetingTemplateId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"type\": \"\"\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/userprofiles/:profileId/ads HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 4857

{
  "accountId": "",
  "active": false,
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "archived": false,
  "audienceSegmentId": "",
  "campaignId": "",
  "campaignIdDimensionValue": {},
  "clickThroughUrl": {
    "computedClickThroughUrl": "",
    "customClickThroughUrl": "",
    "defaultLandingPage": false,
    "landingPageId": ""
  },
  "clickThroughUrlSuffixProperties": {
    "clickThroughUrlSuffix": "",
    "overrideInheritedSuffix": false
  },
  "comments": "",
  "compatibility": "",
  "createInfo": {
    "time": ""
  },
  "creativeGroupAssignments": [
    {
      "creativeGroupId": "",
      "creativeGroupNumber": ""
    }
  ],
  "creativeRotation": {
    "creativeAssignments": [
      {
        "active": false,
        "applyEventTags": false,
        "clickThroughUrl": {},
        "companionCreativeOverrides": [
          {
            "clickThroughUrl": {},
            "creativeId": ""
          }
        ],
        "creativeGroupAssignments": [
          {}
        ],
        "creativeId": "",
        "creativeIdDimensionValue": {},
        "endTime": "",
        "richMediaExitOverrides": [
          {
            "clickThroughUrl": {},
            "enabled": false,
            "exitId": ""
          }
        ],
        "sequence": 0,
        "sslCompliant": false,
        "startTime": "",
        "weight": 0
      }
    ],
    "creativeOptimizationConfigurationId": "",
    "type": "",
    "weightCalculationStrategy": ""
  },
  "dayPartTargeting": {
    "daysOfWeek": [],
    "hoursOfDay": [],
    "userLocalTime": false
  },
  "defaultClickThroughEventTagProperties": {
    "defaultClickThroughEventTagId": "",
    "overrideInheritedEventTag": false
  },
  "deliverySchedule": {
    "frequencyCap": {
      "duration": "",
      "impressions": ""
    },
    "hardCutoff": false,
    "impressionRatio": "",
    "priority": ""
  },
  "dynamicClickTracker": false,
  "endTime": "",
  "eventTagOverrides": [
    {
      "enabled": false,
      "id": ""
    }
  ],
  "geoTargeting": {
    "cities": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "metroCode": "",
        "metroDmaId": "",
        "name": "",
        "regionCode": "",
        "regionDartId": ""
      }
    ],
    "countries": [
      {
        "countryCode": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "sslEnabled": false
      }
    ],
    "excludeCountries": false,
    "metros": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "dmaId": "",
        "kind": "",
        "metroCode": "",
        "name": ""
      }
    ],
    "postalCodes": [
      {
        "code": "",
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": ""
      }
    ],
    "regions": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "regionCode": ""
      }
    ]
  },
  "id": "",
  "idDimensionValue": {},
  "keyValueTargetingExpression": {
    "expression": ""
  },
  "kind": "",
  "languageTargeting": {
    "languages": [
      {
        "id": "",
        "kind": "",
        "languageCode": "",
        "name": ""
      }
    ]
  },
  "lastModifiedInfo": {},
  "name": "",
  "placementAssignments": [
    {
      "active": false,
      "placementId": "",
      "placementIdDimensionValue": {},
      "sslRequired": false
    }
  ],
  "remarketingListExpression": {
    "expression": ""
  },
  "size": {
    "height": 0,
    "iab": false,
    "id": "",
    "kind": "",
    "width": 0
  },
  "sslCompliant": false,
  "sslRequired": false,
  "startTime": "",
  "subaccountId": "",
  "targetingTemplateId": "",
  "technologyTargeting": {
    "browsers": [
      {
        "browserVersionId": "",
        "dartId": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": ""
      }
    ],
    "connectionTypes": [
      {
        "id": "",
        "kind": "",
        "name": ""
      }
    ],
    "mobileCarriers": [
      {
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": "",
        "name": ""
      }
    ],
    "operatingSystemVersions": [
      {
        "id": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": "",
        "operatingSystem": {
          "dartId": "",
          "desktop": false,
          "kind": "",
          "mobile": false,
          "name": ""
        }
      }
    ],
    "operatingSystems": [
      {}
    ],
    "platformTypes": [
      {
        "id": "",
        "kind": "",
        "name": ""
      }
    ]
  },
  "type": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/userprofiles/:profileId/ads")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"audienceSegmentId\": \"\",\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"clickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"defaultLandingPage\": false,\n    \"landingPageId\": \"\"\n  },\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comments\": \"\",\n  \"compatibility\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupAssignments\": [\n    {\n      \"creativeGroupId\": \"\",\n      \"creativeGroupNumber\": \"\"\n    }\n  ],\n  \"creativeRotation\": {\n    \"creativeAssignments\": [\n      {\n        \"active\": false,\n        \"applyEventTags\": false,\n        \"clickThroughUrl\": {},\n        \"companionCreativeOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"creativeId\": \"\"\n          }\n        ],\n        \"creativeGroupAssignments\": [\n          {}\n        ],\n        \"creativeId\": \"\",\n        \"creativeIdDimensionValue\": {},\n        \"endTime\": \"\",\n        \"richMediaExitOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"enabled\": false,\n            \"exitId\": \"\"\n          }\n        ],\n        \"sequence\": 0,\n        \"sslCompliant\": false,\n        \"startTime\": \"\",\n        \"weight\": 0\n      }\n    ],\n    \"creativeOptimizationConfigurationId\": \"\",\n    \"type\": \"\",\n    \"weightCalculationStrategy\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"deliverySchedule\": {\n    \"frequencyCap\": {\n      \"duration\": \"\",\n      \"impressions\": \"\"\n    },\n    \"hardCutoff\": false,\n    \"impressionRatio\": \"\",\n    \"priority\": \"\"\n  },\n  \"dynamicClickTracker\": false,\n  \"endTime\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementAssignments\": [\n    {\n      \"active\": false,\n      \"placementId\": \"\",\n      \"placementIdDimensionValue\": {},\n      \"sslRequired\": false\n    }\n  ],\n  \"remarketingListExpression\": {\n    \"expression\": \"\"\n  },\n  \"size\": {\n    \"height\": 0,\n    \"iab\": false,\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"width\": 0\n  },\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"startTime\": \"\",\n  \"subaccountId\": \"\",\n  \"targetingTemplateId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"type\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/ads"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"audienceSegmentId\": \"\",\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"clickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"defaultLandingPage\": false,\n    \"landingPageId\": \"\"\n  },\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comments\": \"\",\n  \"compatibility\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupAssignments\": [\n    {\n      \"creativeGroupId\": \"\",\n      \"creativeGroupNumber\": \"\"\n    }\n  ],\n  \"creativeRotation\": {\n    \"creativeAssignments\": [\n      {\n        \"active\": false,\n        \"applyEventTags\": false,\n        \"clickThroughUrl\": {},\n        \"companionCreativeOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"creativeId\": \"\"\n          }\n        ],\n        \"creativeGroupAssignments\": [\n          {}\n        ],\n        \"creativeId\": \"\",\n        \"creativeIdDimensionValue\": {},\n        \"endTime\": \"\",\n        \"richMediaExitOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"enabled\": false,\n            \"exitId\": \"\"\n          }\n        ],\n        \"sequence\": 0,\n        \"sslCompliant\": false,\n        \"startTime\": \"\",\n        \"weight\": 0\n      }\n    ],\n    \"creativeOptimizationConfigurationId\": \"\",\n    \"type\": \"\",\n    \"weightCalculationStrategy\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"deliverySchedule\": {\n    \"frequencyCap\": {\n      \"duration\": \"\",\n      \"impressions\": \"\"\n    },\n    \"hardCutoff\": false,\n    \"impressionRatio\": \"\",\n    \"priority\": \"\"\n  },\n  \"dynamicClickTracker\": false,\n  \"endTime\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementAssignments\": [\n    {\n      \"active\": false,\n      \"placementId\": \"\",\n      \"placementIdDimensionValue\": {},\n      \"sslRequired\": false\n    }\n  ],\n  \"remarketingListExpression\": {\n    \"expression\": \"\"\n  },\n  \"size\": {\n    \"height\": 0,\n    \"iab\": false,\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"width\": 0\n  },\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"startTime\": \"\",\n  \"subaccountId\": \"\",\n  \"targetingTemplateId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"type\": \"\"\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  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"audienceSegmentId\": \"\",\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"clickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"defaultLandingPage\": false,\n    \"landingPageId\": \"\"\n  },\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comments\": \"\",\n  \"compatibility\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupAssignments\": [\n    {\n      \"creativeGroupId\": \"\",\n      \"creativeGroupNumber\": \"\"\n    }\n  ],\n  \"creativeRotation\": {\n    \"creativeAssignments\": [\n      {\n        \"active\": false,\n        \"applyEventTags\": false,\n        \"clickThroughUrl\": {},\n        \"companionCreativeOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"creativeId\": \"\"\n          }\n        ],\n        \"creativeGroupAssignments\": [\n          {}\n        ],\n        \"creativeId\": \"\",\n        \"creativeIdDimensionValue\": {},\n        \"endTime\": \"\",\n        \"richMediaExitOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"enabled\": false,\n            \"exitId\": \"\"\n          }\n        ],\n        \"sequence\": 0,\n        \"sslCompliant\": false,\n        \"startTime\": \"\",\n        \"weight\": 0\n      }\n    ],\n    \"creativeOptimizationConfigurationId\": \"\",\n    \"type\": \"\",\n    \"weightCalculationStrategy\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"deliverySchedule\": {\n    \"frequencyCap\": {\n      \"duration\": \"\",\n      \"impressions\": \"\"\n    },\n    \"hardCutoff\": false,\n    \"impressionRatio\": \"\",\n    \"priority\": \"\"\n  },\n  \"dynamicClickTracker\": false,\n  \"endTime\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementAssignments\": [\n    {\n      \"active\": false,\n      \"placementId\": \"\",\n      \"placementIdDimensionValue\": {},\n      \"sslRequired\": false\n    }\n  ],\n  \"remarketingListExpression\": {\n    \"expression\": \"\"\n  },\n  \"size\": {\n    \"height\": 0,\n    \"iab\": false,\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"width\": 0\n  },\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"startTime\": \"\",\n  \"subaccountId\": \"\",\n  \"targetingTemplateId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"type\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/ads")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/userprofiles/:profileId/ads")
  .header("content-type", "application/json")
  .body("{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"audienceSegmentId\": \"\",\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"clickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"defaultLandingPage\": false,\n    \"landingPageId\": \"\"\n  },\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comments\": \"\",\n  \"compatibility\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupAssignments\": [\n    {\n      \"creativeGroupId\": \"\",\n      \"creativeGroupNumber\": \"\"\n    }\n  ],\n  \"creativeRotation\": {\n    \"creativeAssignments\": [\n      {\n        \"active\": false,\n        \"applyEventTags\": false,\n        \"clickThroughUrl\": {},\n        \"companionCreativeOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"creativeId\": \"\"\n          }\n        ],\n        \"creativeGroupAssignments\": [\n          {}\n        ],\n        \"creativeId\": \"\",\n        \"creativeIdDimensionValue\": {},\n        \"endTime\": \"\",\n        \"richMediaExitOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"enabled\": false,\n            \"exitId\": \"\"\n          }\n        ],\n        \"sequence\": 0,\n        \"sslCompliant\": false,\n        \"startTime\": \"\",\n        \"weight\": 0\n      }\n    ],\n    \"creativeOptimizationConfigurationId\": \"\",\n    \"type\": \"\",\n    \"weightCalculationStrategy\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"deliverySchedule\": {\n    \"frequencyCap\": {\n      \"duration\": \"\",\n      \"impressions\": \"\"\n    },\n    \"hardCutoff\": false,\n    \"impressionRatio\": \"\",\n    \"priority\": \"\"\n  },\n  \"dynamicClickTracker\": false,\n  \"endTime\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementAssignments\": [\n    {\n      \"active\": false,\n      \"placementId\": \"\",\n      \"placementIdDimensionValue\": {},\n      \"sslRequired\": false\n    }\n  ],\n  \"remarketingListExpression\": {\n    \"expression\": \"\"\n  },\n  \"size\": {\n    \"height\": 0,\n    \"iab\": false,\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"width\": 0\n  },\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"startTime\": \"\",\n  \"subaccountId\": \"\",\n  \"targetingTemplateId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"type\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  accountId: '',
  active: false,
  advertiserId: '',
  advertiserIdDimensionValue: {
    dimensionName: '',
    etag: '',
    id: '',
    kind: '',
    matchType: '',
    value: ''
  },
  archived: false,
  audienceSegmentId: '',
  campaignId: '',
  campaignIdDimensionValue: {},
  clickThroughUrl: {
    computedClickThroughUrl: '',
    customClickThroughUrl: '',
    defaultLandingPage: false,
    landingPageId: ''
  },
  clickThroughUrlSuffixProperties: {
    clickThroughUrlSuffix: '',
    overrideInheritedSuffix: false
  },
  comments: '',
  compatibility: '',
  createInfo: {
    time: ''
  },
  creativeGroupAssignments: [
    {
      creativeGroupId: '',
      creativeGroupNumber: ''
    }
  ],
  creativeRotation: {
    creativeAssignments: [
      {
        active: false,
        applyEventTags: false,
        clickThroughUrl: {},
        companionCreativeOverrides: [
          {
            clickThroughUrl: {},
            creativeId: ''
          }
        ],
        creativeGroupAssignments: [
          {}
        ],
        creativeId: '',
        creativeIdDimensionValue: {},
        endTime: '',
        richMediaExitOverrides: [
          {
            clickThroughUrl: {},
            enabled: false,
            exitId: ''
          }
        ],
        sequence: 0,
        sslCompliant: false,
        startTime: '',
        weight: 0
      }
    ],
    creativeOptimizationConfigurationId: '',
    type: '',
    weightCalculationStrategy: ''
  },
  dayPartTargeting: {
    daysOfWeek: [],
    hoursOfDay: [],
    userLocalTime: false
  },
  defaultClickThroughEventTagProperties: {
    defaultClickThroughEventTagId: '',
    overrideInheritedEventTag: false
  },
  deliverySchedule: {
    frequencyCap: {
      duration: '',
      impressions: ''
    },
    hardCutoff: false,
    impressionRatio: '',
    priority: ''
  },
  dynamicClickTracker: false,
  endTime: '',
  eventTagOverrides: [
    {
      enabled: false,
      id: ''
    }
  ],
  geoTargeting: {
    cities: [
      {
        countryCode: '',
        countryDartId: '',
        dartId: '',
        kind: '',
        metroCode: '',
        metroDmaId: '',
        name: '',
        regionCode: '',
        regionDartId: ''
      }
    ],
    countries: [
      {
        countryCode: '',
        dartId: '',
        kind: '',
        name: '',
        sslEnabled: false
      }
    ],
    excludeCountries: false,
    metros: [
      {
        countryCode: '',
        countryDartId: '',
        dartId: '',
        dmaId: '',
        kind: '',
        metroCode: '',
        name: ''
      }
    ],
    postalCodes: [
      {
        code: '',
        countryCode: '',
        countryDartId: '',
        id: '',
        kind: ''
      }
    ],
    regions: [
      {
        countryCode: '',
        countryDartId: '',
        dartId: '',
        kind: '',
        name: '',
        regionCode: ''
      }
    ]
  },
  id: '',
  idDimensionValue: {},
  keyValueTargetingExpression: {
    expression: ''
  },
  kind: '',
  languageTargeting: {
    languages: [
      {
        id: '',
        kind: '',
        languageCode: '',
        name: ''
      }
    ]
  },
  lastModifiedInfo: {},
  name: '',
  placementAssignments: [
    {
      active: false,
      placementId: '',
      placementIdDimensionValue: {},
      sslRequired: false
    }
  ],
  remarketingListExpression: {
    expression: ''
  },
  size: {
    height: 0,
    iab: false,
    id: '',
    kind: '',
    width: 0
  },
  sslCompliant: false,
  sslRequired: false,
  startTime: '',
  subaccountId: '',
  targetingTemplateId: '',
  technologyTargeting: {
    browsers: [
      {
        browserVersionId: '',
        dartId: '',
        kind: '',
        majorVersion: '',
        minorVersion: '',
        name: ''
      }
    ],
    connectionTypes: [
      {
        id: '',
        kind: '',
        name: ''
      }
    ],
    mobileCarriers: [
      {
        countryCode: '',
        countryDartId: '',
        id: '',
        kind: '',
        name: ''
      }
    ],
    operatingSystemVersions: [
      {
        id: '',
        kind: '',
        majorVersion: '',
        minorVersion: '',
        name: '',
        operatingSystem: {
          dartId: '',
          desktop: false,
          kind: '',
          mobile: false,
          name: ''
        }
      }
    ],
    operatingSystems: [
      {}
    ],
    platformTypes: [
      {
        id: '',
        kind: '',
        name: ''
      }
    ]
  },
  type: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/userprofiles/:profileId/ads');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/userprofiles/:profileId/ads',
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    active: false,
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    archived: false,
    audienceSegmentId: '',
    campaignId: '',
    campaignIdDimensionValue: {},
    clickThroughUrl: {
      computedClickThroughUrl: '',
      customClickThroughUrl: '',
      defaultLandingPage: false,
      landingPageId: ''
    },
    clickThroughUrlSuffixProperties: {clickThroughUrlSuffix: '', overrideInheritedSuffix: false},
    comments: '',
    compatibility: '',
    createInfo: {time: ''},
    creativeGroupAssignments: [{creativeGroupId: '', creativeGroupNumber: ''}],
    creativeRotation: {
      creativeAssignments: [
        {
          active: false,
          applyEventTags: false,
          clickThroughUrl: {},
          companionCreativeOverrides: [{clickThroughUrl: {}, creativeId: ''}],
          creativeGroupAssignments: [{}],
          creativeId: '',
          creativeIdDimensionValue: {},
          endTime: '',
          richMediaExitOverrides: [{clickThroughUrl: {}, enabled: false, exitId: ''}],
          sequence: 0,
          sslCompliant: false,
          startTime: '',
          weight: 0
        }
      ],
      creativeOptimizationConfigurationId: '',
      type: '',
      weightCalculationStrategy: ''
    },
    dayPartTargeting: {daysOfWeek: [], hoursOfDay: [], userLocalTime: false},
    defaultClickThroughEventTagProperties: {defaultClickThroughEventTagId: '', overrideInheritedEventTag: false},
    deliverySchedule: {
      frequencyCap: {duration: '', impressions: ''},
      hardCutoff: false,
      impressionRatio: '',
      priority: ''
    },
    dynamicClickTracker: false,
    endTime: '',
    eventTagOverrides: [{enabled: false, id: ''}],
    geoTargeting: {
      cities: [
        {
          countryCode: '',
          countryDartId: '',
          dartId: '',
          kind: '',
          metroCode: '',
          metroDmaId: '',
          name: '',
          regionCode: '',
          regionDartId: ''
        }
      ],
      countries: [{countryCode: '', dartId: '', kind: '', name: '', sslEnabled: false}],
      excludeCountries: false,
      metros: [
        {
          countryCode: '',
          countryDartId: '',
          dartId: '',
          dmaId: '',
          kind: '',
          metroCode: '',
          name: ''
        }
      ],
      postalCodes: [{code: '', countryCode: '', countryDartId: '', id: '', kind: ''}],
      regions: [
        {
          countryCode: '',
          countryDartId: '',
          dartId: '',
          kind: '',
          name: '',
          regionCode: ''
        }
      ]
    },
    id: '',
    idDimensionValue: {},
    keyValueTargetingExpression: {expression: ''},
    kind: '',
    languageTargeting: {languages: [{id: '', kind: '', languageCode: '', name: ''}]},
    lastModifiedInfo: {},
    name: '',
    placementAssignments: [
      {
        active: false,
        placementId: '',
        placementIdDimensionValue: {},
        sslRequired: false
      }
    ],
    remarketingListExpression: {expression: ''},
    size: {height: 0, iab: false, id: '', kind: '', width: 0},
    sslCompliant: false,
    sslRequired: false,
    startTime: '',
    subaccountId: '',
    targetingTemplateId: '',
    technologyTargeting: {
      browsers: [
        {
          browserVersionId: '',
          dartId: '',
          kind: '',
          majorVersion: '',
          minorVersion: '',
          name: ''
        }
      ],
      connectionTypes: [{id: '', kind: '', name: ''}],
      mobileCarriers: [{countryCode: '', countryDartId: '', id: '', kind: '', name: ''}],
      operatingSystemVersions: [
        {
          id: '',
          kind: '',
          majorVersion: '',
          minorVersion: '',
          name: '',
          operatingSystem: {dartId: '', desktop: false, kind: '', mobile: false, name: ''}
        }
      ],
      operatingSystems: [{}],
      platformTypes: [{id: '', kind: '', name: ''}]
    },
    type: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/ads';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","active":false,"advertiserId":"","advertiserIdDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"archived":false,"audienceSegmentId":"","campaignId":"","campaignIdDimensionValue":{},"clickThroughUrl":{"computedClickThroughUrl":"","customClickThroughUrl":"","defaultLandingPage":false,"landingPageId":""},"clickThroughUrlSuffixProperties":{"clickThroughUrlSuffix":"","overrideInheritedSuffix":false},"comments":"","compatibility":"","createInfo":{"time":""},"creativeGroupAssignments":[{"creativeGroupId":"","creativeGroupNumber":""}],"creativeRotation":{"creativeAssignments":[{"active":false,"applyEventTags":false,"clickThroughUrl":{},"companionCreativeOverrides":[{"clickThroughUrl":{},"creativeId":""}],"creativeGroupAssignments":[{}],"creativeId":"","creativeIdDimensionValue":{},"endTime":"","richMediaExitOverrides":[{"clickThroughUrl":{},"enabled":false,"exitId":""}],"sequence":0,"sslCompliant":false,"startTime":"","weight":0}],"creativeOptimizationConfigurationId":"","type":"","weightCalculationStrategy":""},"dayPartTargeting":{"daysOfWeek":[],"hoursOfDay":[],"userLocalTime":false},"defaultClickThroughEventTagProperties":{"defaultClickThroughEventTagId":"","overrideInheritedEventTag":false},"deliverySchedule":{"frequencyCap":{"duration":"","impressions":""},"hardCutoff":false,"impressionRatio":"","priority":""},"dynamicClickTracker":false,"endTime":"","eventTagOverrides":[{"enabled":false,"id":""}],"geoTargeting":{"cities":[{"countryCode":"","countryDartId":"","dartId":"","kind":"","metroCode":"","metroDmaId":"","name":"","regionCode":"","regionDartId":""}],"countries":[{"countryCode":"","dartId":"","kind":"","name":"","sslEnabled":false}],"excludeCountries":false,"metros":[{"countryCode":"","countryDartId":"","dartId":"","dmaId":"","kind":"","metroCode":"","name":""}],"postalCodes":[{"code":"","countryCode":"","countryDartId":"","id":"","kind":""}],"regions":[{"countryCode":"","countryDartId":"","dartId":"","kind":"","name":"","regionCode":""}]},"id":"","idDimensionValue":{},"keyValueTargetingExpression":{"expression":""},"kind":"","languageTargeting":{"languages":[{"id":"","kind":"","languageCode":"","name":""}]},"lastModifiedInfo":{},"name":"","placementAssignments":[{"active":false,"placementId":"","placementIdDimensionValue":{},"sslRequired":false}],"remarketingListExpression":{"expression":""},"size":{"height":0,"iab":false,"id":"","kind":"","width":0},"sslCompliant":false,"sslRequired":false,"startTime":"","subaccountId":"","targetingTemplateId":"","technologyTargeting":{"browsers":[{"browserVersionId":"","dartId":"","kind":"","majorVersion":"","minorVersion":"","name":""}],"connectionTypes":[{"id":"","kind":"","name":""}],"mobileCarriers":[{"countryCode":"","countryDartId":"","id":"","kind":"","name":""}],"operatingSystemVersions":[{"id":"","kind":"","majorVersion":"","minorVersion":"","name":"","operatingSystem":{"dartId":"","desktop":false,"kind":"","mobile":false,"name":""}}],"operatingSystems":[{}],"platformTypes":[{"id":"","kind":"","name":""}]},"type":""}'
};

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}}/userprofiles/:profileId/ads',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "accountId": "",\n  "active": false,\n  "advertiserId": "",\n  "advertiserIdDimensionValue": {\n    "dimensionName": "",\n    "etag": "",\n    "id": "",\n    "kind": "",\n    "matchType": "",\n    "value": ""\n  },\n  "archived": false,\n  "audienceSegmentId": "",\n  "campaignId": "",\n  "campaignIdDimensionValue": {},\n  "clickThroughUrl": {\n    "computedClickThroughUrl": "",\n    "customClickThroughUrl": "",\n    "defaultLandingPage": false,\n    "landingPageId": ""\n  },\n  "clickThroughUrlSuffixProperties": {\n    "clickThroughUrlSuffix": "",\n    "overrideInheritedSuffix": false\n  },\n  "comments": "",\n  "compatibility": "",\n  "createInfo": {\n    "time": ""\n  },\n  "creativeGroupAssignments": [\n    {\n      "creativeGroupId": "",\n      "creativeGroupNumber": ""\n    }\n  ],\n  "creativeRotation": {\n    "creativeAssignments": [\n      {\n        "active": false,\n        "applyEventTags": false,\n        "clickThroughUrl": {},\n        "companionCreativeOverrides": [\n          {\n            "clickThroughUrl": {},\n            "creativeId": ""\n          }\n        ],\n        "creativeGroupAssignments": [\n          {}\n        ],\n        "creativeId": "",\n        "creativeIdDimensionValue": {},\n        "endTime": "",\n        "richMediaExitOverrides": [\n          {\n            "clickThroughUrl": {},\n            "enabled": false,\n            "exitId": ""\n          }\n        ],\n        "sequence": 0,\n        "sslCompliant": false,\n        "startTime": "",\n        "weight": 0\n      }\n    ],\n    "creativeOptimizationConfigurationId": "",\n    "type": "",\n    "weightCalculationStrategy": ""\n  },\n  "dayPartTargeting": {\n    "daysOfWeek": [],\n    "hoursOfDay": [],\n    "userLocalTime": false\n  },\n  "defaultClickThroughEventTagProperties": {\n    "defaultClickThroughEventTagId": "",\n    "overrideInheritedEventTag": false\n  },\n  "deliverySchedule": {\n    "frequencyCap": {\n      "duration": "",\n      "impressions": ""\n    },\n    "hardCutoff": false,\n    "impressionRatio": "",\n    "priority": ""\n  },\n  "dynamicClickTracker": false,\n  "endTime": "",\n  "eventTagOverrides": [\n    {\n      "enabled": false,\n      "id": ""\n    }\n  ],\n  "geoTargeting": {\n    "cities": [\n      {\n        "countryCode": "",\n        "countryDartId": "",\n        "dartId": "",\n        "kind": "",\n        "metroCode": "",\n        "metroDmaId": "",\n        "name": "",\n        "regionCode": "",\n        "regionDartId": ""\n      }\n    ],\n    "countries": [\n      {\n        "countryCode": "",\n        "dartId": "",\n        "kind": "",\n        "name": "",\n        "sslEnabled": false\n      }\n    ],\n    "excludeCountries": false,\n    "metros": [\n      {\n        "countryCode": "",\n        "countryDartId": "",\n        "dartId": "",\n        "dmaId": "",\n        "kind": "",\n        "metroCode": "",\n        "name": ""\n      }\n    ],\n    "postalCodes": [\n      {\n        "code": "",\n        "countryCode": "",\n        "countryDartId": "",\n        "id": "",\n        "kind": ""\n      }\n    ],\n    "regions": [\n      {\n        "countryCode": "",\n        "countryDartId": "",\n        "dartId": "",\n        "kind": "",\n        "name": "",\n        "regionCode": ""\n      }\n    ]\n  },\n  "id": "",\n  "idDimensionValue": {},\n  "keyValueTargetingExpression": {\n    "expression": ""\n  },\n  "kind": "",\n  "languageTargeting": {\n    "languages": [\n      {\n        "id": "",\n        "kind": "",\n        "languageCode": "",\n        "name": ""\n      }\n    ]\n  },\n  "lastModifiedInfo": {},\n  "name": "",\n  "placementAssignments": [\n    {\n      "active": false,\n      "placementId": "",\n      "placementIdDimensionValue": {},\n      "sslRequired": false\n    }\n  ],\n  "remarketingListExpression": {\n    "expression": ""\n  },\n  "size": {\n    "height": 0,\n    "iab": false,\n    "id": "",\n    "kind": "",\n    "width": 0\n  },\n  "sslCompliant": false,\n  "sslRequired": false,\n  "startTime": "",\n  "subaccountId": "",\n  "targetingTemplateId": "",\n  "technologyTargeting": {\n    "browsers": [\n      {\n        "browserVersionId": "",\n        "dartId": "",\n        "kind": "",\n        "majorVersion": "",\n        "minorVersion": "",\n        "name": ""\n      }\n    ],\n    "connectionTypes": [\n      {\n        "id": "",\n        "kind": "",\n        "name": ""\n      }\n    ],\n    "mobileCarriers": [\n      {\n        "countryCode": "",\n        "countryDartId": "",\n        "id": "",\n        "kind": "",\n        "name": ""\n      }\n    ],\n    "operatingSystemVersions": [\n      {\n        "id": "",\n        "kind": "",\n        "majorVersion": "",\n        "minorVersion": "",\n        "name": "",\n        "operatingSystem": {\n          "dartId": "",\n          "desktop": false,\n          "kind": "",\n          "mobile": false,\n          "name": ""\n        }\n      }\n    ],\n    "operatingSystems": [\n      {}\n    ],\n    "platformTypes": [\n      {\n        "id": "",\n        "kind": "",\n        "name": ""\n      }\n    ]\n  },\n  "type": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"audienceSegmentId\": \"\",\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"clickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"defaultLandingPage\": false,\n    \"landingPageId\": \"\"\n  },\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comments\": \"\",\n  \"compatibility\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupAssignments\": [\n    {\n      \"creativeGroupId\": \"\",\n      \"creativeGroupNumber\": \"\"\n    }\n  ],\n  \"creativeRotation\": {\n    \"creativeAssignments\": [\n      {\n        \"active\": false,\n        \"applyEventTags\": false,\n        \"clickThroughUrl\": {},\n        \"companionCreativeOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"creativeId\": \"\"\n          }\n        ],\n        \"creativeGroupAssignments\": [\n          {}\n        ],\n        \"creativeId\": \"\",\n        \"creativeIdDimensionValue\": {},\n        \"endTime\": \"\",\n        \"richMediaExitOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"enabled\": false,\n            \"exitId\": \"\"\n          }\n        ],\n        \"sequence\": 0,\n        \"sslCompliant\": false,\n        \"startTime\": \"\",\n        \"weight\": 0\n      }\n    ],\n    \"creativeOptimizationConfigurationId\": \"\",\n    \"type\": \"\",\n    \"weightCalculationStrategy\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"deliverySchedule\": {\n    \"frequencyCap\": {\n      \"duration\": \"\",\n      \"impressions\": \"\"\n    },\n    \"hardCutoff\": false,\n    \"impressionRatio\": \"\",\n    \"priority\": \"\"\n  },\n  \"dynamicClickTracker\": false,\n  \"endTime\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementAssignments\": [\n    {\n      \"active\": false,\n      \"placementId\": \"\",\n      \"placementIdDimensionValue\": {},\n      \"sslRequired\": false\n    }\n  ],\n  \"remarketingListExpression\": {\n    \"expression\": \"\"\n  },\n  \"size\": {\n    \"height\": 0,\n    \"iab\": false,\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"width\": 0\n  },\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"startTime\": \"\",\n  \"subaccountId\": \"\",\n  \"targetingTemplateId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"type\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/ads")
  .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/userprofiles/:profileId/ads',
  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({
  accountId: '',
  active: false,
  advertiserId: '',
  advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
  archived: false,
  audienceSegmentId: '',
  campaignId: '',
  campaignIdDimensionValue: {},
  clickThroughUrl: {
    computedClickThroughUrl: '',
    customClickThroughUrl: '',
    defaultLandingPage: false,
    landingPageId: ''
  },
  clickThroughUrlSuffixProperties: {clickThroughUrlSuffix: '', overrideInheritedSuffix: false},
  comments: '',
  compatibility: '',
  createInfo: {time: ''},
  creativeGroupAssignments: [{creativeGroupId: '', creativeGroupNumber: ''}],
  creativeRotation: {
    creativeAssignments: [
      {
        active: false,
        applyEventTags: false,
        clickThroughUrl: {},
        companionCreativeOverrides: [{clickThroughUrl: {}, creativeId: ''}],
        creativeGroupAssignments: [{}],
        creativeId: '',
        creativeIdDimensionValue: {},
        endTime: '',
        richMediaExitOverrides: [{clickThroughUrl: {}, enabled: false, exitId: ''}],
        sequence: 0,
        sslCompliant: false,
        startTime: '',
        weight: 0
      }
    ],
    creativeOptimizationConfigurationId: '',
    type: '',
    weightCalculationStrategy: ''
  },
  dayPartTargeting: {daysOfWeek: [], hoursOfDay: [], userLocalTime: false},
  defaultClickThroughEventTagProperties: {defaultClickThroughEventTagId: '', overrideInheritedEventTag: false},
  deliverySchedule: {
    frequencyCap: {duration: '', impressions: ''},
    hardCutoff: false,
    impressionRatio: '',
    priority: ''
  },
  dynamicClickTracker: false,
  endTime: '',
  eventTagOverrides: [{enabled: false, id: ''}],
  geoTargeting: {
    cities: [
      {
        countryCode: '',
        countryDartId: '',
        dartId: '',
        kind: '',
        metroCode: '',
        metroDmaId: '',
        name: '',
        regionCode: '',
        regionDartId: ''
      }
    ],
    countries: [{countryCode: '', dartId: '', kind: '', name: '', sslEnabled: false}],
    excludeCountries: false,
    metros: [
      {
        countryCode: '',
        countryDartId: '',
        dartId: '',
        dmaId: '',
        kind: '',
        metroCode: '',
        name: ''
      }
    ],
    postalCodes: [{code: '', countryCode: '', countryDartId: '', id: '', kind: ''}],
    regions: [
      {
        countryCode: '',
        countryDartId: '',
        dartId: '',
        kind: '',
        name: '',
        regionCode: ''
      }
    ]
  },
  id: '',
  idDimensionValue: {},
  keyValueTargetingExpression: {expression: ''},
  kind: '',
  languageTargeting: {languages: [{id: '', kind: '', languageCode: '', name: ''}]},
  lastModifiedInfo: {},
  name: '',
  placementAssignments: [
    {
      active: false,
      placementId: '',
      placementIdDimensionValue: {},
      sslRequired: false
    }
  ],
  remarketingListExpression: {expression: ''},
  size: {height: 0, iab: false, id: '', kind: '', width: 0},
  sslCompliant: false,
  sslRequired: false,
  startTime: '',
  subaccountId: '',
  targetingTemplateId: '',
  technologyTargeting: {
    browsers: [
      {
        browserVersionId: '',
        dartId: '',
        kind: '',
        majorVersion: '',
        minorVersion: '',
        name: ''
      }
    ],
    connectionTypes: [{id: '', kind: '', name: ''}],
    mobileCarriers: [{countryCode: '', countryDartId: '', id: '', kind: '', name: ''}],
    operatingSystemVersions: [
      {
        id: '',
        kind: '',
        majorVersion: '',
        minorVersion: '',
        name: '',
        operatingSystem: {dartId: '', desktop: false, kind: '', mobile: false, name: ''}
      }
    ],
    operatingSystems: [{}],
    platformTypes: [{id: '', kind: '', name: ''}]
  },
  type: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/userprofiles/:profileId/ads',
  headers: {'content-type': 'application/json'},
  body: {
    accountId: '',
    active: false,
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    archived: false,
    audienceSegmentId: '',
    campaignId: '',
    campaignIdDimensionValue: {},
    clickThroughUrl: {
      computedClickThroughUrl: '',
      customClickThroughUrl: '',
      defaultLandingPage: false,
      landingPageId: ''
    },
    clickThroughUrlSuffixProperties: {clickThroughUrlSuffix: '', overrideInheritedSuffix: false},
    comments: '',
    compatibility: '',
    createInfo: {time: ''},
    creativeGroupAssignments: [{creativeGroupId: '', creativeGroupNumber: ''}],
    creativeRotation: {
      creativeAssignments: [
        {
          active: false,
          applyEventTags: false,
          clickThroughUrl: {},
          companionCreativeOverrides: [{clickThroughUrl: {}, creativeId: ''}],
          creativeGroupAssignments: [{}],
          creativeId: '',
          creativeIdDimensionValue: {},
          endTime: '',
          richMediaExitOverrides: [{clickThroughUrl: {}, enabled: false, exitId: ''}],
          sequence: 0,
          sslCompliant: false,
          startTime: '',
          weight: 0
        }
      ],
      creativeOptimizationConfigurationId: '',
      type: '',
      weightCalculationStrategy: ''
    },
    dayPartTargeting: {daysOfWeek: [], hoursOfDay: [], userLocalTime: false},
    defaultClickThroughEventTagProperties: {defaultClickThroughEventTagId: '', overrideInheritedEventTag: false},
    deliverySchedule: {
      frequencyCap: {duration: '', impressions: ''},
      hardCutoff: false,
      impressionRatio: '',
      priority: ''
    },
    dynamicClickTracker: false,
    endTime: '',
    eventTagOverrides: [{enabled: false, id: ''}],
    geoTargeting: {
      cities: [
        {
          countryCode: '',
          countryDartId: '',
          dartId: '',
          kind: '',
          metroCode: '',
          metroDmaId: '',
          name: '',
          regionCode: '',
          regionDartId: ''
        }
      ],
      countries: [{countryCode: '', dartId: '', kind: '', name: '', sslEnabled: false}],
      excludeCountries: false,
      metros: [
        {
          countryCode: '',
          countryDartId: '',
          dartId: '',
          dmaId: '',
          kind: '',
          metroCode: '',
          name: ''
        }
      ],
      postalCodes: [{code: '', countryCode: '', countryDartId: '', id: '', kind: ''}],
      regions: [
        {
          countryCode: '',
          countryDartId: '',
          dartId: '',
          kind: '',
          name: '',
          regionCode: ''
        }
      ]
    },
    id: '',
    idDimensionValue: {},
    keyValueTargetingExpression: {expression: ''},
    kind: '',
    languageTargeting: {languages: [{id: '', kind: '', languageCode: '', name: ''}]},
    lastModifiedInfo: {},
    name: '',
    placementAssignments: [
      {
        active: false,
        placementId: '',
        placementIdDimensionValue: {},
        sslRequired: false
      }
    ],
    remarketingListExpression: {expression: ''},
    size: {height: 0, iab: false, id: '', kind: '', width: 0},
    sslCompliant: false,
    sslRequired: false,
    startTime: '',
    subaccountId: '',
    targetingTemplateId: '',
    technologyTargeting: {
      browsers: [
        {
          browserVersionId: '',
          dartId: '',
          kind: '',
          majorVersion: '',
          minorVersion: '',
          name: ''
        }
      ],
      connectionTypes: [{id: '', kind: '', name: ''}],
      mobileCarriers: [{countryCode: '', countryDartId: '', id: '', kind: '', name: ''}],
      operatingSystemVersions: [
        {
          id: '',
          kind: '',
          majorVersion: '',
          minorVersion: '',
          name: '',
          operatingSystem: {dartId: '', desktop: false, kind: '', mobile: false, name: ''}
        }
      ],
      operatingSystems: [{}],
      platformTypes: [{id: '', kind: '', name: ''}]
    },
    type: ''
  },
  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}}/userprofiles/:profileId/ads');

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

req.type('json');
req.send({
  accountId: '',
  active: false,
  advertiserId: '',
  advertiserIdDimensionValue: {
    dimensionName: '',
    etag: '',
    id: '',
    kind: '',
    matchType: '',
    value: ''
  },
  archived: false,
  audienceSegmentId: '',
  campaignId: '',
  campaignIdDimensionValue: {},
  clickThroughUrl: {
    computedClickThroughUrl: '',
    customClickThroughUrl: '',
    defaultLandingPage: false,
    landingPageId: ''
  },
  clickThroughUrlSuffixProperties: {
    clickThroughUrlSuffix: '',
    overrideInheritedSuffix: false
  },
  comments: '',
  compatibility: '',
  createInfo: {
    time: ''
  },
  creativeGroupAssignments: [
    {
      creativeGroupId: '',
      creativeGroupNumber: ''
    }
  ],
  creativeRotation: {
    creativeAssignments: [
      {
        active: false,
        applyEventTags: false,
        clickThroughUrl: {},
        companionCreativeOverrides: [
          {
            clickThroughUrl: {},
            creativeId: ''
          }
        ],
        creativeGroupAssignments: [
          {}
        ],
        creativeId: '',
        creativeIdDimensionValue: {},
        endTime: '',
        richMediaExitOverrides: [
          {
            clickThroughUrl: {},
            enabled: false,
            exitId: ''
          }
        ],
        sequence: 0,
        sslCompliant: false,
        startTime: '',
        weight: 0
      }
    ],
    creativeOptimizationConfigurationId: '',
    type: '',
    weightCalculationStrategy: ''
  },
  dayPartTargeting: {
    daysOfWeek: [],
    hoursOfDay: [],
    userLocalTime: false
  },
  defaultClickThroughEventTagProperties: {
    defaultClickThroughEventTagId: '',
    overrideInheritedEventTag: false
  },
  deliverySchedule: {
    frequencyCap: {
      duration: '',
      impressions: ''
    },
    hardCutoff: false,
    impressionRatio: '',
    priority: ''
  },
  dynamicClickTracker: false,
  endTime: '',
  eventTagOverrides: [
    {
      enabled: false,
      id: ''
    }
  ],
  geoTargeting: {
    cities: [
      {
        countryCode: '',
        countryDartId: '',
        dartId: '',
        kind: '',
        metroCode: '',
        metroDmaId: '',
        name: '',
        regionCode: '',
        regionDartId: ''
      }
    ],
    countries: [
      {
        countryCode: '',
        dartId: '',
        kind: '',
        name: '',
        sslEnabled: false
      }
    ],
    excludeCountries: false,
    metros: [
      {
        countryCode: '',
        countryDartId: '',
        dartId: '',
        dmaId: '',
        kind: '',
        metroCode: '',
        name: ''
      }
    ],
    postalCodes: [
      {
        code: '',
        countryCode: '',
        countryDartId: '',
        id: '',
        kind: ''
      }
    ],
    regions: [
      {
        countryCode: '',
        countryDartId: '',
        dartId: '',
        kind: '',
        name: '',
        regionCode: ''
      }
    ]
  },
  id: '',
  idDimensionValue: {},
  keyValueTargetingExpression: {
    expression: ''
  },
  kind: '',
  languageTargeting: {
    languages: [
      {
        id: '',
        kind: '',
        languageCode: '',
        name: ''
      }
    ]
  },
  lastModifiedInfo: {},
  name: '',
  placementAssignments: [
    {
      active: false,
      placementId: '',
      placementIdDimensionValue: {},
      sslRequired: false
    }
  ],
  remarketingListExpression: {
    expression: ''
  },
  size: {
    height: 0,
    iab: false,
    id: '',
    kind: '',
    width: 0
  },
  sslCompliant: false,
  sslRequired: false,
  startTime: '',
  subaccountId: '',
  targetingTemplateId: '',
  technologyTargeting: {
    browsers: [
      {
        browserVersionId: '',
        dartId: '',
        kind: '',
        majorVersion: '',
        minorVersion: '',
        name: ''
      }
    ],
    connectionTypes: [
      {
        id: '',
        kind: '',
        name: ''
      }
    ],
    mobileCarriers: [
      {
        countryCode: '',
        countryDartId: '',
        id: '',
        kind: '',
        name: ''
      }
    ],
    operatingSystemVersions: [
      {
        id: '',
        kind: '',
        majorVersion: '',
        minorVersion: '',
        name: '',
        operatingSystem: {
          dartId: '',
          desktop: false,
          kind: '',
          mobile: false,
          name: ''
        }
      }
    ],
    operatingSystems: [
      {}
    ],
    platformTypes: [
      {
        id: '',
        kind: '',
        name: ''
      }
    ]
  },
  type: ''
});

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}}/userprofiles/:profileId/ads',
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    active: false,
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    archived: false,
    audienceSegmentId: '',
    campaignId: '',
    campaignIdDimensionValue: {},
    clickThroughUrl: {
      computedClickThroughUrl: '',
      customClickThroughUrl: '',
      defaultLandingPage: false,
      landingPageId: ''
    },
    clickThroughUrlSuffixProperties: {clickThroughUrlSuffix: '', overrideInheritedSuffix: false},
    comments: '',
    compatibility: '',
    createInfo: {time: ''},
    creativeGroupAssignments: [{creativeGroupId: '', creativeGroupNumber: ''}],
    creativeRotation: {
      creativeAssignments: [
        {
          active: false,
          applyEventTags: false,
          clickThroughUrl: {},
          companionCreativeOverrides: [{clickThroughUrl: {}, creativeId: ''}],
          creativeGroupAssignments: [{}],
          creativeId: '',
          creativeIdDimensionValue: {},
          endTime: '',
          richMediaExitOverrides: [{clickThroughUrl: {}, enabled: false, exitId: ''}],
          sequence: 0,
          sslCompliant: false,
          startTime: '',
          weight: 0
        }
      ],
      creativeOptimizationConfigurationId: '',
      type: '',
      weightCalculationStrategy: ''
    },
    dayPartTargeting: {daysOfWeek: [], hoursOfDay: [], userLocalTime: false},
    defaultClickThroughEventTagProperties: {defaultClickThroughEventTagId: '', overrideInheritedEventTag: false},
    deliverySchedule: {
      frequencyCap: {duration: '', impressions: ''},
      hardCutoff: false,
      impressionRatio: '',
      priority: ''
    },
    dynamicClickTracker: false,
    endTime: '',
    eventTagOverrides: [{enabled: false, id: ''}],
    geoTargeting: {
      cities: [
        {
          countryCode: '',
          countryDartId: '',
          dartId: '',
          kind: '',
          metroCode: '',
          metroDmaId: '',
          name: '',
          regionCode: '',
          regionDartId: ''
        }
      ],
      countries: [{countryCode: '', dartId: '', kind: '', name: '', sslEnabled: false}],
      excludeCountries: false,
      metros: [
        {
          countryCode: '',
          countryDartId: '',
          dartId: '',
          dmaId: '',
          kind: '',
          metroCode: '',
          name: ''
        }
      ],
      postalCodes: [{code: '', countryCode: '', countryDartId: '', id: '', kind: ''}],
      regions: [
        {
          countryCode: '',
          countryDartId: '',
          dartId: '',
          kind: '',
          name: '',
          regionCode: ''
        }
      ]
    },
    id: '',
    idDimensionValue: {},
    keyValueTargetingExpression: {expression: ''},
    kind: '',
    languageTargeting: {languages: [{id: '', kind: '', languageCode: '', name: ''}]},
    lastModifiedInfo: {},
    name: '',
    placementAssignments: [
      {
        active: false,
        placementId: '',
        placementIdDimensionValue: {},
        sslRequired: false
      }
    ],
    remarketingListExpression: {expression: ''},
    size: {height: 0, iab: false, id: '', kind: '', width: 0},
    sslCompliant: false,
    sslRequired: false,
    startTime: '',
    subaccountId: '',
    targetingTemplateId: '',
    technologyTargeting: {
      browsers: [
        {
          browserVersionId: '',
          dartId: '',
          kind: '',
          majorVersion: '',
          minorVersion: '',
          name: ''
        }
      ],
      connectionTypes: [{id: '', kind: '', name: ''}],
      mobileCarriers: [{countryCode: '', countryDartId: '', id: '', kind: '', name: ''}],
      operatingSystemVersions: [
        {
          id: '',
          kind: '',
          majorVersion: '',
          minorVersion: '',
          name: '',
          operatingSystem: {dartId: '', desktop: false, kind: '', mobile: false, name: ''}
        }
      ],
      operatingSystems: [{}],
      platformTypes: [{id: '', kind: '', name: ''}]
    },
    type: ''
  }
};

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

const url = '{{baseUrl}}/userprofiles/:profileId/ads';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","active":false,"advertiserId":"","advertiserIdDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"archived":false,"audienceSegmentId":"","campaignId":"","campaignIdDimensionValue":{},"clickThroughUrl":{"computedClickThroughUrl":"","customClickThroughUrl":"","defaultLandingPage":false,"landingPageId":""},"clickThroughUrlSuffixProperties":{"clickThroughUrlSuffix":"","overrideInheritedSuffix":false},"comments":"","compatibility":"","createInfo":{"time":""},"creativeGroupAssignments":[{"creativeGroupId":"","creativeGroupNumber":""}],"creativeRotation":{"creativeAssignments":[{"active":false,"applyEventTags":false,"clickThroughUrl":{},"companionCreativeOverrides":[{"clickThroughUrl":{},"creativeId":""}],"creativeGroupAssignments":[{}],"creativeId":"","creativeIdDimensionValue":{},"endTime":"","richMediaExitOverrides":[{"clickThroughUrl":{},"enabled":false,"exitId":""}],"sequence":0,"sslCompliant":false,"startTime":"","weight":0}],"creativeOptimizationConfigurationId":"","type":"","weightCalculationStrategy":""},"dayPartTargeting":{"daysOfWeek":[],"hoursOfDay":[],"userLocalTime":false},"defaultClickThroughEventTagProperties":{"defaultClickThroughEventTagId":"","overrideInheritedEventTag":false},"deliverySchedule":{"frequencyCap":{"duration":"","impressions":""},"hardCutoff":false,"impressionRatio":"","priority":""},"dynamicClickTracker":false,"endTime":"","eventTagOverrides":[{"enabled":false,"id":""}],"geoTargeting":{"cities":[{"countryCode":"","countryDartId":"","dartId":"","kind":"","metroCode":"","metroDmaId":"","name":"","regionCode":"","regionDartId":""}],"countries":[{"countryCode":"","dartId":"","kind":"","name":"","sslEnabled":false}],"excludeCountries":false,"metros":[{"countryCode":"","countryDartId":"","dartId":"","dmaId":"","kind":"","metroCode":"","name":""}],"postalCodes":[{"code":"","countryCode":"","countryDartId":"","id":"","kind":""}],"regions":[{"countryCode":"","countryDartId":"","dartId":"","kind":"","name":"","regionCode":""}]},"id":"","idDimensionValue":{},"keyValueTargetingExpression":{"expression":""},"kind":"","languageTargeting":{"languages":[{"id":"","kind":"","languageCode":"","name":""}]},"lastModifiedInfo":{},"name":"","placementAssignments":[{"active":false,"placementId":"","placementIdDimensionValue":{},"sslRequired":false}],"remarketingListExpression":{"expression":""},"size":{"height":0,"iab":false,"id":"","kind":"","width":0},"sslCompliant":false,"sslRequired":false,"startTime":"","subaccountId":"","targetingTemplateId":"","technologyTargeting":{"browsers":[{"browserVersionId":"","dartId":"","kind":"","majorVersion":"","minorVersion":"","name":""}],"connectionTypes":[{"id":"","kind":"","name":""}],"mobileCarriers":[{"countryCode":"","countryDartId":"","id":"","kind":"","name":""}],"operatingSystemVersions":[{"id":"","kind":"","majorVersion":"","minorVersion":"","name":"","operatingSystem":{"dartId":"","desktop":false,"kind":"","mobile":false,"name":""}}],"operatingSystems":[{}],"platformTypes":[{"id":"","kind":"","name":""}]},"type":""}'
};

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 = @{ @"accountId": @"",
                              @"active": @NO,
                              @"advertiserId": @"",
                              @"advertiserIdDimensionValue": @{ @"dimensionName": @"", @"etag": @"", @"id": @"", @"kind": @"", @"matchType": @"", @"value": @"" },
                              @"archived": @NO,
                              @"audienceSegmentId": @"",
                              @"campaignId": @"",
                              @"campaignIdDimensionValue": @{  },
                              @"clickThroughUrl": @{ @"computedClickThroughUrl": @"", @"customClickThroughUrl": @"", @"defaultLandingPage": @NO, @"landingPageId": @"" },
                              @"clickThroughUrlSuffixProperties": @{ @"clickThroughUrlSuffix": @"", @"overrideInheritedSuffix": @NO },
                              @"comments": @"",
                              @"compatibility": @"",
                              @"createInfo": @{ @"time": @"" },
                              @"creativeGroupAssignments": @[ @{ @"creativeGroupId": @"", @"creativeGroupNumber": @"" } ],
                              @"creativeRotation": @{ @"creativeAssignments": @[ @{ @"active": @NO, @"applyEventTags": @NO, @"clickThroughUrl": @{  }, @"companionCreativeOverrides": @[ @{ @"clickThroughUrl": @{  }, @"creativeId": @"" } ], @"creativeGroupAssignments": @[ @{  } ], @"creativeId": @"", @"creativeIdDimensionValue": @{  }, @"endTime": @"", @"richMediaExitOverrides": @[ @{ @"clickThroughUrl": @{  }, @"enabled": @NO, @"exitId": @"" } ], @"sequence": @0, @"sslCompliant": @NO, @"startTime": @"", @"weight": @0 } ], @"creativeOptimizationConfigurationId": @"", @"type": @"", @"weightCalculationStrategy": @"" },
                              @"dayPartTargeting": @{ @"daysOfWeek": @[  ], @"hoursOfDay": @[  ], @"userLocalTime": @NO },
                              @"defaultClickThroughEventTagProperties": @{ @"defaultClickThroughEventTagId": @"", @"overrideInheritedEventTag": @NO },
                              @"deliverySchedule": @{ @"frequencyCap": @{ @"duration": @"", @"impressions": @"" }, @"hardCutoff": @NO, @"impressionRatio": @"", @"priority": @"" },
                              @"dynamicClickTracker": @NO,
                              @"endTime": @"",
                              @"eventTagOverrides": @[ @{ @"enabled": @NO, @"id": @"" } ],
                              @"geoTargeting": @{ @"cities": @[ @{ @"countryCode": @"", @"countryDartId": @"", @"dartId": @"", @"kind": @"", @"metroCode": @"", @"metroDmaId": @"", @"name": @"", @"regionCode": @"", @"regionDartId": @"" } ], @"countries": @[ @{ @"countryCode": @"", @"dartId": @"", @"kind": @"", @"name": @"", @"sslEnabled": @NO } ], @"excludeCountries": @NO, @"metros": @[ @{ @"countryCode": @"", @"countryDartId": @"", @"dartId": @"", @"dmaId": @"", @"kind": @"", @"metroCode": @"", @"name": @"" } ], @"postalCodes": @[ @{ @"code": @"", @"countryCode": @"", @"countryDartId": @"", @"id": @"", @"kind": @"" } ], @"regions": @[ @{ @"countryCode": @"", @"countryDartId": @"", @"dartId": @"", @"kind": @"", @"name": @"", @"regionCode": @"" } ] },
                              @"id": @"",
                              @"idDimensionValue": @{  },
                              @"keyValueTargetingExpression": @{ @"expression": @"" },
                              @"kind": @"",
                              @"languageTargeting": @{ @"languages": @[ @{ @"id": @"", @"kind": @"", @"languageCode": @"", @"name": @"" } ] },
                              @"lastModifiedInfo": @{  },
                              @"name": @"",
                              @"placementAssignments": @[ @{ @"active": @NO, @"placementId": @"", @"placementIdDimensionValue": @{  }, @"sslRequired": @NO } ],
                              @"remarketingListExpression": @{ @"expression": @"" },
                              @"size": @{ @"height": @0, @"iab": @NO, @"id": @"", @"kind": @"", @"width": @0 },
                              @"sslCompliant": @NO,
                              @"sslRequired": @NO,
                              @"startTime": @"",
                              @"subaccountId": @"",
                              @"targetingTemplateId": @"",
                              @"technologyTargeting": @{ @"browsers": @[ @{ @"browserVersionId": @"", @"dartId": @"", @"kind": @"", @"majorVersion": @"", @"minorVersion": @"", @"name": @"" } ], @"connectionTypes": @[ @{ @"id": @"", @"kind": @"", @"name": @"" } ], @"mobileCarriers": @[ @{ @"countryCode": @"", @"countryDartId": @"", @"id": @"", @"kind": @"", @"name": @"" } ], @"operatingSystemVersions": @[ @{ @"id": @"", @"kind": @"", @"majorVersion": @"", @"minorVersion": @"", @"name": @"", @"operatingSystem": @{ @"dartId": @"", @"desktop": @NO, @"kind": @"", @"mobile": @NO, @"name": @"" } } ], @"operatingSystems": @[ @{  } ], @"platformTypes": @[ @{ @"id": @"", @"kind": @"", @"name": @"" } ] },
                              @"type": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/userprofiles/:profileId/ads"]
                                                       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}}/userprofiles/:profileId/ads" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"audienceSegmentId\": \"\",\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"clickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"defaultLandingPage\": false,\n    \"landingPageId\": \"\"\n  },\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comments\": \"\",\n  \"compatibility\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupAssignments\": [\n    {\n      \"creativeGroupId\": \"\",\n      \"creativeGroupNumber\": \"\"\n    }\n  ],\n  \"creativeRotation\": {\n    \"creativeAssignments\": [\n      {\n        \"active\": false,\n        \"applyEventTags\": false,\n        \"clickThroughUrl\": {},\n        \"companionCreativeOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"creativeId\": \"\"\n          }\n        ],\n        \"creativeGroupAssignments\": [\n          {}\n        ],\n        \"creativeId\": \"\",\n        \"creativeIdDimensionValue\": {},\n        \"endTime\": \"\",\n        \"richMediaExitOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"enabled\": false,\n            \"exitId\": \"\"\n          }\n        ],\n        \"sequence\": 0,\n        \"sslCompliant\": false,\n        \"startTime\": \"\",\n        \"weight\": 0\n      }\n    ],\n    \"creativeOptimizationConfigurationId\": \"\",\n    \"type\": \"\",\n    \"weightCalculationStrategy\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"deliverySchedule\": {\n    \"frequencyCap\": {\n      \"duration\": \"\",\n      \"impressions\": \"\"\n    },\n    \"hardCutoff\": false,\n    \"impressionRatio\": \"\",\n    \"priority\": \"\"\n  },\n  \"dynamicClickTracker\": false,\n  \"endTime\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementAssignments\": [\n    {\n      \"active\": false,\n      \"placementId\": \"\",\n      \"placementIdDimensionValue\": {},\n      \"sslRequired\": false\n    }\n  ],\n  \"remarketingListExpression\": {\n    \"expression\": \"\"\n  },\n  \"size\": {\n    \"height\": 0,\n    \"iab\": false,\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"width\": 0\n  },\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"startTime\": \"\",\n  \"subaccountId\": \"\",\n  \"targetingTemplateId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"type\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/ads",
  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([
    'accountId' => '',
    'active' => null,
    'advertiserId' => '',
    'advertiserIdDimensionValue' => [
        'dimensionName' => '',
        'etag' => '',
        'id' => '',
        'kind' => '',
        'matchType' => '',
        'value' => ''
    ],
    'archived' => null,
    'audienceSegmentId' => '',
    'campaignId' => '',
    'campaignIdDimensionValue' => [
        
    ],
    'clickThroughUrl' => [
        'computedClickThroughUrl' => '',
        'customClickThroughUrl' => '',
        'defaultLandingPage' => null,
        'landingPageId' => ''
    ],
    'clickThroughUrlSuffixProperties' => [
        'clickThroughUrlSuffix' => '',
        'overrideInheritedSuffix' => null
    ],
    'comments' => '',
    'compatibility' => '',
    'createInfo' => [
        'time' => ''
    ],
    'creativeGroupAssignments' => [
        [
                'creativeGroupId' => '',
                'creativeGroupNumber' => ''
        ]
    ],
    'creativeRotation' => [
        'creativeAssignments' => [
                [
                                'active' => null,
                                'applyEventTags' => null,
                                'clickThroughUrl' => [
                                                                
                                ],
                                'companionCreativeOverrides' => [
                                                                [
                                                                                                                                'clickThroughUrl' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'creativeId' => ''
                                                                ]
                                ],
                                'creativeGroupAssignments' => [
                                                                [
                                                                                                                                
                                                                ]
                                ],
                                'creativeId' => '',
                                'creativeIdDimensionValue' => [
                                                                
                                ],
                                'endTime' => '',
                                'richMediaExitOverrides' => [
                                                                [
                                                                                                                                'clickThroughUrl' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'enabled' => null,
                                                                                                                                'exitId' => ''
                                                                ]
                                ],
                                'sequence' => 0,
                                'sslCompliant' => null,
                                'startTime' => '',
                                'weight' => 0
                ]
        ],
        'creativeOptimizationConfigurationId' => '',
        'type' => '',
        'weightCalculationStrategy' => ''
    ],
    'dayPartTargeting' => [
        'daysOfWeek' => [
                
        ],
        'hoursOfDay' => [
                
        ],
        'userLocalTime' => null
    ],
    'defaultClickThroughEventTagProperties' => [
        'defaultClickThroughEventTagId' => '',
        'overrideInheritedEventTag' => null
    ],
    'deliverySchedule' => [
        'frequencyCap' => [
                'duration' => '',
                'impressions' => ''
        ],
        'hardCutoff' => null,
        'impressionRatio' => '',
        'priority' => ''
    ],
    'dynamicClickTracker' => null,
    'endTime' => '',
    'eventTagOverrides' => [
        [
                'enabled' => null,
                'id' => ''
        ]
    ],
    'geoTargeting' => [
        'cities' => [
                [
                                'countryCode' => '',
                                'countryDartId' => '',
                                'dartId' => '',
                                'kind' => '',
                                'metroCode' => '',
                                'metroDmaId' => '',
                                'name' => '',
                                'regionCode' => '',
                                'regionDartId' => ''
                ]
        ],
        'countries' => [
                [
                                'countryCode' => '',
                                'dartId' => '',
                                'kind' => '',
                                'name' => '',
                                'sslEnabled' => null
                ]
        ],
        'excludeCountries' => null,
        'metros' => [
                [
                                'countryCode' => '',
                                'countryDartId' => '',
                                'dartId' => '',
                                'dmaId' => '',
                                'kind' => '',
                                'metroCode' => '',
                                'name' => ''
                ]
        ],
        'postalCodes' => [
                [
                                'code' => '',
                                'countryCode' => '',
                                'countryDartId' => '',
                                'id' => '',
                                'kind' => ''
                ]
        ],
        'regions' => [
                [
                                'countryCode' => '',
                                'countryDartId' => '',
                                'dartId' => '',
                                'kind' => '',
                                'name' => '',
                                'regionCode' => ''
                ]
        ]
    ],
    'id' => '',
    'idDimensionValue' => [
        
    ],
    'keyValueTargetingExpression' => [
        'expression' => ''
    ],
    'kind' => '',
    'languageTargeting' => [
        'languages' => [
                [
                                'id' => '',
                                'kind' => '',
                                'languageCode' => '',
                                'name' => ''
                ]
        ]
    ],
    'lastModifiedInfo' => [
        
    ],
    'name' => '',
    'placementAssignments' => [
        [
                'active' => null,
                'placementId' => '',
                'placementIdDimensionValue' => [
                                
                ],
                'sslRequired' => null
        ]
    ],
    'remarketingListExpression' => [
        'expression' => ''
    ],
    'size' => [
        'height' => 0,
        'iab' => null,
        'id' => '',
        'kind' => '',
        'width' => 0
    ],
    'sslCompliant' => null,
    'sslRequired' => null,
    'startTime' => '',
    'subaccountId' => '',
    'targetingTemplateId' => '',
    'technologyTargeting' => [
        'browsers' => [
                [
                                'browserVersionId' => '',
                                'dartId' => '',
                                'kind' => '',
                                'majorVersion' => '',
                                'minorVersion' => '',
                                'name' => ''
                ]
        ],
        'connectionTypes' => [
                [
                                'id' => '',
                                'kind' => '',
                                'name' => ''
                ]
        ],
        'mobileCarriers' => [
                [
                                'countryCode' => '',
                                'countryDartId' => '',
                                'id' => '',
                                'kind' => '',
                                'name' => ''
                ]
        ],
        'operatingSystemVersions' => [
                [
                                'id' => '',
                                'kind' => '',
                                'majorVersion' => '',
                                'minorVersion' => '',
                                'name' => '',
                                'operatingSystem' => [
                                                                'dartId' => '',
                                                                'desktop' => null,
                                                                'kind' => '',
                                                                'mobile' => null,
                                                                'name' => ''
                                ]
                ]
        ],
        'operatingSystems' => [
                [
                                
                ]
        ],
        'platformTypes' => [
                [
                                'id' => '',
                                'kind' => '',
                                'name' => ''
                ]
        ]
    ],
    'type' => ''
  ]),
  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}}/userprofiles/:profileId/ads', [
  'body' => '{
  "accountId": "",
  "active": false,
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "archived": false,
  "audienceSegmentId": "",
  "campaignId": "",
  "campaignIdDimensionValue": {},
  "clickThroughUrl": {
    "computedClickThroughUrl": "",
    "customClickThroughUrl": "",
    "defaultLandingPage": false,
    "landingPageId": ""
  },
  "clickThroughUrlSuffixProperties": {
    "clickThroughUrlSuffix": "",
    "overrideInheritedSuffix": false
  },
  "comments": "",
  "compatibility": "",
  "createInfo": {
    "time": ""
  },
  "creativeGroupAssignments": [
    {
      "creativeGroupId": "",
      "creativeGroupNumber": ""
    }
  ],
  "creativeRotation": {
    "creativeAssignments": [
      {
        "active": false,
        "applyEventTags": false,
        "clickThroughUrl": {},
        "companionCreativeOverrides": [
          {
            "clickThroughUrl": {},
            "creativeId": ""
          }
        ],
        "creativeGroupAssignments": [
          {}
        ],
        "creativeId": "",
        "creativeIdDimensionValue": {},
        "endTime": "",
        "richMediaExitOverrides": [
          {
            "clickThroughUrl": {},
            "enabled": false,
            "exitId": ""
          }
        ],
        "sequence": 0,
        "sslCompliant": false,
        "startTime": "",
        "weight": 0
      }
    ],
    "creativeOptimizationConfigurationId": "",
    "type": "",
    "weightCalculationStrategy": ""
  },
  "dayPartTargeting": {
    "daysOfWeek": [],
    "hoursOfDay": [],
    "userLocalTime": false
  },
  "defaultClickThroughEventTagProperties": {
    "defaultClickThroughEventTagId": "",
    "overrideInheritedEventTag": false
  },
  "deliverySchedule": {
    "frequencyCap": {
      "duration": "",
      "impressions": ""
    },
    "hardCutoff": false,
    "impressionRatio": "",
    "priority": ""
  },
  "dynamicClickTracker": false,
  "endTime": "",
  "eventTagOverrides": [
    {
      "enabled": false,
      "id": ""
    }
  ],
  "geoTargeting": {
    "cities": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "metroCode": "",
        "metroDmaId": "",
        "name": "",
        "regionCode": "",
        "regionDartId": ""
      }
    ],
    "countries": [
      {
        "countryCode": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "sslEnabled": false
      }
    ],
    "excludeCountries": false,
    "metros": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "dmaId": "",
        "kind": "",
        "metroCode": "",
        "name": ""
      }
    ],
    "postalCodes": [
      {
        "code": "",
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": ""
      }
    ],
    "regions": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "regionCode": ""
      }
    ]
  },
  "id": "",
  "idDimensionValue": {},
  "keyValueTargetingExpression": {
    "expression": ""
  },
  "kind": "",
  "languageTargeting": {
    "languages": [
      {
        "id": "",
        "kind": "",
        "languageCode": "",
        "name": ""
      }
    ]
  },
  "lastModifiedInfo": {},
  "name": "",
  "placementAssignments": [
    {
      "active": false,
      "placementId": "",
      "placementIdDimensionValue": {},
      "sslRequired": false
    }
  ],
  "remarketingListExpression": {
    "expression": ""
  },
  "size": {
    "height": 0,
    "iab": false,
    "id": "",
    "kind": "",
    "width": 0
  },
  "sslCompliant": false,
  "sslRequired": false,
  "startTime": "",
  "subaccountId": "",
  "targetingTemplateId": "",
  "technologyTargeting": {
    "browsers": [
      {
        "browserVersionId": "",
        "dartId": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": ""
      }
    ],
    "connectionTypes": [
      {
        "id": "",
        "kind": "",
        "name": ""
      }
    ],
    "mobileCarriers": [
      {
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": "",
        "name": ""
      }
    ],
    "operatingSystemVersions": [
      {
        "id": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": "",
        "operatingSystem": {
          "dartId": "",
          "desktop": false,
          "kind": "",
          "mobile": false,
          "name": ""
        }
      }
    ],
    "operatingSystems": [
      {}
    ],
    "platformTypes": [
      {
        "id": "",
        "kind": "",
        "name": ""
      }
    ]
  },
  "type": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/ads');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'accountId' => '',
  'active' => null,
  'advertiserId' => '',
  'advertiserIdDimensionValue' => [
    'dimensionName' => '',
    'etag' => '',
    'id' => '',
    'kind' => '',
    'matchType' => '',
    'value' => ''
  ],
  'archived' => null,
  'audienceSegmentId' => '',
  'campaignId' => '',
  'campaignIdDimensionValue' => [
    
  ],
  'clickThroughUrl' => [
    'computedClickThroughUrl' => '',
    'customClickThroughUrl' => '',
    'defaultLandingPage' => null,
    'landingPageId' => ''
  ],
  'clickThroughUrlSuffixProperties' => [
    'clickThroughUrlSuffix' => '',
    'overrideInheritedSuffix' => null
  ],
  'comments' => '',
  'compatibility' => '',
  'createInfo' => [
    'time' => ''
  ],
  'creativeGroupAssignments' => [
    [
        'creativeGroupId' => '',
        'creativeGroupNumber' => ''
    ]
  ],
  'creativeRotation' => [
    'creativeAssignments' => [
        [
                'active' => null,
                'applyEventTags' => null,
                'clickThroughUrl' => [
                                
                ],
                'companionCreativeOverrides' => [
                                [
                                                                'clickThroughUrl' => [
                                                                                                                                
                                                                ],
                                                                'creativeId' => ''
                                ]
                ],
                'creativeGroupAssignments' => [
                                [
                                                                
                                ]
                ],
                'creativeId' => '',
                'creativeIdDimensionValue' => [
                                
                ],
                'endTime' => '',
                'richMediaExitOverrides' => [
                                [
                                                                'clickThroughUrl' => [
                                                                                                                                
                                                                ],
                                                                'enabled' => null,
                                                                'exitId' => ''
                                ]
                ],
                'sequence' => 0,
                'sslCompliant' => null,
                'startTime' => '',
                'weight' => 0
        ]
    ],
    'creativeOptimizationConfigurationId' => '',
    'type' => '',
    'weightCalculationStrategy' => ''
  ],
  'dayPartTargeting' => [
    'daysOfWeek' => [
        
    ],
    'hoursOfDay' => [
        
    ],
    'userLocalTime' => null
  ],
  'defaultClickThroughEventTagProperties' => [
    'defaultClickThroughEventTagId' => '',
    'overrideInheritedEventTag' => null
  ],
  'deliverySchedule' => [
    'frequencyCap' => [
        'duration' => '',
        'impressions' => ''
    ],
    'hardCutoff' => null,
    'impressionRatio' => '',
    'priority' => ''
  ],
  'dynamicClickTracker' => null,
  'endTime' => '',
  'eventTagOverrides' => [
    [
        'enabled' => null,
        'id' => ''
    ]
  ],
  'geoTargeting' => [
    'cities' => [
        [
                'countryCode' => '',
                'countryDartId' => '',
                'dartId' => '',
                'kind' => '',
                'metroCode' => '',
                'metroDmaId' => '',
                'name' => '',
                'regionCode' => '',
                'regionDartId' => ''
        ]
    ],
    'countries' => [
        [
                'countryCode' => '',
                'dartId' => '',
                'kind' => '',
                'name' => '',
                'sslEnabled' => null
        ]
    ],
    'excludeCountries' => null,
    'metros' => [
        [
                'countryCode' => '',
                'countryDartId' => '',
                'dartId' => '',
                'dmaId' => '',
                'kind' => '',
                'metroCode' => '',
                'name' => ''
        ]
    ],
    'postalCodes' => [
        [
                'code' => '',
                'countryCode' => '',
                'countryDartId' => '',
                'id' => '',
                'kind' => ''
        ]
    ],
    'regions' => [
        [
                'countryCode' => '',
                'countryDartId' => '',
                'dartId' => '',
                'kind' => '',
                'name' => '',
                'regionCode' => ''
        ]
    ]
  ],
  'id' => '',
  'idDimensionValue' => [
    
  ],
  'keyValueTargetingExpression' => [
    'expression' => ''
  ],
  'kind' => '',
  'languageTargeting' => [
    'languages' => [
        [
                'id' => '',
                'kind' => '',
                'languageCode' => '',
                'name' => ''
        ]
    ]
  ],
  'lastModifiedInfo' => [
    
  ],
  'name' => '',
  'placementAssignments' => [
    [
        'active' => null,
        'placementId' => '',
        'placementIdDimensionValue' => [
                
        ],
        'sslRequired' => null
    ]
  ],
  'remarketingListExpression' => [
    'expression' => ''
  ],
  'size' => [
    'height' => 0,
    'iab' => null,
    'id' => '',
    'kind' => '',
    'width' => 0
  ],
  'sslCompliant' => null,
  'sslRequired' => null,
  'startTime' => '',
  'subaccountId' => '',
  'targetingTemplateId' => '',
  'technologyTargeting' => [
    'browsers' => [
        [
                'browserVersionId' => '',
                'dartId' => '',
                'kind' => '',
                'majorVersion' => '',
                'minorVersion' => '',
                'name' => ''
        ]
    ],
    'connectionTypes' => [
        [
                'id' => '',
                'kind' => '',
                'name' => ''
        ]
    ],
    'mobileCarriers' => [
        [
                'countryCode' => '',
                'countryDartId' => '',
                'id' => '',
                'kind' => '',
                'name' => ''
        ]
    ],
    'operatingSystemVersions' => [
        [
                'id' => '',
                'kind' => '',
                'majorVersion' => '',
                'minorVersion' => '',
                'name' => '',
                'operatingSystem' => [
                                'dartId' => '',
                                'desktop' => null,
                                'kind' => '',
                                'mobile' => null,
                                'name' => ''
                ]
        ]
    ],
    'operatingSystems' => [
        [
                
        ]
    ],
    'platformTypes' => [
        [
                'id' => '',
                'kind' => '',
                'name' => ''
        ]
    ]
  ],
  'type' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'accountId' => '',
  'active' => null,
  'advertiserId' => '',
  'advertiserIdDimensionValue' => [
    'dimensionName' => '',
    'etag' => '',
    'id' => '',
    'kind' => '',
    'matchType' => '',
    'value' => ''
  ],
  'archived' => null,
  'audienceSegmentId' => '',
  'campaignId' => '',
  'campaignIdDimensionValue' => [
    
  ],
  'clickThroughUrl' => [
    'computedClickThroughUrl' => '',
    'customClickThroughUrl' => '',
    'defaultLandingPage' => null,
    'landingPageId' => ''
  ],
  'clickThroughUrlSuffixProperties' => [
    'clickThroughUrlSuffix' => '',
    'overrideInheritedSuffix' => null
  ],
  'comments' => '',
  'compatibility' => '',
  'createInfo' => [
    'time' => ''
  ],
  'creativeGroupAssignments' => [
    [
        'creativeGroupId' => '',
        'creativeGroupNumber' => ''
    ]
  ],
  'creativeRotation' => [
    'creativeAssignments' => [
        [
                'active' => null,
                'applyEventTags' => null,
                'clickThroughUrl' => [
                                
                ],
                'companionCreativeOverrides' => [
                                [
                                                                'clickThroughUrl' => [
                                                                                                                                
                                                                ],
                                                                'creativeId' => ''
                                ]
                ],
                'creativeGroupAssignments' => [
                                [
                                                                
                                ]
                ],
                'creativeId' => '',
                'creativeIdDimensionValue' => [
                                
                ],
                'endTime' => '',
                'richMediaExitOverrides' => [
                                [
                                                                'clickThroughUrl' => [
                                                                                                                                
                                                                ],
                                                                'enabled' => null,
                                                                'exitId' => ''
                                ]
                ],
                'sequence' => 0,
                'sslCompliant' => null,
                'startTime' => '',
                'weight' => 0
        ]
    ],
    'creativeOptimizationConfigurationId' => '',
    'type' => '',
    'weightCalculationStrategy' => ''
  ],
  'dayPartTargeting' => [
    'daysOfWeek' => [
        
    ],
    'hoursOfDay' => [
        
    ],
    'userLocalTime' => null
  ],
  'defaultClickThroughEventTagProperties' => [
    'defaultClickThroughEventTagId' => '',
    'overrideInheritedEventTag' => null
  ],
  'deliverySchedule' => [
    'frequencyCap' => [
        'duration' => '',
        'impressions' => ''
    ],
    'hardCutoff' => null,
    'impressionRatio' => '',
    'priority' => ''
  ],
  'dynamicClickTracker' => null,
  'endTime' => '',
  'eventTagOverrides' => [
    [
        'enabled' => null,
        'id' => ''
    ]
  ],
  'geoTargeting' => [
    'cities' => [
        [
                'countryCode' => '',
                'countryDartId' => '',
                'dartId' => '',
                'kind' => '',
                'metroCode' => '',
                'metroDmaId' => '',
                'name' => '',
                'regionCode' => '',
                'regionDartId' => ''
        ]
    ],
    'countries' => [
        [
                'countryCode' => '',
                'dartId' => '',
                'kind' => '',
                'name' => '',
                'sslEnabled' => null
        ]
    ],
    'excludeCountries' => null,
    'metros' => [
        [
                'countryCode' => '',
                'countryDartId' => '',
                'dartId' => '',
                'dmaId' => '',
                'kind' => '',
                'metroCode' => '',
                'name' => ''
        ]
    ],
    'postalCodes' => [
        [
                'code' => '',
                'countryCode' => '',
                'countryDartId' => '',
                'id' => '',
                'kind' => ''
        ]
    ],
    'regions' => [
        [
                'countryCode' => '',
                'countryDartId' => '',
                'dartId' => '',
                'kind' => '',
                'name' => '',
                'regionCode' => ''
        ]
    ]
  ],
  'id' => '',
  'idDimensionValue' => [
    
  ],
  'keyValueTargetingExpression' => [
    'expression' => ''
  ],
  'kind' => '',
  'languageTargeting' => [
    'languages' => [
        [
                'id' => '',
                'kind' => '',
                'languageCode' => '',
                'name' => ''
        ]
    ]
  ],
  'lastModifiedInfo' => [
    
  ],
  'name' => '',
  'placementAssignments' => [
    [
        'active' => null,
        'placementId' => '',
        'placementIdDimensionValue' => [
                
        ],
        'sslRequired' => null
    ]
  ],
  'remarketingListExpression' => [
    'expression' => ''
  ],
  'size' => [
    'height' => 0,
    'iab' => null,
    'id' => '',
    'kind' => '',
    'width' => 0
  ],
  'sslCompliant' => null,
  'sslRequired' => null,
  'startTime' => '',
  'subaccountId' => '',
  'targetingTemplateId' => '',
  'technologyTargeting' => [
    'browsers' => [
        [
                'browserVersionId' => '',
                'dartId' => '',
                'kind' => '',
                'majorVersion' => '',
                'minorVersion' => '',
                'name' => ''
        ]
    ],
    'connectionTypes' => [
        [
                'id' => '',
                'kind' => '',
                'name' => ''
        ]
    ],
    'mobileCarriers' => [
        [
                'countryCode' => '',
                'countryDartId' => '',
                'id' => '',
                'kind' => '',
                'name' => ''
        ]
    ],
    'operatingSystemVersions' => [
        [
                'id' => '',
                'kind' => '',
                'majorVersion' => '',
                'minorVersion' => '',
                'name' => '',
                'operatingSystem' => [
                                'dartId' => '',
                                'desktop' => null,
                                'kind' => '',
                                'mobile' => null,
                                'name' => ''
                ]
        ]
    ],
    'operatingSystems' => [
        [
                
        ]
    ],
    'platformTypes' => [
        [
                'id' => '',
                'kind' => '',
                'name' => ''
        ]
    ]
  ],
  'type' => ''
]));
$request->setRequestUrl('{{baseUrl}}/userprofiles/:profileId/ads');
$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}}/userprofiles/:profileId/ads' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "active": false,
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "archived": false,
  "audienceSegmentId": "",
  "campaignId": "",
  "campaignIdDimensionValue": {},
  "clickThroughUrl": {
    "computedClickThroughUrl": "",
    "customClickThroughUrl": "",
    "defaultLandingPage": false,
    "landingPageId": ""
  },
  "clickThroughUrlSuffixProperties": {
    "clickThroughUrlSuffix": "",
    "overrideInheritedSuffix": false
  },
  "comments": "",
  "compatibility": "",
  "createInfo": {
    "time": ""
  },
  "creativeGroupAssignments": [
    {
      "creativeGroupId": "",
      "creativeGroupNumber": ""
    }
  ],
  "creativeRotation": {
    "creativeAssignments": [
      {
        "active": false,
        "applyEventTags": false,
        "clickThroughUrl": {},
        "companionCreativeOverrides": [
          {
            "clickThroughUrl": {},
            "creativeId": ""
          }
        ],
        "creativeGroupAssignments": [
          {}
        ],
        "creativeId": "",
        "creativeIdDimensionValue": {},
        "endTime": "",
        "richMediaExitOverrides": [
          {
            "clickThroughUrl": {},
            "enabled": false,
            "exitId": ""
          }
        ],
        "sequence": 0,
        "sslCompliant": false,
        "startTime": "",
        "weight": 0
      }
    ],
    "creativeOptimizationConfigurationId": "",
    "type": "",
    "weightCalculationStrategy": ""
  },
  "dayPartTargeting": {
    "daysOfWeek": [],
    "hoursOfDay": [],
    "userLocalTime": false
  },
  "defaultClickThroughEventTagProperties": {
    "defaultClickThroughEventTagId": "",
    "overrideInheritedEventTag": false
  },
  "deliverySchedule": {
    "frequencyCap": {
      "duration": "",
      "impressions": ""
    },
    "hardCutoff": false,
    "impressionRatio": "",
    "priority": ""
  },
  "dynamicClickTracker": false,
  "endTime": "",
  "eventTagOverrides": [
    {
      "enabled": false,
      "id": ""
    }
  ],
  "geoTargeting": {
    "cities": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "metroCode": "",
        "metroDmaId": "",
        "name": "",
        "regionCode": "",
        "regionDartId": ""
      }
    ],
    "countries": [
      {
        "countryCode": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "sslEnabled": false
      }
    ],
    "excludeCountries": false,
    "metros": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "dmaId": "",
        "kind": "",
        "metroCode": "",
        "name": ""
      }
    ],
    "postalCodes": [
      {
        "code": "",
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": ""
      }
    ],
    "regions": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "regionCode": ""
      }
    ]
  },
  "id": "",
  "idDimensionValue": {},
  "keyValueTargetingExpression": {
    "expression": ""
  },
  "kind": "",
  "languageTargeting": {
    "languages": [
      {
        "id": "",
        "kind": "",
        "languageCode": "",
        "name": ""
      }
    ]
  },
  "lastModifiedInfo": {},
  "name": "",
  "placementAssignments": [
    {
      "active": false,
      "placementId": "",
      "placementIdDimensionValue": {},
      "sslRequired": false
    }
  ],
  "remarketingListExpression": {
    "expression": ""
  },
  "size": {
    "height": 0,
    "iab": false,
    "id": "",
    "kind": "",
    "width": 0
  },
  "sslCompliant": false,
  "sslRequired": false,
  "startTime": "",
  "subaccountId": "",
  "targetingTemplateId": "",
  "technologyTargeting": {
    "browsers": [
      {
        "browserVersionId": "",
        "dartId": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": ""
      }
    ],
    "connectionTypes": [
      {
        "id": "",
        "kind": "",
        "name": ""
      }
    ],
    "mobileCarriers": [
      {
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": "",
        "name": ""
      }
    ],
    "operatingSystemVersions": [
      {
        "id": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": "",
        "operatingSystem": {
          "dartId": "",
          "desktop": false,
          "kind": "",
          "mobile": false,
          "name": ""
        }
      }
    ],
    "operatingSystems": [
      {}
    ],
    "platformTypes": [
      {
        "id": "",
        "kind": "",
        "name": ""
      }
    ]
  },
  "type": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/ads' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "active": false,
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "archived": false,
  "audienceSegmentId": "",
  "campaignId": "",
  "campaignIdDimensionValue": {},
  "clickThroughUrl": {
    "computedClickThroughUrl": "",
    "customClickThroughUrl": "",
    "defaultLandingPage": false,
    "landingPageId": ""
  },
  "clickThroughUrlSuffixProperties": {
    "clickThroughUrlSuffix": "",
    "overrideInheritedSuffix": false
  },
  "comments": "",
  "compatibility": "",
  "createInfo": {
    "time": ""
  },
  "creativeGroupAssignments": [
    {
      "creativeGroupId": "",
      "creativeGroupNumber": ""
    }
  ],
  "creativeRotation": {
    "creativeAssignments": [
      {
        "active": false,
        "applyEventTags": false,
        "clickThroughUrl": {},
        "companionCreativeOverrides": [
          {
            "clickThroughUrl": {},
            "creativeId": ""
          }
        ],
        "creativeGroupAssignments": [
          {}
        ],
        "creativeId": "",
        "creativeIdDimensionValue": {},
        "endTime": "",
        "richMediaExitOverrides": [
          {
            "clickThroughUrl": {},
            "enabled": false,
            "exitId": ""
          }
        ],
        "sequence": 0,
        "sslCompliant": false,
        "startTime": "",
        "weight": 0
      }
    ],
    "creativeOptimizationConfigurationId": "",
    "type": "",
    "weightCalculationStrategy": ""
  },
  "dayPartTargeting": {
    "daysOfWeek": [],
    "hoursOfDay": [],
    "userLocalTime": false
  },
  "defaultClickThroughEventTagProperties": {
    "defaultClickThroughEventTagId": "",
    "overrideInheritedEventTag": false
  },
  "deliverySchedule": {
    "frequencyCap": {
      "duration": "",
      "impressions": ""
    },
    "hardCutoff": false,
    "impressionRatio": "",
    "priority": ""
  },
  "dynamicClickTracker": false,
  "endTime": "",
  "eventTagOverrides": [
    {
      "enabled": false,
      "id": ""
    }
  ],
  "geoTargeting": {
    "cities": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "metroCode": "",
        "metroDmaId": "",
        "name": "",
        "regionCode": "",
        "regionDartId": ""
      }
    ],
    "countries": [
      {
        "countryCode": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "sslEnabled": false
      }
    ],
    "excludeCountries": false,
    "metros": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "dmaId": "",
        "kind": "",
        "metroCode": "",
        "name": ""
      }
    ],
    "postalCodes": [
      {
        "code": "",
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": ""
      }
    ],
    "regions": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "regionCode": ""
      }
    ]
  },
  "id": "",
  "idDimensionValue": {},
  "keyValueTargetingExpression": {
    "expression": ""
  },
  "kind": "",
  "languageTargeting": {
    "languages": [
      {
        "id": "",
        "kind": "",
        "languageCode": "",
        "name": ""
      }
    ]
  },
  "lastModifiedInfo": {},
  "name": "",
  "placementAssignments": [
    {
      "active": false,
      "placementId": "",
      "placementIdDimensionValue": {},
      "sslRequired": false
    }
  ],
  "remarketingListExpression": {
    "expression": ""
  },
  "size": {
    "height": 0,
    "iab": false,
    "id": "",
    "kind": "",
    "width": 0
  },
  "sslCompliant": false,
  "sslRequired": false,
  "startTime": "",
  "subaccountId": "",
  "targetingTemplateId": "",
  "technologyTargeting": {
    "browsers": [
      {
        "browserVersionId": "",
        "dartId": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": ""
      }
    ],
    "connectionTypes": [
      {
        "id": "",
        "kind": "",
        "name": ""
      }
    ],
    "mobileCarriers": [
      {
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": "",
        "name": ""
      }
    ],
    "operatingSystemVersions": [
      {
        "id": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": "",
        "operatingSystem": {
          "dartId": "",
          "desktop": false,
          "kind": "",
          "mobile": false,
          "name": ""
        }
      }
    ],
    "operatingSystems": [
      {}
    ],
    "platformTypes": [
      {
        "id": "",
        "kind": "",
        "name": ""
      }
    ]
  },
  "type": ""
}'
import http.client

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

payload = "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"audienceSegmentId\": \"\",\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"clickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"defaultLandingPage\": false,\n    \"landingPageId\": \"\"\n  },\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comments\": \"\",\n  \"compatibility\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupAssignments\": [\n    {\n      \"creativeGroupId\": \"\",\n      \"creativeGroupNumber\": \"\"\n    }\n  ],\n  \"creativeRotation\": {\n    \"creativeAssignments\": [\n      {\n        \"active\": false,\n        \"applyEventTags\": false,\n        \"clickThroughUrl\": {},\n        \"companionCreativeOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"creativeId\": \"\"\n          }\n        ],\n        \"creativeGroupAssignments\": [\n          {}\n        ],\n        \"creativeId\": \"\",\n        \"creativeIdDimensionValue\": {},\n        \"endTime\": \"\",\n        \"richMediaExitOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"enabled\": false,\n            \"exitId\": \"\"\n          }\n        ],\n        \"sequence\": 0,\n        \"sslCompliant\": false,\n        \"startTime\": \"\",\n        \"weight\": 0\n      }\n    ],\n    \"creativeOptimizationConfigurationId\": \"\",\n    \"type\": \"\",\n    \"weightCalculationStrategy\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"deliverySchedule\": {\n    \"frequencyCap\": {\n      \"duration\": \"\",\n      \"impressions\": \"\"\n    },\n    \"hardCutoff\": false,\n    \"impressionRatio\": \"\",\n    \"priority\": \"\"\n  },\n  \"dynamicClickTracker\": false,\n  \"endTime\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementAssignments\": [\n    {\n      \"active\": false,\n      \"placementId\": \"\",\n      \"placementIdDimensionValue\": {},\n      \"sslRequired\": false\n    }\n  ],\n  \"remarketingListExpression\": {\n    \"expression\": \"\"\n  },\n  \"size\": {\n    \"height\": 0,\n    \"iab\": false,\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"width\": 0\n  },\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"startTime\": \"\",\n  \"subaccountId\": \"\",\n  \"targetingTemplateId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"type\": \"\"\n}"

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

conn.request("POST", "/baseUrl/userprofiles/:profileId/ads", payload, headers)

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

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

url = "{{baseUrl}}/userprofiles/:profileId/ads"

payload = {
    "accountId": "",
    "active": False,
    "advertiserId": "",
    "advertiserIdDimensionValue": {
        "dimensionName": "",
        "etag": "",
        "id": "",
        "kind": "",
        "matchType": "",
        "value": ""
    },
    "archived": False,
    "audienceSegmentId": "",
    "campaignId": "",
    "campaignIdDimensionValue": {},
    "clickThroughUrl": {
        "computedClickThroughUrl": "",
        "customClickThroughUrl": "",
        "defaultLandingPage": False,
        "landingPageId": ""
    },
    "clickThroughUrlSuffixProperties": {
        "clickThroughUrlSuffix": "",
        "overrideInheritedSuffix": False
    },
    "comments": "",
    "compatibility": "",
    "createInfo": { "time": "" },
    "creativeGroupAssignments": [
        {
            "creativeGroupId": "",
            "creativeGroupNumber": ""
        }
    ],
    "creativeRotation": {
        "creativeAssignments": [
            {
                "active": False,
                "applyEventTags": False,
                "clickThroughUrl": {},
                "companionCreativeOverrides": [
                    {
                        "clickThroughUrl": {},
                        "creativeId": ""
                    }
                ],
                "creativeGroupAssignments": [{}],
                "creativeId": "",
                "creativeIdDimensionValue": {},
                "endTime": "",
                "richMediaExitOverrides": [
                    {
                        "clickThroughUrl": {},
                        "enabled": False,
                        "exitId": ""
                    }
                ],
                "sequence": 0,
                "sslCompliant": False,
                "startTime": "",
                "weight": 0
            }
        ],
        "creativeOptimizationConfigurationId": "",
        "type": "",
        "weightCalculationStrategy": ""
    },
    "dayPartTargeting": {
        "daysOfWeek": [],
        "hoursOfDay": [],
        "userLocalTime": False
    },
    "defaultClickThroughEventTagProperties": {
        "defaultClickThroughEventTagId": "",
        "overrideInheritedEventTag": False
    },
    "deliverySchedule": {
        "frequencyCap": {
            "duration": "",
            "impressions": ""
        },
        "hardCutoff": False,
        "impressionRatio": "",
        "priority": ""
    },
    "dynamicClickTracker": False,
    "endTime": "",
    "eventTagOverrides": [
        {
            "enabled": False,
            "id": ""
        }
    ],
    "geoTargeting": {
        "cities": [
            {
                "countryCode": "",
                "countryDartId": "",
                "dartId": "",
                "kind": "",
                "metroCode": "",
                "metroDmaId": "",
                "name": "",
                "regionCode": "",
                "regionDartId": ""
            }
        ],
        "countries": [
            {
                "countryCode": "",
                "dartId": "",
                "kind": "",
                "name": "",
                "sslEnabled": False
            }
        ],
        "excludeCountries": False,
        "metros": [
            {
                "countryCode": "",
                "countryDartId": "",
                "dartId": "",
                "dmaId": "",
                "kind": "",
                "metroCode": "",
                "name": ""
            }
        ],
        "postalCodes": [
            {
                "code": "",
                "countryCode": "",
                "countryDartId": "",
                "id": "",
                "kind": ""
            }
        ],
        "regions": [
            {
                "countryCode": "",
                "countryDartId": "",
                "dartId": "",
                "kind": "",
                "name": "",
                "regionCode": ""
            }
        ]
    },
    "id": "",
    "idDimensionValue": {},
    "keyValueTargetingExpression": { "expression": "" },
    "kind": "",
    "languageTargeting": { "languages": [
            {
                "id": "",
                "kind": "",
                "languageCode": "",
                "name": ""
            }
        ] },
    "lastModifiedInfo": {},
    "name": "",
    "placementAssignments": [
        {
            "active": False,
            "placementId": "",
            "placementIdDimensionValue": {},
            "sslRequired": False
        }
    ],
    "remarketingListExpression": { "expression": "" },
    "size": {
        "height": 0,
        "iab": False,
        "id": "",
        "kind": "",
        "width": 0
    },
    "sslCompliant": False,
    "sslRequired": False,
    "startTime": "",
    "subaccountId": "",
    "targetingTemplateId": "",
    "technologyTargeting": {
        "browsers": [
            {
                "browserVersionId": "",
                "dartId": "",
                "kind": "",
                "majorVersion": "",
                "minorVersion": "",
                "name": ""
            }
        ],
        "connectionTypes": [
            {
                "id": "",
                "kind": "",
                "name": ""
            }
        ],
        "mobileCarriers": [
            {
                "countryCode": "",
                "countryDartId": "",
                "id": "",
                "kind": "",
                "name": ""
            }
        ],
        "operatingSystemVersions": [
            {
                "id": "",
                "kind": "",
                "majorVersion": "",
                "minorVersion": "",
                "name": "",
                "operatingSystem": {
                    "dartId": "",
                    "desktop": False,
                    "kind": "",
                    "mobile": False,
                    "name": ""
                }
            }
        ],
        "operatingSystems": [{}],
        "platformTypes": [
            {
                "id": "",
                "kind": "",
                "name": ""
            }
        ]
    },
    "type": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/userprofiles/:profileId/ads"

payload <- "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"audienceSegmentId\": \"\",\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"clickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"defaultLandingPage\": false,\n    \"landingPageId\": \"\"\n  },\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comments\": \"\",\n  \"compatibility\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupAssignments\": [\n    {\n      \"creativeGroupId\": \"\",\n      \"creativeGroupNumber\": \"\"\n    }\n  ],\n  \"creativeRotation\": {\n    \"creativeAssignments\": [\n      {\n        \"active\": false,\n        \"applyEventTags\": false,\n        \"clickThroughUrl\": {},\n        \"companionCreativeOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"creativeId\": \"\"\n          }\n        ],\n        \"creativeGroupAssignments\": [\n          {}\n        ],\n        \"creativeId\": \"\",\n        \"creativeIdDimensionValue\": {},\n        \"endTime\": \"\",\n        \"richMediaExitOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"enabled\": false,\n            \"exitId\": \"\"\n          }\n        ],\n        \"sequence\": 0,\n        \"sslCompliant\": false,\n        \"startTime\": \"\",\n        \"weight\": 0\n      }\n    ],\n    \"creativeOptimizationConfigurationId\": \"\",\n    \"type\": \"\",\n    \"weightCalculationStrategy\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"deliverySchedule\": {\n    \"frequencyCap\": {\n      \"duration\": \"\",\n      \"impressions\": \"\"\n    },\n    \"hardCutoff\": false,\n    \"impressionRatio\": \"\",\n    \"priority\": \"\"\n  },\n  \"dynamicClickTracker\": false,\n  \"endTime\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementAssignments\": [\n    {\n      \"active\": false,\n      \"placementId\": \"\",\n      \"placementIdDimensionValue\": {},\n      \"sslRequired\": false\n    }\n  ],\n  \"remarketingListExpression\": {\n    \"expression\": \"\"\n  },\n  \"size\": {\n    \"height\": 0,\n    \"iab\": false,\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"width\": 0\n  },\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"startTime\": \"\",\n  \"subaccountId\": \"\",\n  \"targetingTemplateId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"type\": \"\"\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}}/userprofiles/:profileId/ads")

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  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"audienceSegmentId\": \"\",\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"clickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"defaultLandingPage\": false,\n    \"landingPageId\": \"\"\n  },\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comments\": \"\",\n  \"compatibility\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupAssignments\": [\n    {\n      \"creativeGroupId\": \"\",\n      \"creativeGroupNumber\": \"\"\n    }\n  ],\n  \"creativeRotation\": {\n    \"creativeAssignments\": [\n      {\n        \"active\": false,\n        \"applyEventTags\": false,\n        \"clickThroughUrl\": {},\n        \"companionCreativeOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"creativeId\": \"\"\n          }\n        ],\n        \"creativeGroupAssignments\": [\n          {}\n        ],\n        \"creativeId\": \"\",\n        \"creativeIdDimensionValue\": {},\n        \"endTime\": \"\",\n        \"richMediaExitOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"enabled\": false,\n            \"exitId\": \"\"\n          }\n        ],\n        \"sequence\": 0,\n        \"sslCompliant\": false,\n        \"startTime\": \"\",\n        \"weight\": 0\n      }\n    ],\n    \"creativeOptimizationConfigurationId\": \"\",\n    \"type\": \"\",\n    \"weightCalculationStrategy\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"deliverySchedule\": {\n    \"frequencyCap\": {\n      \"duration\": \"\",\n      \"impressions\": \"\"\n    },\n    \"hardCutoff\": false,\n    \"impressionRatio\": \"\",\n    \"priority\": \"\"\n  },\n  \"dynamicClickTracker\": false,\n  \"endTime\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementAssignments\": [\n    {\n      \"active\": false,\n      \"placementId\": \"\",\n      \"placementIdDimensionValue\": {},\n      \"sslRequired\": false\n    }\n  ],\n  \"remarketingListExpression\": {\n    \"expression\": \"\"\n  },\n  \"size\": {\n    \"height\": 0,\n    \"iab\": false,\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"width\": 0\n  },\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"startTime\": \"\",\n  \"subaccountId\": \"\",\n  \"targetingTemplateId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"type\": \"\"\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/userprofiles/:profileId/ads') do |req|
  req.body = "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"audienceSegmentId\": \"\",\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"clickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"defaultLandingPage\": false,\n    \"landingPageId\": \"\"\n  },\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comments\": \"\",\n  \"compatibility\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupAssignments\": [\n    {\n      \"creativeGroupId\": \"\",\n      \"creativeGroupNumber\": \"\"\n    }\n  ],\n  \"creativeRotation\": {\n    \"creativeAssignments\": [\n      {\n        \"active\": false,\n        \"applyEventTags\": false,\n        \"clickThroughUrl\": {},\n        \"companionCreativeOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"creativeId\": \"\"\n          }\n        ],\n        \"creativeGroupAssignments\": [\n          {}\n        ],\n        \"creativeId\": \"\",\n        \"creativeIdDimensionValue\": {},\n        \"endTime\": \"\",\n        \"richMediaExitOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"enabled\": false,\n            \"exitId\": \"\"\n          }\n        ],\n        \"sequence\": 0,\n        \"sslCompliant\": false,\n        \"startTime\": \"\",\n        \"weight\": 0\n      }\n    ],\n    \"creativeOptimizationConfigurationId\": \"\",\n    \"type\": \"\",\n    \"weightCalculationStrategy\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"deliverySchedule\": {\n    \"frequencyCap\": {\n      \"duration\": \"\",\n      \"impressions\": \"\"\n    },\n    \"hardCutoff\": false,\n    \"impressionRatio\": \"\",\n    \"priority\": \"\"\n  },\n  \"dynamicClickTracker\": false,\n  \"endTime\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementAssignments\": [\n    {\n      \"active\": false,\n      \"placementId\": \"\",\n      \"placementIdDimensionValue\": {},\n      \"sslRequired\": false\n    }\n  ],\n  \"remarketingListExpression\": {\n    \"expression\": \"\"\n  },\n  \"size\": {\n    \"height\": 0,\n    \"iab\": false,\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"width\": 0\n  },\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"startTime\": \"\",\n  \"subaccountId\": \"\",\n  \"targetingTemplateId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"type\": \"\"\n}"
end

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

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

    let payload = json!({
        "accountId": "",
        "active": false,
        "advertiserId": "",
        "advertiserIdDimensionValue": json!({
            "dimensionName": "",
            "etag": "",
            "id": "",
            "kind": "",
            "matchType": "",
            "value": ""
        }),
        "archived": false,
        "audienceSegmentId": "",
        "campaignId": "",
        "campaignIdDimensionValue": json!({}),
        "clickThroughUrl": json!({
            "computedClickThroughUrl": "",
            "customClickThroughUrl": "",
            "defaultLandingPage": false,
            "landingPageId": ""
        }),
        "clickThroughUrlSuffixProperties": json!({
            "clickThroughUrlSuffix": "",
            "overrideInheritedSuffix": false
        }),
        "comments": "",
        "compatibility": "",
        "createInfo": json!({"time": ""}),
        "creativeGroupAssignments": (
            json!({
                "creativeGroupId": "",
                "creativeGroupNumber": ""
            })
        ),
        "creativeRotation": json!({
            "creativeAssignments": (
                json!({
                    "active": false,
                    "applyEventTags": false,
                    "clickThroughUrl": json!({}),
                    "companionCreativeOverrides": (
                        json!({
                            "clickThroughUrl": json!({}),
                            "creativeId": ""
                        })
                    ),
                    "creativeGroupAssignments": (json!({})),
                    "creativeId": "",
                    "creativeIdDimensionValue": json!({}),
                    "endTime": "",
                    "richMediaExitOverrides": (
                        json!({
                            "clickThroughUrl": json!({}),
                            "enabled": false,
                            "exitId": ""
                        })
                    ),
                    "sequence": 0,
                    "sslCompliant": false,
                    "startTime": "",
                    "weight": 0
                })
            ),
            "creativeOptimizationConfigurationId": "",
            "type": "",
            "weightCalculationStrategy": ""
        }),
        "dayPartTargeting": json!({
            "daysOfWeek": (),
            "hoursOfDay": (),
            "userLocalTime": false
        }),
        "defaultClickThroughEventTagProperties": json!({
            "defaultClickThroughEventTagId": "",
            "overrideInheritedEventTag": false
        }),
        "deliverySchedule": json!({
            "frequencyCap": json!({
                "duration": "",
                "impressions": ""
            }),
            "hardCutoff": false,
            "impressionRatio": "",
            "priority": ""
        }),
        "dynamicClickTracker": false,
        "endTime": "",
        "eventTagOverrides": (
            json!({
                "enabled": false,
                "id": ""
            })
        ),
        "geoTargeting": json!({
            "cities": (
                json!({
                    "countryCode": "",
                    "countryDartId": "",
                    "dartId": "",
                    "kind": "",
                    "metroCode": "",
                    "metroDmaId": "",
                    "name": "",
                    "regionCode": "",
                    "regionDartId": ""
                })
            ),
            "countries": (
                json!({
                    "countryCode": "",
                    "dartId": "",
                    "kind": "",
                    "name": "",
                    "sslEnabled": false
                })
            ),
            "excludeCountries": false,
            "metros": (
                json!({
                    "countryCode": "",
                    "countryDartId": "",
                    "dartId": "",
                    "dmaId": "",
                    "kind": "",
                    "metroCode": "",
                    "name": ""
                })
            ),
            "postalCodes": (
                json!({
                    "code": "",
                    "countryCode": "",
                    "countryDartId": "",
                    "id": "",
                    "kind": ""
                })
            ),
            "regions": (
                json!({
                    "countryCode": "",
                    "countryDartId": "",
                    "dartId": "",
                    "kind": "",
                    "name": "",
                    "regionCode": ""
                })
            )
        }),
        "id": "",
        "idDimensionValue": json!({}),
        "keyValueTargetingExpression": json!({"expression": ""}),
        "kind": "",
        "languageTargeting": json!({"languages": (
                json!({
                    "id": "",
                    "kind": "",
                    "languageCode": "",
                    "name": ""
                })
            )}),
        "lastModifiedInfo": json!({}),
        "name": "",
        "placementAssignments": (
            json!({
                "active": false,
                "placementId": "",
                "placementIdDimensionValue": json!({}),
                "sslRequired": false
            })
        ),
        "remarketingListExpression": json!({"expression": ""}),
        "size": json!({
            "height": 0,
            "iab": false,
            "id": "",
            "kind": "",
            "width": 0
        }),
        "sslCompliant": false,
        "sslRequired": false,
        "startTime": "",
        "subaccountId": "",
        "targetingTemplateId": "",
        "technologyTargeting": json!({
            "browsers": (
                json!({
                    "browserVersionId": "",
                    "dartId": "",
                    "kind": "",
                    "majorVersion": "",
                    "minorVersion": "",
                    "name": ""
                })
            ),
            "connectionTypes": (
                json!({
                    "id": "",
                    "kind": "",
                    "name": ""
                })
            ),
            "mobileCarriers": (
                json!({
                    "countryCode": "",
                    "countryDartId": "",
                    "id": "",
                    "kind": "",
                    "name": ""
                })
            ),
            "operatingSystemVersions": (
                json!({
                    "id": "",
                    "kind": "",
                    "majorVersion": "",
                    "minorVersion": "",
                    "name": "",
                    "operatingSystem": json!({
                        "dartId": "",
                        "desktop": false,
                        "kind": "",
                        "mobile": false,
                        "name": ""
                    })
                })
            ),
            "operatingSystems": (json!({})),
            "platformTypes": (
                json!({
                    "id": "",
                    "kind": "",
                    "name": ""
                })
            )
        }),
        "type": ""
    });

    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}}/userprofiles/:profileId/ads \
  --header 'content-type: application/json' \
  --data '{
  "accountId": "",
  "active": false,
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "archived": false,
  "audienceSegmentId": "",
  "campaignId": "",
  "campaignIdDimensionValue": {},
  "clickThroughUrl": {
    "computedClickThroughUrl": "",
    "customClickThroughUrl": "",
    "defaultLandingPage": false,
    "landingPageId": ""
  },
  "clickThroughUrlSuffixProperties": {
    "clickThroughUrlSuffix": "",
    "overrideInheritedSuffix": false
  },
  "comments": "",
  "compatibility": "",
  "createInfo": {
    "time": ""
  },
  "creativeGroupAssignments": [
    {
      "creativeGroupId": "",
      "creativeGroupNumber": ""
    }
  ],
  "creativeRotation": {
    "creativeAssignments": [
      {
        "active": false,
        "applyEventTags": false,
        "clickThroughUrl": {},
        "companionCreativeOverrides": [
          {
            "clickThroughUrl": {},
            "creativeId": ""
          }
        ],
        "creativeGroupAssignments": [
          {}
        ],
        "creativeId": "",
        "creativeIdDimensionValue": {},
        "endTime": "",
        "richMediaExitOverrides": [
          {
            "clickThroughUrl": {},
            "enabled": false,
            "exitId": ""
          }
        ],
        "sequence": 0,
        "sslCompliant": false,
        "startTime": "",
        "weight": 0
      }
    ],
    "creativeOptimizationConfigurationId": "",
    "type": "",
    "weightCalculationStrategy": ""
  },
  "dayPartTargeting": {
    "daysOfWeek": [],
    "hoursOfDay": [],
    "userLocalTime": false
  },
  "defaultClickThroughEventTagProperties": {
    "defaultClickThroughEventTagId": "",
    "overrideInheritedEventTag": false
  },
  "deliverySchedule": {
    "frequencyCap": {
      "duration": "",
      "impressions": ""
    },
    "hardCutoff": false,
    "impressionRatio": "",
    "priority": ""
  },
  "dynamicClickTracker": false,
  "endTime": "",
  "eventTagOverrides": [
    {
      "enabled": false,
      "id": ""
    }
  ],
  "geoTargeting": {
    "cities": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "metroCode": "",
        "metroDmaId": "",
        "name": "",
        "regionCode": "",
        "regionDartId": ""
      }
    ],
    "countries": [
      {
        "countryCode": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "sslEnabled": false
      }
    ],
    "excludeCountries": false,
    "metros": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "dmaId": "",
        "kind": "",
        "metroCode": "",
        "name": ""
      }
    ],
    "postalCodes": [
      {
        "code": "",
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": ""
      }
    ],
    "regions": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "regionCode": ""
      }
    ]
  },
  "id": "",
  "idDimensionValue": {},
  "keyValueTargetingExpression": {
    "expression": ""
  },
  "kind": "",
  "languageTargeting": {
    "languages": [
      {
        "id": "",
        "kind": "",
        "languageCode": "",
        "name": ""
      }
    ]
  },
  "lastModifiedInfo": {},
  "name": "",
  "placementAssignments": [
    {
      "active": false,
      "placementId": "",
      "placementIdDimensionValue": {},
      "sslRequired": false
    }
  ],
  "remarketingListExpression": {
    "expression": ""
  },
  "size": {
    "height": 0,
    "iab": false,
    "id": "",
    "kind": "",
    "width": 0
  },
  "sslCompliant": false,
  "sslRequired": false,
  "startTime": "",
  "subaccountId": "",
  "targetingTemplateId": "",
  "technologyTargeting": {
    "browsers": [
      {
        "browserVersionId": "",
        "dartId": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": ""
      }
    ],
    "connectionTypes": [
      {
        "id": "",
        "kind": "",
        "name": ""
      }
    ],
    "mobileCarriers": [
      {
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": "",
        "name": ""
      }
    ],
    "operatingSystemVersions": [
      {
        "id": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": "",
        "operatingSystem": {
          "dartId": "",
          "desktop": false,
          "kind": "",
          "mobile": false,
          "name": ""
        }
      }
    ],
    "operatingSystems": [
      {}
    ],
    "platformTypes": [
      {
        "id": "",
        "kind": "",
        "name": ""
      }
    ]
  },
  "type": ""
}'
echo '{
  "accountId": "",
  "active": false,
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "archived": false,
  "audienceSegmentId": "",
  "campaignId": "",
  "campaignIdDimensionValue": {},
  "clickThroughUrl": {
    "computedClickThroughUrl": "",
    "customClickThroughUrl": "",
    "defaultLandingPage": false,
    "landingPageId": ""
  },
  "clickThroughUrlSuffixProperties": {
    "clickThroughUrlSuffix": "",
    "overrideInheritedSuffix": false
  },
  "comments": "",
  "compatibility": "",
  "createInfo": {
    "time": ""
  },
  "creativeGroupAssignments": [
    {
      "creativeGroupId": "",
      "creativeGroupNumber": ""
    }
  ],
  "creativeRotation": {
    "creativeAssignments": [
      {
        "active": false,
        "applyEventTags": false,
        "clickThroughUrl": {},
        "companionCreativeOverrides": [
          {
            "clickThroughUrl": {},
            "creativeId": ""
          }
        ],
        "creativeGroupAssignments": [
          {}
        ],
        "creativeId": "",
        "creativeIdDimensionValue": {},
        "endTime": "",
        "richMediaExitOverrides": [
          {
            "clickThroughUrl": {},
            "enabled": false,
            "exitId": ""
          }
        ],
        "sequence": 0,
        "sslCompliant": false,
        "startTime": "",
        "weight": 0
      }
    ],
    "creativeOptimizationConfigurationId": "",
    "type": "",
    "weightCalculationStrategy": ""
  },
  "dayPartTargeting": {
    "daysOfWeek": [],
    "hoursOfDay": [],
    "userLocalTime": false
  },
  "defaultClickThroughEventTagProperties": {
    "defaultClickThroughEventTagId": "",
    "overrideInheritedEventTag": false
  },
  "deliverySchedule": {
    "frequencyCap": {
      "duration": "",
      "impressions": ""
    },
    "hardCutoff": false,
    "impressionRatio": "",
    "priority": ""
  },
  "dynamicClickTracker": false,
  "endTime": "",
  "eventTagOverrides": [
    {
      "enabled": false,
      "id": ""
    }
  ],
  "geoTargeting": {
    "cities": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "metroCode": "",
        "metroDmaId": "",
        "name": "",
        "regionCode": "",
        "regionDartId": ""
      }
    ],
    "countries": [
      {
        "countryCode": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "sslEnabled": false
      }
    ],
    "excludeCountries": false,
    "metros": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "dmaId": "",
        "kind": "",
        "metroCode": "",
        "name": ""
      }
    ],
    "postalCodes": [
      {
        "code": "",
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": ""
      }
    ],
    "regions": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "regionCode": ""
      }
    ]
  },
  "id": "",
  "idDimensionValue": {},
  "keyValueTargetingExpression": {
    "expression": ""
  },
  "kind": "",
  "languageTargeting": {
    "languages": [
      {
        "id": "",
        "kind": "",
        "languageCode": "",
        "name": ""
      }
    ]
  },
  "lastModifiedInfo": {},
  "name": "",
  "placementAssignments": [
    {
      "active": false,
      "placementId": "",
      "placementIdDimensionValue": {},
      "sslRequired": false
    }
  ],
  "remarketingListExpression": {
    "expression": ""
  },
  "size": {
    "height": 0,
    "iab": false,
    "id": "",
    "kind": "",
    "width": 0
  },
  "sslCompliant": false,
  "sslRequired": false,
  "startTime": "",
  "subaccountId": "",
  "targetingTemplateId": "",
  "technologyTargeting": {
    "browsers": [
      {
        "browserVersionId": "",
        "dartId": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": ""
      }
    ],
    "connectionTypes": [
      {
        "id": "",
        "kind": "",
        "name": ""
      }
    ],
    "mobileCarriers": [
      {
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": "",
        "name": ""
      }
    ],
    "operatingSystemVersions": [
      {
        "id": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": "",
        "operatingSystem": {
          "dartId": "",
          "desktop": false,
          "kind": "",
          "mobile": false,
          "name": ""
        }
      }
    ],
    "operatingSystems": [
      {}
    ],
    "platformTypes": [
      {
        "id": "",
        "kind": "",
        "name": ""
      }
    ]
  },
  "type": ""
}' |  \
  http POST {{baseUrl}}/userprofiles/:profileId/ads \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "accountId": "",\n  "active": false,\n  "advertiserId": "",\n  "advertiserIdDimensionValue": {\n    "dimensionName": "",\n    "etag": "",\n    "id": "",\n    "kind": "",\n    "matchType": "",\n    "value": ""\n  },\n  "archived": false,\n  "audienceSegmentId": "",\n  "campaignId": "",\n  "campaignIdDimensionValue": {},\n  "clickThroughUrl": {\n    "computedClickThroughUrl": "",\n    "customClickThroughUrl": "",\n    "defaultLandingPage": false,\n    "landingPageId": ""\n  },\n  "clickThroughUrlSuffixProperties": {\n    "clickThroughUrlSuffix": "",\n    "overrideInheritedSuffix": false\n  },\n  "comments": "",\n  "compatibility": "",\n  "createInfo": {\n    "time": ""\n  },\n  "creativeGroupAssignments": [\n    {\n      "creativeGroupId": "",\n      "creativeGroupNumber": ""\n    }\n  ],\n  "creativeRotation": {\n    "creativeAssignments": [\n      {\n        "active": false,\n        "applyEventTags": false,\n        "clickThroughUrl": {},\n        "companionCreativeOverrides": [\n          {\n            "clickThroughUrl": {},\n            "creativeId": ""\n          }\n        ],\n        "creativeGroupAssignments": [\n          {}\n        ],\n        "creativeId": "",\n        "creativeIdDimensionValue": {},\n        "endTime": "",\n        "richMediaExitOverrides": [\n          {\n            "clickThroughUrl": {},\n            "enabled": false,\n            "exitId": ""\n          }\n        ],\n        "sequence": 0,\n        "sslCompliant": false,\n        "startTime": "",\n        "weight": 0\n      }\n    ],\n    "creativeOptimizationConfigurationId": "",\n    "type": "",\n    "weightCalculationStrategy": ""\n  },\n  "dayPartTargeting": {\n    "daysOfWeek": [],\n    "hoursOfDay": [],\n    "userLocalTime": false\n  },\n  "defaultClickThroughEventTagProperties": {\n    "defaultClickThroughEventTagId": "",\n    "overrideInheritedEventTag": false\n  },\n  "deliverySchedule": {\n    "frequencyCap": {\n      "duration": "",\n      "impressions": ""\n    },\n    "hardCutoff": false,\n    "impressionRatio": "",\n    "priority": ""\n  },\n  "dynamicClickTracker": false,\n  "endTime": "",\n  "eventTagOverrides": [\n    {\n      "enabled": false,\n      "id": ""\n    }\n  ],\n  "geoTargeting": {\n    "cities": [\n      {\n        "countryCode": "",\n        "countryDartId": "",\n        "dartId": "",\n        "kind": "",\n        "metroCode": "",\n        "metroDmaId": "",\n        "name": "",\n        "regionCode": "",\n        "regionDartId": ""\n      }\n    ],\n    "countries": [\n      {\n        "countryCode": "",\n        "dartId": "",\n        "kind": "",\n        "name": "",\n        "sslEnabled": false\n      }\n    ],\n    "excludeCountries": false,\n    "metros": [\n      {\n        "countryCode": "",\n        "countryDartId": "",\n        "dartId": "",\n        "dmaId": "",\n        "kind": "",\n        "metroCode": "",\n        "name": ""\n      }\n    ],\n    "postalCodes": [\n      {\n        "code": "",\n        "countryCode": "",\n        "countryDartId": "",\n        "id": "",\n        "kind": ""\n      }\n    ],\n    "regions": [\n      {\n        "countryCode": "",\n        "countryDartId": "",\n        "dartId": "",\n        "kind": "",\n        "name": "",\n        "regionCode": ""\n      }\n    ]\n  },\n  "id": "",\n  "idDimensionValue": {},\n  "keyValueTargetingExpression": {\n    "expression": ""\n  },\n  "kind": "",\n  "languageTargeting": {\n    "languages": [\n      {\n        "id": "",\n        "kind": "",\n        "languageCode": "",\n        "name": ""\n      }\n    ]\n  },\n  "lastModifiedInfo": {},\n  "name": "",\n  "placementAssignments": [\n    {\n      "active": false,\n      "placementId": "",\n      "placementIdDimensionValue": {},\n      "sslRequired": false\n    }\n  ],\n  "remarketingListExpression": {\n    "expression": ""\n  },\n  "size": {\n    "height": 0,\n    "iab": false,\n    "id": "",\n    "kind": "",\n    "width": 0\n  },\n  "sslCompliant": false,\n  "sslRequired": false,\n  "startTime": "",\n  "subaccountId": "",\n  "targetingTemplateId": "",\n  "technologyTargeting": {\n    "browsers": [\n      {\n        "browserVersionId": "",\n        "dartId": "",\n        "kind": "",\n        "majorVersion": "",\n        "minorVersion": "",\n        "name": ""\n      }\n    ],\n    "connectionTypes": [\n      {\n        "id": "",\n        "kind": "",\n        "name": ""\n      }\n    ],\n    "mobileCarriers": [\n      {\n        "countryCode": "",\n        "countryDartId": "",\n        "id": "",\n        "kind": "",\n        "name": ""\n      }\n    ],\n    "operatingSystemVersions": [\n      {\n        "id": "",\n        "kind": "",\n        "majorVersion": "",\n        "minorVersion": "",\n        "name": "",\n        "operatingSystem": {\n          "dartId": "",\n          "desktop": false,\n          "kind": "",\n          "mobile": false,\n          "name": ""\n        }\n      }\n    ],\n    "operatingSystems": [\n      {}\n    ],\n    "platformTypes": [\n      {\n        "id": "",\n        "kind": "",\n        "name": ""\n      }\n    ]\n  },\n  "type": ""\n}' \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/ads
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "accountId": "",
  "active": false,
  "advertiserId": "",
  "advertiserIdDimensionValue": [
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  ],
  "archived": false,
  "audienceSegmentId": "",
  "campaignId": "",
  "campaignIdDimensionValue": [],
  "clickThroughUrl": [
    "computedClickThroughUrl": "",
    "customClickThroughUrl": "",
    "defaultLandingPage": false,
    "landingPageId": ""
  ],
  "clickThroughUrlSuffixProperties": [
    "clickThroughUrlSuffix": "",
    "overrideInheritedSuffix": false
  ],
  "comments": "",
  "compatibility": "",
  "createInfo": ["time": ""],
  "creativeGroupAssignments": [
    [
      "creativeGroupId": "",
      "creativeGroupNumber": ""
    ]
  ],
  "creativeRotation": [
    "creativeAssignments": [
      [
        "active": false,
        "applyEventTags": false,
        "clickThroughUrl": [],
        "companionCreativeOverrides": [
          [
            "clickThroughUrl": [],
            "creativeId": ""
          ]
        ],
        "creativeGroupAssignments": [[]],
        "creativeId": "",
        "creativeIdDimensionValue": [],
        "endTime": "",
        "richMediaExitOverrides": [
          [
            "clickThroughUrl": [],
            "enabled": false,
            "exitId": ""
          ]
        ],
        "sequence": 0,
        "sslCompliant": false,
        "startTime": "",
        "weight": 0
      ]
    ],
    "creativeOptimizationConfigurationId": "",
    "type": "",
    "weightCalculationStrategy": ""
  ],
  "dayPartTargeting": [
    "daysOfWeek": [],
    "hoursOfDay": [],
    "userLocalTime": false
  ],
  "defaultClickThroughEventTagProperties": [
    "defaultClickThroughEventTagId": "",
    "overrideInheritedEventTag": false
  ],
  "deliverySchedule": [
    "frequencyCap": [
      "duration": "",
      "impressions": ""
    ],
    "hardCutoff": false,
    "impressionRatio": "",
    "priority": ""
  ],
  "dynamicClickTracker": false,
  "endTime": "",
  "eventTagOverrides": [
    [
      "enabled": false,
      "id": ""
    ]
  ],
  "geoTargeting": [
    "cities": [
      [
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "metroCode": "",
        "metroDmaId": "",
        "name": "",
        "regionCode": "",
        "regionDartId": ""
      ]
    ],
    "countries": [
      [
        "countryCode": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "sslEnabled": false
      ]
    ],
    "excludeCountries": false,
    "metros": [
      [
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "dmaId": "",
        "kind": "",
        "metroCode": "",
        "name": ""
      ]
    ],
    "postalCodes": [
      [
        "code": "",
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": ""
      ]
    ],
    "regions": [
      [
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "regionCode": ""
      ]
    ]
  ],
  "id": "",
  "idDimensionValue": [],
  "keyValueTargetingExpression": ["expression": ""],
  "kind": "",
  "languageTargeting": ["languages": [
      [
        "id": "",
        "kind": "",
        "languageCode": "",
        "name": ""
      ]
    ]],
  "lastModifiedInfo": [],
  "name": "",
  "placementAssignments": [
    [
      "active": false,
      "placementId": "",
      "placementIdDimensionValue": [],
      "sslRequired": false
    ]
  ],
  "remarketingListExpression": ["expression": ""],
  "size": [
    "height": 0,
    "iab": false,
    "id": "",
    "kind": "",
    "width": 0
  ],
  "sslCompliant": false,
  "sslRequired": false,
  "startTime": "",
  "subaccountId": "",
  "targetingTemplateId": "",
  "technologyTargeting": [
    "browsers": [
      [
        "browserVersionId": "",
        "dartId": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": ""
      ]
    ],
    "connectionTypes": [
      [
        "id": "",
        "kind": "",
        "name": ""
      ]
    ],
    "mobileCarriers": [
      [
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": "",
        "name": ""
      ]
    ],
    "operatingSystemVersions": [
      [
        "id": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": "",
        "operatingSystem": [
          "dartId": "",
          "desktop": false,
          "kind": "",
          "mobile": false,
          "name": ""
        ]
      ]
    ],
    "operatingSystems": [[]],
    "platformTypes": [
      [
        "id": "",
        "kind": "",
        "name": ""
      ]
    ]
  ],
  "type": ""
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/ads")! 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 dfareporting.ads.list
{{baseUrl}}/userprofiles/:profileId/ads
QUERY PARAMS

profileId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/ads");

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

(client/get "{{baseUrl}}/userprofiles/:profileId/ads")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/ads"

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

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

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/ads"

	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/userprofiles/:profileId/ads HTTP/1.1
Host: example.com

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

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

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

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

const options = {method: 'GET', url: '{{baseUrl}}/userprofiles/:profileId/ads'};

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/ads")
  .get()
  .build()

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

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

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

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

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/ads');

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}}/userprofiles/:profileId/ads'};

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

const url = '{{baseUrl}}/userprofiles/:profileId/ads';
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}}/userprofiles/:profileId/ads"]
                                                       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}}/userprofiles/:profileId/ads" in

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

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/ads');
$request->setMethod(HTTP_METH_GET);

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

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

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

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

conn.request("GET", "/baseUrl/userprofiles/:profileId/ads")

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

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

url = "{{baseUrl}}/userprofiles/:profileId/ads"

response = requests.get(url)

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

url <- "{{baseUrl}}/userprofiles/:profileId/ads"

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

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

url = URI("{{baseUrl}}/userprofiles/:profileId/ads")

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/userprofiles/:profileId/ads') do |req|
end

puts response.status
puts response.body
use reqwest;

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

    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}}/userprofiles/:profileId/ads
http GET {{baseUrl}}/userprofiles/:profileId/ads
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/ads
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/ads")! 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 dfareporting.ads.patch
{{baseUrl}}/userprofiles/:profileId/ads
QUERY PARAMS

id
profileId
BODY json

{
  "accountId": "",
  "active": false,
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "archived": false,
  "audienceSegmentId": "",
  "campaignId": "",
  "campaignIdDimensionValue": {},
  "clickThroughUrl": {
    "computedClickThroughUrl": "",
    "customClickThroughUrl": "",
    "defaultLandingPage": false,
    "landingPageId": ""
  },
  "clickThroughUrlSuffixProperties": {
    "clickThroughUrlSuffix": "",
    "overrideInheritedSuffix": false
  },
  "comments": "",
  "compatibility": "",
  "createInfo": {
    "time": ""
  },
  "creativeGroupAssignments": [
    {
      "creativeGroupId": "",
      "creativeGroupNumber": ""
    }
  ],
  "creativeRotation": {
    "creativeAssignments": [
      {
        "active": false,
        "applyEventTags": false,
        "clickThroughUrl": {},
        "companionCreativeOverrides": [
          {
            "clickThroughUrl": {},
            "creativeId": ""
          }
        ],
        "creativeGroupAssignments": [
          {}
        ],
        "creativeId": "",
        "creativeIdDimensionValue": {},
        "endTime": "",
        "richMediaExitOverrides": [
          {
            "clickThroughUrl": {},
            "enabled": false,
            "exitId": ""
          }
        ],
        "sequence": 0,
        "sslCompliant": false,
        "startTime": "",
        "weight": 0
      }
    ],
    "creativeOptimizationConfigurationId": "",
    "type": "",
    "weightCalculationStrategy": ""
  },
  "dayPartTargeting": {
    "daysOfWeek": [],
    "hoursOfDay": [],
    "userLocalTime": false
  },
  "defaultClickThroughEventTagProperties": {
    "defaultClickThroughEventTagId": "",
    "overrideInheritedEventTag": false
  },
  "deliverySchedule": {
    "frequencyCap": {
      "duration": "",
      "impressions": ""
    },
    "hardCutoff": false,
    "impressionRatio": "",
    "priority": ""
  },
  "dynamicClickTracker": false,
  "endTime": "",
  "eventTagOverrides": [
    {
      "enabled": false,
      "id": ""
    }
  ],
  "geoTargeting": {
    "cities": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "metroCode": "",
        "metroDmaId": "",
        "name": "",
        "regionCode": "",
        "regionDartId": ""
      }
    ],
    "countries": [
      {
        "countryCode": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "sslEnabled": false
      }
    ],
    "excludeCountries": false,
    "metros": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "dmaId": "",
        "kind": "",
        "metroCode": "",
        "name": ""
      }
    ],
    "postalCodes": [
      {
        "code": "",
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": ""
      }
    ],
    "regions": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "regionCode": ""
      }
    ]
  },
  "id": "",
  "idDimensionValue": {},
  "keyValueTargetingExpression": {
    "expression": ""
  },
  "kind": "",
  "languageTargeting": {
    "languages": [
      {
        "id": "",
        "kind": "",
        "languageCode": "",
        "name": ""
      }
    ]
  },
  "lastModifiedInfo": {},
  "name": "",
  "placementAssignments": [
    {
      "active": false,
      "placementId": "",
      "placementIdDimensionValue": {},
      "sslRequired": false
    }
  ],
  "remarketingListExpression": {
    "expression": ""
  },
  "size": {
    "height": 0,
    "iab": false,
    "id": "",
    "kind": "",
    "width": 0
  },
  "sslCompliant": false,
  "sslRequired": false,
  "startTime": "",
  "subaccountId": "",
  "targetingTemplateId": "",
  "technologyTargeting": {
    "browsers": [
      {
        "browserVersionId": "",
        "dartId": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": ""
      }
    ],
    "connectionTypes": [
      {
        "id": "",
        "kind": "",
        "name": ""
      }
    ],
    "mobileCarriers": [
      {
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": "",
        "name": ""
      }
    ],
    "operatingSystemVersions": [
      {
        "id": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": "",
        "operatingSystem": {
          "dartId": "",
          "desktop": false,
          "kind": "",
          "mobile": false,
          "name": ""
        }
      }
    ],
    "operatingSystems": [
      {}
    ],
    "platformTypes": [
      {
        "id": "",
        "kind": "",
        "name": ""
      }
    ]
  },
  "type": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/ads?id=");

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  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"audienceSegmentId\": \"\",\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"clickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"defaultLandingPage\": false,\n    \"landingPageId\": \"\"\n  },\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comments\": \"\",\n  \"compatibility\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupAssignments\": [\n    {\n      \"creativeGroupId\": \"\",\n      \"creativeGroupNumber\": \"\"\n    }\n  ],\n  \"creativeRotation\": {\n    \"creativeAssignments\": [\n      {\n        \"active\": false,\n        \"applyEventTags\": false,\n        \"clickThroughUrl\": {},\n        \"companionCreativeOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"creativeId\": \"\"\n          }\n        ],\n        \"creativeGroupAssignments\": [\n          {}\n        ],\n        \"creativeId\": \"\",\n        \"creativeIdDimensionValue\": {},\n        \"endTime\": \"\",\n        \"richMediaExitOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"enabled\": false,\n            \"exitId\": \"\"\n          }\n        ],\n        \"sequence\": 0,\n        \"sslCompliant\": false,\n        \"startTime\": \"\",\n        \"weight\": 0\n      }\n    ],\n    \"creativeOptimizationConfigurationId\": \"\",\n    \"type\": \"\",\n    \"weightCalculationStrategy\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"deliverySchedule\": {\n    \"frequencyCap\": {\n      \"duration\": \"\",\n      \"impressions\": \"\"\n    },\n    \"hardCutoff\": false,\n    \"impressionRatio\": \"\",\n    \"priority\": \"\"\n  },\n  \"dynamicClickTracker\": false,\n  \"endTime\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementAssignments\": [\n    {\n      \"active\": false,\n      \"placementId\": \"\",\n      \"placementIdDimensionValue\": {},\n      \"sslRequired\": false\n    }\n  ],\n  \"remarketingListExpression\": {\n    \"expression\": \"\"\n  },\n  \"size\": {\n    \"height\": 0,\n    \"iab\": false,\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"width\": 0\n  },\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"startTime\": \"\",\n  \"subaccountId\": \"\",\n  \"targetingTemplateId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"type\": \"\"\n}");

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

(client/patch "{{baseUrl}}/userprofiles/:profileId/ads" {:query-params {:id ""}
                                                                         :content-type :json
                                                                         :form-params {:accountId ""
                                                                                       :active false
                                                                                       :advertiserId ""
                                                                                       :advertiserIdDimensionValue {:dimensionName ""
                                                                                                                    :etag ""
                                                                                                                    :id ""
                                                                                                                    :kind ""
                                                                                                                    :matchType ""
                                                                                                                    :value ""}
                                                                                       :archived false
                                                                                       :audienceSegmentId ""
                                                                                       :campaignId ""
                                                                                       :campaignIdDimensionValue {}
                                                                                       :clickThroughUrl {:computedClickThroughUrl ""
                                                                                                         :customClickThroughUrl ""
                                                                                                         :defaultLandingPage false
                                                                                                         :landingPageId ""}
                                                                                       :clickThroughUrlSuffixProperties {:clickThroughUrlSuffix ""
                                                                                                                         :overrideInheritedSuffix false}
                                                                                       :comments ""
                                                                                       :compatibility ""
                                                                                       :createInfo {:time ""}
                                                                                       :creativeGroupAssignments [{:creativeGroupId ""
                                                                                                                   :creativeGroupNumber ""}]
                                                                                       :creativeRotation {:creativeAssignments [{:active false
                                                                                                                                 :applyEventTags false
                                                                                                                                 :clickThroughUrl {}
                                                                                                                                 :companionCreativeOverrides [{:clickThroughUrl {}
                                                                                                                                                               :creativeId ""}]
                                                                                                                                 :creativeGroupAssignments [{}]
                                                                                                                                 :creativeId ""
                                                                                                                                 :creativeIdDimensionValue {}
                                                                                                                                 :endTime ""
                                                                                                                                 :richMediaExitOverrides [{:clickThroughUrl {}
                                                                                                                                                           :enabled false
                                                                                                                                                           :exitId ""}]
                                                                                                                                 :sequence 0
                                                                                                                                 :sslCompliant false
                                                                                                                                 :startTime ""
                                                                                                                                 :weight 0}]
                                                                                                          :creativeOptimizationConfigurationId ""
                                                                                                          :type ""
                                                                                                          :weightCalculationStrategy ""}
                                                                                       :dayPartTargeting {:daysOfWeek []
                                                                                                          :hoursOfDay []
                                                                                                          :userLocalTime false}
                                                                                       :defaultClickThroughEventTagProperties {:defaultClickThroughEventTagId ""
                                                                                                                               :overrideInheritedEventTag false}
                                                                                       :deliverySchedule {:frequencyCap {:duration ""
                                                                                                                         :impressions ""}
                                                                                                          :hardCutoff false
                                                                                                          :impressionRatio ""
                                                                                                          :priority ""}
                                                                                       :dynamicClickTracker false
                                                                                       :endTime ""
                                                                                       :eventTagOverrides [{:enabled false
                                                                                                            :id ""}]
                                                                                       :geoTargeting {:cities [{:countryCode ""
                                                                                                                :countryDartId ""
                                                                                                                :dartId ""
                                                                                                                :kind ""
                                                                                                                :metroCode ""
                                                                                                                :metroDmaId ""
                                                                                                                :name ""
                                                                                                                :regionCode ""
                                                                                                                :regionDartId ""}]
                                                                                                      :countries [{:countryCode ""
                                                                                                                   :dartId ""
                                                                                                                   :kind ""
                                                                                                                   :name ""
                                                                                                                   :sslEnabled false}]
                                                                                                      :excludeCountries false
                                                                                                      :metros [{:countryCode ""
                                                                                                                :countryDartId ""
                                                                                                                :dartId ""
                                                                                                                :dmaId ""
                                                                                                                :kind ""
                                                                                                                :metroCode ""
                                                                                                                :name ""}]
                                                                                                      :postalCodes [{:code ""
                                                                                                                     :countryCode ""
                                                                                                                     :countryDartId ""
                                                                                                                     :id ""
                                                                                                                     :kind ""}]
                                                                                                      :regions [{:countryCode ""
                                                                                                                 :countryDartId ""
                                                                                                                 :dartId ""
                                                                                                                 :kind ""
                                                                                                                 :name ""
                                                                                                                 :regionCode ""}]}
                                                                                       :id ""
                                                                                       :idDimensionValue {}
                                                                                       :keyValueTargetingExpression {:expression ""}
                                                                                       :kind ""
                                                                                       :languageTargeting {:languages [{:id ""
                                                                                                                        :kind ""
                                                                                                                        :languageCode ""
                                                                                                                        :name ""}]}
                                                                                       :lastModifiedInfo {}
                                                                                       :name ""
                                                                                       :placementAssignments [{:active false
                                                                                                               :placementId ""
                                                                                                               :placementIdDimensionValue {}
                                                                                                               :sslRequired false}]
                                                                                       :remarketingListExpression {:expression ""}
                                                                                       :size {:height 0
                                                                                              :iab false
                                                                                              :id ""
                                                                                              :kind ""
                                                                                              :width 0}
                                                                                       :sslCompliant false
                                                                                       :sslRequired false
                                                                                       :startTime ""
                                                                                       :subaccountId ""
                                                                                       :targetingTemplateId ""
                                                                                       :technologyTargeting {:browsers [{:browserVersionId ""
                                                                                                                         :dartId ""
                                                                                                                         :kind ""
                                                                                                                         :majorVersion ""
                                                                                                                         :minorVersion ""
                                                                                                                         :name ""}]
                                                                                                             :connectionTypes [{:id ""
                                                                                                                                :kind ""
                                                                                                                                :name ""}]
                                                                                                             :mobileCarriers [{:countryCode ""
                                                                                                                               :countryDartId ""
                                                                                                                               :id ""
                                                                                                                               :kind ""
                                                                                                                               :name ""}]
                                                                                                             :operatingSystemVersions [{:id ""
                                                                                                                                        :kind ""
                                                                                                                                        :majorVersion ""
                                                                                                                                        :minorVersion ""
                                                                                                                                        :name ""
                                                                                                                                        :operatingSystem {:dartId ""
                                                                                                                                                          :desktop false
                                                                                                                                                          :kind ""
                                                                                                                                                          :mobile false
                                                                                                                                                          :name ""}}]
                                                                                                             :operatingSystems [{}]
                                                                                                             :platformTypes [{:id ""
                                                                                                                              :kind ""
                                                                                                                              :name ""}]}
                                                                                       :type ""}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/ads?id="
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"audienceSegmentId\": \"\",\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"clickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"defaultLandingPage\": false,\n    \"landingPageId\": \"\"\n  },\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comments\": \"\",\n  \"compatibility\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupAssignments\": [\n    {\n      \"creativeGroupId\": \"\",\n      \"creativeGroupNumber\": \"\"\n    }\n  ],\n  \"creativeRotation\": {\n    \"creativeAssignments\": [\n      {\n        \"active\": false,\n        \"applyEventTags\": false,\n        \"clickThroughUrl\": {},\n        \"companionCreativeOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"creativeId\": \"\"\n          }\n        ],\n        \"creativeGroupAssignments\": [\n          {}\n        ],\n        \"creativeId\": \"\",\n        \"creativeIdDimensionValue\": {},\n        \"endTime\": \"\",\n        \"richMediaExitOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"enabled\": false,\n            \"exitId\": \"\"\n          }\n        ],\n        \"sequence\": 0,\n        \"sslCompliant\": false,\n        \"startTime\": \"\",\n        \"weight\": 0\n      }\n    ],\n    \"creativeOptimizationConfigurationId\": \"\",\n    \"type\": \"\",\n    \"weightCalculationStrategy\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"deliverySchedule\": {\n    \"frequencyCap\": {\n      \"duration\": \"\",\n      \"impressions\": \"\"\n    },\n    \"hardCutoff\": false,\n    \"impressionRatio\": \"\",\n    \"priority\": \"\"\n  },\n  \"dynamicClickTracker\": false,\n  \"endTime\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementAssignments\": [\n    {\n      \"active\": false,\n      \"placementId\": \"\",\n      \"placementIdDimensionValue\": {},\n      \"sslRequired\": false\n    }\n  ],\n  \"remarketingListExpression\": {\n    \"expression\": \"\"\n  },\n  \"size\": {\n    \"height\": 0,\n    \"iab\": false,\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"width\": 0\n  },\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"startTime\": \"\",\n  \"subaccountId\": \"\",\n  \"targetingTemplateId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"type\": \"\"\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}}/userprofiles/:profileId/ads?id="),
    Content = new StringContent("{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"audienceSegmentId\": \"\",\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"clickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"defaultLandingPage\": false,\n    \"landingPageId\": \"\"\n  },\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comments\": \"\",\n  \"compatibility\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupAssignments\": [\n    {\n      \"creativeGroupId\": \"\",\n      \"creativeGroupNumber\": \"\"\n    }\n  ],\n  \"creativeRotation\": {\n    \"creativeAssignments\": [\n      {\n        \"active\": false,\n        \"applyEventTags\": false,\n        \"clickThroughUrl\": {},\n        \"companionCreativeOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"creativeId\": \"\"\n          }\n        ],\n        \"creativeGroupAssignments\": [\n          {}\n        ],\n        \"creativeId\": \"\",\n        \"creativeIdDimensionValue\": {},\n        \"endTime\": \"\",\n        \"richMediaExitOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"enabled\": false,\n            \"exitId\": \"\"\n          }\n        ],\n        \"sequence\": 0,\n        \"sslCompliant\": false,\n        \"startTime\": \"\",\n        \"weight\": 0\n      }\n    ],\n    \"creativeOptimizationConfigurationId\": \"\",\n    \"type\": \"\",\n    \"weightCalculationStrategy\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"deliverySchedule\": {\n    \"frequencyCap\": {\n      \"duration\": \"\",\n      \"impressions\": \"\"\n    },\n    \"hardCutoff\": false,\n    \"impressionRatio\": \"\",\n    \"priority\": \"\"\n  },\n  \"dynamicClickTracker\": false,\n  \"endTime\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementAssignments\": [\n    {\n      \"active\": false,\n      \"placementId\": \"\",\n      \"placementIdDimensionValue\": {},\n      \"sslRequired\": false\n    }\n  ],\n  \"remarketingListExpression\": {\n    \"expression\": \"\"\n  },\n  \"size\": {\n    \"height\": 0,\n    \"iab\": false,\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"width\": 0\n  },\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"startTime\": \"\",\n  \"subaccountId\": \"\",\n  \"targetingTemplateId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"type\": \"\"\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}}/userprofiles/:profileId/ads?id=");
var request = new RestRequest("", Method.Patch);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"audienceSegmentId\": \"\",\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"clickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"defaultLandingPage\": false,\n    \"landingPageId\": \"\"\n  },\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comments\": \"\",\n  \"compatibility\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupAssignments\": [\n    {\n      \"creativeGroupId\": \"\",\n      \"creativeGroupNumber\": \"\"\n    }\n  ],\n  \"creativeRotation\": {\n    \"creativeAssignments\": [\n      {\n        \"active\": false,\n        \"applyEventTags\": false,\n        \"clickThroughUrl\": {},\n        \"companionCreativeOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"creativeId\": \"\"\n          }\n        ],\n        \"creativeGroupAssignments\": [\n          {}\n        ],\n        \"creativeId\": \"\",\n        \"creativeIdDimensionValue\": {},\n        \"endTime\": \"\",\n        \"richMediaExitOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"enabled\": false,\n            \"exitId\": \"\"\n          }\n        ],\n        \"sequence\": 0,\n        \"sslCompliant\": false,\n        \"startTime\": \"\",\n        \"weight\": 0\n      }\n    ],\n    \"creativeOptimizationConfigurationId\": \"\",\n    \"type\": \"\",\n    \"weightCalculationStrategy\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"deliverySchedule\": {\n    \"frequencyCap\": {\n      \"duration\": \"\",\n      \"impressions\": \"\"\n    },\n    \"hardCutoff\": false,\n    \"impressionRatio\": \"\",\n    \"priority\": \"\"\n  },\n  \"dynamicClickTracker\": false,\n  \"endTime\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementAssignments\": [\n    {\n      \"active\": false,\n      \"placementId\": \"\",\n      \"placementIdDimensionValue\": {},\n      \"sslRequired\": false\n    }\n  ],\n  \"remarketingListExpression\": {\n    \"expression\": \"\"\n  },\n  \"size\": {\n    \"height\": 0,\n    \"iab\": false,\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"width\": 0\n  },\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"startTime\": \"\",\n  \"subaccountId\": \"\",\n  \"targetingTemplateId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"type\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/ads?id="

	payload := strings.NewReader("{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"audienceSegmentId\": \"\",\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"clickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"defaultLandingPage\": false,\n    \"landingPageId\": \"\"\n  },\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comments\": \"\",\n  \"compatibility\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupAssignments\": [\n    {\n      \"creativeGroupId\": \"\",\n      \"creativeGroupNumber\": \"\"\n    }\n  ],\n  \"creativeRotation\": {\n    \"creativeAssignments\": [\n      {\n        \"active\": false,\n        \"applyEventTags\": false,\n        \"clickThroughUrl\": {},\n        \"companionCreativeOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"creativeId\": \"\"\n          }\n        ],\n        \"creativeGroupAssignments\": [\n          {}\n        ],\n        \"creativeId\": \"\",\n        \"creativeIdDimensionValue\": {},\n        \"endTime\": \"\",\n        \"richMediaExitOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"enabled\": false,\n            \"exitId\": \"\"\n          }\n        ],\n        \"sequence\": 0,\n        \"sslCompliant\": false,\n        \"startTime\": \"\",\n        \"weight\": 0\n      }\n    ],\n    \"creativeOptimizationConfigurationId\": \"\",\n    \"type\": \"\",\n    \"weightCalculationStrategy\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"deliverySchedule\": {\n    \"frequencyCap\": {\n      \"duration\": \"\",\n      \"impressions\": \"\"\n    },\n    \"hardCutoff\": false,\n    \"impressionRatio\": \"\",\n    \"priority\": \"\"\n  },\n  \"dynamicClickTracker\": false,\n  \"endTime\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementAssignments\": [\n    {\n      \"active\": false,\n      \"placementId\": \"\",\n      \"placementIdDimensionValue\": {},\n      \"sslRequired\": false\n    }\n  ],\n  \"remarketingListExpression\": {\n    \"expression\": \"\"\n  },\n  \"size\": {\n    \"height\": 0,\n    \"iab\": false,\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"width\": 0\n  },\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"startTime\": \"\",\n  \"subaccountId\": \"\",\n  \"targetingTemplateId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"type\": \"\"\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/userprofiles/:profileId/ads?id= HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 4857

{
  "accountId": "",
  "active": false,
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "archived": false,
  "audienceSegmentId": "",
  "campaignId": "",
  "campaignIdDimensionValue": {},
  "clickThroughUrl": {
    "computedClickThroughUrl": "",
    "customClickThroughUrl": "",
    "defaultLandingPage": false,
    "landingPageId": ""
  },
  "clickThroughUrlSuffixProperties": {
    "clickThroughUrlSuffix": "",
    "overrideInheritedSuffix": false
  },
  "comments": "",
  "compatibility": "",
  "createInfo": {
    "time": ""
  },
  "creativeGroupAssignments": [
    {
      "creativeGroupId": "",
      "creativeGroupNumber": ""
    }
  ],
  "creativeRotation": {
    "creativeAssignments": [
      {
        "active": false,
        "applyEventTags": false,
        "clickThroughUrl": {},
        "companionCreativeOverrides": [
          {
            "clickThroughUrl": {},
            "creativeId": ""
          }
        ],
        "creativeGroupAssignments": [
          {}
        ],
        "creativeId": "",
        "creativeIdDimensionValue": {},
        "endTime": "",
        "richMediaExitOverrides": [
          {
            "clickThroughUrl": {},
            "enabled": false,
            "exitId": ""
          }
        ],
        "sequence": 0,
        "sslCompliant": false,
        "startTime": "",
        "weight": 0
      }
    ],
    "creativeOptimizationConfigurationId": "",
    "type": "",
    "weightCalculationStrategy": ""
  },
  "dayPartTargeting": {
    "daysOfWeek": [],
    "hoursOfDay": [],
    "userLocalTime": false
  },
  "defaultClickThroughEventTagProperties": {
    "defaultClickThroughEventTagId": "",
    "overrideInheritedEventTag": false
  },
  "deliverySchedule": {
    "frequencyCap": {
      "duration": "",
      "impressions": ""
    },
    "hardCutoff": false,
    "impressionRatio": "",
    "priority": ""
  },
  "dynamicClickTracker": false,
  "endTime": "",
  "eventTagOverrides": [
    {
      "enabled": false,
      "id": ""
    }
  ],
  "geoTargeting": {
    "cities": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "metroCode": "",
        "metroDmaId": "",
        "name": "",
        "regionCode": "",
        "regionDartId": ""
      }
    ],
    "countries": [
      {
        "countryCode": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "sslEnabled": false
      }
    ],
    "excludeCountries": false,
    "metros": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "dmaId": "",
        "kind": "",
        "metroCode": "",
        "name": ""
      }
    ],
    "postalCodes": [
      {
        "code": "",
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": ""
      }
    ],
    "regions": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "regionCode": ""
      }
    ]
  },
  "id": "",
  "idDimensionValue": {},
  "keyValueTargetingExpression": {
    "expression": ""
  },
  "kind": "",
  "languageTargeting": {
    "languages": [
      {
        "id": "",
        "kind": "",
        "languageCode": "",
        "name": ""
      }
    ]
  },
  "lastModifiedInfo": {},
  "name": "",
  "placementAssignments": [
    {
      "active": false,
      "placementId": "",
      "placementIdDimensionValue": {},
      "sslRequired": false
    }
  ],
  "remarketingListExpression": {
    "expression": ""
  },
  "size": {
    "height": 0,
    "iab": false,
    "id": "",
    "kind": "",
    "width": 0
  },
  "sslCompliant": false,
  "sslRequired": false,
  "startTime": "",
  "subaccountId": "",
  "targetingTemplateId": "",
  "technologyTargeting": {
    "browsers": [
      {
        "browserVersionId": "",
        "dartId": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": ""
      }
    ],
    "connectionTypes": [
      {
        "id": "",
        "kind": "",
        "name": ""
      }
    ],
    "mobileCarriers": [
      {
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": "",
        "name": ""
      }
    ],
    "operatingSystemVersions": [
      {
        "id": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": "",
        "operatingSystem": {
          "dartId": "",
          "desktop": false,
          "kind": "",
          "mobile": false,
          "name": ""
        }
      }
    ],
    "operatingSystems": [
      {}
    ],
    "platformTypes": [
      {
        "id": "",
        "kind": "",
        "name": ""
      }
    ]
  },
  "type": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/userprofiles/:profileId/ads?id=")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"audienceSegmentId\": \"\",\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"clickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"defaultLandingPage\": false,\n    \"landingPageId\": \"\"\n  },\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comments\": \"\",\n  \"compatibility\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupAssignments\": [\n    {\n      \"creativeGroupId\": \"\",\n      \"creativeGroupNumber\": \"\"\n    }\n  ],\n  \"creativeRotation\": {\n    \"creativeAssignments\": [\n      {\n        \"active\": false,\n        \"applyEventTags\": false,\n        \"clickThroughUrl\": {},\n        \"companionCreativeOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"creativeId\": \"\"\n          }\n        ],\n        \"creativeGroupAssignments\": [\n          {}\n        ],\n        \"creativeId\": \"\",\n        \"creativeIdDimensionValue\": {},\n        \"endTime\": \"\",\n        \"richMediaExitOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"enabled\": false,\n            \"exitId\": \"\"\n          }\n        ],\n        \"sequence\": 0,\n        \"sslCompliant\": false,\n        \"startTime\": \"\",\n        \"weight\": 0\n      }\n    ],\n    \"creativeOptimizationConfigurationId\": \"\",\n    \"type\": \"\",\n    \"weightCalculationStrategy\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"deliverySchedule\": {\n    \"frequencyCap\": {\n      \"duration\": \"\",\n      \"impressions\": \"\"\n    },\n    \"hardCutoff\": false,\n    \"impressionRatio\": \"\",\n    \"priority\": \"\"\n  },\n  \"dynamicClickTracker\": false,\n  \"endTime\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementAssignments\": [\n    {\n      \"active\": false,\n      \"placementId\": \"\",\n      \"placementIdDimensionValue\": {},\n      \"sslRequired\": false\n    }\n  ],\n  \"remarketingListExpression\": {\n    \"expression\": \"\"\n  },\n  \"size\": {\n    \"height\": 0,\n    \"iab\": false,\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"width\": 0\n  },\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"startTime\": \"\",\n  \"subaccountId\": \"\",\n  \"targetingTemplateId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"type\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/ads?id="))
    .header("content-type", "application/json")
    .method("PATCH", HttpRequest.BodyPublishers.ofString("{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"audienceSegmentId\": \"\",\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"clickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"defaultLandingPage\": false,\n    \"landingPageId\": \"\"\n  },\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comments\": \"\",\n  \"compatibility\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupAssignments\": [\n    {\n      \"creativeGroupId\": \"\",\n      \"creativeGroupNumber\": \"\"\n    }\n  ],\n  \"creativeRotation\": {\n    \"creativeAssignments\": [\n      {\n        \"active\": false,\n        \"applyEventTags\": false,\n        \"clickThroughUrl\": {},\n        \"companionCreativeOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"creativeId\": \"\"\n          }\n        ],\n        \"creativeGroupAssignments\": [\n          {}\n        ],\n        \"creativeId\": \"\",\n        \"creativeIdDimensionValue\": {},\n        \"endTime\": \"\",\n        \"richMediaExitOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"enabled\": false,\n            \"exitId\": \"\"\n          }\n        ],\n        \"sequence\": 0,\n        \"sslCompliant\": false,\n        \"startTime\": \"\",\n        \"weight\": 0\n      }\n    ],\n    \"creativeOptimizationConfigurationId\": \"\",\n    \"type\": \"\",\n    \"weightCalculationStrategy\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"deliverySchedule\": {\n    \"frequencyCap\": {\n      \"duration\": \"\",\n      \"impressions\": \"\"\n    },\n    \"hardCutoff\": false,\n    \"impressionRatio\": \"\",\n    \"priority\": \"\"\n  },\n  \"dynamicClickTracker\": false,\n  \"endTime\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementAssignments\": [\n    {\n      \"active\": false,\n      \"placementId\": \"\",\n      \"placementIdDimensionValue\": {},\n      \"sslRequired\": false\n    }\n  ],\n  \"remarketingListExpression\": {\n    \"expression\": \"\"\n  },\n  \"size\": {\n    \"height\": 0,\n    \"iab\": false,\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"width\": 0\n  },\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"startTime\": \"\",\n  \"subaccountId\": \"\",\n  \"targetingTemplateId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"type\": \"\"\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  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"audienceSegmentId\": \"\",\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"clickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"defaultLandingPage\": false,\n    \"landingPageId\": \"\"\n  },\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comments\": \"\",\n  \"compatibility\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupAssignments\": [\n    {\n      \"creativeGroupId\": \"\",\n      \"creativeGroupNumber\": \"\"\n    }\n  ],\n  \"creativeRotation\": {\n    \"creativeAssignments\": [\n      {\n        \"active\": false,\n        \"applyEventTags\": false,\n        \"clickThroughUrl\": {},\n        \"companionCreativeOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"creativeId\": \"\"\n          }\n        ],\n        \"creativeGroupAssignments\": [\n          {}\n        ],\n        \"creativeId\": \"\",\n        \"creativeIdDimensionValue\": {},\n        \"endTime\": \"\",\n        \"richMediaExitOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"enabled\": false,\n            \"exitId\": \"\"\n          }\n        ],\n        \"sequence\": 0,\n        \"sslCompliant\": false,\n        \"startTime\": \"\",\n        \"weight\": 0\n      }\n    ],\n    \"creativeOptimizationConfigurationId\": \"\",\n    \"type\": \"\",\n    \"weightCalculationStrategy\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"deliverySchedule\": {\n    \"frequencyCap\": {\n      \"duration\": \"\",\n      \"impressions\": \"\"\n    },\n    \"hardCutoff\": false,\n    \"impressionRatio\": \"\",\n    \"priority\": \"\"\n  },\n  \"dynamicClickTracker\": false,\n  \"endTime\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementAssignments\": [\n    {\n      \"active\": false,\n      \"placementId\": \"\",\n      \"placementIdDimensionValue\": {},\n      \"sslRequired\": false\n    }\n  ],\n  \"remarketingListExpression\": {\n    \"expression\": \"\"\n  },\n  \"size\": {\n    \"height\": 0,\n    \"iab\": false,\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"width\": 0\n  },\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"startTime\": \"\",\n  \"subaccountId\": \"\",\n  \"targetingTemplateId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"type\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/ads?id=")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/userprofiles/:profileId/ads?id=")
  .header("content-type", "application/json")
  .body("{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"audienceSegmentId\": \"\",\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"clickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"defaultLandingPage\": false,\n    \"landingPageId\": \"\"\n  },\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comments\": \"\",\n  \"compatibility\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupAssignments\": [\n    {\n      \"creativeGroupId\": \"\",\n      \"creativeGroupNumber\": \"\"\n    }\n  ],\n  \"creativeRotation\": {\n    \"creativeAssignments\": [\n      {\n        \"active\": false,\n        \"applyEventTags\": false,\n        \"clickThroughUrl\": {},\n        \"companionCreativeOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"creativeId\": \"\"\n          }\n        ],\n        \"creativeGroupAssignments\": [\n          {}\n        ],\n        \"creativeId\": \"\",\n        \"creativeIdDimensionValue\": {},\n        \"endTime\": \"\",\n        \"richMediaExitOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"enabled\": false,\n            \"exitId\": \"\"\n          }\n        ],\n        \"sequence\": 0,\n        \"sslCompliant\": false,\n        \"startTime\": \"\",\n        \"weight\": 0\n      }\n    ],\n    \"creativeOptimizationConfigurationId\": \"\",\n    \"type\": \"\",\n    \"weightCalculationStrategy\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"deliverySchedule\": {\n    \"frequencyCap\": {\n      \"duration\": \"\",\n      \"impressions\": \"\"\n    },\n    \"hardCutoff\": false,\n    \"impressionRatio\": \"\",\n    \"priority\": \"\"\n  },\n  \"dynamicClickTracker\": false,\n  \"endTime\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementAssignments\": [\n    {\n      \"active\": false,\n      \"placementId\": \"\",\n      \"placementIdDimensionValue\": {},\n      \"sslRequired\": false\n    }\n  ],\n  \"remarketingListExpression\": {\n    \"expression\": \"\"\n  },\n  \"size\": {\n    \"height\": 0,\n    \"iab\": false,\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"width\": 0\n  },\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"startTime\": \"\",\n  \"subaccountId\": \"\",\n  \"targetingTemplateId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"type\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  accountId: '',
  active: false,
  advertiserId: '',
  advertiserIdDimensionValue: {
    dimensionName: '',
    etag: '',
    id: '',
    kind: '',
    matchType: '',
    value: ''
  },
  archived: false,
  audienceSegmentId: '',
  campaignId: '',
  campaignIdDimensionValue: {},
  clickThroughUrl: {
    computedClickThroughUrl: '',
    customClickThroughUrl: '',
    defaultLandingPage: false,
    landingPageId: ''
  },
  clickThroughUrlSuffixProperties: {
    clickThroughUrlSuffix: '',
    overrideInheritedSuffix: false
  },
  comments: '',
  compatibility: '',
  createInfo: {
    time: ''
  },
  creativeGroupAssignments: [
    {
      creativeGroupId: '',
      creativeGroupNumber: ''
    }
  ],
  creativeRotation: {
    creativeAssignments: [
      {
        active: false,
        applyEventTags: false,
        clickThroughUrl: {},
        companionCreativeOverrides: [
          {
            clickThroughUrl: {},
            creativeId: ''
          }
        ],
        creativeGroupAssignments: [
          {}
        ],
        creativeId: '',
        creativeIdDimensionValue: {},
        endTime: '',
        richMediaExitOverrides: [
          {
            clickThroughUrl: {},
            enabled: false,
            exitId: ''
          }
        ],
        sequence: 0,
        sslCompliant: false,
        startTime: '',
        weight: 0
      }
    ],
    creativeOptimizationConfigurationId: '',
    type: '',
    weightCalculationStrategy: ''
  },
  dayPartTargeting: {
    daysOfWeek: [],
    hoursOfDay: [],
    userLocalTime: false
  },
  defaultClickThroughEventTagProperties: {
    defaultClickThroughEventTagId: '',
    overrideInheritedEventTag: false
  },
  deliverySchedule: {
    frequencyCap: {
      duration: '',
      impressions: ''
    },
    hardCutoff: false,
    impressionRatio: '',
    priority: ''
  },
  dynamicClickTracker: false,
  endTime: '',
  eventTagOverrides: [
    {
      enabled: false,
      id: ''
    }
  ],
  geoTargeting: {
    cities: [
      {
        countryCode: '',
        countryDartId: '',
        dartId: '',
        kind: '',
        metroCode: '',
        metroDmaId: '',
        name: '',
        regionCode: '',
        regionDartId: ''
      }
    ],
    countries: [
      {
        countryCode: '',
        dartId: '',
        kind: '',
        name: '',
        sslEnabled: false
      }
    ],
    excludeCountries: false,
    metros: [
      {
        countryCode: '',
        countryDartId: '',
        dartId: '',
        dmaId: '',
        kind: '',
        metroCode: '',
        name: ''
      }
    ],
    postalCodes: [
      {
        code: '',
        countryCode: '',
        countryDartId: '',
        id: '',
        kind: ''
      }
    ],
    regions: [
      {
        countryCode: '',
        countryDartId: '',
        dartId: '',
        kind: '',
        name: '',
        regionCode: ''
      }
    ]
  },
  id: '',
  idDimensionValue: {},
  keyValueTargetingExpression: {
    expression: ''
  },
  kind: '',
  languageTargeting: {
    languages: [
      {
        id: '',
        kind: '',
        languageCode: '',
        name: ''
      }
    ]
  },
  lastModifiedInfo: {},
  name: '',
  placementAssignments: [
    {
      active: false,
      placementId: '',
      placementIdDimensionValue: {},
      sslRequired: false
    }
  ],
  remarketingListExpression: {
    expression: ''
  },
  size: {
    height: 0,
    iab: false,
    id: '',
    kind: '',
    width: 0
  },
  sslCompliant: false,
  sslRequired: false,
  startTime: '',
  subaccountId: '',
  targetingTemplateId: '',
  technologyTargeting: {
    browsers: [
      {
        browserVersionId: '',
        dartId: '',
        kind: '',
        majorVersion: '',
        minorVersion: '',
        name: ''
      }
    ],
    connectionTypes: [
      {
        id: '',
        kind: '',
        name: ''
      }
    ],
    mobileCarriers: [
      {
        countryCode: '',
        countryDartId: '',
        id: '',
        kind: '',
        name: ''
      }
    ],
    operatingSystemVersions: [
      {
        id: '',
        kind: '',
        majorVersion: '',
        minorVersion: '',
        name: '',
        operatingSystem: {
          dartId: '',
          desktop: false,
          kind: '',
          mobile: false,
          name: ''
        }
      }
    ],
    operatingSystems: [
      {}
    ],
    platformTypes: [
      {
        id: '',
        kind: '',
        name: ''
      }
    ]
  },
  type: ''
});

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

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

xhr.open('PATCH', '{{baseUrl}}/userprofiles/:profileId/ads?id=');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/userprofiles/:profileId/ads',
  params: {id: ''},
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    active: false,
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    archived: false,
    audienceSegmentId: '',
    campaignId: '',
    campaignIdDimensionValue: {},
    clickThroughUrl: {
      computedClickThroughUrl: '',
      customClickThroughUrl: '',
      defaultLandingPage: false,
      landingPageId: ''
    },
    clickThroughUrlSuffixProperties: {clickThroughUrlSuffix: '', overrideInheritedSuffix: false},
    comments: '',
    compatibility: '',
    createInfo: {time: ''},
    creativeGroupAssignments: [{creativeGroupId: '', creativeGroupNumber: ''}],
    creativeRotation: {
      creativeAssignments: [
        {
          active: false,
          applyEventTags: false,
          clickThroughUrl: {},
          companionCreativeOverrides: [{clickThroughUrl: {}, creativeId: ''}],
          creativeGroupAssignments: [{}],
          creativeId: '',
          creativeIdDimensionValue: {},
          endTime: '',
          richMediaExitOverrides: [{clickThroughUrl: {}, enabled: false, exitId: ''}],
          sequence: 0,
          sslCompliant: false,
          startTime: '',
          weight: 0
        }
      ],
      creativeOptimizationConfigurationId: '',
      type: '',
      weightCalculationStrategy: ''
    },
    dayPartTargeting: {daysOfWeek: [], hoursOfDay: [], userLocalTime: false},
    defaultClickThroughEventTagProperties: {defaultClickThroughEventTagId: '', overrideInheritedEventTag: false},
    deliverySchedule: {
      frequencyCap: {duration: '', impressions: ''},
      hardCutoff: false,
      impressionRatio: '',
      priority: ''
    },
    dynamicClickTracker: false,
    endTime: '',
    eventTagOverrides: [{enabled: false, id: ''}],
    geoTargeting: {
      cities: [
        {
          countryCode: '',
          countryDartId: '',
          dartId: '',
          kind: '',
          metroCode: '',
          metroDmaId: '',
          name: '',
          regionCode: '',
          regionDartId: ''
        }
      ],
      countries: [{countryCode: '', dartId: '', kind: '', name: '', sslEnabled: false}],
      excludeCountries: false,
      metros: [
        {
          countryCode: '',
          countryDartId: '',
          dartId: '',
          dmaId: '',
          kind: '',
          metroCode: '',
          name: ''
        }
      ],
      postalCodes: [{code: '', countryCode: '', countryDartId: '', id: '', kind: ''}],
      regions: [
        {
          countryCode: '',
          countryDartId: '',
          dartId: '',
          kind: '',
          name: '',
          regionCode: ''
        }
      ]
    },
    id: '',
    idDimensionValue: {},
    keyValueTargetingExpression: {expression: ''},
    kind: '',
    languageTargeting: {languages: [{id: '', kind: '', languageCode: '', name: ''}]},
    lastModifiedInfo: {},
    name: '',
    placementAssignments: [
      {
        active: false,
        placementId: '',
        placementIdDimensionValue: {},
        sslRequired: false
      }
    ],
    remarketingListExpression: {expression: ''},
    size: {height: 0, iab: false, id: '', kind: '', width: 0},
    sslCompliant: false,
    sslRequired: false,
    startTime: '',
    subaccountId: '',
    targetingTemplateId: '',
    technologyTargeting: {
      browsers: [
        {
          browserVersionId: '',
          dartId: '',
          kind: '',
          majorVersion: '',
          minorVersion: '',
          name: ''
        }
      ],
      connectionTypes: [{id: '', kind: '', name: ''}],
      mobileCarriers: [{countryCode: '', countryDartId: '', id: '', kind: '', name: ''}],
      operatingSystemVersions: [
        {
          id: '',
          kind: '',
          majorVersion: '',
          minorVersion: '',
          name: '',
          operatingSystem: {dartId: '', desktop: false, kind: '', mobile: false, name: ''}
        }
      ],
      operatingSystems: [{}],
      platformTypes: [{id: '', kind: '', name: ''}]
    },
    type: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/ads?id=';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","active":false,"advertiserId":"","advertiserIdDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"archived":false,"audienceSegmentId":"","campaignId":"","campaignIdDimensionValue":{},"clickThroughUrl":{"computedClickThroughUrl":"","customClickThroughUrl":"","defaultLandingPage":false,"landingPageId":""},"clickThroughUrlSuffixProperties":{"clickThroughUrlSuffix":"","overrideInheritedSuffix":false},"comments":"","compatibility":"","createInfo":{"time":""},"creativeGroupAssignments":[{"creativeGroupId":"","creativeGroupNumber":""}],"creativeRotation":{"creativeAssignments":[{"active":false,"applyEventTags":false,"clickThroughUrl":{},"companionCreativeOverrides":[{"clickThroughUrl":{},"creativeId":""}],"creativeGroupAssignments":[{}],"creativeId":"","creativeIdDimensionValue":{},"endTime":"","richMediaExitOverrides":[{"clickThroughUrl":{},"enabled":false,"exitId":""}],"sequence":0,"sslCompliant":false,"startTime":"","weight":0}],"creativeOptimizationConfigurationId":"","type":"","weightCalculationStrategy":""},"dayPartTargeting":{"daysOfWeek":[],"hoursOfDay":[],"userLocalTime":false},"defaultClickThroughEventTagProperties":{"defaultClickThroughEventTagId":"","overrideInheritedEventTag":false},"deliverySchedule":{"frequencyCap":{"duration":"","impressions":""},"hardCutoff":false,"impressionRatio":"","priority":""},"dynamicClickTracker":false,"endTime":"","eventTagOverrides":[{"enabled":false,"id":""}],"geoTargeting":{"cities":[{"countryCode":"","countryDartId":"","dartId":"","kind":"","metroCode":"","metroDmaId":"","name":"","regionCode":"","regionDartId":""}],"countries":[{"countryCode":"","dartId":"","kind":"","name":"","sslEnabled":false}],"excludeCountries":false,"metros":[{"countryCode":"","countryDartId":"","dartId":"","dmaId":"","kind":"","metroCode":"","name":""}],"postalCodes":[{"code":"","countryCode":"","countryDartId":"","id":"","kind":""}],"regions":[{"countryCode":"","countryDartId":"","dartId":"","kind":"","name":"","regionCode":""}]},"id":"","idDimensionValue":{},"keyValueTargetingExpression":{"expression":""},"kind":"","languageTargeting":{"languages":[{"id":"","kind":"","languageCode":"","name":""}]},"lastModifiedInfo":{},"name":"","placementAssignments":[{"active":false,"placementId":"","placementIdDimensionValue":{},"sslRequired":false}],"remarketingListExpression":{"expression":""},"size":{"height":0,"iab":false,"id":"","kind":"","width":0},"sslCompliant":false,"sslRequired":false,"startTime":"","subaccountId":"","targetingTemplateId":"","technologyTargeting":{"browsers":[{"browserVersionId":"","dartId":"","kind":"","majorVersion":"","minorVersion":"","name":""}],"connectionTypes":[{"id":"","kind":"","name":""}],"mobileCarriers":[{"countryCode":"","countryDartId":"","id":"","kind":"","name":""}],"operatingSystemVersions":[{"id":"","kind":"","majorVersion":"","minorVersion":"","name":"","operatingSystem":{"dartId":"","desktop":false,"kind":"","mobile":false,"name":""}}],"operatingSystems":[{}],"platformTypes":[{"id":"","kind":"","name":""}]},"type":""}'
};

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}}/userprofiles/:profileId/ads?id=',
  method: 'PATCH',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "accountId": "",\n  "active": false,\n  "advertiserId": "",\n  "advertiserIdDimensionValue": {\n    "dimensionName": "",\n    "etag": "",\n    "id": "",\n    "kind": "",\n    "matchType": "",\n    "value": ""\n  },\n  "archived": false,\n  "audienceSegmentId": "",\n  "campaignId": "",\n  "campaignIdDimensionValue": {},\n  "clickThroughUrl": {\n    "computedClickThroughUrl": "",\n    "customClickThroughUrl": "",\n    "defaultLandingPage": false,\n    "landingPageId": ""\n  },\n  "clickThroughUrlSuffixProperties": {\n    "clickThroughUrlSuffix": "",\n    "overrideInheritedSuffix": false\n  },\n  "comments": "",\n  "compatibility": "",\n  "createInfo": {\n    "time": ""\n  },\n  "creativeGroupAssignments": [\n    {\n      "creativeGroupId": "",\n      "creativeGroupNumber": ""\n    }\n  ],\n  "creativeRotation": {\n    "creativeAssignments": [\n      {\n        "active": false,\n        "applyEventTags": false,\n        "clickThroughUrl": {},\n        "companionCreativeOverrides": [\n          {\n            "clickThroughUrl": {},\n            "creativeId": ""\n          }\n        ],\n        "creativeGroupAssignments": [\n          {}\n        ],\n        "creativeId": "",\n        "creativeIdDimensionValue": {},\n        "endTime": "",\n        "richMediaExitOverrides": [\n          {\n            "clickThroughUrl": {},\n            "enabled": false,\n            "exitId": ""\n          }\n        ],\n        "sequence": 0,\n        "sslCompliant": false,\n        "startTime": "",\n        "weight": 0\n      }\n    ],\n    "creativeOptimizationConfigurationId": "",\n    "type": "",\n    "weightCalculationStrategy": ""\n  },\n  "dayPartTargeting": {\n    "daysOfWeek": [],\n    "hoursOfDay": [],\n    "userLocalTime": false\n  },\n  "defaultClickThroughEventTagProperties": {\n    "defaultClickThroughEventTagId": "",\n    "overrideInheritedEventTag": false\n  },\n  "deliverySchedule": {\n    "frequencyCap": {\n      "duration": "",\n      "impressions": ""\n    },\n    "hardCutoff": false,\n    "impressionRatio": "",\n    "priority": ""\n  },\n  "dynamicClickTracker": false,\n  "endTime": "",\n  "eventTagOverrides": [\n    {\n      "enabled": false,\n      "id": ""\n    }\n  ],\n  "geoTargeting": {\n    "cities": [\n      {\n        "countryCode": "",\n        "countryDartId": "",\n        "dartId": "",\n        "kind": "",\n        "metroCode": "",\n        "metroDmaId": "",\n        "name": "",\n        "regionCode": "",\n        "regionDartId": ""\n      }\n    ],\n    "countries": [\n      {\n        "countryCode": "",\n        "dartId": "",\n        "kind": "",\n        "name": "",\n        "sslEnabled": false\n      }\n    ],\n    "excludeCountries": false,\n    "metros": [\n      {\n        "countryCode": "",\n        "countryDartId": "",\n        "dartId": "",\n        "dmaId": "",\n        "kind": "",\n        "metroCode": "",\n        "name": ""\n      }\n    ],\n    "postalCodes": [\n      {\n        "code": "",\n        "countryCode": "",\n        "countryDartId": "",\n        "id": "",\n        "kind": ""\n      }\n    ],\n    "regions": [\n      {\n        "countryCode": "",\n        "countryDartId": "",\n        "dartId": "",\n        "kind": "",\n        "name": "",\n        "regionCode": ""\n      }\n    ]\n  },\n  "id": "",\n  "idDimensionValue": {},\n  "keyValueTargetingExpression": {\n    "expression": ""\n  },\n  "kind": "",\n  "languageTargeting": {\n    "languages": [\n      {\n        "id": "",\n        "kind": "",\n        "languageCode": "",\n        "name": ""\n      }\n    ]\n  },\n  "lastModifiedInfo": {},\n  "name": "",\n  "placementAssignments": [\n    {\n      "active": false,\n      "placementId": "",\n      "placementIdDimensionValue": {},\n      "sslRequired": false\n    }\n  ],\n  "remarketingListExpression": {\n    "expression": ""\n  },\n  "size": {\n    "height": 0,\n    "iab": false,\n    "id": "",\n    "kind": "",\n    "width": 0\n  },\n  "sslCompliant": false,\n  "sslRequired": false,\n  "startTime": "",\n  "subaccountId": "",\n  "targetingTemplateId": "",\n  "technologyTargeting": {\n    "browsers": [\n      {\n        "browserVersionId": "",\n        "dartId": "",\n        "kind": "",\n        "majorVersion": "",\n        "minorVersion": "",\n        "name": ""\n      }\n    ],\n    "connectionTypes": [\n      {\n        "id": "",\n        "kind": "",\n        "name": ""\n      }\n    ],\n    "mobileCarriers": [\n      {\n        "countryCode": "",\n        "countryDartId": "",\n        "id": "",\n        "kind": "",\n        "name": ""\n      }\n    ],\n    "operatingSystemVersions": [\n      {\n        "id": "",\n        "kind": "",\n        "majorVersion": "",\n        "minorVersion": "",\n        "name": "",\n        "operatingSystem": {\n          "dartId": "",\n          "desktop": false,\n          "kind": "",\n          "mobile": false,\n          "name": ""\n        }\n      }\n    ],\n    "operatingSystems": [\n      {}\n    ],\n    "platformTypes": [\n      {\n        "id": "",\n        "kind": "",\n        "name": ""\n      }\n    ]\n  },\n  "type": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"audienceSegmentId\": \"\",\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"clickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"defaultLandingPage\": false,\n    \"landingPageId\": \"\"\n  },\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comments\": \"\",\n  \"compatibility\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupAssignments\": [\n    {\n      \"creativeGroupId\": \"\",\n      \"creativeGroupNumber\": \"\"\n    }\n  ],\n  \"creativeRotation\": {\n    \"creativeAssignments\": [\n      {\n        \"active\": false,\n        \"applyEventTags\": false,\n        \"clickThroughUrl\": {},\n        \"companionCreativeOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"creativeId\": \"\"\n          }\n        ],\n        \"creativeGroupAssignments\": [\n          {}\n        ],\n        \"creativeId\": \"\",\n        \"creativeIdDimensionValue\": {},\n        \"endTime\": \"\",\n        \"richMediaExitOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"enabled\": false,\n            \"exitId\": \"\"\n          }\n        ],\n        \"sequence\": 0,\n        \"sslCompliant\": false,\n        \"startTime\": \"\",\n        \"weight\": 0\n      }\n    ],\n    \"creativeOptimizationConfigurationId\": \"\",\n    \"type\": \"\",\n    \"weightCalculationStrategy\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"deliverySchedule\": {\n    \"frequencyCap\": {\n      \"duration\": \"\",\n      \"impressions\": \"\"\n    },\n    \"hardCutoff\": false,\n    \"impressionRatio\": \"\",\n    \"priority\": \"\"\n  },\n  \"dynamicClickTracker\": false,\n  \"endTime\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementAssignments\": [\n    {\n      \"active\": false,\n      \"placementId\": \"\",\n      \"placementIdDimensionValue\": {},\n      \"sslRequired\": false\n    }\n  ],\n  \"remarketingListExpression\": {\n    \"expression\": \"\"\n  },\n  \"size\": {\n    \"height\": 0,\n    \"iab\": false,\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"width\": 0\n  },\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"startTime\": \"\",\n  \"subaccountId\": \"\",\n  \"targetingTemplateId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"type\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/ads?id=")
  .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/userprofiles/:profileId/ads?id=',
  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({
  accountId: '',
  active: false,
  advertiserId: '',
  advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
  archived: false,
  audienceSegmentId: '',
  campaignId: '',
  campaignIdDimensionValue: {},
  clickThroughUrl: {
    computedClickThroughUrl: '',
    customClickThroughUrl: '',
    defaultLandingPage: false,
    landingPageId: ''
  },
  clickThroughUrlSuffixProperties: {clickThroughUrlSuffix: '', overrideInheritedSuffix: false},
  comments: '',
  compatibility: '',
  createInfo: {time: ''},
  creativeGroupAssignments: [{creativeGroupId: '', creativeGroupNumber: ''}],
  creativeRotation: {
    creativeAssignments: [
      {
        active: false,
        applyEventTags: false,
        clickThroughUrl: {},
        companionCreativeOverrides: [{clickThroughUrl: {}, creativeId: ''}],
        creativeGroupAssignments: [{}],
        creativeId: '',
        creativeIdDimensionValue: {},
        endTime: '',
        richMediaExitOverrides: [{clickThroughUrl: {}, enabled: false, exitId: ''}],
        sequence: 0,
        sslCompliant: false,
        startTime: '',
        weight: 0
      }
    ],
    creativeOptimizationConfigurationId: '',
    type: '',
    weightCalculationStrategy: ''
  },
  dayPartTargeting: {daysOfWeek: [], hoursOfDay: [], userLocalTime: false},
  defaultClickThroughEventTagProperties: {defaultClickThroughEventTagId: '', overrideInheritedEventTag: false},
  deliverySchedule: {
    frequencyCap: {duration: '', impressions: ''},
    hardCutoff: false,
    impressionRatio: '',
    priority: ''
  },
  dynamicClickTracker: false,
  endTime: '',
  eventTagOverrides: [{enabled: false, id: ''}],
  geoTargeting: {
    cities: [
      {
        countryCode: '',
        countryDartId: '',
        dartId: '',
        kind: '',
        metroCode: '',
        metroDmaId: '',
        name: '',
        regionCode: '',
        regionDartId: ''
      }
    ],
    countries: [{countryCode: '', dartId: '', kind: '', name: '', sslEnabled: false}],
    excludeCountries: false,
    metros: [
      {
        countryCode: '',
        countryDartId: '',
        dartId: '',
        dmaId: '',
        kind: '',
        metroCode: '',
        name: ''
      }
    ],
    postalCodes: [{code: '', countryCode: '', countryDartId: '', id: '', kind: ''}],
    regions: [
      {
        countryCode: '',
        countryDartId: '',
        dartId: '',
        kind: '',
        name: '',
        regionCode: ''
      }
    ]
  },
  id: '',
  idDimensionValue: {},
  keyValueTargetingExpression: {expression: ''},
  kind: '',
  languageTargeting: {languages: [{id: '', kind: '', languageCode: '', name: ''}]},
  lastModifiedInfo: {},
  name: '',
  placementAssignments: [
    {
      active: false,
      placementId: '',
      placementIdDimensionValue: {},
      sslRequired: false
    }
  ],
  remarketingListExpression: {expression: ''},
  size: {height: 0, iab: false, id: '', kind: '', width: 0},
  sslCompliant: false,
  sslRequired: false,
  startTime: '',
  subaccountId: '',
  targetingTemplateId: '',
  technologyTargeting: {
    browsers: [
      {
        browserVersionId: '',
        dartId: '',
        kind: '',
        majorVersion: '',
        minorVersion: '',
        name: ''
      }
    ],
    connectionTypes: [{id: '', kind: '', name: ''}],
    mobileCarriers: [{countryCode: '', countryDartId: '', id: '', kind: '', name: ''}],
    operatingSystemVersions: [
      {
        id: '',
        kind: '',
        majorVersion: '',
        minorVersion: '',
        name: '',
        operatingSystem: {dartId: '', desktop: false, kind: '', mobile: false, name: ''}
      }
    ],
    operatingSystems: [{}],
    platformTypes: [{id: '', kind: '', name: ''}]
  },
  type: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/userprofiles/:profileId/ads',
  qs: {id: ''},
  headers: {'content-type': 'application/json'},
  body: {
    accountId: '',
    active: false,
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    archived: false,
    audienceSegmentId: '',
    campaignId: '',
    campaignIdDimensionValue: {},
    clickThroughUrl: {
      computedClickThroughUrl: '',
      customClickThroughUrl: '',
      defaultLandingPage: false,
      landingPageId: ''
    },
    clickThroughUrlSuffixProperties: {clickThroughUrlSuffix: '', overrideInheritedSuffix: false},
    comments: '',
    compatibility: '',
    createInfo: {time: ''},
    creativeGroupAssignments: [{creativeGroupId: '', creativeGroupNumber: ''}],
    creativeRotation: {
      creativeAssignments: [
        {
          active: false,
          applyEventTags: false,
          clickThroughUrl: {},
          companionCreativeOverrides: [{clickThroughUrl: {}, creativeId: ''}],
          creativeGroupAssignments: [{}],
          creativeId: '',
          creativeIdDimensionValue: {},
          endTime: '',
          richMediaExitOverrides: [{clickThroughUrl: {}, enabled: false, exitId: ''}],
          sequence: 0,
          sslCompliant: false,
          startTime: '',
          weight: 0
        }
      ],
      creativeOptimizationConfigurationId: '',
      type: '',
      weightCalculationStrategy: ''
    },
    dayPartTargeting: {daysOfWeek: [], hoursOfDay: [], userLocalTime: false},
    defaultClickThroughEventTagProperties: {defaultClickThroughEventTagId: '', overrideInheritedEventTag: false},
    deliverySchedule: {
      frequencyCap: {duration: '', impressions: ''},
      hardCutoff: false,
      impressionRatio: '',
      priority: ''
    },
    dynamicClickTracker: false,
    endTime: '',
    eventTagOverrides: [{enabled: false, id: ''}],
    geoTargeting: {
      cities: [
        {
          countryCode: '',
          countryDartId: '',
          dartId: '',
          kind: '',
          metroCode: '',
          metroDmaId: '',
          name: '',
          regionCode: '',
          regionDartId: ''
        }
      ],
      countries: [{countryCode: '', dartId: '', kind: '', name: '', sslEnabled: false}],
      excludeCountries: false,
      metros: [
        {
          countryCode: '',
          countryDartId: '',
          dartId: '',
          dmaId: '',
          kind: '',
          metroCode: '',
          name: ''
        }
      ],
      postalCodes: [{code: '', countryCode: '', countryDartId: '', id: '', kind: ''}],
      regions: [
        {
          countryCode: '',
          countryDartId: '',
          dartId: '',
          kind: '',
          name: '',
          regionCode: ''
        }
      ]
    },
    id: '',
    idDimensionValue: {},
    keyValueTargetingExpression: {expression: ''},
    kind: '',
    languageTargeting: {languages: [{id: '', kind: '', languageCode: '', name: ''}]},
    lastModifiedInfo: {},
    name: '',
    placementAssignments: [
      {
        active: false,
        placementId: '',
        placementIdDimensionValue: {},
        sslRequired: false
      }
    ],
    remarketingListExpression: {expression: ''},
    size: {height: 0, iab: false, id: '', kind: '', width: 0},
    sslCompliant: false,
    sslRequired: false,
    startTime: '',
    subaccountId: '',
    targetingTemplateId: '',
    technologyTargeting: {
      browsers: [
        {
          browserVersionId: '',
          dartId: '',
          kind: '',
          majorVersion: '',
          minorVersion: '',
          name: ''
        }
      ],
      connectionTypes: [{id: '', kind: '', name: ''}],
      mobileCarriers: [{countryCode: '', countryDartId: '', id: '', kind: '', name: ''}],
      operatingSystemVersions: [
        {
          id: '',
          kind: '',
          majorVersion: '',
          minorVersion: '',
          name: '',
          operatingSystem: {dartId: '', desktop: false, kind: '', mobile: false, name: ''}
        }
      ],
      operatingSystems: [{}],
      platformTypes: [{id: '', kind: '', name: ''}]
    },
    type: ''
  },
  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}}/userprofiles/:profileId/ads');

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

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

req.type('json');
req.send({
  accountId: '',
  active: false,
  advertiserId: '',
  advertiserIdDimensionValue: {
    dimensionName: '',
    etag: '',
    id: '',
    kind: '',
    matchType: '',
    value: ''
  },
  archived: false,
  audienceSegmentId: '',
  campaignId: '',
  campaignIdDimensionValue: {},
  clickThroughUrl: {
    computedClickThroughUrl: '',
    customClickThroughUrl: '',
    defaultLandingPage: false,
    landingPageId: ''
  },
  clickThroughUrlSuffixProperties: {
    clickThroughUrlSuffix: '',
    overrideInheritedSuffix: false
  },
  comments: '',
  compatibility: '',
  createInfo: {
    time: ''
  },
  creativeGroupAssignments: [
    {
      creativeGroupId: '',
      creativeGroupNumber: ''
    }
  ],
  creativeRotation: {
    creativeAssignments: [
      {
        active: false,
        applyEventTags: false,
        clickThroughUrl: {},
        companionCreativeOverrides: [
          {
            clickThroughUrl: {},
            creativeId: ''
          }
        ],
        creativeGroupAssignments: [
          {}
        ],
        creativeId: '',
        creativeIdDimensionValue: {},
        endTime: '',
        richMediaExitOverrides: [
          {
            clickThroughUrl: {},
            enabled: false,
            exitId: ''
          }
        ],
        sequence: 0,
        sslCompliant: false,
        startTime: '',
        weight: 0
      }
    ],
    creativeOptimizationConfigurationId: '',
    type: '',
    weightCalculationStrategy: ''
  },
  dayPartTargeting: {
    daysOfWeek: [],
    hoursOfDay: [],
    userLocalTime: false
  },
  defaultClickThroughEventTagProperties: {
    defaultClickThroughEventTagId: '',
    overrideInheritedEventTag: false
  },
  deliverySchedule: {
    frequencyCap: {
      duration: '',
      impressions: ''
    },
    hardCutoff: false,
    impressionRatio: '',
    priority: ''
  },
  dynamicClickTracker: false,
  endTime: '',
  eventTagOverrides: [
    {
      enabled: false,
      id: ''
    }
  ],
  geoTargeting: {
    cities: [
      {
        countryCode: '',
        countryDartId: '',
        dartId: '',
        kind: '',
        metroCode: '',
        metroDmaId: '',
        name: '',
        regionCode: '',
        regionDartId: ''
      }
    ],
    countries: [
      {
        countryCode: '',
        dartId: '',
        kind: '',
        name: '',
        sslEnabled: false
      }
    ],
    excludeCountries: false,
    metros: [
      {
        countryCode: '',
        countryDartId: '',
        dartId: '',
        dmaId: '',
        kind: '',
        metroCode: '',
        name: ''
      }
    ],
    postalCodes: [
      {
        code: '',
        countryCode: '',
        countryDartId: '',
        id: '',
        kind: ''
      }
    ],
    regions: [
      {
        countryCode: '',
        countryDartId: '',
        dartId: '',
        kind: '',
        name: '',
        regionCode: ''
      }
    ]
  },
  id: '',
  idDimensionValue: {},
  keyValueTargetingExpression: {
    expression: ''
  },
  kind: '',
  languageTargeting: {
    languages: [
      {
        id: '',
        kind: '',
        languageCode: '',
        name: ''
      }
    ]
  },
  lastModifiedInfo: {},
  name: '',
  placementAssignments: [
    {
      active: false,
      placementId: '',
      placementIdDimensionValue: {},
      sslRequired: false
    }
  ],
  remarketingListExpression: {
    expression: ''
  },
  size: {
    height: 0,
    iab: false,
    id: '',
    kind: '',
    width: 0
  },
  sslCompliant: false,
  sslRequired: false,
  startTime: '',
  subaccountId: '',
  targetingTemplateId: '',
  technologyTargeting: {
    browsers: [
      {
        browserVersionId: '',
        dartId: '',
        kind: '',
        majorVersion: '',
        minorVersion: '',
        name: ''
      }
    ],
    connectionTypes: [
      {
        id: '',
        kind: '',
        name: ''
      }
    ],
    mobileCarriers: [
      {
        countryCode: '',
        countryDartId: '',
        id: '',
        kind: '',
        name: ''
      }
    ],
    operatingSystemVersions: [
      {
        id: '',
        kind: '',
        majorVersion: '',
        minorVersion: '',
        name: '',
        operatingSystem: {
          dartId: '',
          desktop: false,
          kind: '',
          mobile: false,
          name: ''
        }
      }
    ],
    operatingSystems: [
      {}
    ],
    platformTypes: [
      {
        id: '',
        kind: '',
        name: ''
      }
    ]
  },
  type: ''
});

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}}/userprofiles/:profileId/ads',
  params: {id: ''},
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    active: false,
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    archived: false,
    audienceSegmentId: '',
    campaignId: '',
    campaignIdDimensionValue: {},
    clickThroughUrl: {
      computedClickThroughUrl: '',
      customClickThroughUrl: '',
      defaultLandingPage: false,
      landingPageId: ''
    },
    clickThroughUrlSuffixProperties: {clickThroughUrlSuffix: '', overrideInheritedSuffix: false},
    comments: '',
    compatibility: '',
    createInfo: {time: ''},
    creativeGroupAssignments: [{creativeGroupId: '', creativeGroupNumber: ''}],
    creativeRotation: {
      creativeAssignments: [
        {
          active: false,
          applyEventTags: false,
          clickThroughUrl: {},
          companionCreativeOverrides: [{clickThroughUrl: {}, creativeId: ''}],
          creativeGroupAssignments: [{}],
          creativeId: '',
          creativeIdDimensionValue: {},
          endTime: '',
          richMediaExitOverrides: [{clickThroughUrl: {}, enabled: false, exitId: ''}],
          sequence: 0,
          sslCompliant: false,
          startTime: '',
          weight: 0
        }
      ],
      creativeOptimizationConfigurationId: '',
      type: '',
      weightCalculationStrategy: ''
    },
    dayPartTargeting: {daysOfWeek: [], hoursOfDay: [], userLocalTime: false},
    defaultClickThroughEventTagProperties: {defaultClickThroughEventTagId: '', overrideInheritedEventTag: false},
    deliverySchedule: {
      frequencyCap: {duration: '', impressions: ''},
      hardCutoff: false,
      impressionRatio: '',
      priority: ''
    },
    dynamicClickTracker: false,
    endTime: '',
    eventTagOverrides: [{enabled: false, id: ''}],
    geoTargeting: {
      cities: [
        {
          countryCode: '',
          countryDartId: '',
          dartId: '',
          kind: '',
          metroCode: '',
          metroDmaId: '',
          name: '',
          regionCode: '',
          regionDartId: ''
        }
      ],
      countries: [{countryCode: '', dartId: '', kind: '', name: '', sslEnabled: false}],
      excludeCountries: false,
      metros: [
        {
          countryCode: '',
          countryDartId: '',
          dartId: '',
          dmaId: '',
          kind: '',
          metroCode: '',
          name: ''
        }
      ],
      postalCodes: [{code: '', countryCode: '', countryDartId: '', id: '', kind: ''}],
      regions: [
        {
          countryCode: '',
          countryDartId: '',
          dartId: '',
          kind: '',
          name: '',
          regionCode: ''
        }
      ]
    },
    id: '',
    idDimensionValue: {},
    keyValueTargetingExpression: {expression: ''},
    kind: '',
    languageTargeting: {languages: [{id: '', kind: '', languageCode: '', name: ''}]},
    lastModifiedInfo: {},
    name: '',
    placementAssignments: [
      {
        active: false,
        placementId: '',
        placementIdDimensionValue: {},
        sslRequired: false
      }
    ],
    remarketingListExpression: {expression: ''},
    size: {height: 0, iab: false, id: '', kind: '', width: 0},
    sslCompliant: false,
    sslRequired: false,
    startTime: '',
    subaccountId: '',
    targetingTemplateId: '',
    technologyTargeting: {
      browsers: [
        {
          browserVersionId: '',
          dartId: '',
          kind: '',
          majorVersion: '',
          minorVersion: '',
          name: ''
        }
      ],
      connectionTypes: [{id: '', kind: '', name: ''}],
      mobileCarriers: [{countryCode: '', countryDartId: '', id: '', kind: '', name: ''}],
      operatingSystemVersions: [
        {
          id: '',
          kind: '',
          majorVersion: '',
          minorVersion: '',
          name: '',
          operatingSystem: {dartId: '', desktop: false, kind: '', mobile: false, name: ''}
        }
      ],
      operatingSystems: [{}],
      platformTypes: [{id: '', kind: '', name: ''}]
    },
    type: ''
  }
};

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

const url = '{{baseUrl}}/userprofiles/:profileId/ads?id=';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","active":false,"advertiserId":"","advertiserIdDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"archived":false,"audienceSegmentId":"","campaignId":"","campaignIdDimensionValue":{},"clickThroughUrl":{"computedClickThroughUrl":"","customClickThroughUrl":"","defaultLandingPage":false,"landingPageId":""},"clickThroughUrlSuffixProperties":{"clickThroughUrlSuffix":"","overrideInheritedSuffix":false},"comments":"","compatibility":"","createInfo":{"time":""},"creativeGroupAssignments":[{"creativeGroupId":"","creativeGroupNumber":""}],"creativeRotation":{"creativeAssignments":[{"active":false,"applyEventTags":false,"clickThroughUrl":{},"companionCreativeOverrides":[{"clickThroughUrl":{},"creativeId":""}],"creativeGroupAssignments":[{}],"creativeId":"","creativeIdDimensionValue":{},"endTime":"","richMediaExitOverrides":[{"clickThroughUrl":{},"enabled":false,"exitId":""}],"sequence":0,"sslCompliant":false,"startTime":"","weight":0}],"creativeOptimizationConfigurationId":"","type":"","weightCalculationStrategy":""},"dayPartTargeting":{"daysOfWeek":[],"hoursOfDay":[],"userLocalTime":false},"defaultClickThroughEventTagProperties":{"defaultClickThroughEventTagId":"","overrideInheritedEventTag":false},"deliverySchedule":{"frequencyCap":{"duration":"","impressions":""},"hardCutoff":false,"impressionRatio":"","priority":""},"dynamicClickTracker":false,"endTime":"","eventTagOverrides":[{"enabled":false,"id":""}],"geoTargeting":{"cities":[{"countryCode":"","countryDartId":"","dartId":"","kind":"","metroCode":"","metroDmaId":"","name":"","regionCode":"","regionDartId":""}],"countries":[{"countryCode":"","dartId":"","kind":"","name":"","sslEnabled":false}],"excludeCountries":false,"metros":[{"countryCode":"","countryDartId":"","dartId":"","dmaId":"","kind":"","metroCode":"","name":""}],"postalCodes":[{"code":"","countryCode":"","countryDartId":"","id":"","kind":""}],"regions":[{"countryCode":"","countryDartId":"","dartId":"","kind":"","name":"","regionCode":""}]},"id":"","idDimensionValue":{},"keyValueTargetingExpression":{"expression":""},"kind":"","languageTargeting":{"languages":[{"id":"","kind":"","languageCode":"","name":""}]},"lastModifiedInfo":{},"name":"","placementAssignments":[{"active":false,"placementId":"","placementIdDimensionValue":{},"sslRequired":false}],"remarketingListExpression":{"expression":""},"size":{"height":0,"iab":false,"id":"","kind":"","width":0},"sslCompliant":false,"sslRequired":false,"startTime":"","subaccountId":"","targetingTemplateId":"","technologyTargeting":{"browsers":[{"browserVersionId":"","dartId":"","kind":"","majorVersion":"","minorVersion":"","name":""}],"connectionTypes":[{"id":"","kind":"","name":""}],"mobileCarriers":[{"countryCode":"","countryDartId":"","id":"","kind":"","name":""}],"operatingSystemVersions":[{"id":"","kind":"","majorVersion":"","minorVersion":"","name":"","operatingSystem":{"dartId":"","desktop":false,"kind":"","mobile":false,"name":""}}],"operatingSystems":[{}],"platformTypes":[{"id":"","kind":"","name":""}]},"type":""}'
};

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 = @{ @"accountId": @"",
                              @"active": @NO,
                              @"advertiserId": @"",
                              @"advertiserIdDimensionValue": @{ @"dimensionName": @"", @"etag": @"", @"id": @"", @"kind": @"", @"matchType": @"", @"value": @"" },
                              @"archived": @NO,
                              @"audienceSegmentId": @"",
                              @"campaignId": @"",
                              @"campaignIdDimensionValue": @{  },
                              @"clickThroughUrl": @{ @"computedClickThroughUrl": @"", @"customClickThroughUrl": @"", @"defaultLandingPage": @NO, @"landingPageId": @"" },
                              @"clickThroughUrlSuffixProperties": @{ @"clickThroughUrlSuffix": @"", @"overrideInheritedSuffix": @NO },
                              @"comments": @"",
                              @"compatibility": @"",
                              @"createInfo": @{ @"time": @"" },
                              @"creativeGroupAssignments": @[ @{ @"creativeGroupId": @"", @"creativeGroupNumber": @"" } ],
                              @"creativeRotation": @{ @"creativeAssignments": @[ @{ @"active": @NO, @"applyEventTags": @NO, @"clickThroughUrl": @{  }, @"companionCreativeOverrides": @[ @{ @"clickThroughUrl": @{  }, @"creativeId": @"" } ], @"creativeGroupAssignments": @[ @{  } ], @"creativeId": @"", @"creativeIdDimensionValue": @{  }, @"endTime": @"", @"richMediaExitOverrides": @[ @{ @"clickThroughUrl": @{  }, @"enabled": @NO, @"exitId": @"" } ], @"sequence": @0, @"sslCompliant": @NO, @"startTime": @"", @"weight": @0 } ], @"creativeOptimizationConfigurationId": @"", @"type": @"", @"weightCalculationStrategy": @"" },
                              @"dayPartTargeting": @{ @"daysOfWeek": @[  ], @"hoursOfDay": @[  ], @"userLocalTime": @NO },
                              @"defaultClickThroughEventTagProperties": @{ @"defaultClickThroughEventTagId": @"", @"overrideInheritedEventTag": @NO },
                              @"deliverySchedule": @{ @"frequencyCap": @{ @"duration": @"", @"impressions": @"" }, @"hardCutoff": @NO, @"impressionRatio": @"", @"priority": @"" },
                              @"dynamicClickTracker": @NO,
                              @"endTime": @"",
                              @"eventTagOverrides": @[ @{ @"enabled": @NO, @"id": @"" } ],
                              @"geoTargeting": @{ @"cities": @[ @{ @"countryCode": @"", @"countryDartId": @"", @"dartId": @"", @"kind": @"", @"metroCode": @"", @"metroDmaId": @"", @"name": @"", @"regionCode": @"", @"regionDartId": @"" } ], @"countries": @[ @{ @"countryCode": @"", @"dartId": @"", @"kind": @"", @"name": @"", @"sslEnabled": @NO } ], @"excludeCountries": @NO, @"metros": @[ @{ @"countryCode": @"", @"countryDartId": @"", @"dartId": @"", @"dmaId": @"", @"kind": @"", @"metroCode": @"", @"name": @"" } ], @"postalCodes": @[ @{ @"code": @"", @"countryCode": @"", @"countryDartId": @"", @"id": @"", @"kind": @"" } ], @"regions": @[ @{ @"countryCode": @"", @"countryDartId": @"", @"dartId": @"", @"kind": @"", @"name": @"", @"regionCode": @"" } ] },
                              @"id": @"",
                              @"idDimensionValue": @{  },
                              @"keyValueTargetingExpression": @{ @"expression": @"" },
                              @"kind": @"",
                              @"languageTargeting": @{ @"languages": @[ @{ @"id": @"", @"kind": @"", @"languageCode": @"", @"name": @"" } ] },
                              @"lastModifiedInfo": @{  },
                              @"name": @"",
                              @"placementAssignments": @[ @{ @"active": @NO, @"placementId": @"", @"placementIdDimensionValue": @{  }, @"sslRequired": @NO } ],
                              @"remarketingListExpression": @{ @"expression": @"" },
                              @"size": @{ @"height": @0, @"iab": @NO, @"id": @"", @"kind": @"", @"width": @0 },
                              @"sslCompliant": @NO,
                              @"sslRequired": @NO,
                              @"startTime": @"",
                              @"subaccountId": @"",
                              @"targetingTemplateId": @"",
                              @"technologyTargeting": @{ @"browsers": @[ @{ @"browserVersionId": @"", @"dartId": @"", @"kind": @"", @"majorVersion": @"", @"minorVersion": @"", @"name": @"" } ], @"connectionTypes": @[ @{ @"id": @"", @"kind": @"", @"name": @"" } ], @"mobileCarriers": @[ @{ @"countryCode": @"", @"countryDartId": @"", @"id": @"", @"kind": @"", @"name": @"" } ], @"operatingSystemVersions": @[ @{ @"id": @"", @"kind": @"", @"majorVersion": @"", @"minorVersion": @"", @"name": @"", @"operatingSystem": @{ @"dartId": @"", @"desktop": @NO, @"kind": @"", @"mobile": @NO, @"name": @"" } } ], @"operatingSystems": @[ @{  } ], @"platformTypes": @[ @{ @"id": @"", @"kind": @"", @"name": @"" } ] },
                              @"type": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/userprofiles/:profileId/ads?id="]
                                                       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}}/userprofiles/:profileId/ads?id=" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"audienceSegmentId\": \"\",\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"clickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"defaultLandingPage\": false,\n    \"landingPageId\": \"\"\n  },\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comments\": \"\",\n  \"compatibility\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupAssignments\": [\n    {\n      \"creativeGroupId\": \"\",\n      \"creativeGroupNumber\": \"\"\n    }\n  ],\n  \"creativeRotation\": {\n    \"creativeAssignments\": [\n      {\n        \"active\": false,\n        \"applyEventTags\": false,\n        \"clickThroughUrl\": {},\n        \"companionCreativeOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"creativeId\": \"\"\n          }\n        ],\n        \"creativeGroupAssignments\": [\n          {}\n        ],\n        \"creativeId\": \"\",\n        \"creativeIdDimensionValue\": {},\n        \"endTime\": \"\",\n        \"richMediaExitOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"enabled\": false,\n            \"exitId\": \"\"\n          }\n        ],\n        \"sequence\": 0,\n        \"sslCompliant\": false,\n        \"startTime\": \"\",\n        \"weight\": 0\n      }\n    ],\n    \"creativeOptimizationConfigurationId\": \"\",\n    \"type\": \"\",\n    \"weightCalculationStrategy\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"deliverySchedule\": {\n    \"frequencyCap\": {\n      \"duration\": \"\",\n      \"impressions\": \"\"\n    },\n    \"hardCutoff\": false,\n    \"impressionRatio\": \"\",\n    \"priority\": \"\"\n  },\n  \"dynamicClickTracker\": false,\n  \"endTime\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementAssignments\": [\n    {\n      \"active\": false,\n      \"placementId\": \"\",\n      \"placementIdDimensionValue\": {},\n      \"sslRequired\": false\n    }\n  ],\n  \"remarketingListExpression\": {\n    \"expression\": \"\"\n  },\n  \"size\": {\n    \"height\": 0,\n    \"iab\": false,\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"width\": 0\n  },\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"startTime\": \"\",\n  \"subaccountId\": \"\",\n  \"targetingTemplateId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"type\": \"\"\n}" in

Client.call ~headers ~body `PATCH uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/ads?id=",
  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([
    'accountId' => '',
    'active' => null,
    'advertiserId' => '',
    'advertiserIdDimensionValue' => [
        'dimensionName' => '',
        'etag' => '',
        'id' => '',
        'kind' => '',
        'matchType' => '',
        'value' => ''
    ],
    'archived' => null,
    'audienceSegmentId' => '',
    'campaignId' => '',
    'campaignIdDimensionValue' => [
        
    ],
    'clickThroughUrl' => [
        'computedClickThroughUrl' => '',
        'customClickThroughUrl' => '',
        'defaultLandingPage' => null,
        'landingPageId' => ''
    ],
    'clickThroughUrlSuffixProperties' => [
        'clickThroughUrlSuffix' => '',
        'overrideInheritedSuffix' => null
    ],
    'comments' => '',
    'compatibility' => '',
    'createInfo' => [
        'time' => ''
    ],
    'creativeGroupAssignments' => [
        [
                'creativeGroupId' => '',
                'creativeGroupNumber' => ''
        ]
    ],
    'creativeRotation' => [
        'creativeAssignments' => [
                [
                                'active' => null,
                                'applyEventTags' => null,
                                'clickThroughUrl' => [
                                                                
                                ],
                                'companionCreativeOverrides' => [
                                                                [
                                                                                                                                'clickThroughUrl' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'creativeId' => ''
                                                                ]
                                ],
                                'creativeGroupAssignments' => [
                                                                [
                                                                                                                                
                                                                ]
                                ],
                                'creativeId' => '',
                                'creativeIdDimensionValue' => [
                                                                
                                ],
                                'endTime' => '',
                                'richMediaExitOverrides' => [
                                                                [
                                                                                                                                'clickThroughUrl' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'enabled' => null,
                                                                                                                                'exitId' => ''
                                                                ]
                                ],
                                'sequence' => 0,
                                'sslCompliant' => null,
                                'startTime' => '',
                                'weight' => 0
                ]
        ],
        'creativeOptimizationConfigurationId' => '',
        'type' => '',
        'weightCalculationStrategy' => ''
    ],
    'dayPartTargeting' => [
        'daysOfWeek' => [
                
        ],
        'hoursOfDay' => [
                
        ],
        'userLocalTime' => null
    ],
    'defaultClickThroughEventTagProperties' => [
        'defaultClickThroughEventTagId' => '',
        'overrideInheritedEventTag' => null
    ],
    'deliverySchedule' => [
        'frequencyCap' => [
                'duration' => '',
                'impressions' => ''
        ],
        'hardCutoff' => null,
        'impressionRatio' => '',
        'priority' => ''
    ],
    'dynamicClickTracker' => null,
    'endTime' => '',
    'eventTagOverrides' => [
        [
                'enabled' => null,
                'id' => ''
        ]
    ],
    'geoTargeting' => [
        'cities' => [
                [
                                'countryCode' => '',
                                'countryDartId' => '',
                                'dartId' => '',
                                'kind' => '',
                                'metroCode' => '',
                                'metroDmaId' => '',
                                'name' => '',
                                'regionCode' => '',
                                'regionDartId' => ''
                ]
        ],
        'countries' => [
                [
                                'countryCode' => '',
                                'dartId' => '',
                                'kind' => '',
                                'name' => '',
                                'sslEnabled' => null
                ]
        ],
        'excludeCountries' => null,
        'metros' => [
                [
                                'countryCode' => '',
                                'countryDartId' => '',
                                'dartId' => '',
                                'dmaId' => '',
                                'kind' => '',
                                'metroCode' => '',
                                'name' => ''
                ]
        ],
        'postalCodes' => [
                [
                                'code' => '',
                                'countryCode' => '',
                                'countryDartId' => '',
                                'id' => '',
                                'kind' => ''
                ]
        ],
        'regions' => [
                [
                                'countryCode' => '',
                                'countryDartId' => '',
                                'dartId' => '',
                                'kind' => '',
                                'name' => '',
                                'regionCode' => ''
                ]
        ]
    ],
    'id' => '',
    'idDimensionValue' => [
        
    ],
    'keyValueTargetingExpression' => [
        'expression' => ''
    ],
    'kind' => '',
    'languageTargeting' => [
        'languages' => [
                [
                                'id' => '',
                                'kind' => '',
                                'languageCode' => '',
                                'name' => ''
                ]
        ]
    ],
    'lastModifiedInfo' => [
        
    ],
    'name' => '',
    'placementAssignments' => [
        [
                'active' => null,
                'placementId' => '',
                'placementIdDimensionValue' => [
                                
                ],
                'sslRequired' => null
        ]
    ],
    'remarketingListExpression' => [
        'expression' => ''
    ],
    'size' => [
        'height' => 0,
        'iab' => null,
        'id' => '',
        'kind' => '',
        'width' => 0
    ],
    'sslCompliant' => null,
    'sslRequired' => null,
    'startTime' => '',
    'subaccountId' => '',
    'targetingTemplateId' => '',
    'technologyTargeting' => [
        'browsers' => [
                [
                                'browserVersionId' => '',
                                'dartId' => '',
                                'kind' => '',
                                'majorVersion' => '',
                                'minorVersion' => '',
                                'name' => ''
                ]
        ],
        'connectionTypes' => [
                [
                                'id' => '',
                                'kind' => '',
                                'name' => ''
                ]
        ],
        'mobileCarriers' => [
                [
                                'countryCode' => '',
                                'countryDartId' => '',
                                'id' => '',
                                'kind' => '',
                                'name' => ''
                ]
        ],
        'operatingSystemVersions' => [
                [
                                'id' => '',
                                'kind' => '',
                                'majorVersion' => '',
                                'minorVersion' => '',
                                'name' => '',
                                'operatingSystem' => [
                                                                'dartId' => '',
                                                                'desktop' => null,
                                                                'kind' => '',
                                                                'mobile' => null,
                                                                'name' => ''
                                ]
                ]
        ],
        'operatingSystems' => [
                [
                                
                ]
        ],
        'platformTypes' => [
                [
                                'id' => '',
                                'kind' => '',
                                'name' => ''
                ]
        ]
    ],
    'type' => ''
  ]),
  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}}/userprofiles/:profileId/ads?id=', [
  'body' => '{
  "accountId": "",
  "active": false,
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "archived": false,
  "audienceSegmentId": "",
  "campaignId": "",
  "campaignIdDimensionValue": {},
  "clickThroughUrl": {
    "computedClickThroughUrl": "",
    "customClickThroughUrl": "",
    "defaultLandingPage": false,
    "landingPageId": ""
  },
  "clickThroughUrlSuffixProperties": {
    "clickThroughUrlSuffix": "",
    "overrideInheritedSuffix": false
  },
  "comments": "",
  "compatibility": "",
  "createInfo": {
    "time": ""
  },
  "creativeGroupAssignments": [
    {
      "creativeGroupId": "",
      "creativeGroupNumber": ""
    }
  ],
  "creativeRotation": {
    "creativeAssignments": [
      {
        "active": false,
        "applyEventTags": false,
        "clickThroughUrl": {},
        "companionCreativeOverrides": [
          {
            "clickThroughUrl": {},
            "creativeId": ""
          }
        ],
        "creativeGroupAssignments": [
          {}
        ],
        "creativeId": "",
        "creativeIdDimensionValue": {},
        "endTime": "",
        "richMediaExitOverrides": [
          {
            "clickThroughUrl": {},
            "enabled": false,
            "exitId": ""
          }
        ],
        "sequence": 0,
        "sslCompliant": false,
        "startTime": "",
        "weight": 0
      }
    ],
    "creativeOptimizationConfigurationId": "",
    "type": "",
    "weightCalculationStrategy": ""
  },
  "dayPartTargeting": {
    "daysOfWeek": [],
    "hoursOfDay": [],
    "userLocalTime": false
  },
  "defaultClickThroughEventTagProperties": {
    "defaultClickThroughEventTagId": "",
    "overrideInheritedEventTag": false
  },
  "deliverySchedule": {
    "frequencyCap": {
      "duration": "",
      "impressions": ""
    },
    "hardCutoff": false,
    "impressionRatio": "",
    "priority": ""
  },
  "dynamicClickTracker": false,
  "endTime": "",
  "eventTagOverrides": [
    {
      "enabled": false,
      "id": ""
    }
  ],
  "geoTargeting": {
    "cities": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "metroCode": "",
        "metroDmaId": "",
        "name": "",
        "regionCode": "",
        "regionDartId": ""
      }
    ],
    "countries": [
      {
        "countryCode": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "sslEnabled": false
      }
    ],
    "excludeCountries": false,
    "metros": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "dmaId": "",
        "kind": "",
        "metroCode": "",
        "name": ""
      }
    ],
    "postalCodes": [
      {
        "code": "",
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": ""
      }
    ],
    "regions": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "regionCode": ""
      }
    ]
  },
  "id": "",
  "idDimensionValue": {},
  "keyValueTargetingExpression": {
    "expression": ""
  },
  "kind": "",
  "languageTargeting": {
    "languages": [
      {
        "id": "",
        "kind": "",
        "languageCode": "",
        "name": ""
      }
    ]
  },
  "lastModifiedInfo": {},
  "name": "",
  "placementAssignments": [
    {
      "active": false,
      "placementId": "",
      "placementIdDimensionValue": {},
      "sslRequired": false
    }
  ],
  "remarketingListExpression": {
    "expression": ""
  },
  "size": {
    "height": 0,
    "iab": false,
    "id": "",
    "kind": "",
    "width": 0
  },
  "sslCompliant": false,
  "sslRequired": false,
  "startTime": "",
  "subaccountId": "",
  "targetingTemplateId": "",
  "technologyTargeting": {
    "browsers": [
      {
        "browserVersionId": "",
        "dartId": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": ""
      }
    ],
    "connectionTypes": [
      {
        "id": "",
        "kind": "",
        "name": ""
      }
    ],
    "mobileCarriers": [
      {
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": "",
        "name": ""
      }
    ],
    "operatingSystemVersions": [
      {
        "id": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": "",
        "operatingSystem": {
          "dartId": "",
          "desktop": false,
          "kind": "",
          "mobile": false,
          "name": ""
        }
      }
    ],
    "operatingSystems": [
      {}
    ],
    "platformTypes": [
      {
        "id": "",
        "kind": "",
        "name": ""
      }
    ]
  },
  "type": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/ads');
$request->setMethod(HttpRequest::HTTP_METH_PATCH);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'accountId' => '',
  'active' => null,
  'advertiserId' => '',
  'advertiserIdDimensionValue' => [
    'dimensionName' => '',
    'etag' => '',
    'id' => '',
    'kind' => '',
    'matchType' => '',
    'value' => ''
  ],
  'archived' => null,
  'audienceSegmentId' => '',
  'campaignId' => '',
  'campaignIdDimensionValue' => [
    
  ],
  'clickThroughUrl' => [
    'computedClickThroughUrl' => '',
    'customClickThroughUrl' => '',
    'defaultLandingPage' => null,
    'landingPageId' => ''
  ],
  'clickThroughUrlSuffixProperties' => [
    'clickThroughUrlSuffix' => '',
    'overrideInheritedSuffix' => null
  ],
  'comments' => '',
  'compatibility' => '',
  'createInfo' => [
    'time' => ''
  ],
  'creativeGroupAssignments' => [
    [
        'creativeGroupId' => '',
        'creativeGroupNumber' => ''
    ]
  ],
  'creativeRotation' => [
    'creativeAssignments' => [
        [
                'active' => null,
                'applyEventTags' => null,
                'clickThroughUrl' => [
                                
                ],
                'companionCreativeOverrides' => [
                                [
                                                                'clickThroughUrl' => [
                                                                                                                                
                                                                ],
                                                                'creativeId' => ''
                                ]
                ],
                'creativeGroupAssignments' => [
                                [
                                                                
                                ]
                ],
                'creativeId' => '',
                'creativeIdDimensionValue' => [
                                
                ],
                'endTime' => '',
                'richMediaExitOverrides' => [
                                [
                                                                'clickThroughUrl' => [
                                                                                                                                
                                                                ],
                                                                'enabled' => null,
                                                                'exitId' => ''
                                ]
                ],
                'sequence' => 0,
                'sslCompliant' => null,
                'startTime' => '',
                'weight' => 0
        ]
    ],
    'creativeOptimizationConfigurationId' => '',
    'type' => '',
    'weightCalculationStrategy' => ''
  ],
  'dayPartTargeting' => [
    'daysOfWeek' => [
        
    ],
    'hoursOfDay' => [
        
    ],
    'userLocalTime' => null
  ],
  'defaultClickThroughEventTagProperties' => [
    'defaultClickThroughEventTagId' => '',
    'overrideInheritedEventTag' => null
  ],
  'deliverySchedule' => [
    'frequencyCap' => [
        'duration' => '',
        'impressions' => ''
    ],
    'hardCutoff' => null,
    'impressionRatio' => '',
    'priority' => ''
  ],
  'dynamicClickTracker' => null,
  'endTime' => '',
  'eventTagOverrides' => [
    [
        'enabled' => null,
        'id' => ''
    ]
  ],
  'geoTargeting' => [
    'cities' => [
        [
                'countryCode' => '',
                'countryDartId' => '',
                'dartId' => '',
                'kind' => '',
                'metroCode' => '',
                'metroDmaId' => '',
                'name' => '',
                'regionCode' => '',
                'regionDartId' => ''
        ]
    ],
    'countries' => [
        [
                'countryCode' => '',
                'dartId' => '',
                'kind' => '',
                'name' => '',
                'sslEnabled' => null
        ]
    ],
    'excludeCountries' => null,
    'metros' => [
        [
                'countryCode' => '',
                'countryDartId' => '',
                'dartId' => '',
                'dmaId' => '',
                'kind' => '',
                'metroCode' => '',
                'name' => ''
        ]
    ],
    'postalCodes' => [
        [
                'code' => '',
                'countryCode' => '',
                'countryDartId' => '',
                'id' => '',
                'kind' => ''
        ]
    ],
    'regions' => [
        [
                'countryCode' => '',
                'countryDartId' => '',
                'dartId' => '',
                'kind' => '',
                'name' => '',
                'regionCode' => ''
        ]
    ]
  ],
  'id' => '',
  'idDimensionValue' => [
    
  ],
  'keyValueTargetingExpression' => [
    'expression' => ''
  ],
  'kind' => '',
  'languageTargeting' => [
    'languages' => [
        [
                'id' => '',
                'kind' => '',
                'languageCode' => '',
                'name' => ''
        ]
    ]
  ],
  'lastModifiedInfo' => [
    
  ],
  'name' => '',
  'placementAssignments' => [
    [
        'active' => null,
        'placementId' => '',
        'placementIdDimensionValue' => [
                
        ],
        'sslRequired' => null
    ]
  ],
  'remarketingListExpression' => [
    'expression' => ''
  ],
  'size' => [
    'height' => 0,
    'iab' => null,
    'id' => '',
    'kind' => '',
    'width' => 0
  ],
  'sslCompliant' => null,
  'sslRequired' => null,
  'startTime' => '',
  'subaccountId' => '',
  'targetingTemplateId' => '',
  'technologyTargeting' => [
    'browsers' => [
        [
                'browserVersionId' => '',
                'dartId' => '',
                'kind' => '',
                'majorVersion' => '',
                'minorVersion' => '',
                'name' => ''
        ]
    ],
    'connectionTypes' => [
        [
                'id' => '',
                'kind' => '',
                'name' => ''
        ]
    ],
    'mobileCarriers' => [
        [
                'countryCode' => '',
                'countryDartId' => '',
                'id' => '',
                'kind' => '',
                'name' => ''
        ]
    ],
    'operatingSystemVersions' => [
        [
                'id' => '',
                'kind' => '',
                'majorVersion' => '',
                'minorVersion' => '',
                'name' => '',
                'operatingSystem' => [
                                'dartId' => '',
                                'desktop' => null,
                                'kind' => '',
                                'mobile' => null,
                                'name' => ''
                ]
        ]
    ],
    'operatingSystems' => [
        [
                
        ]
    ],
    'platformTypes' => [
        [
                'id' => '',
                'kind' => '',
                'name' => ''
        ]
    ]
  ],
  'type' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'accountId' => '',
  'active' => null,
  'advertiserId' => '',
  'advertiserIdDimensionValue' => [
    'dimensionName' => '',
    'etag' => '',
    'id' => '',
    'kind' => '',
    'matchType' => '',
    'value' => ''
  ],
  'archived' => null,
  'audienceSegmentId' => '',
  'campaignId' => '',
  'campaignIdDimensionValue' => [
    
  ],
  'clickThroughUrl' => [
    'computedClickThroughUrl' => '',
    'customClickThroughUrl' => '',
    'defaultLandingPage' => null,
    'landingPageId' => ''
  ],
  'clickThroughUrlSuffixProperties' => [
    'clickThroughUrlSuffix' => '',
    'overrideInheritedSuffix' => null
  ],
  'comments' => '',
  'compatibility' => '',
  'createInfo' => [
    'time' => ''
  ],
  'creativeGroupAssignments' => [
    [
        'creativeGroupId' => '',
        'creativeGroupNumber' => ''
    ]
  ],
  'creativeRotation' => [
    'creativeAssignments' => [
        [
                'active' => null,
                'applyEventTags' => null,
                'clickThroughUrl' => [
                                
                ],
                'companionCreativeOverrides' => [
                                [
                                                                'clickThroughUrl' => [
                                                                                                                                
                                                                ],
                                                                'creativeId' => ''
                                ]
                ],
                'creativeGroupAssignments' => [
                                [
                                                                
                                ]
                ],
                'creativeId' => '',
                'creativeIdDimensionValue' => [
                                
                ],
                'endTime' => '',
                'richMediaExitOverrides' => [
                                [
                                                                'clickThroughUrl' => [
                                                                                                                                
                                                                ],
                                                                'enabled' => null,
                                                                'exitId' => ''
                                ]
                ],
                'sequence' => 0,
                'sslCompliant' => null,
                'startTime' => '',
                'weight' => 0
        ]
    ],
    'creativeOptimizationConfigurationId' => '',
    'type' => '',
    'weightCalculationStrategy' => ''
  ],
  'dayPartTargeting' => [
    'daysOfWeek' => [
        
    ],
    'hoursOfDay' => [
        
    ],
    'userLocalTime' => null
  ],
  'defaultClickThroughEventTagProperties' => [
    'defaultClickThroughEventTagId' => '',
    'overrideInheritedEventTag' => null
  ],
  'deliverySchedule' => [
    'frequencyCap' => [
        'duration' => '',
        'impressions' => ''
    ],
    'hardCutoff' => null,
    'impressionRatio' => '',
    'priority' => ''
  ],
  'dynamicClickTracker' => null,
  'endTime' => '',
  'eventTagOverrides' => [
    [
        'enabled' => null,
        'id' => ''
    ]
  ],
  'geoTargeting' => [
    'cities' => [
        [
                'countryCode' => '',
                'countryDartId' => '',
                'dartId' => '',
                'kind' => '',
                'metroCode' => '',
                'metroDmaId' => '',
                'name' => '',
                'regionCode' => '',
                'regionDartId' => ''
        ]
    ],
    'countries' => [
        [
                'countryCode' => '',
                'dartId' => '',
                'kind' => '',
                'name' => '',
                'sslEnabled' => null
        ]
    ],
    'excludeCountries' => null,
    'metros' => [
        [
                'countryCode' => '',
                'countryDartId' => '',
                'dartId' => '',
                'dmaId' => '',
                'kind' => '',
                'metroCode' => '',
                'name' => ''
        ]
    ],
    'postalCodes' => [
        [
                'code' => '',
                'countryCode' => '',
                'countryDartId' => '',
                'id' => '',
                'kind' => ''
        ]
    ],
    'regions' => [
        [
                'countryCode' => '',
                'countryDartId' => '',
                'dartId' => '',
                'kind' => '',
                'name' => '',
                'regionCode' => ''
        ]
    ]
  ],
  'id' => '',
  'idDimensionValue' => [
    
  ],
  'keyValueTargetingExpression' => [
    'expression' => ''
  ],
  'kind' => '',
  'languageTargeting' => [
    'languages' => [
        [
                'id' => '',
                'kind' => '',
                'languageCode' => '',
                'name' => ''
        ]
    ]
  ],
  'lastModifiedInfo' => [
    
  ],
  'name' => '',
  'placementAssignments' => [
    [
        'active' => null,
        'placementId' => '',
        'placementIdDimensionValue' => [
                
        ],
        'sslRequired' => null
    ]
  ],
  'remarketingListExpression' => [
    'expression' => ''
  ],
  'size' => [
    'height' => 0,
    'iab' => null,
    'id' => '',
    'kind' => '',
    'width' => 0
  ],
  'sslCompliant' => null,
  'sslRequired' => null,
  'startTime' => '',
  'subaccountId' => '',
  'targetingTemplateId' => '',
  'technologyTargeting' => [
    'browsers' => [
        [
                'browserVersionId' => '',
                'dartId' => '',
                'kind' => '',
                'majorVersion' => '',
                'minorVersion' => '',
                'name' => ''
        ]
    ],
    'connectionTypes' => [
        [
                'id' => '',
                'kind' => '',
                'name' => ''
        ]
    ],
    'mobileCarriers' => [
        [
                'countryCode' => '',
                'countryDartId' => '',
                'id' => '',
                'kind' => '',
                'name' => ''
        ]
    ],
    'operatingSystemVersions' => [
        [
                'id' => '',
                'kind' => '',
                'majorVersion' => '',
                'minorVersion' => '',
                'name' => '',
                'operatingSystem' => [
                                'dartId' => '',
                                'desktop' => null,
                                'kind' => '',
                                'mobile' => null,
                                'name' => ''
                ]
        ]
    ],
    'operatingSystems' => [
        [
                
        ]
    ],
    'platformTypes' => [
        [
                'id' => '',
                'kind' => '',
                'name' => ''
        ]
    ]
  ],
  'type' => ''
]));
$request->setRequestUrl('{{baseUrl}}/userprofiles/:profileId/ads');
$request->setRequestMethod('PATCH');
$request->setBody($body);

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

$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}}/userprofiles/:profileId/ads?id=' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "active": false,
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "archived": false,
  "audienceSegmentId": "",
  "campaignId": "",
  "campaignIdDimensionValue": {},
  "clickThroughUrl": {
    "computedClickThroughUrl": "",
    "customClickThroughUrl": "",
    "defaultLandingPage": false,
    "landingPageId": ""
  },
  "clickThroughUrlSuffixProperties": {
    "clickThroughUrlSuffix": "",
    "overrideInheritedSuffix": false
  },
  "comments": "",
  "compatibility": "",
  "createInfo": {
    "time": ""
  },
  "creativeGroupAssignments": [
    {
      "creativeGroupId": "",
      "creativeGroupNumber": ""
    }
  ],
  "creativeRotation": {
    "creativeAssignments": [
      {
        "active": false,
        "applyEventTags": false,
        "clickThroughUrl": {},
        "companionCreativeOverrides": [
          {
            "clickThroughUrl": {},
            "creativeId": ""
          }
        ],
        "creativeGroupAssignments": [
          {}
        ],
        "creativeId": "",
        "creativeIdDimensionValue": {},
        "endTime": "",
        "richMediaExitOverrides": [
          {
            "clickThroughUrl": {},
            "enabled": false,
            "exitId": ""
          }
        ],
        "sequence": 0,
        "sslCompliant": false,
        "startTime": "",
        "weight": 0
      }
    ],
    "creativeOptimizationConfigurationId": "",
    "type": "",
    "weightCalculationStrategy": ""
  },
  "dayPartTargeting": {
    "daysOfWeek": [],
    "hoursOfDay": [],
    "userLocalTime": false
  },
  "defaultClickThroughEventTagProperties": {
    "defaultClickThroughEventTagId": "",
    "overrideInheritedEventTag": false
  },
  "deliverySchedule": {
    "frequencyCap": {
      "duration": "",
      "impressions": ""
    },
    "hardCutoff": false,
    "impressionRatio": "",
    "priority": ""
  },
  "dynamicClickTracker": false,
  "endTime": "",
  "eventTagOverrides": [
    {
      "enabled": false,
      "id": ""
    }
  ],
  "geoTargeting": {
    "cities": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "metroCode": "",
        "metroDmaId": "",
        "name": "",
        "regionCode": "",
        "regionDartId": ""
      }
    ],
    "countries": [
      {
        "countryCode": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "sslEnabled": false
      }
    ],
    "excludeCountries": false,
    "metros": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "dmaId": "",
        "kind": "",
        "metroCode": "",
        "name": ""
      }
    ],
    "postalCodes": [
      {
        "code": "",
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": ""
      }
    ],
    "regions": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "regionCode": ""
      }
    ]
  },
  "id": "",
  "idDimensionValue": {},
  "keyValueTargetingExpression": {
    "expression": ""
  },
  "kind": "",
  "languageTargeting": {
    "languages": [
      {
        "id": "",
        "kind": "",
        "languageCode": "",
        "name": ""
      }
    ]
  },
  "lastModifiedInfo": {},
  "name": "",
  "placementAssignments": [
    {
      "active": false,
      "placementId": "",
      "placementIdDimensionValue": {},
      "sslRequired": false
    }
  ],
  "remarketingListExpression": {
    "expression": ""
  },
  "size": {
    "height": 0,
    "iab": false,
    "id": "",
    "kind": "",
    "width": 0
  },
  "sslCompliant": false,
  "sslRequired": false,
  "startTime": "",
  "subaccountId": "",
  "targetingTemplateId": "",
  "technologyTargeting": {
    "browsers": [
      {
        "browserVersionId": "",
        "dartId": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": ""
      }
    ],
    "connectionTypes": [
      {
        "id": "",
        "kind": "",
        "name": ""
      }
    ],
    "mobileCarriers": [
      {
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": "",
        "name": ""
      }
    ],
    "operatingSystemVersions": [
      {
        "id": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": "",
        "operatingSystem": {
          "dartId": "",
          "desktop": false,
          "kind": "",
          "mobile": false,
          "name": ""
        }
      }
    ],
    "operatingSystems": [
      {}
    ],
    "platformTypes": [
      {
        "id": "",
        "kind": "",
        "name": ""
      }
    ]
  },
  "type": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/ads?id=' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "active": false,
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "archived": false,
  "audienceSegmentId": "",
  "campaignId": "",
  "campaignIdDimensionValue": {},
  "clickThroughUrl": {
    "computedClickThroughUrl": "",
    "customClickThroughUrl": "",
    "defaultLandingPage": false,
    "landingPageId": ""
  },
  "clickThroughUrlSuffixProperties": {
    "clickThroughUrlSuffix": "",
    "overrideInheritedSuffix": false
  },
  "comments": "",
  "compatibility": "",
  "createInfo": {
    "time": ""
  },
  "creativeGroupAssignments": [
    {
      "creativeGroupId": "",
      "creativeGroupNumber": ""
    }
  ],
  "creativeRotation": {
    "creativeAssignments": [
      {
        "active": false,
        "applyEventTags": false,
        "clickThroughUrl": {},
        "companionCreativeOverrides": [
          {
            "clickThroughUrl": {},
            "creativeId": ""
          }
        ],
        "creativeGroupAssignments": [
          {}
        ],
        "creativeId": "",
        "creativeIdDimensionValue": {},
        "endTime": "",
        "richMediaExitOverrides": [
          {
            "clickThroughUrl": {},
            "enabled": false,
            "exitId": ""
          }
        ],
        "sequence": 0,
        "sslCompliant": false,
        "startTime": "",
        "weight": 0
      }
    ],
    "creativeOptimizationConfigurationId": "",
    "type": "",
    "weightCalculationStrategy": ""
  },
  "dayPartTargeting": {
    "daysOfWeek": [],
    "hoursOfDay": [],
    "userLocalTime": false
  },
  "defaultClickThroughEventTagProperties": {
    "defaultClickThroughEventTagId": "",
    "overrideInheritedEventTag": false
  },
  "deliverySchedule": {
    "frequencyCap": {
      "duration": "",
      "impressions": ""
    },
    "hardCutoff": false,
    "impressionRatio": "",
    "priority": ""
  },
  "dynamicClickTracker": false,
  "endTime": "",
  "eventTagOverrides": [
    {
      "enabled": false,
      "id": ""
    }
  ],
  "geoTargeting": {
    "cities": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "metroCode": "",
        "metroDmaId": "",
        "name": "",
        "regionCode": "",
        "regionDartId": ""
      }
    ],
    "countries": [
      {
        "countryCode": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "sslEnabled": false
      }
    ],
    "excludeCountries": false,
    "metros": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "dmaId": "",
        "kind": "",
        "metroCode": "",
        "name": ""
      }
    ],
    "postalCodes": [
      {
        "code": "",
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": ""
      }
    ],
    "regions": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "regionCode": ""
      }
    ]
  },
  "id": "",
  "idDimensionValue": {},
  "keyValueTargetingExpression": {
    "expression": ""
  },
  "kind": "",
  "languageTargeting": {
    "languages": [
      {
        "id": "",
        "kind": "",
        "languageCode": "",
        "name": ""
      }
    ]
  },
  "lastModifiedInfo": {},
  "name": "",
  "placementAssignments": [
    {
      "active": false,
      "placementId": "",
      "placementIdDimensionValue": {},
      "sslRequired": false
    }
  ],
  "remarketingListExpression": {
    "expression": ""
  },
  "size": {
    "height": 0,
    "iab": false,
    "id": "",
    "kind": "",
    "width": 0
  },
  "sslCompliant": false,
  "sslRequired": false,
  "startTime": "",
  "subaccountId": "",
  "targetingTemplateId": "",
  "technologyTargeting": {
    "browsers": [
      {
        "browserVersionId": "",
        "dartId": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": ""
      }
    ],
    "connectionTypes": [
      {
        "id": "",
        "kind": "",
        "name": ""
      }
    ],
    "mobileCarriers": [
      {
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": "",
        "name": ""
      }
    ],
    "operatingSystemVersions": [
      {
        "id": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": "",
        "operatingSystem": {
          "dartId": "",
          "desktop": false,
          "kind": "",
          "mobile": false,
          "name": ""
        }
      }
    ],
    "operatingSystems": [
      {}
    ],
    "platformTypes": [
      {
        "id": "",
        "kind": "",
        "name": ""
      }
    ]
  },
  "type": ""
}'
import http.client

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

payload = "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"audienceSegmentId\": \"\",\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"clickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"defaultLandingPage\": false,\n    \"landingPageId\": \"\"\n  },\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comments\": \"\",\n  \"compatibility\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupAssignments\": [\n    {\n      \"creativeGroupId\": \"\",\n      \"creativeGroupNumber\": \"\"\n    }\n  ],\n  \"creativeRotation\": {\n    \"creativeAssignments\": [\n      {\n        \"active\": false,\n        \"applyEventTags\": false,\n        \"clickThroughUrl\": {},\n        \"companionCreativeOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"creativeId\": \"\"\n          }\n        ],\n        \"creativeGroupAssignments\": [\n          {}\n        ],\n        \"creativeId\": \"\",\n        \"creativeIdDimensionValue\": {},\n        \"endTime\": \"\",\n        \"richMediaExitOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"enabled\": false,\n            \"exitId\": \"\"\n          }\n        ],\n        \"sequence\": 0,\n        \"sslCompliant\": false,\n        \"startTime\": \"\",\n        \"weight\": 0\n      }\n    ],\n    \"creativeOptimizationConfigurationId\": \"\",\n    \"type\": \"\",\n    \"weightCalculationStrategy\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"deliverySchedule\": {\n    \"frequencyCap\": {\n      \"duration\": \"\",\n      \"impressions\": \"\"\n    },\n    \"hardCutoff\": false,\n    \"impressionRatio\": \"\",\n    \"priority\": \"\"\n  },\n  \"dynamicClickTracker\": false,\n  \"endTime\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementAssignments\": [\n    {\n      \"active\": false,\n      \"placementId\": \"\",\n      \"placementIdDimensionValue\": {},\n      \"sslRequired\": false\n    }\n  ],\n  \"remarketingListExpression\": {\n    \"expression\": \"\"\n  },\n  \"size\": {\n    \"height\": 0,\n    \"iab\": false,\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"width\": 0\n  },\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"startTime\": \"\",\n  \"subaccountId\": \"\",\n  \"targetingTemplateId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"type\": \"\"\n}"

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

conn.request("PATCH", "/baseUrl/userprofiles/:profileId/ads?id=", payload, headers)

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

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

url = "{{baseUrl}}/userprofiles/:profileId/ads"

querystring = {"id":""}

payload = {
    "accountId": "",
    "active": False,
    "advertiserId": "",
    "advertiserIdDimensionValue": {
        "dimensionName": "",
        "etag": "",
        "id": "",
        "kind": "",
        "matchType": "",
        "value": ""
    },
    "archived": False,
    "audienceSegmentId": "",
    "campaignId": "",
    "campaignIdDimensionValue": {},
    "clickThroughUrl": {
        "computedClickThroughUrl": "",
        "customClickThroughUrl": "",
        "defaultLandingPage": False,
        "landingPageId": ""
    },
    "clickThroughUrlSuffixProperties": {
        "clickThroughUrlSuffix": "",
        "overrideInheritedSuffix": False
    },
    "comments": "",
    "compatibility": "",
    "createInfo": { "time": "" },
    "creativeGroupAssignments": [
        {
            "creativeGroupId": "",
            "creativeGroupNumber": ""
        }
    ],
    "creativeRotation": {
        "creativeAssignments": [
            {
                "active": False,
                "applyEventTags": False,
                "clickThroughUrl": {},
                "companionCreativeOverrides": [
                    {
                        "clickThroughUrl": {},
                        "creativeId": ""
                    }
                ],
                "creativeGroupAssignments": [{}],
                "creativeId": "",
                "creativeIdDimensionValue": {},
                "endTime": "",
                "richMediaExitOverrides": [
                    {
                        "clickThroughUrl": {},
                        "enabled": False,
                        "exitId": ""
                    }
                ],
                "sequence": 0,
                "sslCompliant": False,
                "startTime": "",
                "weight": 0
            }
        ],
        "creativeOptimizationConfigurationId": "",
        "type": "",
        "weightCalculationStrategy": ""
    },
    "dayPartTargeting": {
        "daysOfWeek": [],
        "hoursOfDay": [],
        "userLocalTime": False
    },
    "defaultClickThroughEventTagProperties": {
        "defaultClickThroughEventTagId": "",
        "overrideInheritedEventTag": False
    },
    "deliverySchedule": {
        "frequencyCap": {
            "duration": "",
            "impressions": ""
        },
        "hardCutoff": False,
        "impressionRatio": "",
        "priority": ""
    },
    "dynamicClickTracker": False,
    "endTime": "",
    "eventTagOverrides": [
        {
            "enabled": False,
            "id": ""
        }
    ],
    "geoTargeting": {
        "cities": [
            {
                "countryCode": "",
                "countryDartId": "",
                "dartId": "",
                "kind": "",
                "metroCode": "",
                "metroDmaId": "",
                "name": "",
                "regionCode": "",
                "regionDartId": ""
            }
        ],
        "countries": [
            {
                "countryCode": "",
                "dartId": "",
                "kind": "",
                "name": "",
                "sslEnabled": False
            }
        ],
        "excludeCountries": False,
        "metros": [
            {
                "countryCode": "",
                "countryDartId": "",
                "dartId": "",
                "dmaId": "",
                "kind": "",
                "metroCode": "",
                "name": ""
            }
        ],
        "postalCodes": [
            {
                "code": "",
                "countryCode": "",
                "countryDartId": "",
                "id": "",
                "kind": ""
            }
        ],
        "regions": [
            {
                "countryCode": "",
                "countryDartId": "",
                "dartId": "",
                "kind": "",
                "name": "",
                "regionCode": ""
            }
        ]
    },
    "id": "",
    "idDimensionValue": {},
    "keyValueTargetingExpression": { "expression": "" },
    "kind": "",
    "languageTargeting": { "languages": [
            {
                "id": "",
                "kind": "",
                "languageCode": "",
                "name": ""
            }
        ] },
    "lastModifiedInfo": {},
    "name": "",
    "placementAssignments": [
        {
            "active": False,
            "placementId": "",
            "placementIdDimensionValue": {},
            "sslRequired": False
        }
    ],
    "remarketingListExpression": { "expression": "" },
    "size": {
        "height": 0,
        "iab": False,
        "id": "",
        "kind": "",
        "width": 0
    },
    "sslCompliant": False,
    "sslRequired": False,
    "startTime": "",
    "subaccountId": "",
    "targetingTemplateId": "",
    "technologyTargeting": {
        "browsers": [
            {
                "browserVersionId": "",
                "dartId": "",
                "kind": "",
                "majorVersion": "",
                "minorVersion": "",
                "name": ""
            }
        ],
        "connectionTypes": [
            {
                "id": "",
                "kind": "",
                "name": ""
            }
        ],
        "mobileCarriers": [
            {
                "countryCode": "",
                "countryDartId": "",
                "id": "",
                "kind": "",
                "name": ""
            }
        ],
        "operatingSystemVersions": [
            {
                "id": "",
                "kind": "",
                "majorVersion": "",
                "minorVersion": "",
                "name": "",
                "operatingSystem": {
                    "dartId": "",
                    "desktop": False,
                    "kind": "",
                    "mobile": False,
                    "name": ""
                }
            }
        ],
        "operatingSystems": [{}],
        "platformTypes": [
            {
                "id": "",
                "kind": "",
                "name": ""
            }
        ]
    },
    "type": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/userprofiles/:profileId/ads"

queryString <- list(id = "")

payload <- "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"audienceSegmentId\": \"\",\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"clickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"defaultLandingPage\": false,\n    \"landingPageId\": \"\"\n  },\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comments\": \"\",\n  \"compatibility\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupAssignments\": [\n    {\n      \"creativeGroupId\": \"\",\n      \"creativeGroupNumber\": \"\"\n    }\n  ],\n  \"creativeRotation\": {\n    \"creativeAssignments\": [\n      {\n        \"active\": false,\n        \"applyEventTags\": false,\n        \"clickThroughUrl\": {},\n        \"companionCreativeOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"creativeId\": \"\"\n          }\n        ],\n        \"creativeGroupAssignments\": [\n          {}\n        ],\n        \"creativeId\": \"\",\n        \"creativeIdDimensionValue\": {},\n        \"endTime\": \"\",\n        \"richMediaExitOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"enabled\": false,\n            \"exitId\": \"\"\n          }\n        ],\n        \"sequence\": 0,\n        \"sslCompliant\": false,\n        \"startTime\": \"\",\n        \"weight\": 0\n      }\n    ],\n    \"creativeOptimizationConfigurationId\": \"\",\n    \"type\": \"\",\n    \"weightCalculationStrategy\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"deliverySchedule\": {\n    \"frequencyCap\": {\n      \"duration\": \"\",\n      \"impressions\": \"\"\n    },\n    \"hardCutoff\": false,\n    \"impressionRatio\": \"\",\n    \"priority\": \"\"\n  },\n  \"dynamicClickTracker\": false,\n  \"endTime\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementAssignments\": [\n    {\n      \"active\": false,\n      \"placementId\": \"\",\n      \"placementIdDimensionValue\": {},\n      \"sslRequired\": false\n    }\n  ],\n  \"remarketingListExpression\": {\n    \"expression\": \"\"\n  },\n  \"size\": {\n    \"height\": 0,\n    \"iab\": false,\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"width\": 0\n  },\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"startTime\": \"\",\n  \"subaccountId\": \"\",\n  \"targetingTemplateId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"type\": \"\"\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/userprofiles/:profileId/ads?id=")

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  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"audienceSegmentId\": \"\",\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"clickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"defaultLandingPage\": false,\n    \"landingPageId\": \"\"\n  },\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comments\": \"\",\n  \"compatibility\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupAssignments\": [\n    {\n      \"creativeGroupId\": \"\",\n      \"creativeGroupNumber\": \"\"\n    }\n  ],\n  \"creativeRotation\": {\n    \"creativeAssignments\": [\n      {\n        \"active\": false,\n        \"applyEventTags\": false,\n        \"clickThroughUrl\": {},\n        \"companionCreativeOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"creativeId\": \"\"\n          }\n        ],\n        \"creativeGroupAssignments\": [\n          {}\n        ],\n        \"creativeId\": \"\",\n        \"creativeIdDimensionValue\": {},\n        \"endTime\": \"\",\n        \"richMediaExitOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"enabled\": false,\n            \"exitId\": \"\"\n          }\n        ],\n        \"sequence\": 0,\n        \"sslCompliant\": false,\n        \"startTime\": \"\",\n        \"weight\": 0\n      }\n    ],\n    \"creativeOptimizationConfigurationId\": \"\",\n    \"type\": \"\",\n    \"weightCalculationStrategy\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"deliverySchedule\": {\n    \"frequencyCap\": {\n      \"duration\": \"\",\n      \"impressions\": \"\"\n    },\n    \"hardCutoff\": false,\n    \"impressionRatio\": \"\",\n    \"priority\": \"\"\n  },\n  \"dynamicClickTracker\": false,\n  \"endTime\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementAssignments\": [\n    {\n      \"active\": false,\n      \"placementId\": \"\",\n      \"placementIdDimensionValue\": {},\n      \"sslRequired\": false\n    }\n  ],\n  \"remarketingListExpression\": {\n    \"expression\": \"\"\n  },\n  \"size\": {\n    \"height\": 0,\n    \"iab\": false,\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"width\": 0\n  },\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"startTime\": \"\",\n  \"subaccountId\": \"\",\n  \"targetingTemplateId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"type\": \"\"\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/userprofiles/:profileId/ads') do |req|
  req.params['id'] = ''
  req.body = "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"audienceSegmentId\": \"\",\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"clickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"defaultLandingPage\": false,\n    \"landingPageId\": \"\"\n  },\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comments\": \"\",\n  \"compatibility\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupAssignments\": [\n    {\n      \"creativeGroupId\": \"\",\n      \"creativeGroupNumber\": \"\"\n    }\n  ],\n  \"creativeRotation\": {\n    \"creativeAssignments\": [\n      {\n        \"active\": false,\n        \"applyEventTags\": false,\n        \"clickThroughUrl\": {},\n        \"companionCreativeOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"creativeId\": \"\"\n          }\n        ],\n        \"creativeGroupAssignments\": [\n          {}\n        ],\n        \"creativeId\": \"\",\n        \"creativeIdDimensionValue\": {},\n        \"endTime\": \"\",\n        \"richMediaExitOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"enabled\": false,\n            \"exitId\": \"\"\n          }\n        ],\n        \"sequence\": 0,\n        \"sslCompliant\": false,\n        \"startTime\": \"\",\n        \"weight\": 0\n      }\n    ],\n    \"creativeOptimizationConfigurationId\": \"\",\n    \"type\": \"\",\n    \"weightCalculationStrategy\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"deliverySchedule\": {\n    \"frequencyCap\": {\n      \"duration\": \"\",\n      \"impressions\": \"\"\n    },\n    \"hardCutoff\": false,\n    \"impressionRatio\": \"\",\n    \"priority\": \"\"\n  },\n  \"dynamicClickTracker\": false,\n  \"endTime\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementAssignments\": [\n    {\n      \"active\": false,\n      \"placementId\": \"\",\n      \"placementIdDimensionValue\": {},\n      \"sslRequired\": false\n    }\n  ],\n  \"remarketingListExpression\": {\n    \"expression\": \"\"\n  },\n  \"size\": {\n    \"height\": 0,\n    \"iab\": false,\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"width\": 0\n  },\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"startTime\": \"\",\n  \"subaccountId\": \"\",\n  \"targetingTemplateId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"type\": \"\"\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}}/userprofiles/:profileId/ads";

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

    let payload = json!({
        "accountId": "",
        "active": false,
        "advertiserId": "",
        "advertiserIdDimensionValue": json!({
            "dimensionName": "",
            "etag": "",
            "id": "",
            "kind": "",
            "matchType": "",
            "value": ""
        }),
        "archived": false,
        "audienceSegmentId": "",
        "campaignId": "",
        "campaignIdDimensionValue": json!({}),
        "clickThroughUrl": json!({
            "computedClickThroughUrl": "",
            "customClickThroughUrl": "",
            "defaultLandingPage": false,
            "landingPageId": ""
        }),
        "clickThroughUrlSuffixProperties": json!({
            "clickThroughUrlSuffix": "",
            "overrideInheritedSuffix": false
        }),
        "comments": "",
        "compatibility": "",
        "createInfo": json!({"time": ""}),
        "creativeGroupAssignments": (
            json!({
                "creativeGroupId": "",
                "creativeGroupNumber": ""
            })
        ),
        "creativeRotation": json!({
            "creativeAssignments": (
                json!({
                    "active": false,
                    "applyEventTags": false,
                    "clickThroughUrl": json!({}),
                    "companionCreativeOverrides": (
                        json!({
                            "clickThroughUrl": json!({}),
                            "creativeId": ""
                        })
                    ),
                    "creativeGroupAssignments": (json!({})),
                    "creativeId": "",
                    "creativeIdDimensionValue": json!({}),
                    "endTime": "",
                    "richMediaExitOverrides": (
                        json!({
                            "clickThroughUrl": json!({}),
                            "enabled": false,
                            "exitId": ""
                        })
                    ),
                    "sequence": 0,
                    "sslCompliant": false,
                    "startTime": "",
                    "weight": 0
                })
            ),
            "creativeOptimizationConfigurationId": "",
            "type": "",
            "weightCalculationStrategy": ""
        }),
        "dayPartTargeting": json!({
            "daysOfWeek": (),
            "hoursOfDay": (),
            "userLocalTime": false
        }),
        "defaultClickThroughEventTagProperties": json!({
            "defaultClickThroughEventTagId": "",
            "overrideInheritedEventTag": false
        }),
        "deliverySchedule": json!({
            "frequencyCap": json!({
                "duration": "",
                "impressions": ""
            }),
            "hardCutoff": false,
            "impressionRatio": "",
            "priority": ""
        }),
        "dynamicClickTracker": false,
        "endTime": "",
        "eventTagOverrides": (
            json!({
                "enabled": false,
                "id": ""
            })
        ),
        "geoTargeting": json!({
            "cities": (
                json!({
                    "countryCode": "",
                    "countryDartId": "",
                    "dartId": "",
                    "kind": "",
                    "metroCode": "",
                    "metroDmaId": "",
                    "name": "",
                    "regionCode": "",
                    "regionDartId": ""
                })
            ),
            "countries": (
                json!({
                    "countryCode": "",
                    "dartId": "",
                    "kind": "",
                    "name": "",
                    "sslEnabled": false
                })
            ),
            "excludeCountries": false,
            "metros": (
                json!({
                    "countryCode": "",
                    "countryDartId": "",
                    "dartId": "",
                    "dmaId": "",
                    "kind": "",
                    "metroCode": "",
                    "name": ""
                })
            ),
            "postalCodes": (
                json!({
                    "code": "",
                    "countryCode": "",
                    "countryDartId": "",
                    "id": "",
                    "kind": ""
                })
            ),
            "regions": (
                json!({
                    "countryCode": "",
                    "countryDartId": "",
                    "dartId": "",
                    "kind": "",
                    "name": "",
                    "regionCode": ""
                })
            )
        }),
        "id": "",
        "idDimensionValue": json!({}),
        "keyValueTargetingExpression": json!({"expression": ""}),
        "kind": "",
        "languageTargeting": json!({"languages": (
                json!({
                    "id": "",
                    "kind": "",
                    "languageCode": "",
                    "name": ""
                })
            )}),
        "lastModifiedInfo": json!({}),
        "name": "",
        "placementAssignments": (
            json!({
                "active": false,
                "placementId": "",
                "placementIdDimensionValue": json!({}),
                "sslRequired": false
            })
        ),
        "remarketingListExpression": json!({"expression": ""}),
        "size": json!({
            "height": 0,
            "iab": false,
            "id": "",
            "kind": "",
            "width": 0
        }),
        "sslCompliant": false,
        "sslRequired": false,
        "startTime": "",
        "subaccountId": "",
        "targetingTemplateId": "",
        "technologyTargeting": json!({
            "browsers": (
                json!({
                    "browserVersionId": "",
                    "dartId": "",
                    "kind": "",
                    "majorVersion": "",
                    "minorVersion": "",
                    "name": ""
                })
            ),
            "connectionTypes": (
                json!({
                    "id": "",
                    "kind": "",
                    "name": ""
                })
            ),
            "mobileCarriers": (
                json!({
                    "countryCode": "",
                    "countryDartId": "",
                    "id": "",
                    "kind": "",
                    "name": ""
                })
            ),
            "operatingSystemVersions": (
                json!({
                    "id": "",
                    "kind": "",
                    "majorVersion": "",
                    "minorVersion": "",
                    "name": "",
                    "operatingSystem": json!({
                        "dartId": "",
                        "desktop": false,
                        "kind": "",
                        "mobile": false,
                        "name": ""
                    })
                })
            ),
            "operatingSystems": (json!({})),
            "platformTypes": (
                json!({
                    "id": "",
                    "kind": "",
                    "name": ""
                })
            )
        }),
        "type": ""
    });

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

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

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

    dbg!(results);
}
curl --request PATCH \
  --url '{{baseUrl}}/userprofiles/:profileId/ads?id=' \
  --header 'content-type: application/json' \
  --data '{
  "accountId": "",
  "active": false,
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "archived": false,
  "audienceSegmentId": "",
  "campaignId": "",
  "campaignIdDimensionValue": {},
  "clickThroughUrl": {
    "computedClickThroughUrl": "",
    "customClickThroughUrl": "",
    "defaultLandingPage": false,
    "landingPageId": ""
  },
  "clickThroughUrlSuffixProperties": {
    "clickThroughUrlSuffix": "",
    "overrideInheritedSuffix": false
  },
  "comments": "",
  "compatibility": "",
  "createInfo": {
    "time": ""
  },
  "creativeGroupAssignments": [
    {
      "creativeGroupId": "",
      "creativeGroupNumber": ""
    }
  ],
  "creativeRotation": {
    "creativeAssignments": [
      {
        "active": false,
        "applyEventTags": false,
        "clickThroughUrl": {},
        "companionCreativeOverrides": [
          {
            "clickThroughUrl": {},
            "creativeId": ""
          }
        ],
        "creativeGroupAssignments": [
          {}
        ],
        "creativeId": "",
        "creativeIdDimensionValue": {},
        "endTime": "",
        "richMediaExitOverrides": [
          {
            "clickThroughUrl": {},
            "enabled": false,
            "exitId": ""
          }
        ],
        "sequence": 0,
        "sslCompliant": false,
        "startTime": "",
        "weight": 0
      }
    ],
    "creativeOptimizationConfigurationId": "",
    "type": "",
    "weightCalculationStrategy": ""
  },
  "dayPartTargeting": {
    "daysOfWeek": [],
    "hoursOfDay": [],
    "userLocalTime": false
  },
  "defaultClickThroughEventTagProperties": {
    "defaultClickThroughEventTagId": "",
    "overrideInheritedEventTag": false
  },
  "deliverySchedule": {
    "frequencyCap": {
      "duration": "",
      "impressions": ""
    },
    "hardCutoff": false,
    "impressionRatio": "",
    "priority": ""
  },
  "dynamicClickTracker": false,
  "endTime": "",
  "eventTagOverrides": [
    {
      "enabled": false,
      "id": ""
    }
  ],
  "geoTargeting": {
    "cities": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "metroCode": "",
        "metroDmaId": "",
        "name": "",
        "regionCode": "",
        "regionDartId": ""
      }
    ],
    "countries": [
      {
        "countryCode": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "sslEnabled": false
      }
    ],
    "excludeCountries": false,
    "metros": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "dmaId": "",
        "kind": "",
        "metroCode": "",
        "name": ""
      }
    ],
    "postalCodes": [
      {
        "code": "",
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": ""
      }
    ],
    "regions": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "regionCode": ""
      }
    ]
  },
  "id": "",
  "idDimensionValue": {},
  "keyValueTargetingExpression": {
    "expression": ""
  },
  "kind": "",
  "languageTargeting": {
    "languages": [
      {
        "id": "",
        "kind": "",
        "languageCode": "",
        "name": ""
      }
    ]
  },
  "lastModifiedInfo": {},
  "name": "",
  "placementAssignments": [
    {
      "active": false,
      "placementId": "",
      "placementIdDimensionValue": {},
      "sslRequired": false
    }
  ],
  "remarketingListExpression": {
    "expression": ""
  },
  "size": {
    "height": 0,
    "iab": false,
    "id": "",
    "kind": "",
    "width": 0
  },
  "sslCompliant": false,
  "sslRequired": false,
  "startTime": "",
  "subaccountId": "",
  "targetingTemplateId": "",
  "technologyTargeting": {
    "browsers": [
      {
        "browserVersionId": "",
        "dartId": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": ""
      }
    ],
    "connectionTypes": [
      {
        "id": "",
        "kind": "",
        "name": ""
      }
    ],
    "mobileCarriers": [
      {
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": "",
        "name": ""
      }
    ],
    "operatingSystemVersions": [
      {
        "id": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": "",
        "operatingSystem": {
          "dartId": "",
          "desktop": false,
          "kind": "",
          "mobile": false,
          "name": ""
        }
      }
    ],
    "operatingSystems": [
      {}
    ],
    "platformTypes": [
      {
        "id": "",
        "kind": "",
        "name": ""
      }
    ]
  },
  "type": ""
}'
echo '{
  "accountId": "",
  "active": false,
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "archived": false,
  "audienceSegmentId": "",
  "campaignId": "",
  "campaignIdDimensionValue": {},
  "clickThroughUrl": {
    "computedClickThroughUrl": "",
    "customClickThroughUrl": "",
    "defaultLandingPage": false,
    "landingPageId": ""
  },
  "clickThroughUrlSuffixProperties": {
    "clickThroughUrlSuffix": "",
    "overrideInheritedSuffix": false
  },
  "comments": "",
  "compatibility": "",
  "createInfo": {
    "time": ""
  },
  "creativeGroupAssignments": [
    {
      "creativeGroupId": "",
      "creativeGroupNumber": ""
    }
  ],
  "creativeRotation": {
    "creativeAssignments": [
      {
        "active": false,
        "applyEventTags": false,
        "clickThroughUrl": {},
        "companionCreativeOverrides": [
          {
            "clickThroughUrl": {},
            "creativeId": ""
          }
        ],
        "creativeGroupAssignments": [
          {}
        ],
        "creativeId": "",
        "creativeIdDimensionValue": {},
        "endTime": "",
        "richMediaExitOverrides": [
          {
            "clickThroughUrl": {},
            "enabled": false,
            "exitId": ""
          }
        ],
        "sequence": 0,
        "sslCompliant": false,
        "startTime": "",
        "weight": 0
      }
    ],
    "creativeOptimizationConfigurationId": "",
    "type": "",
    "weightCalculationStrategy": ""
  },
  "dayPartTargeting": {
    "daysOfWeek": [],
    "hoursOfDay": [],
    "userLocalTime": false
  },
  "defaultClickThroughEventTagProperties": {
    "defaultClickThroughEventTagId": "",
    "overrideInheritedEventTag": false
  },
  "deliverySchedule": {
    "frequencyCap": {
      "duration": "",
      "impressions": ""
    },
    "hardCutoff": false,
    "impressionRatio": "",
    "priority": ""
  },
  "dynamicClickTracker": false,
  "endTime": "",
  "eventTagOverrides": [
    {
      "enabled": false,
      "id": ""
    }
  ],
  "geoTargeting": {
    "cities": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "metroCode": "",
        "metroDmaId": "",
        "name": "",
        "regionCode": "",
        "regionDartId": ""
      }
    ],
    "countries": [
      {
        "countryCode": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "sslEnabled": false
      }
    ],
    "excludeCountries": false,
    "metros": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "dmaId": "",
        "kind": "",
        "metroCode": "",
        "name": ""
      }
    ],
    "postalCodes": [
      {
        "code": "",
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": ""
      }
    ],
    "regions": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "regionCode": ""
      }
    ]
  },
  "id": "",
  "idDimensionValue": {},
  "keyValueTargetingExpression": {
    "expression": ""
  },
  "kind": "",
  "languageTargeting": {
    "languages": [
      {
        "id": "",
        "kind": "",
        "languageCode": "",
        "name": ""
      }
    ]
  },
  "lastModifiedInfo": {},
  "name": "",
  "placementAssignments": [
    {
      "active": false,
      "placementId": "",
      "placementIdDimensionValue": {},
      "sslRequired": false
    }
  ],
  "remarketingListExpression": {
    "expression": ""
  },
  "size": {
    "height": 0,
    "iab": false,
    "id": "",
    "kind": "",
    "width": 0
  },
  "sslCompliant": false,
  "sslRequired": false,
  "startTime": "",
  "subaccountId": "",
  "targetingTemplateId": "",
  "technologyTargeting": {
    "browsers": [
      {
        "browserVersionId": "",
        "dartId": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": ""
      }
    ],
    "connectionTypes": [
      {
        "id": "",
        "kind": "",
        "name": ""
      }
    ],
    "mobileCarriers": [
      {
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": "",
        "name": ""
      }
    ],
    "operatingSystemVersions": [
      {
        "id": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": "",
        "operatingSystem": {
          "dartId": "",
          "desktop": false,
          "kind": "",
          "mobile": false,
          "name": ""
        }
      }
    ],
    "operatingSystems": [
      {}
    ],
    "platformTypes": [
      {
        "id": "",
        "kind": "",
        "name": ""
      }
    ]
  },
  "type": ""
}' |  \
  http PATCH '{{baseUrl}}/userprofiles/:profileId/ads?id=' \
  content-type:application/json
wget --quiet \
  --method PATCH \
  --header 'content-type: application/json' \
  --body-data '{\n  "accountId": "",\n  "active": false,\n  "advertiserId": "",\n  "advertiserIdDimensionValue": {\n    "dimensionName": "",\n    "etag": "",\n    "id": "",\n    "kind": "",\n    "matchType": "",\n    "value": ""\n  },\n  "archived": false,\n  "audienceSegmentId": "",\n  "campaignId": "",\n  "campaignIdDimensionValue": {},\n  "clickThroughUrl": {\n    "computedClickThroughUrl": "",\n    "customClickThroughUrl": "",\n    "defaultLandingPage": false,\n    "landingPageId": ""\n  },\n  "clickThroughUrlSuffixProperties": {\n    "clickThroughUrlSuffix": "",\n    "overrideInheritedSuffix": false\n  },\n  "comments": "",\n  "compatibility": "",\n  "createInfo": {\n    "time": ""\n  },\n  "creativeGroupAssignments": [\n    {\n      "creativeGroupId": "",\n      "creativeGroupNumber": ""\n    }\n  ],\n  "creativeRotation": {\n    "creativeAssignments": [\n      {\n        "active": false,\n        "applyEventTags": false,\n        "clickThroughUrl": {},\n        "companionCreativeOverrides": [\n          {\n            "clickThroughUrl": {},\n            "creativeId": ""\n          }\n        ],\n        "creativeGroupAssignments": [\n          {}\n        ],\n        "creativeId": "",\n        "creativeIdDimensionValue": {},\n        "endTime": "",\n        "richMediaExitOverrides": [\n          {\n            "clickThroughUrl": {},\n            "enabled": false,\n            "exitId": ""\n          }\n        ],\n        "sequence": 0,\n        "sslCompliant": false,\n        "startTime": "",\n        "weight": 0\n      }\n    ],\n    "creativeOptimizationConfigurationId": "",\n    "type": "",\n    "weightCalculationStrategy": ""\n  },\n  "dayPartTargeting": {\n    "daysOfWeek": [],\n    "hoursOfDay": [],\n    "userLocalTime": false\n  },\n  "defaultClickThroughEventTagProperties": {\n    "defaultClickThroughEventTagId": "",\n    "overrideInheritedEventTag": false\n  },\n  "deliverySchedule": {\n    "frequencyCap": {\n      "duration": "",\n      "impressions": ""\n    },\n    "hardCutoff": false,\n    "impressionRatio": "",\n    "priority": ""\n  },\n  "dynamicClickTracker": false,\n  "endTime": "",\n  "eventTagOverrides": [\n    {\n      "enabled": false,\n      "id": ""\n    }\n  ],\n  "geoTargeting": {\n    "cities": [\n      {\n        "countryCode": "",\n        "countryDartId": "",\n        "dartId": "",\n        "kind": "",\n        "metroCode": "",\n        "metroDmaId": "",\n        "name": "",\n        "regionCode": "",\n        "regionDartId": ""\n      }\n    ],\n    "countries": [\n      {\n        "countryCode": "",\n        "dartId": "",\n        "kind": "",\n        "name": "",\n        "sslEnabled": false\n      }\n    ],\n    "excludeCountries": false,\n    "metros": [\n      {\n        "countryCode": "",\n        "countryDartId": "",\n        "dartId": "",\n        "dmaId": "",\n        "kind": "",\n        "metroCode": "",\n        "name": ""\n      }\n    ],\n    "postalCodes": [\n      {\n        "code": "",\n        "countryCode": "",\n        "countryDartId": "",\n        "id": "",\n        "kind": ""\n      }\n    ],\n    "regions": [\n      {\n        "countryCode": "",\n        "countryDartId": "",\n        "dartId": "",\n        "kind": "",\n        "name": "",\n        "regionCode": ""\n      }\n    ]\n  },\n  "id": "",\n  "idDimensionValue": {},\n  "keyValueTargetingExpression": {\n    "expression": ""\n  },\n  "kind": "",\n  "languageTargeting": {\n    "languages": [\n      {\n        "id": "",\n        "kind": "",\n        "languageCode": "",\n        "name": ""\n      }\n    ]\n  },\n  "lastModifiedInfo": {},\n  "name": "",\n  "placementAssignments": [\n    {\n      "active": false,\n      "placementId": "",\n      "placementIdDimensionValue": {},\n      "sslRequired": false\n    }\n  ],\n  "remarketingListExpression": {\n    "expression": ""\n  },\n  "size": {\n    "height": 0,\n    "iab": false,\n    "id": "",\n    "kind": "",\n    "width": 0\n  },\n  "sslCompliant": false,\n  "sslRequired": false,\n  "startTime": "",\n  "subaccountId": "",\n  "targetingTemplateId": "",\n  "technologyTargeting": {\n    "browsers": [\n      {\n        "browserVersionId": "",\n        "dartId": "",\n        "kind": "",\n        "majorVersion": "",\n        "minorVersion": "",\n        "name": ""\n      }\n    ],\n    "connectionTypes": [\n      {\n        "id": "",\n        "kind": "",\n        "name": ""\n      }\n    ],\n    "mobileCarriers": [\n      {\n        "countryCode": "",\n        "countryDartId": "",\n        "id": "",\n        "kind": "",\n        "name": ""\n      }\n    ],\n    "operatingSystemVersions": [\n      {\n        "id": "",\n        "kind": "",\n        "majorVersion": "",\n        "minorVersion": "",\n        "name": "",\n        "operatingSystem": {\n          "dartId": "",\n          "desktop": false,\n          "kind": "",\n          "mobile": false,\n          "name": ""\n        }\n      }\n    ],\n    "operatingSystems": [\n      {}\n    ],\n    "platformTypes": [\n      {\n        "id": "",\n        "kind": "",\n        "name": ""\n      }\n    ]\n  },\n  "type": ""\n}' \
  --output-document \
  - '{{baseUrl}}/userprofiles/:profileId/ads?id='
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "accountId": "",
  "active": false,
  "advertiserId": "",
  "advertiserIdDimensionValue": [
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  ],
  "archived": false,
  "audienceSegmentId": "",
  "campaignId": "",
  "campaignIdDimensionValue": [],
  "clickThroughUrl": [
    "computedClickThroughUrl": "",
    "customClickThroughUrl": "",
    "defaultLandingPage": false,
    "landingPageId": ""
  ],
  "clickThroughUrlSuffixProperties": [
    "clickThroughUrlSuffix": "",
    "overrideInheritedSuffix": false
  ],
  "comments": "",
  "compatibility": "",
  "createInfo": ["time": ""],
  "creativeGroupAssignments": [
    [
      "creativeGroupId": "",
      "creativeGroupNumber": ""
    ]
  ],
  "creativeRotation": [
    "creativeAssignments": [
      [
        "active": false,
        "applyEventTags": false,
        "clickThroughUrl": [],
        "companionCreativeOverrides": [
          [
            "clickThroughUrl": [],
            "creativeId": ""
          ]
        ],
        "creativeGroupAssignments": [[]],
        "creativeId": "",
        "creativeIdDimensionValue": [],
        "endTime": "",
        "richMediaExitOverrides": [
          [
            "clickThroughUrl": [],
            "enabled": false,
            "exitId": ""
          ]
        ],
        "sequence": 0,
        "sslCompliant": false,
        "startTime": "",
        "weight": 0
      ]
    ],
    "creativeOptimizationConfigurationId": "",
    "type": "",
    "weightCalculationStrategy": ""
  ],
  "dayPartTargeting": [
    "daysOfWeek": [],
    "hoursOfDay": [],
    "userLocalTime": false
  ],
  "defaultClickThroughEventTagProperties": [
    "defaultClickThroughEventTagId": "",
    "overrideInheritedEventTag": false
  ],
  "deliverySchedule": [
    "frequencyCap": [
      "duration": "",
      "impressions": ""
    ],
    "hardCutoff": false,
    "impressionRatio": "",
    "priority": ""
  ],
  "dynamicClickTracker": false,
  "endTime": "",
  "eventTagOverrides": [
    [
      "enabled": false,
      "id": ""
    ]
  ],
  "geoTargeting": [
    "cities": [
      [
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "metroCode": "",
        "metroDmaId": "",
        "name": "",
        "regionCode": "",
        "regionDartId": ""
      ]
    ],
    "countries": [
      [
        "countryCode": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "sslEnabled": false
      ]
    ],
    "excludeCountries": false,
    "metros": [
      [
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "dmaId": "",
        "kind": "",
        "metroCode": "",
        "name": ""
      ]
    ],
    "postalCodes": [
      [
        "code": "",
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": ""
      ]
    ],
    "regions": [
      [
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "regionCode": ""
      ]
    ]
  ],
  "id": "",
  "idDimensionValue": [],
  "keyValueTargetingExpression": ["expression": ""],
  "kind": "",
  "languageTargeting": ["languages": [
      [
        "id": "",
        "kind": "",
        "languageCode": "",
        "name": ""
      ]
    ]],
  "lastModifiedInfo": [],
  "name": "",
  "placementAssignments": [
    [
      "active": false,
      "placementId": "",
      "placementIdDimensionValue": [],
      "sslRequired": false
    ]
  ],
  "remarketingListExpression": ["expression": ""],
  "size": [
    "height": 0,
    "iab": false,
    "id": "",
    "kind": "",
    "width": 0
  ],
  "sslCompliant": false,
  "sslRequired": false,
  "startTime": "",
  "subaccountId": "",
  "targetingTemplateId": "",
  "technologyTargeting": [
    "browsers": [
      [
        "browserVersionId": "",
        "dartId": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": ""
      ]
    ],
    "connectionTypes": [
      [
        "id": "",
        "kind": "",
        "name": ""
      ]
    ],
    "mobileCarriers": [
      [
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": "",
        "name": ""
      ]
    ],
    "operatingSystemVersions": [
      [
        "id": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": "",
        "operatingSystem": [
          "dartId": "",
          "desktop": false,
          "kind": "",
          "mobile": false,
          "name": ""
        ]
      ]
    ],
    "operatingSystems": [[]],
    "platformTypes": [
      [
        "id": "",
        "kind": "",
        "name": ""
      ]
    ]
  ],
  "type": ""
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/ads?id=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PATCH"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

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

dataTask.resume()
PUT dfareporting.ads.update
{{baseUrl}}/userprofiles/:profileId/ads
QUERY PARAMS

profileId
BODY json

{
  "accountId": "",
  "active": false,
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "archived": false,
  "audienceSegmentId": "",
  "campaignId": "",
  "campaignIdDimensionValue": {},
  "clickThroughUrl": {
    "computedClickThroughUrl": "",
    "customClickThroughUrl": "",
    "defaultLandingPage": false,
    "landingPageId": ""
  },
  "clickThroughUrlSuffixProperties": {
    "clickThroughUrlSuffix": "",
    "overrideInheritedSuffix": false
  },
  "comments": "",
  "compatibility": "",
  "createInfo": {
    "time": ""
  },
  "creativeGroupAssignments": [
    {
      "creativeGroupId": "",
      "creativeGroupNumber": ""
    }
  ],
  "creativeRotation": {
    "creativeAssignments": [
      {
        "active": false,
        "applyEventTags": false,
        "clickThroughUrl": {},
        "companionCreativeOverrides": [
          {
            "clickThroughUrl": {},
            "creativeId": ""
          }
        ],
        "creativeGroupAssignments": [
          {}
        ],
        "creativeId": "",
        "creativeIdDimensionValue": {},
        "endTime": "",
        "richMediaExitOverrides": [
          {
            "clickThroughUrl": {},
            "enabled": false,
            "exitId": ""
          }
        ],
        "sequence": 0,
        "sslCompliant": false,
        "startTime": "",
        "weight": 0
      }
    ],
    "creativeOptimizationConfigurationId": "",
    "type": "",
    "weightCalculationStrategy": ""
  },
  "dayPartTargeting": {
    "daysOfWeek": [],
    "hoursOfDay": [],
    "userLocalTime": false
  },
  "defaultClickThroughEventTagProperties": {
    "defaultClickThroughEventTagId": "",
    "overrideInheritedEventTag": false
  },
  "deliverySchedule": {
    "frequencyCap": {
      "duration": "",
      "impressions": ""
    },
    "hardCutoff": false,
    "impressionRatio": "",
    "priority": ""
  },
  "dynamicClickTracker": false,
  "endTime": "",
  "eventTagOverrides": [
    {
      "enabled": false,
      "id": ""
    }
  ],
  "geoTargeting": {
    "cities": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "metroCode": "",
        "metroDmaId": "",
        "name": "",
        "regionCode": "",
        "regionDartId": ""
      }
    ],
    "countries": [
      {
        "countryCode": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "sslEnabled": false
      }
    ],
    "excludeCountries": false,
    "metros": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "dmaId": "",
        "kind": "",
        "metroCode": "",
        "name": ""
      }
    ],
    "postalCodes": [
      {
        "code": "",
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": ""
      }
    ],
    "regions": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "regionCode": ""
      }
    ]
  },
  "id": "",
  "idDimensionValue": {},
  "keyValueTargetingExpression": {
    "expression": ""
  },
  "kind": "",
  "languageTargeting": {
    "languages": [
      {
        "id": "",
        "kind": "",
        "languageCode": "",
        "name": ""
      }
    ]
  },
  "lastModifiedInfo": {},
  "name": "",
  "placementAssignments": [
    {
      "active": false,
      "placementId": "",
      "placementIdDimensionValue": {},
      "sslRequired": false
    }
  ],
  "remarketingListExpression": {
    "expression": ""
  },
  "size": {
    "height": 0,
    "iab": false,
    "id": "",
    "kind": "",
    "width": 0
  },
  "sslCompliant": false,
  "sslRequired": false,
  "startTime": "",
  "subaccountId": "",
  "targetingTemplateId": "",
  "technologyTargeting": {
    "browsers": [
      {
        "browserVersionId": "",
        "dartId": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": ""
      }
    ],
    "connectionTypes": [
      {
        "id": "",
        "kind": "",
        "name": ""
      }
    ],
    "mobileCarriers": [
      {
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": "",
        "name": ""
      }
    ],
    "operatingSystemVersions": [
      {
        "id": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": "",
        "operatingSystem": {
          "dartId": "",
          "desktop": false,
          "kind": "",
          "mobile": false,
          "name": ""
        }
      }
    ],
    "operatingSystems": [
      {}
    ],
    "platformTypes": [
      {
        "id": "",
        "kind": "",
        "name": ""
      }
    ]
  },
  "type": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/ads");

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  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"audienceSegmentId\": \"\",\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"clickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"defaultLandingPage\": false,\n    \"landingPageId\": \"\"\n  },\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comments\": \"\",\n  \"compatibility\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupAssignments\": [\n    {\n      \"creativeGroupId\": \"\",\n      \"creativeGroupNumber\": \"\"\n    }\n  ],\n  \"creativeRotation\": {\n    \"creativeAssignments\": [\n      {\n        \"active\": false,\n        \"applyEventTags\": false,\n        \"clickThroughUrl\": {},\n        \"companionCreativeOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"creativeId\": \"\"\n          }\n        ],\n        \"creativeGroupAssignments\": [\n          {}\n        ],\n        \"creativeId\": \"\",\n        \"creativeIdDimensionValue\": {},\n        \"endTime\": \"\",\n        \"richMediaExitOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"enabled\": false,\n            \"exitId\": \"\"\n          }\n        ],\n        \"sequence\": 0,\n        \"sslCompliant\": false,\n        \"startTime\": \"\",\n        \"weight\": 0\n      }\n    ],\n    \"creativeOptimizationConfigurationId\": \"\",\n    \"type\": \"\",\n    \"weightCalculationStrategy\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"deliverySchedule\": {\n    \"frequencyCap\": {\n      \"duration\": \"\",\n      \"impressions\": \"\"\n    },\n    \"hardCutoff\": false,\n    \"impressionRatio\": \"\",\n    \"priority\": \"\"\n  },\n  \"dynamicClickTracker\": false,\n  \"endTime\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementAssignments\": [\n    {\n      \"active\": false,\n      \"placementId\": \"\",\n      \"placementIdDimensionValue\": {},\n      \"sslRequired\": false\n    }\n  ],\n  \"remarketingListExpression\": {\n    \"expression\": \"\"\n  },\n  \"size\": {\n    \"height\": 0,\n    \"iab\": false,\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"width\": 0\n  },\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"startTime\": \"\",\n  \"subaccountId\": \"\",\n  \"targetingTemplateId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"type\": \"\"\n}");

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

(client/put "{{baseUrl}}/userprofiles/:profileId/ads" {:content-type :json
                                                                       :form-params {:accountId ""
                                                                                     :active false
                                                                                     :advertiserId ""
                                                                                     :advertiserIdDimensionValue {:dimensionName ""
                                                                                                                  :etag ""
                                                                                                                  :id ""
                                                                                                                  :kind ""
                                                                                                                  :matchType ""
                                                                                                                  :value ""}
                                                                                     :archived false
                                                                                     :audienceSegmentId ""
                                                                                     :campaignId ""
                                                                                     :campaignIdDimensionValue {}
                                                                                     :clickThroughUrl {:computedClickThroughUrl ""
                                                                                                       :customClickThroughUrl ""
                                                                                                       :defaultLandingPage false
                                                                                                       :landingPageId ""}
                                                                                     :clickThroughUrlSuffixProperties {:clickThroughUrlSuffix ""
                                                                                                                       :overrideInheritedSuffix false}
                                                                                     :comments ""
                                                                                     :compatibility ""
                                                                                     :createInfo {:time ""}
                                                                                     :creativeGroupAssignments [{:creativeGroupId ""
                                                                                                                 :creativeGroupNumber ""}]
                                                                                     :creativeRotation {:creativeAssignments [{:active false
                                                                                                                               :applyEventTags false
                                                                                                                               :clickThroughUrl {}
                                                                                                                               :companionCreativeOverrides [{:clickThroughUrl {}
                                                                                                                                                             :creativeId ""}]
                                                                                                                               :creativeGroupAssignments [{}]
                                                                                                                               :creativeId ""
                                                                                                                               :creativeIdDimensionValue {}
                                                                                                                               :endTime ""
                                                                                                                               :richMediaExitOverrides [{:clickThroughUrl {}
                                                                                                                                                         :enabled false
                                                                                                                                                         :exitId ""}]
                                                                                                                               :sequence 0
                                                                                                                               :sslCompliant false
                                                                                                                               :startTime ""
                                                                                                                               :weight 0}]
                                                                                                        :creativeOptimizationConfigurationId ""
                                                                                                        :type ""
                                                                                                        :weightCalculationStrategy ""}
                                                                                     :dayPartTargeting {:daysOfWeek []
                                                                                                        :hoursOfDay []
                                                                                                        :userLocalTime false}
                                                                                     :defaultClickThroughEventTagProperties {:defaultClickThroughEventTagId ""
                                                                                                                             :overrideInheritedEventTag false}
                                                                                     :deliverySchedule {:frequencyCap {:duration ""
                                                                                                                       :impressions ""}
                                                                                                        :hardCutoff false
                                                                                                        :impressionRatio ""
                                                                                                        :priority ""}
                                                                                     :dynamicClickTracker false
                                                                                     :endTime ""
                                                                                     :eventTagOverrides [{:enabled false
                                                                                                          :id ""}]
                                                                                     :geoTargeting {:cities [{:countryCode ""
                                                                                                              :countryDartId ""
                                                                                                              :dartId ""
                                                                                                              :kind ""
                                                                                                              :metroCode ""
                                                                                                              :metroDmaId ""
                                                                                                              :name ""
                                                                                                              :regionCode ""
                                                                                                              :regionDartId ""}]
                                                                                                    :countries [{:countryCode ""
                                                                                                                 :dartId ""
                                                                                                                 :kind ""
                                                                                                                 :name ""
                                                                                                                 :sslEnabled false}]
                                                                                                    :excludeCountries false
                                                                                                    :metros [{:countryCode ""
                                                                                                              :countryDartId ""
                                                                                                              :dartId ""
                                                                                                              :dmaId ""
                                                                                                              :kind ""
                                                                                                              :metroCode ""
                                                                                                              :name ""}]
                                                                                                    :postalCodes [{:code ""
                                                                                                                   :countryCode ""
                                                                                                                   :countryDartId ""
                                                                                                                   :id ""
                                                                                                                   :kind ""}]
                                                                                                    :regions [{:countryCode ""
                                                                                                               :countryDartId ""
                                                                                                               :dartId ""
                                                                                                               :kind ""
                                                                                                               :name ""
                                                                                                               :regionCode ""}]}
                                                                                     :id ""
                                                                                     :idDimensionValue {}
                                                                                     :keyValueTargetingExpression {:expression ""}
                                                                                     :kind ""
                                                                                     :languageTargeting {:languages [{:id ""
                                                                                                                      :kind ""
                                                                                                                      :languageCode ""
                                                                                                                      :name ""}]}
                                                                                     :lastModifiedInfo {}
                                                                                     :name ""
                                                                                     :placementAssignments [{:active false
                                                                                                             :placementId ""
                                                                                                             :placementIdDimensionValue {}
                                                                                                             :sslRequired false}]
                                                                                     :remarketingListExpression {:expression ""}
                                                                                     :size {:height 0
                                                                                            :iab false
                                                                                            :id ""
                                                                                            :kind ""
                                                                                            :width 0}
                                                                                     :sslCompliant false
                                                                                     :sslRequired false
                                                                                     :startTime ""
                                                                                     :subaccountId ""
                                                                                     :targetingTemplateId ""
                                                                                     :technologyTargeting {:browsers [{:browserVersionId ""
                                                                                                                       :dartId ""
                                                                                                                       :kind ""
                                                                                                                       :majorVersion ""
                                                                                                                       :minorVersion ""
                                                                                                                       :name ""}]
                                                                                                           :connectionTypes [{:id ""
                                                                                                                              :kind ""
                                                                                                                              :name ""}]
                                                                                                           :mobileCarriers [{:countryCode ""
                                                                                                                             :countryDartId ""
                                                                                                                             :id ""
                                                                                                                             :kind ""
                                                                                                                             :name ""}]
                                                                                                           :operatingSystemVersions [{:id ""
                                                                                                                                      :kind ""
                                                                                                                                      :majorVersion ""
                                                                                                                                      :minorVersion ""
                                                                                                                                      :name ""
                                                                                                                                      :operatingSystem {:dartId ""
                                                                                                                                                        :desktop false
                                                                                                                                                        :kind ""
                                                                                                                                                        :mobile false
                                                                                                                                                        :name ""}}]
                                                                                                           :operatingSystems [{}]
                                                                                                           :platformTypes [{:id ""
                                                                                                                            :kind ""
                                                                                                                            :name ""}]}
                                                                                     :type ""}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/ads"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"audienceSegmentId\": \"\",\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"clickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"defaultLandingPage\": false,\n    \"landingPageId\": \"\"\n  },\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comments\": \"\",\n  \"compatibility\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupAssignments\": [\n    {\n      \"creativeGroupId\": \"\",\n      \"creativeGroupNumber\": \"\"\n    }\n  ],\n  \"creativeRotation\": {\n    \"creativeAssignments\": [\n      {\n        \"active\": false,\n        \"applyEventTags\": false,\n        \"clickThroughUrl\": {},\n        \"companionCreativeOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"creativeId\": \"\"\n          }\n        ],\n        \"creativeGroupAssignments\": [\n          {}\n        ],\n        \"creativeId\": \"\",\n        \"creativeIdDimensionValue\": {},\n        \"endTime\": \"\",\n        \"richMediaExitOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"enabled\": false,\n            \"exitId\": \"\"\n          }\n        ],\n        \"sequence\": 0,\n        \"sslCompliant\": false,\n        \"startTime\": \"\",\n        \"weight\": 0\n      }\n    ],\n    \"creativeOptimizationConfigurationId\": \"\",\n    \"type\": \"\",\n    \"weightCalculationStrategy\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"deliverySchedule\": {\n    \"frequencyCap\": {\n      \"duration\": \"\",\n      \"impressions\": \"\"\n    },\n    \"hardCutoff\": false,\n    \"impressionRatio\": \"\",\n    \"priority\": \"\"\n  },\n  \"dynamicClickTracker\": false,\n  \"endTime\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementAssignments\": [\n    {\n      \"active\": false,\n      \"placementId\": \"\",\n      \"placementIdDimensionValue\": {},\n      \"sslRequired\": false\n    }\n  ],\n  \"remarketingListExpression\": {\n    \"expression\": \"\"\n  },\n  \"size\": {\n    \"height\": 0,\n    \"iab\": false,\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"width\": 0\n  },\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"startTime\": \"\",\n  \"subaccountId\": \"\",\n  \"targetingTemplateId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"type\": \"\"\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/userprofiles/:profileId/ads"),
    Content = new StringContent("{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"audienceSegmentId\": \"\",\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"clickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"defaultLandingPage\": false,\n    \"landingPageId\": \"\"\n  },\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comments\": \"\",\n  \"compatibility\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupAssignments\": [\n    {\n      \"creativeGroupId\": \"\",\n      \"creativeGroupNumber\": \"\"\n    }\n  ],\n  \"creativeRotation\": {\n    \"creativeAssignments\": [\n      {\n        \"active\": false,\n        \"applyEventTags\": false,\n        \"clickThroughUrl\": {},\n        \"companionCreativeOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"creativeId\": \"\"\n          }\n        ],\n        \"creativeGroupAssignments\": [\n          {}\n        ],\n        \"creativeId\": \"\",\n        \"creativeIdDimensionValue\": {},\n        \"endTime\": \"\",\n        \"richMediaExitOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"enabled\": false,\n            \"exitId\": \"\"\n          }\n        ],\n        \"sequence\": 0,\n        \"sslCompliant\": false,\n        \"startTime\": \"\",\n        \"weight\": 0\n      }\n    ],\n    \"creativeOptimizationConfigurationId\": \"\",\n    \"type\": \"\",\n    \"weightCalculationStrategy\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"deliverySchedule\": {\n    \"frequencyCap\": {\n      \"duration\": \"\",\n      \"impressions\": \"\"\n    },\n    \"hardCutoff\": false,\n    \"impressionRatio\": \"\",\n    \"priority\": \"\"\n  },\n  \"dynamicClickTracker\": false,\n  \"endTime\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementAssignments\": [\n    {\n      \"active\": false,\n      \"placementId\": \"\",\n      \"placementIdDimensionValue\": {},\n      \"sslRequired\": false\n    }\n  ],\n  \"remarketingListExpression\": {\n    \"expression\": \"\"\n  },\n  \"size\": {\n    \"height\": 0,\n    \"iab\": false,\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"width\": 0\n  },\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"startTime\": \"\",\n  \"subaccountId\": \"\",\n  \"targetingTemplateId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"type\": \"\"\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}}/userprofiles/:profileId/ads");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"audienceSegmentId\": \"\",\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"clickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"defaultLandingPage\": false,\n    \"landingPageId\": \"\"\n  },\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comments\": \"\",\n  \"compatibility\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupAssignments\": [\n    {\n      \"creativeGroupId\": \"\",\n      \"creativeGroupNumber\": \"\"\n    }\n  ],\n  \"creativeRotation\": {\n    \"creativeAssignments\": [\n      {\n        \"active\": false,\n        \"applyEventTags\": false,\n        \"clickThroughUrl\": {},\n        \"companionCreativeOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"creativeId\": \"\"\n          }\n        ],\n        \"creativeGroupAssignments\": [\n          {}\n        ],\n        \"creativeId\": \"\",\n        \"creativeIdDimensionValue\": {},\n        \"endTime\": \"\",\n        \"richMediaExitOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"enabled\": false,\n            \"exitId\": \"\"\n          }\n        ],\n        \"sequence\": 0,\n        \"sslCompliant\": false,\n        \"startTime\": \"\",\n        \"weight\": 0\n      }\n    ],\n    \"creativeOptimizationConfigurationId\": \"\",\n    \"type\": \"\",\n    \"weightCalculationStrategy\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"deliverySchedule\": {\n    \"frequencyCap\": {\n      \"duration\": \"\",\n      \"impressions\": \"\"\n    },\n    \"hardCutoff\": false,\n    \"impressionRatio\": \"\",\n    \"priority\": \"\"\n  },\n  \"dynamicClickTracker\": false,\n  \"endTime\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementAssignments\": [\n    {\n      \"active\": false,\n      \"placementId\": \"\",\n      \"placementIdDimensionValue\": {},\n      \"sslRequired\": false\n    }\n  ],\n  \"remarketingListExpression\": {\n    \"expression\": \"\"\n  },\n  \"size\": {\n    \"height\": 0,\n    \"iab\": false,\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"width\": 0\n  },\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"startTime\": \"\",\n  \"subaccountId\": \"\",\n  \"targetingTemplateId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"type\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/ads"

	payload := strings.NewReader("{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"audienceSegmentId\": \"\",\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"clickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"defaultLandingPage\": false,\n    \"landingPageId\": \"\"\n  },\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comments\": \"\",\n  \"compatibility\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupAssignments\": [\n    {\n      \"creativeGroupId\": \"\",\n      \"creativeGroupNumber\": \"\"\n    }\n  ],\n  \"creativeRotation\": {\n    \"creativeAssignments\": [\n      {\n        \"active\": false,\n        \"applyEventTags\": false,\n        \"clickThroughUrl\": {},\n        \"companionCreativeOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"creativeId\": \"\"\n          }\n        ],\n        \"creativeGroupAssignments\": [\n          {}\n        ],\n        \"creativeId\": \"\",\n        \"creativeIdDimensionValue\": {},\n        \"endTime\": \"\",\n        \"richMediaExitOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"enabled\": false,\n            \"exitId\": \"\"\n          }\n        ],\n        \"sequence\": 0,\n        \"sslCompliant\": false,\n        \"startTime\": \"\",\n        \"weight\": 0\n      }\n    ],\n    \"creativeOptimizationConfigurationId\": \"\",\n    \"type\": \"\",\n    \"weightCalculationStrategy\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"deliverySchedule\": {\n    \"frequencyCap\": {\n      \"duration\": \"\",\n      \"impressions\": \"\"\n    },\n    \"hardCutoff\": false,\n    \"impressionRatio\": \"\",\n    \"priority\": \"\"\n  },\n  \"dynamicClickTracker\": false,\n  \"endTime\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementAssignments\": [\n    {\n      \"active\": false,\n      \"placementId\": \"\",\n      \"placementIdDimensionValue\": {},\n      \"sslRequired\": false\n    }\n  ],\n  \"remarketingListExpression\": {\n    \"expression\": \"\"\n  },\n  \"size\": {\n    \"height\": 0,\n    \"iab\": false,\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"width\": 0\n  },\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"startTime\": \"\",\n  \"subaccountId\": \"\",\n  \"targetingTemplateId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"type\": \"\"\n}")

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

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

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

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

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

}
PUT /baseUrl/userprofiles/:profileId/ads HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 4857

{
  "accountId": "",
  "active": false,
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "archived": false,
  "audienceSegmentId": "",
  "campaignId": "",
  "campaignIdDimensionValue": {},
  "clickThroughUrl": {
    "computedClickThroughUrl": "",
    "customClickThroughUrl": "",
    "defaultLandingPage": false,
    "landingPageId": ""
  },
  "clickThroughUrlSuffixProperties": {
    "clickThroughUrlSuffix": "",
    "overrideInheritedSuffix": false
  },
  "comments": "",
  "compatibility": "",
  "createInfo": {
    "time": ""
  },
  "creativeGroupAssignments": [
    {
      "creativeGroupId": "",
      "creativeGroupNumber": ""
    }
  ],
  "creativeRotation": {
    "creativeAssignments": [
      {
        "active": false,
        "applyEventTags": false,
        "clickThroughUrl": {},
        "companionCreativeOverrides": [
          {
            "clickThroughUrl": {},
            "creativeId": ""
          }
        ],
        "creativeGroupAssignments": [
          {}
        ],
        "creativeId": "",
        "creativeIdDimensionValue": {},
        "endTime": "",
        "richMediaExitOverrides": [
          {
            "clickThroughUrl": {},
            "enabled": false,
            "exitId": ""
          }
        ],
        "sequence": 0,
        "sslCompliant": false,
        "startTime": "",
        "weight": 0
      }
    ],
    "creativeOptimizationConfigurationId": "",
    "type": "",
    "weightCalculationStrategy": ""
  },
  "dayPartTargeting": {
    "daysOfWeek": [],
    "hoursOfDay": [],
    "userLocalTime": false
  },
  "defaultClickThroughEventTagProperties": {
    "defaultClickThroughEventTagId": "",
    "overrideInheritedEventTag": false
  },
  "deliverySchedule": {
    "frequencyCap": {
      "duration": "",
      "impressions": ""
    },
    "hardCutoff": false,
    "impressionRatio": "",
    "priority": ""
  },
  "dynamicClickTracker": false,
  "endTime": "",
  "eventTagOverrides": [
    {
      "enabled": false,
      "id": ""
    }
  ],
  "geoTargeting": {
    "cities": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "metroCode": "",
        "metroDmaId": "",
        "name": "",
        "regionCode": "",
        "regionDartId": ""
      }
    ],
    "countries": [
      {
        "countryCode": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "sslEnabled": false
      }
    ],
    "excludeCountries": false,
    "metros": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "dmaId": "",
        "kind": "",
        "metroCode": "",
        "name": ""
      }
    ],
    "postalCodes": [
      {
        "code": "",
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": ""
      }
    ],
    "regions": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "regionCode": ""
      }
    ]
  },
  "id": "",
  "idDimensionValue": {},
  "keyValueTargetingExpression": {
    "expression": ""
  },
  "kind": "",
  "languageTargeting": {
    "languages": [
      {
        "id": "",
        "kind": "",
        "languageCode": "",
        "name": ""
      }
    ]
  },
  "lastModifiedInfo": {},
  "name": "",
  "placementAssignments": [
    {
      "active": false,
      "placementId": "",
      "placementIdDimensionValue": {},
      "sslRequired": false
    }
  ],
  "remarketingListExpression": {
    "expression": ""
  },
  "size": {
    "height": 0,
    "iab": false,
    "id": "",
    "kind": "",
    "width": 0
  },
  "sslCompliant": false,
  "sslRequired": false,
  "startTime": "",
  "subaccountId": "",
  "targetingTemplateId": "",
  "technologyTargeting": {
    "browsers": [
      {
        "browserVersionId": "",
        "dartId": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": ""
      }
    ],
    "connectionTypes": [
      {
        "id": "",
        "kind": "",
        "name": ""
      }
    ],
    "mobileCarriers": [
      {
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": "",
        "name": ""
      }
    ],
    "operatingSystemVersions": [
      {
        "id": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": "",
        "operatingSystem": {
          "dartId": "",
          "desktop": false,
          "kind": "",
          "mobile": false,
          "name": ""
        }
      }
    ],
    "operatingSystems": [
      {}
    ],
    "platformTypes": [
      {
        "id": "",
        "kind": "",
        "name": ""
      }
    ]
  },
  "type": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/userprofiles/:profileId/ads")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"audienceSegmentId\": \"\",\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"clickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"defaultLandingPage\": false,\n    \"landingPageId\": \"\"\n  },\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comments\": \"\",\n  \"compatibility\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupAssignments\": [\n    {\n      \"creativeGroupId\": \"\",\n      \"creativeGroupNumber\": \"\"\n    }\n  ],\n  \"creativeRotation\": {\n    \"creativeAssignments\": [\n      {\n        \"active\": false,\n        \"applyEventTags\": false,\n        \"clickThroughUrl\": {},\n        \"companionCreativeOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"creativeId\": \"\"\n          }\n        ],\n        \"creativeGroupAssignments\": [\n          {}\n        ],\n        \"creativeId\": \"\",\n        \"creativeIdDimensionValue\": {},\n        \"endTime\": \"\",\n        \"richMediaExitOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"enabled\": false,\n            \"exitId\": \"\"\n          }\n        ],\n        \"sequence\": 0,\n        \"sslCompliant\": false,\n        \"startTime\": \"\",\n        \"weight\": 0\n      }\n    ],\n    \"creativeOptimizationConfigurationId\": \"\",\n    \"type\": \"\",\n    \"weightCalculationStrategy\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"deliverySchedule\": {\n    \"frequencyCap\": {\n      \"duration\": \"\",\n      \"impressions\": \"\"\n    },\n    \"hardCutoff\": false,\n    \"impressionRatio\": \"\",\n    \"priority\": \"\"\n  },\n  \"dynamicClickTracker\": false,\n  \"endTime\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementAssignments\": [\n    {\n      \"active\": false,\n      \"placementId\": \"\",\n      \"placementIdDimensionValue\": {},\n      \"sslRequired\": false\n    }\n  ],\n  \"remarketingListExpression\": {\n    \"expression\": \"\"\n  },\n  \"size\": {\n    \"height\": 0,\n    \"iab\": false,\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"width\": 0\n  },\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"startTime\": \"\",\n  \"subaccountId\": \"\",\n  \"targetingTemplateId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"type\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/ads"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"audienceSegmentId\": \"\",\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"clickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"defaultLandingPage\": false,\n    \"landingPageId\": \"\"\n  },\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comments\": \"\",\n  \"compatibility\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupAssignments\": [\n    {\n      \"creativeGroupId\": \"\",\n      \"creativeGroupNumber\": \"\"\n    }\n  ],\n  \"creativeRotation\": {\n    \"creativeAssignments\": [\n      {\n        \"active\": false,\n        \"applyEventTags\": false,\n        \"clickThroughUrl\": {},\n        \"companionCreativeOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"creativeId\": \"\"\n          }\n        ],\n        \"creativeGroupAssignments\": [\n          {}\n        ],\n        \"creativeId\": \"\",\n        \"creativeIdDimensionValue\": {},\n        \"endTime\": \"\",\n        \"richMediaExitOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"enabled\": false,\n            \"exitId\": \"\"\n          }\n        ],\n        \"sequence\": 0,\n        \"sslCompliant\": false,\n        \"startTime\": \"\",\n        \"weight\": 0\n      }\n    ],\n    \"creativeOptimizationConfigurationId\": \"\",\n    \"type\": \"\",\n    \"weightCalculationStrategy\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"deliverySchedule\": {\n    \"frequencyCap\": {\n      \"duration\": \"\",\n      \"impressions\": \"\"\n    },\n    \"hardCutoff\": false,\n    \"impressionRatio\": \"\",\n    \"priority\": \"\"\n  },\n  \"dynamicClickTracker\": false,\n  \"endTime\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementAssignments\": [\n    {\n      \"active\": false,\n      \"placementId\": \"\",\n      \"placementIdDimensionValue\": {},\n      \"sslRequired\": false\n    }\n  ],\n  \"remarketingListExpression\": {\n    \"expression\": \"\"\n  },\n  \"size\": {\n    \"height\": 0,\n    \"iab\": false,\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"width\": 0\n  },\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"startTime\": \"\",\n  \"subaccountId\": \"\",\n  \"targetingTemplateId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"type\": \"\"\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  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"audienceSegmentId\": \"\",\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"clickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"defaultLandingPage\": false,\n    \"landingPageId\": \"\"\n  },\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comments\": \"\",\n  \"compatibility\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupAssignments\": [\n    {\n      \"creativeGroupId\": \"\",\n      \"creativeGroupNumber\": \"\"\n    }\n  ],\n  \"creativeRotation\": {\n    \"creativeAssignments\": [\n      {\n        \"active\": false,\n        \"applyEventTags\": false,\n        \"clickThroughUrl\": {},\n        \"companionCreativeOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"creativeId\": \"\"\n          }\n        ],\n        \"creativeGroupAssignments\": [\n          {}\n        ],\n        \"creativeId\": \"\",\n        \"creativeIdDimensionValue\": {},\n        \"endTime\": \"\",\n        \"richMediaExitOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"enabled\": false,\n            \"exitId\": \"\"\n          }\n        ],\n        \"sequence\": 0,\n        \"sslCompliant\": false,\n        \"startTime\": \"\",\n        \"weight\": 0\n      }\n    ],\n    \"creativeOptimizationConfigurationId\": \"\",\n    \"type\": \"\",\n    \"weightCalculationStrategy\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"deliverySchedule\": {\n    \"frequencyCap\": {\n      \"duration\": \"\",\n      \"impressions\": \"\"\n    },\n    \"hardCutoff\": false,\n    \"impressionRatio\": \"\",\n    \"priority\": \"\"\n  },\n  \"dynamicClickTracker\": false,\n  \"endTime\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementAssignments\": [\n    {\n      \"active\": false,\n      \"placementId\": \"\",\n      \"placementIdDimensionValue\": {},\n      \"sslRequired\": false\n    }\n  ],\n  \"remarketingListExpression\": {\n    \"expression\": \"\"\n  },\n  \"size\": {\n    \"height\": 0,\n    \"iab\": false,\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"width\": 0\n  },\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"startTime\": \"\",\n  \"subaccountId\": \"\",\n  \"targetingTemplateId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"type\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/ads")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/userprofiles/:profileId/ads")
  .header("content-type", "application/json")
  .body("{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"audienceSegmentId\": \"\",\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"clickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"defaultLandingPage\": false,\n    \"landingPageId\": \"\"\n  },\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comments\": \"\",\n  \"compatibility\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupAssignments\": [\n    {\n      \"creativeGroupId\": \"\",\n      \"creativeGroupNumber\": \"\"\n    }\n  ],\n  \"creativeRotation\": {\n    \"creativeAssignments\": [\n      {\n        \"active\": false,\n        \"applyEventTags\": false,\n        \"clickThroughUrl\": {},\n        \"companionCreativeOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"creativeId\": \"\"\n          }\n        ],\n        \"creativeGroupAssignments\": [\n          {}\n        ],\n        \"creativeId\": \"\",\n        \"creativeIdDimensionValue\": {},\n        \"endTime\": \"\",\n        \"richMediaExitOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"enabled\": false,\n            \"exitId\": \"\"\n          }\n        ],\n        \"sequence\": 0,\n        \"sslCompliant\": false,\n        \"startTime\": \"\",\n        \"weight\": 0\n      }\n    ],\n    \"creativeOptimizationConfigurationId\": \"\",\n    \"type\": \"\",\n    \"weightCalculationStrategy\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"deliverySchedule\": {\n    \"frequencyCap\": {\n      \"duration\": \"\",\n      \"impressions\": \"\"\n    },\n    \"hardCutoff\": false,\n    \"impressionRatio\": \"\",\n    \"priority\": \"\"\n  },\n  \"dynamicClickTracker\": false,\n  \"endTime\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementAssignments\": [\n    {\n      \"active\": false,\n      \"placementId\": \"\",\n      \"placementIdDimensionValue\": {},\n      \"sslRequired\": false\n    }\n  ],\n  \"remarketingListExpression\": {\n    \"expression\": \"\"\n  },\n  \"size\": {\n    \"height\": 0,\n    \"iab\": false,\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"width\": 0\n  },\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"startTime\": \"\",\n  \"subaccountId\": \"\",\n  \"targetingTemplateId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"type\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  accountId: '',
  active: false,
  advertiserId: '',
  advertiserIdDimensionValue: {
    dimensionName: '',
    etag: '',
    id: '',
    kind: '',
    matchType: '',
    value: ''
  },
  archived: false,
  audienceSegmentId: '',
  campaignId: '',
  campaignIdDimensionValue: {},
  clickThroughUrl: {
    computedClickThroughUrl: '',
    customClickThroughUrl: '',
    defaultLandingPage: false,
    landingPageId: ''
  },
  clickThroughUrlSuffixProperties: {
    clickThroughUrlSuffix: '',
    overrideInheritedSuffix: false
  },
  comments: '',
  compatibility: '',
  createInfo: {
    time: ''
  },
  creativeGroupAssignments: [
    {
      creativeGroupId: '',
      creativeGroupNumber: ''
    }
  ],
  creativeRotation: {
    creativeAssignments: [
      {
        active: false,
        applyEventTags: false,
        clickThroughUrl: {},
        companionCreativeOverrides: [
          {
            clickThroughUrl: {},
            creativeId: ''
          }
        ],
        creativeGroupAssignments: [
          {}
        ],
        creativeId: '',
        creativeIdDimensionValue: {},
        endTime: '',
        richMediaExitOverrides: [
          {
            clickThroughUrl: {},
            enabled: false,
            exitId: ''
          }
        ],
        sequence: 0,
        sslCompliant: false,
        startTime: '',
        weight: 0
      }
    ],
    creativeOptimizationConfigurationId: '',
    type: '',
    weightCalculationStrategy: ''
  },
  dayPartTargeting: {
    daysOfWeek: [],
    hoursOfDay: [],
    userLocalTime: false
  },
  defaultClickThroughEventTagProperties: {
    defaultClickThroughEventTagId: '',
    overrideInheritedEventTag: false
  },
  deliverySchedule: {
    frequencyCap: {
      duration: '',
      impressions: ''
    },
    hardCutoff: false,
    impressionRatio: '',
    priority: ''
  },
  dynamicClickTracker: false,
  endTime: '',
  eventTagOverrides: [
    {
      enabled: false,
      id: ''
    }
  ],
  geoTargeting: {
    cities: [
      {
        countryCode: '',
        countryDartId: '',
        dartId: '',
        kind: '',
        metroCode: '',
        metroDmaId: '',
        name: '',
        regionCode: '',
        regionDartId: ''
      }
    ],
    countries: [
      {
        countryCode: '',
        dartId: '',
        kind: '',
        name: '',
        sslEnabled: false
      }
    ],
    excludeCountries: false,
    metros: [
      {
        countryCode: '',
        countryDartId: '',
        dartId: '',
        dmaId: '',
        kind: '',
        metroCode: '',
        name: ''
      }
    ],
    postalCodes: [
      {
        code: '',
        countryCode: '',
        countryDartId: '',
        id: '',
        kind: ''
      }
    ],
    regions: [
      {
        countryCode: '',
        countryDartId: '',
        dartId: '',
        kind: '',
        name: '',
        regionCode: ''
      }
    ]
  },
  id: '',
  idDimensionValue: {},
  keyValueTargetingExpression: {
    expression: ''
  },
  kind: '',
  languageTargeting: {
    languages: [
      {
        id: '',
        kind: '',
        languageCode: '',
        name: ''
      }
    ]
  },
  lastModifiedInfo: {},
  name: '',
  placementAssignments: [
    {
      active: false,
      placementId: '',
      placementIdDimensionValue: {},
      sslRequired: false
    }
  ],
  remarketingListExpression: {
    expression: ''
  },
  size: {
    height: 0,
    iab: false,
    id: '',
    kind: '',
    width: 0
  },
  sslCompliant: false,
  sslRequired: false,
  startTime: '',
  subaccountId: '',
  targetingTemplateId: '',
  technologyTargeting: {
    browsers: [
      {
        browserVersionId: '',
        dartId: '',
        kind: '',
        majorVersion: '',
        minorVersion: '',
        name: ''
      }
    ],
    connectionTypes: [
      {
        id: '',
        kind: '',
        name: ''
      }
    ],
    mobileCarriers: [
      {
        countryCode: '',
        countryDartId: '',
        id: '',
        kind: '',
        name: ''
      }
    ],
    operatingSystemVersions: [
      {
        id: '',
        kind: '',
        majorVersion: '',
        minorVersion: '',
        name: '',
        operatingSystem: {
          dartId: '',
          desktop: false,
          kind: '',
          mobile: false,
          name: ''
        }
      }
    ],
    operatingSystems: [
      {}
    ],
    platformTypes: [
      {
        id: '',
        kind: '',
        name: ''
      }
    ]
  },
  type: ''
});

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

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

xhr.open('PUT', '{{baseUrl}}/userprofiles/:profileId/ads');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/userprofiles/:profileId/ads',
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    active: false,
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    archived: false,
    audienceSegmentId: '',
    campaignId: '',
    campaignIdDimensionValue: {},
    clickThroughUrl: {
      computedClickThroughUrl: '',
      customClickThroughUrl: '',
      defaultLandingPage: false,
      landingPageId: ''
    },
    clickThroughUrlSuffixProperties: {clickThroughUrlSuffix: '', overrideInheritedSuffix: false},
    comments: '',
    compatibility: '',
    createInfo: {time: ''},
    creativeGroupAssignments: [{creativeGroupId: '', creativeGroupNumber: ''}],
    creativeRotation: {
      creativeAssignments: [
        {
          active: false,
          applyEventTags: false,
          clickThroughUrl: {},
          companionCreativeOverrides: [{clickThroughUrl: {}, creativeId: ''}],
          creativeGroupAssignments: [{}],
          creativeId: '',
          creativeIdDimensionValue: {},
          endTime: '',
          richMediaExitOverrides: [{clickThroughUrl: {}, enabled: false, exitId: ''}],
          sequence: 0,
          sslCompliant: false,
          startTime: '',
          weight: 0
        }
      ],
      creativeOptimizationConfigurationId: '',
      type: '',
      weightCalculationStrategy: ''
    },
    dayPartTargeting: {daysOfWeek: [], hoursOfDay: [], userLocalTime: false},
    defaultClickThroughEventTagProperties: {defaultClickThroughEventTagId: '', overrideInheritedEventTag: false},
    deliverySchedule: {
      frequencyCap: {duration: '', impressions: ''},
      hardCutoff: false,
      impressionRatio: '',
      priority: ''
    },
    dynamicClickTracker: false,
    endTime: '',
    eventTagOverrides: [{enabled: false, id: ''}],
    geoTargeting: {
      cities: [
        {
          countryCode: '',
          countryDartId: '',
          dartId: '',
          kind: '',
          metroCode: '',
          metroDmaId: '',
          name: '',
          regionCode: '',
          regionDartId: ''
        }
      ],
      countries: [{countryCode: '', dartId: '', kind: '', name: '', sslEnabled: false}],
      excludeCountries: false,
      metros: [
        {
          countryCode: '',
          countryDartId: '',
          dartId: '',
          dmaId: '',
          kind: '',
          metroCode: '',
          name: ''
        }
      ],
      postalCodes: [{code: '', countryCode: '', countryDartId: '', id: '', kind: ''}],
      regions: [
        {
          countryCode: '',
          countryDartId: '',
          dartId: '',
          kind: '',
          name: '',
          regionCode: ''
        }
      ]
    },
    id: '',
    idDimensionValue: {},
    keyValueTargetingExpression: {expression: ''},
    kind: '',
    languageTargeting: {languages: [{id: '', kind: '', languageCode: '', name: ''}]},
    lastModifiedInfo: {},
    name: '',
    placementAssignments: [
      {
        active: false,
        placementId: '',
        placementIdDimensionValue: {},
        sslRequired: false
      }
    ],
    remarketingListExpression: {expression: ''},
    size: {height: 0, iab: false, id: '', kind: '', width: 0},
    sslCompliant: false,
    sslRequired: false,
    startTime: '',
    subaccountId: '',
    targetingTemplateId: '',
    technologyTargeting: {
      browsers: [
        {
          browserVersionId: '',
          dartId: '',
          kind: '',
          majorVersion: '',
          minorVersion: '',
          name: ''
        }
      ],
      connectionTypes: [{id: '', kind: '', name: ''}],
      mobileCarriers: [{countryCode: '', countryDartId: '', id: '', kind: '', name: ''}],
      operatingSystemVersions: [
        {
          id: '',
          kind: '',
          majorVersion: '',
          minorVersion: '',
          name: '',
          operatingSystem: {dartId: '', desktop: false, kind: '', mobile: false, name: ''}
        }
      ],
      operatingSystems: [{}],
      platformTypes: [{id: '', kind: '', name: ''}]
    },
    type: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/ads';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","active":false,"advertiserId":"","advertiserIdDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"archived":false,"audienceSegmentId":"","campaignId":"","campaignIdDimensionValue":{},"clickThroughUrl":{"computedClickThroughUrl":"","customClickThroughUrl":"","defaultLandingPage":false,"landingPageId":""},"clickThroughUrlSuffixProperties":{"clickThroughUrlSuffix":"","overrideInheritedSuffix":false},"comments":"","compatibility":"","createInfo":{"time":""},"creativeGroupAssignments":[{"creativeGroupId":"","creativeGroupNumber":""}],"creativeRotation":{"creativeAssignments":[{"active":false,"applyEventTags":false,"clickThroughUrl":{},"companionCreativeOverrides":[{"clickThroughUrl":{},"creativeId":""}],"creativeGroupAssignments":[{}],"creativeId":"","creativeIdDimensionValue":{},"endTime":"","richMediaExitOverrides":[{"clickThroughUrl":{},"enabled":false,"exitId":""}],"sequence":0,"sslCompliant":false,"startTime":"","weight":0}],"creativeOptimizationConfigurationId":"","type":"","weightCalculationStrategy":""},"dayPartTargeting":{"daysOfWeek":[],"hoursOfDay":[],"userLocalTime":false},"defaultClickThroughEventTagProperties":{"defaultClickThroughEventTagId":"","overrideInheritedEventTag":false},"deliverySchedule":{"frequencyCap":{"duration":"","impressions":""},"hardCutoff":false,"impressionRatio":"","priority":""},"dynamicClickTracker":false,"endTime":"","eventTagOverrides":[{"enabled":false,"id":""}],"geoTargeting":{"cities":[{"countryCode":"","countryDartId":"","dartId":"","kind":"","metroCode":"","metroDmaId":"","name":"","regionCode":"","regionDartId":""}],"countries":[{"countryCode":"","dartId":"","kind":"","name":"","sslEnabled":false}],"excludeCountries":false,"metros":[{"countryCode":"","countryDartId":"","dartId":"","dmaId":"","kind":"","metroCode":"","name":""}],"postalCodes":[{"code":"","countryCode":"","countryDartId":"","id":"","kind":""}],"regions":[{"countryCode":"","countryDartId":"","dartId":"","kind":"","name":"","regionCode":""}]},"id":"","idDimensionValue":{},"keyValueTargetingExpression":{"expression":""},"kind":"","languageTargeting":{"languages":[{"id":"","kind":"","languageCode":"","name":""}]},"lastModifiedInfo":{},"name":"","placementAssignments":[{"active":false,"placementId":"","placementIdDimensionValue":{},"sslRequired":false}],"remarketingListExpression":{"expression":""},"size":{"height":0,"iab":false,"id":"","kind":"","width":0},"sslCompliant":false,"sslRequired":false,"startTime":"","subaccountId":"","targetingTemplateId":"","technologyTargeting":{"browsers":[{"browserVersionId":"","dartId":"","kind":"","majorVersion":"","minorVersion":"","name":""}],"connectionTypes":[{"id":"","kind":"","name":""}],"mobileCarriers":[{"countryCode":"","countryDartId":"","id":"","kind":"","name":""}],"operatingSystemVersions":[{"id":"","kind":"","majorVersion":"","minorVersion":"","name":"","operatingSystem":{"dartId":"","desktop":false,"kind":"","mobile":false,"name":""}}],"operatingSystems":[{}],"platformTypes":[{"id":"","kind":"","name":""}]},"type":""}'
};

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}}/userprofiles/:profileId/ads',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "accountId": "",\n  "active": false,\n  "advertiserId": "",\n  "advertiserIdDimensionValue": {\n    "dimensionName": "",\n    "etag": "",\n    "id": "",\n    "kind": "",\n    "matchType": "",\n    "value": ""\n  },\n  "archived": false,\n  "audienceSegmentId": "",\n  "campaignId": "",\n  "campaignIdDimensionValue": {},\n  "clickThroughUrl": {\n    "computedClickThroughUrl": "",\n    "customClickThroughUrl": "",\n    "defaultLandingPage": false,\n    "landingPageId": ""\n  },\n  "clickThroughUrlSuffixProperties": {\n    "clickThroughUrlSuffix": "",\n    "overrideInheritedSuffix": false\n  },\n  "comments": "",\n  "compatibility": "",\n  "createInfo": {\n    "time": ""\n  },\n  "creativeGroupAssignments": [\n    {\n      "creativeGroupId": "",\n      "creativeGroupNumber": ""\n    }\n  ],\n  "creativeRotation": {\n    "creativeAssignments": [\n      {\n        "active": false,\n        "applyEventTags": false,\n        "clickThroughUrl": {},\n        "companionCreativeOverrides": [\n          {\n            "clickThroughUrl": {},\n            "creativeId": ""\n          }\n        ],\n        "creativeGroupAssignments": [\n          {}\n        ],\n        "creativeId": "",\n        "creativeIdDimensionValue": {},\n        "endTime": "",\n        "richMediaExitOverrides": [\n          {\n            "clickThroughUrl": {},\n            "enabled": false,\n            "exitId": ""\n          }\n        ],\n        "sequence": 0,\n        "sslCompliant": false,\n        "startTime": "",\n        "weight": 0\n      }\n    ],\n    "creativeOptimizationConfigurationId": "",\n    "type": "",\n    "weightCalculationStrategy": ""\n  },\n  "dayPartTargeting": {\n    "daysOfWeek": [],\n    "hoursOfDay": [],\n    "userLocalTime": false\n  },\n  "defaultClickThroughEventTagProperties": {\n    "defaultClickThroughEventTagId": "",\n    "overrideInheritedEventTag": false\n  },\n  "deliverySchedule": {\n    "frequencyCap": {\n      "duration": "",\n      "impressions": ""\n    },\n    "hardCutoff": false,\n    "impressionRatio": "",\n    "priority": ""\n  },\n  "dynamicClickTracker": false,\n  "endTime": "",\n  "eventTagOverrides": [\n    {\n      "enabled": false,\n      "id": ""\n    }\n  ],\n  "geoTargeting": {\n    "cities": [\n      {\n        "countryCode": "",\n        "countryDartId": "",\n        "dartId": "",\n        "kind": "",\n        "metroCode": "",\n        "metroDmaId": "",\n        "name": "",\n        "regionCode": "",\n        "regionDartId": ""\n      }\n    ],\n    "countries": [\n      {\n        "countryCode": "",\n        "dartId": "",\n        "kind": "",\n        "name": "",\n        "sslEnabled": false\n      }\n    ],\n    "excludeCountries": false,\n    "metros": [\n      {\n        "countryCode": "",\n        "countryDartId": "",\n        "dartId": "",\n        "dmaId": "",\n        "kind": "",\n        "metroCode": "",\n        "name": ""\n      }\n    ],\n    "postalCodes": [\n      {\n        "code": "",\n        "countryCode": "",\n        "countryDartId": "",\n        "id": "",\n        "kind": ""\n      }\n    ],\n    "regions": [\n      {\n        "countryCode": "",\n        "countryDartId": "",\n        "dartId": "",\n        "kind": "",\n        "name": "",\n        "regionCode": ""\n      }\n    ]\n  },\n  "id": "",\n  "idDimensionValue": {},\n  "keyValueTargetingExpression": {\n    "expression": ""\n  },\n  "kind": "",\n  "languageTargeting": {\n    "languages": [\n      {\n        "id": "",\n        "kind": "",\n        "languageCode": "",\n        "name": ""\n      }\n    ]\n  },\n  "lastModifiedInfo": {},\n  "name": "",\n  "placementAssignments": [\n    {\n      "active": false,\n      "placementId": "",\n      "placementIdDimensionValue": {},\n      "sslRequired": false\n    }\n  ],\n  "remarketingListExpression": {\n    "expression": ""\n  },\n  "size": {\n    "height": 0,\n    "iab": false,\n    "id": "",\n    "kind": "",\n    "width": 0\n  },\n  "sslCompliant": false,\n  "sslRequired": false,\n  "startTime": "",\n  "subaccountId": "",\n  "targetingTemplateId": "",\n  "technologyTargeting": {\n    "browsers": [\n      {\n        "browserVersionId": "",\n        "dartId": "",\n        "kind": "",\n        "majorVersion": "",\n        "minorVersion": "",\n        "name": ""\n      }\n    ],\n    "connectionTypes": [\n      {\n        "id": "",\n        "kind": "",\n        "name": ""\n      }\n    ],\n    "mobileCarriers": [\n      {\n        "countryCode": "",\n        "countryDartId": "",\n        "id": "",\n        "kind": "",\n        "name": ""\n      }\n    ],\n    "operatingSystemVersions": [\n      {\n        "id": "",\n        "kind": "",\n        "majorVersion": "",\n        "minorVersion": "",\n        "name": "",\n        "operatingSystem": {\n          "dartId": "",\n          "desktop": false,\n          "kind": "",\n          "mobile": false,\n          "name": ""\n        }\n      }\n    ],\n    "operatingSystems": [\n      {}\n    ],\n    "platformTypes": [\n      {\n        "id": "",\n        "kind": "",\n        "name": ""\n      }\n    ]\n  },\n  "type": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"audienceSegmentId\": \"\",\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"clickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"defaultLandingPage\": false,\n    \"landingPageId\": \"\"\n  },\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comments\": \"\",\n  \"compatibility\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupAssignments\": [\n    {\n      \"creativeGroupId\": \"\",\n      \"creativeGroupNumber\": \"\"\n    }\n  ],\n  \"creativeRotation\": {\n    \"creativeAssignments\": [\n      {\n        \"active\": false,\n        \"applyEventTags\": false,\n        \"clickThroughUrl\": {},\n        \"companionCreativeOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"creativeId\": \"\"\n          }\n        ],\n        \"creativeGroupAssignments\": [\n          {}\n        ],\n        \"creativeId\": \"\",\n        \"creativeIdDimensionValue\": {},\n        \"endTime\": \"\",\n        \"richMediaExitOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"enabled\": false,\n            \"exitId\": \"\"\n          }\n        ],\n        \"sequence\": 0,\n        \"sslCompliant\": false,\n        \"startTime\": \"\",\n        \"weight\": 0\n      }\n    ],\n    \"creativeOptimizationConfigurationId\": \"\",\n    \"type\": \"\",\n    \"weightCalculationStrategy\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"deliverySchedule\": {\n    \"frequencyCap\": {\n      \"duration\": \"\",\n      \"impressions\": \"\"\n    },\n    \"hardCutoff\": false,\n    \"impressionRatio\": \"\",\n    \"priority\": \"\"\n  },\n  \"dynamicClickTracker\": false,\n  \"endTime\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementAssignments\": [\n    {\n      \"active\": false,\n      \"placementId\": \"\",\n      \"placementIdDimensionValue\": {},\n      \"sslRequired\": false\n    }\n  ],\n  \"remarketingListExpression\": {\n    \"expression\": \"\"\n  },\n  \"size\": {\n    \"height\": 0,\n    \"iab\": false,\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"width\": 0\n  },\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"startTime\": \"\",\n  \"subaccountId\": \"\",\n  \"targetingTemplateId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"type\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/ads")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

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

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/ads',
  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({
  accountId: '',
  active: false,
  advertiserId: '',
  advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
  archived: false,
  audienceSegmentId: '',
  campaignId: '',
  campaignIdDimensionValue: {},
  clickThroughUrl: {
    computedClickThroughUrl: '',
    customClickThroughUrl: '',
    defaultLandingPage: false,
    landingPageId: ''
  },
  clickThroughUrlSuffixProperties: {clickThroughUrlSuffix: '', overrideInheritedSuffix: false},
  comments: '',
  compatibility: '',
  createInfo: {time: ''},
  creativeGroupAssignments: [{creativeGroupId: '', creativeGroupNumber: ''}],
  creativeRotation: {
    creativeAssignments: [
      {
        active: false,
        applyEventTags: false,
        clickThroughUrl: {},
        companionCreativeOverrides: [{clickThroughUrl: {}, creativeId: ''}],
        creativeGroupAssignments: [{}],
        creativeId: '',
        creativeIdDimensionValue: {},
        endTime: '',
        richMediaExitOverrides: [{clickThroughUrl: {}, enabled: false, exitId: ''}],
        sequence: 0,
        sslCompliant: false,
        startTime: '',
        weight: 0
      }
    ],
    creativeOptimizationConfigurationId: '',
    type: '',
    weightCalculationStrategy: ''
  },
  dayPartTargeting: {daysOfWeek: [], hoursOfDay: [], userLocalTime: false},
  defaultClickThroughEventTagProperties: {defaultClickThroughEventTagId: '', overrideInheritedEventTag: false},
  deliverySchedule: {
    frequencyCap: {duration: '', impressions: ''},
    hardCutoff: false,
    impressionRatio: '',
    priority: ''
  },
  dynamicClickTracker: false,
  endTime: '',
  eventTagOverrides: [{enabled: false, id: ''}],
  geoTargeting: {
    cities: [
      {
        countryCode: '',
        countryDartId: '',
        dartId: '',
        kind: '',
        metroCode: '',
        metroDmaId: '',
        name: '',
        regionCode: '',
        regionDartId: ''
      }
    ],
    countries: [{countryCode: '', dartId: '', kind: '', name: '', sslEnabled: false}],
    excludeCountries: false,
    metros: [
      {
        countryCode: '',
        countryDartId: '',
        dartId: '',
        dmaId: '',
        kind: '',
        metroCode: '',
        name: ''
      }
    ],
    postalCodes: [{code: '', countryCode: '', countryDartId: '', id: '', kind: ''}],
    regions: [
      {
        countryCode: '',
        countryDartId: '',
        dartId: '',
        kind: '',
        name: '',
        regionCode: ''
      }
    ]
  },
  id: '',
  idDimensionValue: {},
  keyValueTargetingExpression: {expression: ''},
  kind: '',
  languageTargeting: {languages: [{id: '', kind: '', languageCode: '', name: ''}]},
  lastModifiedInfo: {},
  name: '',
  placementAssignments: [
    {
      active: false,
      placementId: '',
      placementIdDimensionValue: {},
      sslRequired: false
    }
  ],
  remarketingListExpression: {expression: ''},
  size: {height: 0, iab: false, id: '', kind: '', width: 0},
  sslCompliant: false,
  sslRequired: false,
  startTime: '',
  subaccountId: '',
  targetingTemplateId: '',
  technologyTargeting: {
    browsers: [
      {
        browserVersionId: '',
        dartId: '',
        kind: '',
        majorVersion: '',
        minorVersion: '',
        name: ''
      }
    ],
    connectionTypes: [{id: '', kind: '', name: ''}],
    mobileCarriers: [{countryCode: '', countryDartId: '', id: '', kind: '', name: ''}],
    operatingSystemVersions: [
      {
        id: '',
        kind: '',
        majorVersion: '',
        minorVersion: '',
        name: '',
        operatingSystem: {dartId: '', desktop: false, kind: '', mobile: false, name: ''}
      }
    ],
    operatingSystems: [{}],
    platformTypes: [{id: '', kind: '', name: ''}]
  },
  type: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/userprofiles/:profileId/ads',
  headers: {'content-type': 'application/json'},
  body: {
    accountId: '',
    active: false,
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    archived: false,
    audienceSegmentId: '',
    campaignId: '',
    campaignIdDimensionValue: {},
    clickThroughUrl: {
      computedClickThroughUrl: '',
      customClickThroughUrl: '',
      defaultLandingPage: false,
      landingPageId: ''
    },
    clickThroughUrlSuffixProperties: {clickThroughUrlSuffix: '', overrideInheritedSuffix: false},
    comments: '',
    compatibility: '',
    createInfo: {time: ''},
    creativeGroupAssignments: [{creativeGroupId: '', creativeGroupNumber: ''}],
    creativeRotation: {
      creativeAssignments: [
        {
          active: false,
          applyEventTags: false,
          clickThroughUrl: {},
          companionCreativeOverrides: [{clickThroughUrl: {}, creativeId: ''}],
          creativeGroupAssignments: [{}],
          creativeId: '',
          creativeIdDimensionValue: {},
          endTime: '',
          richMediaExitOverrides: [{clickThroughUrl: {}, enabled: false, exitId: ''}],
          sequence: 0,
          sslCompliant: false,
          startTime: '',
          weight: 0
        }
      ],
      creativeOptimizationConfigurationId: '',
      type: '',
      weightCalculationStrategy: ''
    },
    dayPartTargeting: {daysOfWeek: [], hoursOfDay: [], userLocalTime: false},
    defaultClickThroughEventTagProperties: {defaultClickThroughEventTagId: '', overrideInheritedEventTag: false},
    deliverySchedule: {
      frequencyCap: {duration: '', impressions: ''},
      hardCutoff: false,
      impressionRatio: '',
      priority: ''
    },
    dynamicClickTracker: false,
    endTime: '',
    eventTagOverrides: [{enabled: false, id: ''}],
    geoTargeting: {
      cities: [
        {
          countryCode: '',
          countryDartId: '',
          dartId: '',
          kind: '',
          metroCode: '',
          metroDmaId: '',
          name: '',
          regionCode: '',
          regionDartId: ''
        }
      ],
      countries: [{countryCode: '', dartId: '', kind: '', name: '', sslEnabled: false}],
      excludeCountries: false,
      metros: [
        {
          countryCode: '',
          countryDartId: '',
          dartId: '',
          dmaId: '',
          kind: '',
          metroCode: '',
          name: ''
        }
      ],
      postalCodes: [{code: '', countryCode: '', countryDartId: '', id: '', kind: ''}],
      regions: [
        {
          countryCode: '',
          countryDartId: '',
          dartId: '',
          kind: '',
          name: '',
          regionCode: ''
        }
      ]
    },
    id: '',
    idDimensionValue: {},
    keyValueTargetingExpression: {expression: ''},
    kind: '',
    languageTargeting: {languages: [{id: '', kind: '', languageCode: '', name: ''}]},
    lastModifiedInfo: {},
    name: '',
    placementAssignments: [
      {
        active: false,
        placementId: '',
        placementIdDimensionValue: {},
        sslRequired: false
      }
    ],
    remarketingListExpression: {expression: ''},
    size: {height: 0, iab: false, id: '', kind: '', width: 0},
    sslCompliant: false,
    sslRequired: false,
    startTime: '',
    subaccountId: '',
    targetingTemplateId: '',
    technologyTargeting: {
      browsers: [
        {
          browserVersionId: '',
          dartId: '',
          kind: '',
          majorVersion: '',
          minorVersion: '',
          name: ''
        }
      ],
      connectionTypes: [{id: '', kind: '', name: ''}],
      mobileCarriers: [{countryCode: '', countryDartId: '', id: '', kind: '', name: ''}],
      operatingSystemVersions: [
        {
          id: '',
          kind: '',
          majorVersion: '',
          minorVersion: '',
          name: '',
          operatingSystem: {dartId: '', desktop: false, kind: '', mobile: false, name: ''}
        }
      ],
      operatingSystems: [{}],
      platformTypes: [{id: '', kind: '', name: ''}]
    },
    type: ''
  },
  json: true
};

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

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

const req = unirest('PUT', '{{baseUrl}}/userprofiles/:profileId/ads');

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

req.type('json');
req.send({
  accountId: '',
  active: false,
  advertiserId: '',
  advertiserIdDimensionValue: {
    dimensionName: '',
    etag: '',
    id: '',
    kind: '',
    matchType: '',
    value: ''
  },
  archived: false,
  audienceSegmentId: '',
  campaignId: '',
  campaignIdDimensionValue: {},
  clickThroughUrl: {
    computedClickThroughUrl: '',
    customClickThroughUrl: '',
    defaultLandingPage: false,
    landingPageId: ''
  },
  clickThroughUrlSuffixProperties: {
    clickThroughUrlSuffix: '',
    overrideInheritedSuffix: false
  },
  comments: '',
  compatibility: '',
  createInfo: {
    time: ''
  },
  creativeGroupAssignments: [
    {
      creativeGroupId: '',
      creativeGroupNumber: ''
    }
  ],
  creativeRotation: {
    creativeAssignments: [
      {
        active: false,
        applyEventTags: false,
        clickThroughUrl: {},
        companionCreativeOverrides: [
          {
            clickThroughUrl: {},
            creativeId: ''
          }
        ],
        creativeGroupAssignments: [
          {}
        ],
        creativeId: '',
        creativeIdDimensionValue: {},
        endTime: '',
        richMediaExitOverrides: [
          {
            clickThroughUrl: {},
            enabled: false,
            exitId: ''
          }
        ],
        sequence: 0,
        sslCompliant: false,
        startTime: '',
        weight: 0
      }
    ],
    creativeOptimizationConfigurationId: '',
    type: '',
    weightCalculationStrategy: ''
  },
  dayPartTargeting: {
    daysOfWeek: [],
    hoursOfDay: [],
    userLocalTime: false
  },
  defaultClickThroughEventTagProperties: {
    defaultClickThroughEventTagId: '',
    overrideInheritedEventTag: false
  },
  deliverySchedule: {
    frequencyCap: {
      duration: '',
      impressions: ''
    },
    hardCutoff: false,
    impressionRatio: '',
    priority: ''
  },
  dynamicClickTracker: false,
  endTime: '',
  eventTagOverrides: [
    {
      enabled: false,
      id: ''
    }
  ],
  geoTargeting: {
    cities: [
      {
        countryCode: '',
        countryDartId: '',
        dartId: '',
        kind: '',
        metroCode: '',
        metroDmaId: '',
        name: '',
        regionCode: '',
        regionDartId: ''
      }
    ],
    countries: [
      {
        countryCode: '',
        dartId: '',
        kind: '',
        name: '',
        sslEnabled: false
      }
    ],
    excludeCountries: false,
    metros: [
      {
        countryCode: '',
        countryDartId: '',
        dartId: '',
        dmaId: '',
        kind: '',
        metroCode: '',
        name: ''
      }
    ],
    postalCodes: [
      {
        code: '',
        countryCode: '',
        countryDartId: '',
        id: '',
        kind: ''
      }
    ],
    regions: [
      {
        countryCode: '',
        countryDartId: '',
        dartId: '',
        kind: '',
        name: '',
        regionCode: ''
      }
    ]
  },
  id: '',
  idDimensionValue: {},
  keyValueTargetingExpression: {
    expression: ''
  },
  kind: '',
  languageTargeting: {
    languages: [
      {
        id: '',
        kind: '',
        languageCode: '',
        name: ''
      }
    ]
  },
  lastModifiedInfo: {},
  name: '',
  placementAssignments: [
    {
      active: false,
      placementId: '',
      placementIdDimensionValue: {},
      sslRequired: false
    }
  ],
  remarketingListExpression: {
    expression: ''
  },
  size: {
    height: 0,
    iab: false,
    id: '',
    kind: '',
    width: 0
  },
  sslCompliant: false,
  sslRequired: false,
  startTime: '',
  subaccountId: '',
  targetingTemplateId: '',
  technologyTargeting: {
    browsers: [
      {
        browserVersionId: '',
        dartId: '',
        kind: '',
        majorVersion: '',
        minorVersion: '',
        name: ''
      }
    ],
    connectionTypes: [
      {
        id: '',
        kind: '',
        name: ''
      }
    ],
    mobileCarriers: [
      {
        countryCode: '',
        countryDartId: '',
        id: '',
        kind: '',
        name: ''
      }
    ],
    operatingSystemVersions: [
      {
        id: '',
        kind: '',
        majorVersion: '',
        minorVersion: '',
        name: '',
        operatingSystem: {
          dartId: '',
          desktop: false,
          kind: '',
          mobile: false,
          name: ''
        }
      }
    ],
    operatingSystems: [
      {}
    ],
    platformTypes: [
      {
        id: '',
        kind: '',
        name: ''
      }
    ]
  },
  type: ''
});

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

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

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/userprofiles/:profileId/ads',
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    active: false,
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    archived: false,
    audienceSegmentId: '',
    campaignId: '',
    campaignIdDimensionValue: {},
    clickThroughUrl: {
      computedClickThroughUrl: '',
      customClickThroughUrl: '',
      defaultLandingPage: false,
      landingPageId: ''
    },
    clickThroughUrlSuffixProperties: {clickThroughUrlSuffix: '', overrideInheritedSuffix: false},
    comments: '',
    compatibility: '',
    createInfo: {time: ''},
    creativeGroupAssignments: [{creativeGroupId: '', creativeGroupNumber: ''}],
    creativeRotation: {
      creativeAssignments: [
        {
          active: false,
          applyEventTags: false,
          clickThroughUrl: {},
          companionCreativeOverrides: [{clickThroughUrl: {}, creativeId: ''}],
          creativeGroupAssignments: [{}],
          creativeId: '',
          creativeIdDimensionValue: {},
          endTime: '',
          richMediaExitOverrides: [{clickThroughUrl: {}, enabled: false, exitId: ''}],
          sequence: 0,
          sslCompliant: false,
          startTime: '',
          weight: 0
        }
      ],
      creativeOptimizationConfigurationId: '',
      type: '',
      weightCalculationStrategy: ''
    },
    dayPartTargeting: {daysOfWeek: [], hoursOfDay: [], userLocalTime: false},
    defaultClickThroughEventTagProperties: {defaultClickThroughEventTagId: '', overrideInheritedEventTag: false},
    deliverySchedule: {
      frequencyCap: {duration: '', impressions: ''},
      hardCutoff: false,
      impressionRatio: '',
      priority: ''
    },
    dynamicClickTracker: false,
    endTime: '',
    eventTagOverrides: [{enabled: false, id: ''}],
    geoTargeting: {
      cities: [
        {
          countryCode: '',
          countryDartId: '',
          dartId: '',
          kind: '',
          metroCode: '',
          metroDmaId: '',
          name: '',
          regionCode: '',
          regionDartId: ''
        }
      ],
      countries: [{countryCode: '', dartId: '', kind: '', name: '', sslEnabled: false}],
      excludeCountries: false,
      metros: [
        {
          countryCode: '',
          countryDartId: '',
          dartId: '',
          dmaId: '',
          kind: '',
          metroCode: '',
          name: ''
        }
      ],
      postalCodes: [{code: '', countryCode: '', countryDartId: '', id: '', kind: ''}],
      regions: [
        {
          countryCode: '',
          countryDartId: '',
          dartId: '',
          kind: '',
          name: '',
          regionCode: ''
        }
      ]
    },
    id: '',
    idDimensionValue: {},
    keyValueTargetingExpression: {expression: ''},
    kind: '',
    languageTargeting: {languages: [{id: '', kind: '', languageCode: '', name: ''}]},
    lastModifiedInfo: {},
    name: '',
    placementAssignments: [
      {
        active: false,
        placementId: '',
        placementIdDimensionValue: {},
        sslRequired: false
      }
    ],
    remarketingListExpression: {expression: ''},
    size: {height: 0, iab: false, id: '', kind: '', width: 0},
    sslCompliant: false,
    sslRequired: false,
    startTime: '',
    subaccountId: '',
    targetingTemplateId: '',
    technologyTargeting: {
      browsers: [
        {
          browserVersionId: '',
          dartId: '',
          kind: '',
          majorVersion: '',
          minorVersion: '',
          name: ''
        }
      ],
      connectionTypes: [{id: '', kind: '', name: ''}],
      mobileCarriers: [{countryCode: '', countryDartId: '', id: '', kind: '', name: ''}],
      operatingSystemVersions: [
        {
          id: '',
          kind: '',
          majorVersion: '',
          minorVersion: '',
          name: '',
          operatingSystem: {dartId: '', desktop: false, kind: '', mobile: false, name: ''}
        }
      ],
      operatingSystems: [{}],
      platformTypes: [{id: '', kind: '', name: ''}]
    },
    type: ''
  }
};

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

const url = '{{baseUrl}}/userprofiles/:profileId/ads';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","active":false,"advertiserId":"","advertiserIdDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"archived":false,"audienceSegmentId":"","campaignId":"","campaignIdDimensionValue":{},"clickThroughUrl":{"computedClickThroughUrl":"","customClickThroughUrl":"","defaultLandingPage":false,"landingPageId":""},"clickThroughUrlSuffixProperties":{"clickThroughUrlSuffix":"","overrideInheritedSuffix":false},"comments":"","compatibility":"","createInfo":{"time":""},"creativeGroupAssignments":[{"creativeGroupId":"","creativeGroupNumber":""}],"creativeRotation":{"creativeAssignments":[{"active":false,"applyEventTags":false,"clickThroughUrl":{},"companionCreativeOverrides":[{"clickThroughUrl":{},"creativeId":""}],"creativeGroupAssignments":[{}],"creativeId":"","creativeIdDimensionValue":{},"endTime":"","richMediaExitOverrides":[{"clickThroughUrl":{},"enabled":false,"exitId":""}],"sequence":0,"sslCompliant":false,"startTime":"","weight":0}],"creativeOptimizationConfigurationId":"","type":"","weightCalculationStrategy":""},"dayPartTargeting":{"daysOfWeek":[],"hoursOfDay":[],"userLocalTime":false},"defaultClickThroughEventTagProperties":{"defaultClickThroughEventTagId":"","overrideInheritedEventTag":false},"deliverySchedule":{"frequencyCap":{"duration":"","impressions":""},"hardCutoff":false,"impressionRatio":"","priority":""},"dynamicClickTracker":false,"endTime":"","eventTagOverrides":[{"enabled":false,"id":""}],"geoTargeting":{"cities":[{"countryCode":"","countryDartId":"","dartId":"","kind":"","metroCode":"","metroDmaId":"","name":"","regionCode":"","regionDartId":""}],"countries":[{"countryCode":"","dartId":"","kind":"","name":"","sslEnabled":false}],"excludeCountries":false,"metros":[{"countryCode":"","countryDartId":"","dartId":"","dmaId":"","kind":"","metroCode":"","name":""}],"postalCodes":[{"code":"","countryCode":"","countryDartId":"","id":"","kind":""}],"regions":[{"countryCode":"","countryDartId":"","dartId":"","kind":"","name":"","regionCode":""}]},"id":"","idDimensionValue":{},"keyValueTargetingExpression":{"expression":""},"kind":"","languageTargeting":{"languages":[{"id":"","kind":"","languageCode":"","name":""}]},"lastModifiedInfo":{},"name":"","placementAssignments":[{"active":false,"placementId":"","placementIdDimensionValue":{},"sslRequired":false}],"remarketingListExpression":{"expression":""},"size":{"height":0,"iab":false,"id":"","kind":"","width":0},"sslCompliant":false,"sslRequired":false,"startTime":"","subaccountId":"","targetingTemplateId":"","technologyTargeting":{"browsers":[{"browserVersionId":"","dartId":"","kind":"","majorVersion":"","minorVersion":"","name":""}],"connectionTypes":[{"id":"","kind":"","name":""}],"mobileCarriers":[{"countryCode":"","countryDartId":"","id":"","kind":"","name":""}],"operatingSystemVersions":[{"id":"","kind":"","majorVersion":"","minorVersion":"","name":"","operatingSystem":{"dartId":"","desktop":false,"kind":"","mobile":false,"name":""}}],"operatingSystems":[{}],"platformTypes":[{"id":"","kind":"","name":""}]},"type":""}'
};

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 = @{ @"accountId": @"",
                              @"active": @NO,
                              @"advertiserId": @"",
                              @"advertiserIdDimensionValue": @{ @"dimensionName": @"", @"etag": @"", @"id": @"", @"kind": @"", @"matchType": @"", @"value": @"" },
                              @"archived": @NO,
                              @"audienceSegmentId": @"",
                              @"campaignId": @"",
                              @"campaignIdDimensionValue": @{  },
                              @"clickThroughUrl": @{ @"computedClickThroughUrl": @"", @"customClickThroughUrl": @"", @"defaultLandingPage": @NO, @"landingPageId": @"" },
                              @"clickThroughUrlSuffixProperties": @{ @"clickThroughUrlSuffix": @"", @"overrideInheritedSuffix": @NO },
                              @"comments": @"",
                              @"compatibility": @"",
                              @"createInfo": @{ @"time": @"" },
                              @"creativeGroupAssignments": @[ @{ @"creativeGroupId": @"", @"creativeGroupNumber": @"" } ],
                              @"creativeRotation": @{ @"creativeAssignments": @[ @{ @"active": @NO, @"applyEventTags": @NO, @"clickThroughUrl": @{  }, @"companionCreativeOverrides": @[ @{ @"clickThroughUrl": @{  }, @"creativeId": @"" } ], @"creativeGroupAssignments": @[ @{  } ], @"creativeId": @"", @"creativeIdDimensionValue": @{  }, @"endTime": @"", @"richMediaExitOverrides": @[ @{ @"clickThroughUrl": @{  }, @"enabled": @NO, @"exitId": @"" } ], @"sequence": @0, @"sslCompliant": @NO, @"startTime": @"", @"weight": @0 } ], @"creativeOptimizationConfigurationId": @"", @"type": @"", @"weightCalculationStrategy": @"" },
                              @"dayPartTargeting": @{ @"daysOfWeek": @[  ], @"hoursOfDay": @[  ], @"userLocalTime": @NO },
                              @"defaultClickThroughEventTagProperties": @{ @"defaultClickThroughEventTagId": @"", @"overrideInheritedEventTag": @NO },
                              @"deliverySchedule": @{ @"frequencyCap": @{ @"duration": @"", @"impressions": @"" }, @"hardCutoff": @NO, @"impressionRatio": @"", @"priority": @"" },
                              @"dynamicClickTracker": @NO,
                              @"endTime": @"",
                              @"eventTagOverrides": @[ @{ @"enabled": @NO, @"id": @"" } ],
                              @"geoTargeting": @{ @"cities": @[ @{ @"countryCode": @"", @"countryDartId": @"", @"dartId": @"", @"kind": @"", @"metroCode": @"", @"metroDmaId": @"", @"name": @"", @"regionCode": @"", @"regionDartId": @"" } ], @"countries": @[ @{ @"countryCode": @"", @"dartId": @"", @"kind": @"", @"name": @"", @"sslEnabled": @NO } ], @"excludeCountries": @NO, @"metros": @[ @{ @"countryCode": @"", @"countryDartId": @"", @"dartId": @"", @"dmaId": @"", @"kind": @"", @"metroCode": @"", @"name": @"" } ], @"postalCodes": @[ @{ @"code": @"", @"countryCode": @"", @"countryDartId": @"", @"id": @"", @"kind": @"" } ], @"regions": @[ @{ @"countryCode": @"", @"countryDartId": @"", @"dartId": @"", @"kind": @"", @"name": @"", @"regionCode": @"" } ] },
                              @"id": @"",
                              @"idDimensionValue": @{  },
                              @"keyValueTargetingExpression": @{ @"expression": @"" },
                              @"kind": @"",
                              @"languageTargeting": @{ @"languages": @[ @{ @"id": @"", @"kind": @"", @"languageCode": @"", @"name": @"" } ] },
                              @"lastModifiedInfo": @{  },
                              @"name": @"",
                              @"placementAssignments": @[ @{ @"active": @NO, @"placementId": @"", @"placementIdDimensionValue": @{  }, @"sslRequired": @NO } ],
                              @"remarketingListExpression": @{ @"expression": @"" },
                              @"size": @{ @"height": @0, @"iab": @NO, @"id": @"", @"kind": @"", @"width": @0 },
                              @"sslCompliant": @NO,
                              @"sslRequired": @NO,
                              @"startTime": @"",
                              @"subaccountId": @"",
                              @"targetingTemplateId": @"",
                              @"technologyTargeting": @{ @"browsers": @[ @{ @"browserVersionId": @"", @"dartId": @"", @"kind": @"", @"majorVersion": @"", @"minorVersion": @"", @"name": @"" } ], @"connectionTypes": @[ @{ @"id": @"", @"kind": @"", @"name": @"" } ], @"mobileCarriers": @[ @{ @"countryCode": @"", @"countryDartId": @"", @"id": @"", @"kind": @"", @"name": @"" } ], @"operatingSystemVersions": @[ @{ @"id": @"", @"kind": @"", @"majorVersion": @"", @"minorVersion": @"", @"name": @"", @"operatingSystem": @{ @"dartId": @"", @"desktop": @NO, @"kind": @"", @"mobile": @NO, @"name": @"" } } ], @"operatingSystems": @[ @{  } ], @"platformTypes": @[ @{ @"id": @"", @"kind": @"", @"name": @"" } ] },
                              @"type": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/userprofiles/:profileId/ads"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

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

let uri = Uri.of_string "{{baseUrl}}/userprofiles/:profileId/ads" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"audienceSegmentId\": \"\",\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"clickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"defaultLandingPage\": false,\n    \"landingPageId\": \"\"\n  },\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comments\": \"\",\n  \"compatibility\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupAssignments\": [\n    {\n      \"creativeGroupId\": \"\",\n      \"creativeGroupNumber\": \"\"\n    }\n  ],\n  \"creativeRotation\": {\n    \"creativeAssignments\": [\n      {\n        \"active\": false,\n        \"applyEventTags\": false,\n        \"clickThroughUrl\": {},\n        \"companionCreativeOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"creativeId\": \"\"\n          }\n        ],\n        \"creativeGroupAssignments\": [\n          {}\n        ],\n        \"creativeId\": \"\",\n        \"creativeIdDimensionValue\": {},\n        \"endTime\": \"\",\n        \"richMediaExitOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"enabled\": false,\n            \"exitId\": \"\"\n          }\n        ],\n        \"sequence\": 0,\n        \"sslCompliant\": false,\n        \"startTime\": \"\",\n        \"weight\": 0\n      }\n    ],\n    \"creativeOptimizationConfigurationId\": \"\",\n    \"type\": \"\",\n    \"weightCalculationStrategy\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"deliverySchedule\": {\n    \"frequencyCap\": {\n      \"duration\": \"\",\n      \"impressions\": \"\"\n    },\n    \"hardCutoff\": false,\n    \"impressionRatio\": \"\",\n    \"priority\": \"\"\n  },\n  \"dynamicClickTracker\": false,\n  \"endTime\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementAssignments\": [\n    {\n      \"active\": false,\n      \"placementId\": \"\",\n      \"placementIdDimensionValue\": {},\n      \"sslRequired\": false\n    }\n  ],\n  \"remarketingListExpression\": {\n    \"expression\": \"\"\n  },\n  \"size\": {\n    \"height\": 0,\n    \"iab\": false,\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"width\": 0\n  },\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"startTime\": \"\",\n  \"subaccountId\": \"\",\n  \"targetingTemplateId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"type\": \"\"\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/ads",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'accountId' => '',
    'active' => null,
    'advertiserId' => '',
    'advertiserIdDimensionValue' => [
        'dimensionName' => '',
        'etag' => '',
        'id' => '',
        'kind' => '',
        'matchType' => '',
        'value' => ''
    ],
    'archived' => null,
    'audienceSegmentId' => '',
    'campaignId' => '',
    'campaignIdDimensionValue' => [
        
    ],
    'clickThroughUrl' => [
        'computedClickThroughUrl' => '',
        'customClickThroughUrl' => '',
        'defaultLandingPage' => null,
        'landingPageId' => ''
    ],
    'clickThroughUrlSuffixProperties' => [
        'clickThroughUrlSuffix' => '',
        'overrideInheritedSuffix' => null
    ],
    'comments' => '',
    'compatibility' => '',
    'createInfo' => [
        'time' => ''
    ],
    'creativeGroupAssignments' => [
        [
                'creativeGroupId' => '',
                'creativeGroupNumber' => ''
        ]
    ],
    'creativeRotation' => [
        'creativeAssignments' => [
                [
                                'active' => null,
                                'applyEventTags' => null,
                                'clickThroughUrl' => [
                                                                
                                ],
                                'companionCreativeOverrides' => [
                                                                [
                                                                                                                                'clickThroughUrl' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'creativeId' => ''
                                                                ]
                                ],
                                'creativeGroupAssignments' => [
                                                                [
                                                                                                                                
                                                                ]
                                ],
                                'creativeId' => '',
                                'creativeIdDimensionValue' => [
                                                                
                                ],
                                'endTime' => '',
                                'richMediaExitOverrides' => [
                                                                [
                                                                                                                                'clickThroughUrl' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'enabled' => null,
                                                                                                                                'exitId' => ''
                                                                ]
                                ],
                                'sequence' => 0,
                                'sslCompliant' => null,
                                'startTime' => '',
                                'weight' => 0
                ]
        ],
        'creativeOptimizationConfigurationId' => '',
        'type' => '',
        'weightCalculationStrategy' => ''
    ],
    'dayPartTargeting' => [
        'daysOfWeek' => [
                
        ],
        'hoursOfDay' => [
                
        ],
        'userLocalTime' => null
    ],
    'defaultClickThroughEventTagProperties' => [
        'defaultClickThroughEventTagId' => '',
        'overrideInheritedEventTag' => null
    ],
    'deliverySchedule' => [
        'frequencyCap' => [
                'duration' => '',
                'impressions' => ''
        ],
        'hardCutoff' => null,
        'impressionRatio' => '',
        'priority' => ''
    ],
    'dynamicClickTracker' => null,
    'endTime' => '',
    'eventTagOverrides' => [
        [
                'enabled' => null,
                'id' => ''
        ]
    ],
    'geoTargeting' => [
        'cities' => [
                [
                                'countryCode' => '',
                                'countryDartId' => '',
                                'dartId' => '',
                                'kind' => '',
                                'metroCode' => '',
                                'metroDmaId' => '',
                                'name' => '',
                                'regionCode' => '',
                                'regionDartId' => ''
                ]
        ],
        'countries' => [
                [
                                'countryCode' => '',
                                'dartId' => '',
                                'kind' => '',
                                'name' => '',
                                'sslEnabled' => null
                ]
        ],
        'excludeCountries' => null,
        'metros' => [
                [
                                'countryCode' => '',
                                'countryDartId' => '',
                                'dartId' => '',
                                'dmaId' => '',
                                'kind' => '',
                                'metroCode' => '',
                                'name' => ''
                ]
        ],
        'postalCodes' => [
                [
                                'code' => '',
                                'countryCode' => '',
                                'countryDartId' => '',
                                'id' => '',
                                'kind' => ''
                ]
        ],
        'regions' => [
                [
                                'countryCode' => '',
                                'countryDartId' => '',
                                'dartId' => '',
                                'kind' => '',
                                'name' => '',
                                'regionCode' => ''
                ]
        ]
    ],
    'id' => '',
    'idDimensionValue' => [
        
    ],
    'keyValueTargetingExpression' => [
        'expression' => ''
    ],
    'kind' => '',
    'languageTargeting' => [
        'languages' => [
                [
                                'id' => '',
                                'kind' => '',
                                'languageCode' => '',
                                'name' => ''
                ]
        ]
    ],
    'lastModifiedInfo' => [
        
    ],
    'name' => '',
    'placementAssignments' => [
        [
                'active' => null,
                'placementId' => '',
                'placementIdDimensionValue' => [
                                
                ],
                'sslRequired' => null
        ]
    ],
    'remarketingListExpression' => [
        'expression' => ''
    ],
    'size' => [
        'height' => 0,
        'iab' => null,
        'id' => '',
        'kind' => '',
        'width' => 0
    ],
    'sslCompliant' => null,
    'sslRequired' => null,
    'startTime' => '',
    'subaccountId' => '',
    'targetingTemplateId' => '',
    'technologyTargeting' => [
        'browsers' => [
                [
                                'browserVersionId' => '',
                                'dartId' => '',
                                'kind' => '',
                                'majorVersion' => '',
                                'minorVersion' => '',
                                'name' => ''
                ]
        ],
        'connectionTypes' => [
                [
                                'id' => '',
                                'kind' => '',
                                'name' => ''
                ]
        ],
        'mobileCarriers' => [
                [
                                'countryCode' => '',
                                'countryDartId' => '',
                                'id' => '',
                                'kind' => '',
                                'name' => ''
                ]
        ],
        'operatingSystemVersions' => [
                [
                                'id' => '',
                                'kind' => '',
                                'majorVersion' => '',
                                'minorVersion' => '',
                                'name' => '',
                                'operatingSystem' => [
                                                                'dartId' => '',
                                                                'desktop' => null,
                                                                'kind' => '',
                                                                'mobile' => null,
                                                                'name' => ''
                                ]
                ]
        ],
        'operatingSystems' => [
                [
                                
                ]
        ],
        'platformTypes' => [
                [
                                'id' => '',
                                'kind' => '',
                                'name' => ''
                ]
        ]
    ],
    'type' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/userprofiles/:profileId/ads', [
  'body' => '{
  "accountId": "",
  "active": false,
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "archived": false,
  "audienceSegmentId": "",
  "campaignId": "",
  "campaignIdDimensionValue": {},
  "clickThroughUrl": {
    "computedClickThroughUrl": "",
    "customClickThroughUrl": "",
    "defaultLandingPage": false,
    "landingPageId": ""
  },
  "clickThroughUrlSuffixProperties": {
    "clickThroughUrlSuffix": "",
    "overrideInheritedSuffix": false
  },
  "comments": "",
  "compatibility": "",
  "createInfo": {
    "time": ""
  },
  "creativeGroupAssignments": [
    {
      "creativeGroupId": "",
      "creativeGroupNumber": ""
    }
  ],
  "creativeRotation": {
    "creativeAssignments": [
      {
        "active": false,
        "applyEventTags": false,
        "clickThroughUrl": {},
        "companionCreativeOverrides": [
          {
            "clickThroughUrl": {},
            "creativeId": ""
          }
        ],
        "creativeGroupAssignments": [
          {}
        ],
        "creativeId": "",
        "creativeIdDimensionValue": {},
        "endTime": "",
        "richMediaExitOverrides": [
          {
            "clickThroughUrl": {},
            "enabled": false,
            "exitId": ""
          }
        ],
        "sequence": 0,
        "sslCompliant": false,
        "startTime": "",
        "weight": 0
      }
    ],
    "creativeOptimizationConfigurationId": "",
    "type": "",
    "weightCalculationStrategy": ""
  },
  "dayPartTargeting": {
    "daysOfWeek": [],
    "hoursOfDay": [],
    "userLocalTime": false
  },
  "defaultClickThroughEventTagProperties": {
    "defaultClickThroughEventTagId": "",
    "overrideInheritedEventTag": false
  },
  "deliverySchedule": {
    "frequencyCap": {
      "duration": "",
      "impressions": ""
    },
    "hardCutoff": false,
    "impressionRatio": "",
    "priority": ""
  },
  "dynamicClickTracker": false,
  "endTime": "",
  "eventTagOverrides": [
    {
      "enabled": false,
      "id": ""
    }
  ],
  "geoTargeting": {
    "cities": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "metroCode": "",
        "metroDmaId": "",
        "name": "",
        "regionCode": "",
        "regionDartId": ""
      }
    ],
    "countries": [
      {
        "countryCode": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "sslEnabled": false
      }
    ],
    "excludeCountries": false,
    "metros": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "dmaId": "",
        "kind": "",
        "metroCode": "",
        "name": ""
      }
    ],
    "postalCodes": [
      {
        "code": "",
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": ""
      }
    ],
    "regions": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "regionCode": ""
      }
    ]
  },
  "id": "",
  "idDimensionValue": {},
  "keyValueTargetingExpression": {
    "expression": ""
  },
  "kind": "",
  "languageTargeting": {
    "languages": [
      {
        "id": "",
        "kind": "",
        "languageCode": "",
        "name": ""
      }
    ]
  },
  "lastModifiedInfo": {},
  "name": "",
  "placementAssignments": [
    {
      "active": false,
      "placementId": "",
      "placementIdDimensionValue": {},
      "sslRequired": false
    }
  ],
  "remarketingListExpression": {
    "expression": ""
  },
  "size": {
    "height": 0,
    "iab": false,
    "id": "",
    "kind": "",
    "width": 0
  },
  "sslCompliant": false,
  "sslRequired": false,
  "startTime": "",
  "subaccountId": "",
  "targetingTemplateId": "",
  "technologyTargeting": {
    "browsers": [
      {
        "browserVersionId": "",
        "dartId": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": ""
      }
    ],
    "connectionTypes": [
      {
        "id": "",
        "kind": "",
        "name": ""
      }
    ],
    "mobileCarriers": [
      {
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": "",
        "name": ""
      }
    ],
    "operatingSystemVersions": [
      {
        "id": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": "",
        "operatingSystem": {
          "dartId": "",
          "desktop": false,
          "kind": "",
          "mobile": false,
          "name": ""
        }
      }
    ],
    "operatingSystems": [
      {}
    ],
    "platformTypes": [
      {
        "id": "",
        "kind": "",
        "name": ""
      }
    ]
  },
  "type": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/ads');
$request->setMethod(HTTP_METH_PUT);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'accountId' => '',
  'active' => null,
  'advertiserId' => '',
  'advertiserIdDimensionValue' => [
    'dimensionName' => '',
    'etag' => '',
    'id' => '',
    'kind' => '',
    'matchType' => '',
    'value' => ''
  ],
  'archived' => null,
  'audienceSegmentId' => '',
  'campaignId' => '',
  'campaignIdDimensionValue' => [
    
  ],
  'clickThroughUrl' => [
    'computedClickThroughUrl' => '',
    'customClickThroughUrl' => '',
    'defaultLandingPage' => null,
    'landingPageId' => ''
  ],
  'clickThroughUrlSuffixProperties' => [
    'clickThroughUrlSuffix' => '',
    'overrideInheritedSuffix' => null
  ],
  'comments' => '',
  'compatibility' => '',
  'createInfo' => [
    'time' => ''
  ],
  'creativeGroupAssignments' => [
    [
        'creativeGroupId' => '',
        'creativeGroupNumber' => ''
    ]
  ],
  'creativeRotation' => [
    'creativeAssignments' => [
        [
                'active' => null,
                'applyEventTags' => null,
                'clickThroughUrl' => [
                                
                ],
                'companionCreativeOverrides' => [
                                [
                                                                'clickThroughUrl' => [
                                                                                                                                
                                                                ],
                                                                'creativeId' => ''
                                ]
                ],
                'creativeGroupAssignments' => [
                                [
                                                                
                                ]
                ],
                'creativeId' => '',
                'creativeIdDimensionValue' => [
                                
                ],
                'endTime' => '',
                'richMediaExitOverrides' => [
                                [
                                                                'clickThroughUrl' => [
                                                                                                                                
                                                                ],
                                                                'enabled' => null,
                                                                'exitId' => ''
                                ]
                ],
                'sequence' => 0,
                'sslCompliant' => null,
                'startTime' => '',
                'weight' => 0
        ]
    ],
    'creativeOptimizationConfigurationId' => '',
    'type' => '',
    'weightCalculationStrategy' => ''
  ],
  'dayPartTargeting' => [
    'daysOfWeek' => [
        
    ],
    'hoursOfDay' => [
        
    ],
    'userLocalTime' => null
  ],
  'defaultClickThroughEventTagProperties' => [
    'defaultClickThroughEventTagId' => '',
    'overrideInheritedEventTag' => null
  ],
  'deliverySchedule' => [
    'frequencyCap' => [
        'duration' => '',
        'impressions' => ''
    ],
    'hardCutoff' => null,
    'impressionRatio' => '',
    'priority' => ''
  ],
  'dynamicClickTracker' => null,
  'endTime' => '',
  'eventTagOverrides' => [
    [
        'enabled' => null,
        'id' => ''
    ]
  ],
  'geoTargeting' => [
    'cities' => [
        [
                'countryCode' => '',
                'countryDartId' => '',
                'dartId' => '',
                'kind' => '',
                'metroCode' => '',
                'metroDmaId' => '',
                'name' => '',
                'regionCode' => '',
                'regionDartId' => ''
        ]
    ],
    'countries' => [
        [
                'countryCode' => '',
                'dartId' => '',
                'kind' => '',
                'name' => '',
                'sslEnabled' => null
        ]
    ],
    'excludeCountries' => null,
    'metros' => [
        [
                'countryCode' => '',
                'countryDartId' => '',
                'dartId' => '',
                'dmaId' => '',
                'kind' => '',
                'metroCode' => '',
                'name' => ''
        ]
    ],
    'postalCodes' => [
        [
                'code' => '',
                'countryCode' => '',
                'countryDartId' => '',
                'id' => '',
                'kind' => ''
        ]
    ],
    'regions' => [
        [
                'countryCode' => '',
                'countryDartId' => '',
                'dartId' => '',
                'kind' => '',
                'name' => '',
                'regionCode' => ''
        ]
    ]
  ],
  'id' => '',
  'idDimensionValue' => [
    
  ],
  'keyValueTargetingExpression' => [
    'expression' => ''
  ],
  'kind' => '',
  'languageTargeting' => [
    'languages' => [
        [
                'id' => '',
                'kind' => '',
                'languageCode' => '',
                'name' => ''
        ]
    ]
  ],
  'lastModifiedInfo' => [
    
  ],
  'name' => '',
  'placementAssignments' => [
    [
        'active' => null,
        'placementId' => '',
        'placementIdDimensionValue' => [
                
        ],
        'sslRequired' => null
    ]
  ],
  'remarketingListExpression' => [
    'expression' => ''
  ],
  'size' => [
    'height' => 0,
    'iab' => null,
    'id' => '',
    'kind' => '',
    'width' => 0
  ],
  'sslCompliant' => null,
  'sslRequired' => null,
  'startTime' => '',
  'subaccountId' => '',
  'targetingTemplateId' => '',
  'technologyTargeting' => [
    'browsers' => [
        [
                'browserVersionId' => '',
                'dartId' => '',
                'kind' => '',
                'majorVersion' => '',
                'minorVersion' => '',
                'name' => ''
        ]
    ],
    'connectionTypes' => [
        [
                'id' => '',
                'kind' => '',
                'name' => ''
        ]
    ],
    'mobileCarriers' => [
        [
                'countryCode' => '',
                'countryDartId' => '',
                'id' => '',
                'kind' => '',
                'name' => ''
        ]
    ],
    'operatingSystemVersions' => [
        [
                'id' => '',
                'kind' => '',
                'majorVersion' => '',
                'minorVersion' => '',
                'name' => '',
                'operatingSystem' => [
                                'dartId' => '',
                                'desktop' => null,
                                'kind' => '',
                                'mobile' => null,
                                'name' => ''
                ]
        ]
    ],
    'operatingSystems' => [
        [
                
        ]
    ],
    'platformTypes' => [
        [
                'id' => '',
                'kind' => '',
                'name' => ''
        ]
    ]
  ],
  'type' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'accountId' => '',
  'active' => null,
  'advertiserId' => '',
  'advertiserIdDimensionValue' => [
    'dimensionName' => '',
    'etag' => '',
    'id' => '',
    'kind' => '',
    'matchType' => '',
    'value' => ''
  ],
  'archived' => null,
  'audienceSegmentId' => '',
  'campaignId' => '',
  'campaignIdDimensionValue' => [
    
  ],
  'clickThroughUrl' => [
    'computedClickThroughUrl' => '',
    'customClickThroughUrl' => '',
    'defaultLandingPage' => null,
    'landingPageId' => ''
  ],
  'clickThroughUrlSuffixProperties' => [
    'clickThroughUrlSuffix' => '',
    'overrideInheritedSuffix' => null
  ],
  'comments' => '',
  'compatibility' => '',
  'createInfo' => [
    'time' => ''
  ],
  'creativeGroupAssignments' => [
    [
        'creativeGroupId' => '',
        'creativeGroupNumber' => ''
    ]
  ],
  'creativeRotation' => [
    'creativeAssignments' => [
        [
                'active' => null,
                'applyEventTags' => null,
                'clickThroughUrl' => [
                                
                ],
                'companionCreativeOverrides' => [
                                [
                                                                'clickThroughUrl' => [
                                                                                                                                
                                                                ],
                                                                'creativeId' => ''
                                ]
                ],
                'creativeGroupAssignments' => [
                                [
                                                                
                                ]
                ],
                'creativeId' => '',
                'creativeIdDimensionValue' => [
                                
                ],
                'endTime' => '',
                'richMediaExitOverrides' => [
                                [
                                                                'clickThroughUrl' => [
                                                                                                                                
                                                                ],
                                                                'enabled' => null,
                                                                'exitId' => ''
                                ]
                ],
                'sequence' => 0,
                'sslCompliant' => null,
                'startTime' => '',
                'weight' => 0
        ]
    ],
    'creativeOptimizationConfigurationId' => '',
    'type' => '',
    'weightCalculationStrategy' => ''
  ],
  'dayPartTargeting' => [
    'daysOfWeek' => [
        
    ],
    'hoursOfDay' => [
        
    ],
    'userLocalTime' => null
  ],
  'defaultClickThroughEventTagProperties' => [
    'defaultClickThroughEventTagId' => '',
    'overrideInheritedEventTag' => null
  ],
  'deliverySchedule' => [
    'frequencyCap' => [
        'duration' => '',
        'impressions' => ''
    ],
    'hardCutoff' => null,
    'impressionRatio' => '',
    'priority' => ''
  ],
  'dynamicClickTracker' => null,
  'endTime' => '',
  'eventTagOverrides' => [
    [
        'enabled' => null,
        'id' => ''
    ]
  ],
  'geoTargeting' => [
    'cities' => [
        [
                'countryCode' => '',
                'countryDartId' => '',
                'dartId' => '',
                'kind' => '',
                'metroCode' => '',
                'metroDmaId' => '',
                'name' => '',
                'regionCode' => '',
                'regionDartId' => ''
        ]
    ],
    'countries' => [
        [
                'countryCode' => '',
                'dartId' => '',
                'kind' => '',
                'name' => '',
                'sslEnabled' => null
        ]
    ],
    'excludeCountries' => null,
    'metros' => [
        [
                'countryCode' => '',
                'countryDartId' => '',
                'dartId' => '',
                'dmaId' => '',
                'kind' => '',
                'metroCode' => '',
                'name' => ''
        ]
    ],
    'postalCodes' => [
        [
                'code' => '',
                'countryCode' => '',
                'countryDartId' => '',
                'id' => '',
                'kind' => ''
        ]
    ],
    'regions' => [
        [
                'countryCode' => '',
                'countryDartId' => '',
                'dartId' => '',
                'kind' => '',
                'name' => '',
                'regionCode' => ''
        ]
    ]
  ],
  'id' => '',
  'idDimensionValue' => [
    
  ],
  'keyValueTargetingExpression' => [
    'expression' => ''
  ],
  'kind' => '',
  'languageTargeting' => [
    'languages' => [
        [
                'id' => '',
                'kind' => '',
                'languageCode' => '',
                'name' => ''
        ]
    ]
  ],
  'lastModifiedInfo' => [
    
  ],
  'name' => '',
  'placementAssignments' => [
    [
        'active' => null,
        'placementId' => '',
        'placementIdDimensionValue' => [
                
        ],
        'sslRequired' => null
    ]
  ],
  'remarketingListExpression' => [
    'expression' => ''
  ],
  'size' => [
    'height' => 0,
    'iab' => null,
    'id' => '',
    'kind' => '',
    'width' => 0
  ],
  'sslCompliant' => null,
  'sslRequired' => null,
  'startTime' => '',
  'subaccountId' => '',
  'targetingTemplateId' => '',
  'technologyTargeting' => [
    'browsers' => [
        [
                'browserVersionId' => '',
                'dartId' => '',
                'kind' => '',
                'majorVersion' => '',
                'minorVersion' => '',
                'name' => ''
        ]
    ],
    'connectionTypes' => [
        [
                'id' => '',
                'kind' => '',
                'name' => ''
        ]
    ],
    'mobileCarriers' => [
        [
                'countryCode' => '',
                'countryDartId' => '',
                'id' => '',
                'kind' => '',
                'name' => ''
        ]
    ],
    'operatingSystemVersions' => [
        [
                'id' => '',
                'kind' => '',
                'majorVersion' => '',
                'minorVersion' => '',
                'name' => '',
                'operatingSystem' => [
                                'dartId' => '',
                                'desktop' => null,
                                'kind' => '',
                                'mobile' => null,
                                'name' => ''
                ]
        ]
    ],
    'operatingSystems' => [
        [
                
        ]
    ],
    'platformTypes' => [
        [
                'id' => '',
                'kind' => '',
                'name' => ''
        ]
    ]
  ],
  'type' => ''
]));
$request->setRequestUrl('{{baseUrl}}/userprofiles/:profileId/ads');
$request->setRequestMethod('PUT');
$request->setBody($body);

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

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/ads' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "active": false,
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "archived": false,
  "audienceSegmentId": "",
  "campaignId": "",
  "campaignIdDimensionValue": {},
  "clickThroughUrl": {
    "computedClickThroughUrl": "",
    "customClickThroughUrl": "",
    "defaultLandingPage": false,
    "landingPageId": ""
  },
  "clickThroughUrlSuffixProperties": {
    "clickThroughUrlSuffix": "",
    "overrideInheritedSuffix": false
  },
  "comments": "",
  "compatibility": "",
  "createInfo": {
    "time": ""
  },
  "creativeGroupAssignments": [
    {
      "creativeGroupId": "",
      "creativeGroupNumber": ""
    }
  ],
  "creativeRotation": {
    "creativeAssignments": [
      {
        "active": false,
        "applyEventTags": false,
        "clickThroughUrl": {},
        "companionCreativeOverrides": [
          {
            "clickThroughUrl": {},
            "creativeId": ""
          }
        ],
        "creativeGroupAssignments": [
          {}
        ],
        "creativeId": "",
        "creativeIdDimensionValue": {},
        "endTime": "",
        "richMediaExitOverrides": [
          {
            "clickThroughUrl": {},
            "enabled": false,
            "exitId": ""
          }
        ],
        "sequence": 0,
        "sslCompliant": false,
        "startTime": "",
        "weight": 0
      }
    ],
    "creativeOptimizationConfigurationId": "",
    "type": "",
    "weightCalculationStrategy": ""
  },
  "dayPartTargeting": {
    "daysOfWeek": [],
    "hoursOfDay": [],
    "userLocalTime": false
  },
  "defaultClickThroughEventTagProperties": {
    "defaultClickThroughEventTagId": "",
    "overrideInheritedEventTag": false
  },
  "deliverySchedule": {
    "frequencyCap": {
      "duration": "",
      "impressions": ""
    },
    "hardCutoff": false,
    "impressionRatio": "",
    "priority": ""
  },
  "dynamicClickTracker": false,
  "endTime": "",
  "eventTagOverrides": [
    {
      "enabled": false,
      "id": ""
    }
  ],
  "geoTargeting": {
    "cities": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "metroCode": "",
        "metroDmaId": "",
        "name": "",
        "regionCode": "",
        "regionDartId": ""
      }
    ],
    "countries": [
      {
        "countryCode": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "sslEnabled": false
      }
    ],
    "excludeCountries": false,
    "metros": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "dmaId": "",
        "kind": "",
        "metroCode": "",
        "name": ""
      }
    ],
    "postalCodes": [
      {
        "code": "",
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": ""
      }
    ],
    "regions": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "regionCode": ""
      }
    ]
  },
  "id": "",
  "idDimensionValue": {},
  "keyValueTargetingExpression": {
    "expression": ""
  },
  "kind": "",
  "languageTargeting": {
    "languages": [
      {
        "id": "",
        "kind": "",
        "languageCode": "",
        "name": ""
      }
    ]
  },
  "lastModifiedInfo": {},
  "name": "",
  "placementAssignments": [
    {
      "active": false,
      "placementId": "",
      "placementIdDimensionValue": {},
      "sslRequired": false
    }
  ],
  "remarketingListExpression": {
    "expression": ""
  },
  "size": {
    "height": 0,
    "iab": false,
    "id": "",
    "kind": "",
    "width": 0
  },
  "sslCompliant": false,
  "sslRequired": false,
  "startTime": "",
  "subaccountId": "",
  "targetingTemplateId": "",
  "technologyTargeting": {
    "browsers": [
      {
        "browserVersionId": "",
        "dartId": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": ""
      }
    ],
    "connectionTypes": [
      {
        "id": "",
        "kind": "",
        "name": ""
      }
    ],
    "mobileCarriers": [
      {
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": "",
        "name": ""
      }
    ],
    "operatingSystemVersions": [
      {
        "id": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": "",
        "operatingSystem": {
          "dartId": "",
          "desktop": false,
          "kind": "",
          "mobile": false,
          "name": ""
        }
      }
    ],
    "operatingSystems": [
      {}
    ],
    "platformTypes": [
      {
        "id": "",
        "kind": "",
        "name": ""
      }
    ]
  },
  "type": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/ads' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "active": false,
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "archived": false,
  "audienceSegmentId": "",
  "campaignId": "",
  "campaignIdDimensionValue": {},
  "clickThroughUrl": {
    "computedClickThroughUrl": "",
    "customClickThroughUrl": "",
    "defaultLandingPage": false,
    "landingPageId": ""
  },
  "clickThroughUrlSuffixProperties": {
    "clickThroughUrlSuffix": "",
    "overrideInheritedSuffix": false
  },
  "comments": "",
  "compatibility": "",
  "createInfo": {
    "time": ""
  },
  "creativeGroupAssignments": [
    {
      "creativeGroupId": "",
      "creativeGroupNumber": ""
    }
  ],
  "creativeRotation": {
    "creativeAssignments": [
      {
        "active": false,
        "applyEventTags": false,
        "clickThroughUrl": {},
        "companionCreativeOverrides": [
          {
            "clickThroughUrl": {},
            "creativeId": ""
          }
        ],
        "creativeGroupAssignments": [
          {}
        ],
        "creativeId": "",
        "creativeIdDimensionValue": {},
        "endTime": "",
        "richMediaExitOverrides": [
          {
            "clickThroughUrl": {},
            "enabled": false,
            "exitId": ""
          }
        ],
        "sequence": 0,
        "sslCompliant": false,
        "startTime": "",
        "weight": 0
      }
    ],
    "creativeOptimizationConfigurationId": "",
    "type": "",
    "weightCalculationStrategy": ""
  },
  "dayPartTargeting": {
    "daysOfWeek": [],
    "hoursOfDay": [],
    "userLocalTime": false
  },
  "defaultClickThroughEventTagProperties": {
    "defaultClickThroughEventTagId": "",
    "overrideInheritedEventTag": false
  },
  "deliverySchedule": {
    "frequencyCap": {
      "duration": "",
      "impressions": ""
    },
    "hardCutoff": false,
    "impressionRatio": "",
    "priority": ""
  },
  "dynamicClickTracker": false,
  "endTime": "",
  "eventTagOverrides": [
    {
      "enabled": false,
      "id": ""
    }
  ],
  "geoTargeting": {
    "cities": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "metroCode": "",
        "metroDmaId": "",
        "name": "",
        "regionCode": "",
        "regionDartId": ""
      }
    ],
    "countries": [
      {
        "countryCode": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "sslEnabled": false
      }
    ],
    "excludeCountries": false,
    "metros": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "dmaId": "",
        "kind": "",
        "metroCode": "",
        "name": ""
      }
    ],
    "postalCodes": [
      {
        "code": "",
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": ""
      }
    ],
    "regions": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "regionCode": ""
      }
    ]
  },
  "id": "",
  "idDimensionValue": {},
  "keyValueTargetingExpression": {
    "expression": ""
  },
  "kind": "",
  "languageTargeting": {
    "languages": [
      {
        "id": "",
        "kind": "",
        "languageCode": "",
        "name": ""
      }
    ]
  },
  "lastModifiedInfo": {},
  "name": "",
  "placementAssignments": [
    {
      "active": false,
      "placementId": "",
      "placementIdDimensionValue": {},
      "sslRequired": false
    }
  ],
  "remarketingListExpression": {
    "expression": ""
  },
  "size": {
    "height": 0,
    "iab": false,
    "id": "",
    "kind": "",
    "width": 0
  },
  "sslCompliant": false,
  "sslRequired": false,
  "startTime": "",
  "subaccountId": "",
  "targetingTemplateId": "",
  "technologyTargeting": {
    "browsers": [
      {
        "browserVersionId": "",
        "dartId": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": ""
      }
    ],
    "connectionTypes": [
      {
        "id": "",
        "kind": "",
        "name": ""
      }
    ],
    "mobileCarriers": [
      {
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": "",
        "name": ""
      }
    ],
    "operatingSystemVersions": [
      {
        "id": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": "",
        "operatingSystem": {
          "dartId": "",
          "desktop": false,
          "kind": "",
          "mobile": false,
          "name": ""
        }
      }
    ],
    "operatingSystems": [
      {}
    ],
    "platformTypes": [
      {
        "id": "",
        "kind": "",
        "name": ""
      }
    ]
  },
  "type": ""
}'
import http.client

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

payload = "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"audienceSegmentId\": \"\",\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"clickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"defaultLandingPage\": false,\n    \"landingPageId\": \"\"\n  },\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comments\": \"\",\n  \"compatibility\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupAssignments\": [\n    {\n      \"creativeGroupId\": \"\",\n      \"creativeGroupNumber\": \"\"\n    }\n  ],\n  \"creativeRotation\": {\n    \"creativeAssignments\": [\n      {\n        \"active\": false,\n        \"applyEventTags\": false,\n        \"clickThroughUrl\": {},\n        \"companionCreativeOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"creativeId\": \"\"\n          }\n        ],\n        \"creativeGroupAssignments\": [\n          {}\n        ],\n        \"creativeId\": \"\",\n        \"creativeIdDimensionValue\": {},\n        \"endTime\": \"\",\n        \"richMediaExitOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"enabled\": false,\n            \"exitId\": \"\"\n          }\n        ],\n        \"sequence\": 0,\n        \"sslCompliant\": false,\n        \"startTime\": \"\",\n        \"weight\": 0\n      }\n    ],\n    \"creativeOptimizationConfigurationId\": \"\",\n    \"type\": \"\",\n    \"weightCalculationStrategy\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"deliverySchedule\": {\n    \"frequencyCap\": {\n      \"duration\": \"\",\n      \"impressions\": \"\"\n    },\n    \"hardCutoff\": false,\n    \"impressionRatio\": \"\",\n    \"priority\": \"\"\n  },\n  \"dynamicClickTracker\": false,\n  \"endTime\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementAssignments\": [\n    {\n      \"active\": false,\n      \"placementId\": \"\",\n      \"placementIdDimensionValue\": {},\n      \"sslRequired\": false\n    }\n  ],\n  \"remarketingListExpression\": {\n    \"expression\": \"\"\n  },\n  \"size\": {\n    \"height\": 0,\n    \"iab\": false,\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"width\": 0\n  },\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"startTime\": \"\",\n  \"subaccountId\": \"\",\n  \"targetingTemplateId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"type\": \"\"\n}"

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

conn.request("PUT", "/baseUrl/userprofiles/:profileId/ads", payload, headers)

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

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

url = "{{baseUrl}}/userprofiles/:profileId/ads"

payload = {
    "accountId": "",
    "active": False,
    "advertiserId": "",
    "advertiserIdDimensionValue": {
        "dimensionName": "",
        "etag": "",
        "id": "",
        "kind": "",
        "matchType": "",
        "value": ""
    },
    "archived": False,
    "audienceSegmentId": "",
    "campaignId": "",
    "campaignIdDimensionValue": {},
    "clickThroughUrl": {
        "computedClickThroughUrl": "",
        "customClickThroughUrl": "",
        "defaultLandingPage": False,
        "landingPageId": ""
    },
    "clickThroughUrlSuffixProperties": {
        "clickThroughUrlSuffix": "",
        "overrideInheritedSuffix": False
    },
    "comments": "",
    "compatibility": "",
    "createInfo": { "time": "" },
    "creativeGroupAssignments": [
        {
            "creativeGroupId": "",
            "creativeGroupNumber": ""
        }
    ],
    "creativeRotation": {
        "creativeAssignments": [
            {
                "active": False,
                "applyEventTags": False,
                "clickThroughUrl": {},
                "companionCreativeOverrides": [
                    {
                        "clickThroughUrl": {},
                        "creativeId": ""
                    }
                ],
                "creativeGroupAssignments": [{}],
                "creativeId": "",
                "creativeIdDimensionValue": {},
                "endTime": "",
                "richMediaExitOverrides": [
                    {
                        "clickThroughUrl": {},
                        "enabled": False,
                        "exitId": ""
                    }
                ],
                "sequence": 0,
                "sslCompliant": False,
                "startTime": "",
                "weight": 0
            }
        ],
        "creativeOptimizationConfigurationId": "",
        "type": "",
        "weightCalculationStrategy": ""
    },
    "dayPartTargeting": {
        "daysOfWeek": [],
        "hoursOfDay": [],
        "userLocalTime": False
    },
    "defaultClickThroughEventTagProperties": {
        "defaultClickThroughEventTagId": "",
        "overrideInheritedEventTag": False
    },
    "deliverySchedule": {
        "frequencyCap": {
            "duration": "",
            "impressions": ""
        },
        "hardCutoff": False,
        "impressionRatio": "",
        "priority": ""
    },
    "dynamicClickTracker": False,
    "endTime": "",
    "eventTagOverrides": [
        {
            "enabled": False,
            "id": ""
        }
    ],
    "geoTargeting": {
        "cities": [
            {
                "countryCode": "",
                "countryDartId": "",
                "dartId": "",
                "kind": "",
                "metroCode": "",
                "metroDmaId": "",
                "name": "",
                "regionCode": "",
                "regionDartId": ""
            }
        ],
        "countries": [
            {
                "countryCode": "",
                "dartId": "",
                "kind": "",
                "name": "",
                "sslEnabled": False
            }
        ],
        "excludeCountries": False,
        "metros": [
            {
                "countryCode": "",
                "countryDartId": "",
                "dartId": "",
                "dmaId": "",
                "kind": "",
                "metroCode": "",
                "name": ""
            }
        ],
        "postalCodes": [
            {
                "code": "",
                "countryCode": "",
                "countryDartId": "",
                "id": "",
                "kind": ""
            }
        ],
        "regions": [
            {
                "countryCode": "",
                "countryDartId": "",
                "dartId": "",
                "kind": "",
                "name": "",
                "regionCode": ""
            }
        ]
    },
    "id": "",
    "idDimensionValue": {},
    "keyValueTargetingExpression": { "expression": "" },
    "kind": "",
    "languageTargeting": { "languages": [
            {
                "id": "",
                "kind": "",
                "languageCode": "",
                "name": ""
            }
        ] },
    "lastModifiedInfo": {},
    "name": "",
    "placementAssignments": [
        {
            "active": False,
            "placementId": "",
            "placementIdDimensionValue": {},
            "sslRequired": False
        }
    ],
    "remarketingListExpression": { "expression": "" },
    "size": {
        "height": 0,
        "iab": False,
        "id": "",
        "kind": "",
        "width": 0
    },
    "sslCompliant": False,
    "sslRequired": False,
    "startTime": "",
    "subaccountId": "",
    "targetingTemplateId": "",
    "technologyTargeting": {
        "browsers": [
            {
                "browserVersionId": "",
                "dartId": "",
                "kind": "",
                "majorVersion": "",
                "minorVersion": "",
                "name": ""
            }
        ],
        "connectionTypes": [
            {
                "id": "",
                "kind": "",
                "name": ""
            }
        ],
        "mobileCarriers": [
            {
                "countryCode": "",
                "countryDartId": "",
                "id": "",
                "kind": "",
                "name": ""
            }
        ],
        "operatingSystemVersions": [
            {
                "id": "",
                "kind": "",
                "majorVersion": "",
                "minorVersion": "",
                "name": "",
                "operatingSystem": {
                    "dartId": "",
                    "desktop": False,
                    "kind": "",
                    "mobile": False,
                    "name": ""
                }
            }
        ],
        "operatingSystems": [{}],
        "platformTypes": [
            {
                "id": "",
                "kind": "",
                "name": ""
            }
        ]
    },
    "type": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/userprofiles/:profileId/ads"

payload <- "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"audienceSegmentId\": \"\",\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"clickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"defaultLandingPage\": false,\n    \"landingPageId\": \"\"\n  },\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comments\": \"\",\n  \"compatibility\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupAssignments\": [\n    {\n      \"creativeGroupId\": \"\",\n      \"creativeGroupNumber\": \"\"\n    }\n  ],\n  \"creativeRotation\": {\n    \"creativeAssignments\": [\n      {\n        \"active\": false,\n        \"applyEventTags\": false,\n        \"clickThroughUrl\": {},\n        \"companionCreativeOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"creativeId\": \"\"\n          }\n        ],\n        \"creativeGroupAssignments\": [\n          {}\n        ],\n        \"creativeId\": \"\",\n        \"creativeIdDimensionValue\": {},\n        \"endTime\": \"\",\n        \"richMediaExitOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"enabled\": false,\n            \"exitId\": \"\"\n          }\n        ],\n        \"sequence\": 0,\n        \"sslCompliant\": false,\n        \"startTime\": \"\",\n        \"weight\": 0\n      }\n    ],\n    \"creativeOptimizationConfigurationId\": \"\",\n    \"type\": \"\",\n    \"weightCalculationStrategy\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"deliverySchedule\": {\n    \"frequencyCap\": {\n      \"duration\": \"\",\n      \"impressions\": \"\"\n    },\n    \"hardCutoff\": false,\n    \"impressionRatio\": \"\",\n    \"priority\": \"\"\n  },\n  \"dynamicClickTracker\": false,\n  \"endTime\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementAssignments\": [\n    {\n      \"active\": false,\n      \"placementId\": \"\",\n      \"placementIdDimensionValue\": {},\n      \"sslRequired\": false\n    }\n  ],\n  \"remarketingListExpression\": {\n    \"expression\": \"\"\n  },\n  \"size\": {\n    \"height\": 0,\n    \"iab\": false,\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"width\": 0\n  },\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"startTime\": \"\",\n  \"subaccountId\": \"\",\n  \"targetingTemplateId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"type\": \"\"\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/userprofiles/:profileId/ads")

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

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"audienceSegmentId\": \"\",\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"clickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"defaultLandingPage\": false,\n    \"landingPageId\": \"\"\n  },\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comments\": \"\",\n  \"compatibility\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupAssignments\": [\n    {\n      \"creativeGroupId\": \"\",\n      \"creativeGroupNumber\": \"\"\n    }\n  ],\n  \"creativeRotation\": {\n    \"creativeAssignments\": [\n      {\n        \"active\": false,\n        \"applyEventTags\": false,\n        \"clickThroughUrl\": {},\n        \"companionCreativeOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"creativeId\": \"\"\n          }\n        ],\n        \"creativeGroupAssignments\": [\n          {}\n        ],\n        \"creativeId\": \"\",\n        \"creativeIdDimensionValue\": {},\n        \"endTime\": \"\",\n        \"richMediaExitOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"enabled\": false,\n            \"exitId\": \"\"\n          }\n        ],\n        \"sequence\": 0,\n        \"sslCompliant\": false,\n        \"startTime\": \"\",\n        \"weight\": 0\n      }\n    ],\n    \"creativeOptimizationConfigurationId\": \"\",\n    \"type\": \"\",\n    \"weightCalculationStrategy\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"deliverySchedule\": {\n    \"frequencyCap\": {\n      \"duration\": \"\",\n      \"impressions\": \"\"\n    },\n    \"hardCutoff\": false,\n    \"impressionRatio\": \"\",\n    \"priority\": \"\"\n  },\n  \"dynamicClickTracker\": false,\n  \"endTime\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementAssignments\": [\n    {\n      \"active\": false,\n      \"placementId\": \"\",\n      \"placementIdDimensionValue\": {},\n      \"sslRequired\": false\n    }\n  ],\n  \"remarketingListExpression\": {\n    \"expression\": \"\"\n  },\n  \"size\": {\n    \"height\": 0,\n    \"iab\": false,\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"width\": 0\n  },\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"startTime\": \"\",\n  \"subaccountId\": \"\",\n  \"targetingTemplateId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"type\": \"\"\n}"

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

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

response = conn.put('/baseUrl/userprofiles/:profileId/ads') do |req|
  req.body = "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"audienceSegmentId\": \"\",\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"clickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"defaultLandingPage\": false,\n    \"landingPageId\": \"\"\n  },\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comments\": \"\",\n  \"compatibility\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupAssignments\": [\n    {\n      \"creativeGroupId\": \"\",\n      \"creativeGroupNumber\": \"\"\n    }\n  ],\n  \"creativeRotation\": {\n    \"creativeAssignments\": [\n      {\n        \"active\": false,\n        \"applyEventTags\": false,\n        \"clickThroughUrl\": {},\n        \"companionCreativeOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"creativeId\": \"\"\n          }\n        ],\n        \"creativeGroupAssignments\": [\n          {}\n        ],\n        \"creativeId\": \"\",\n        \"creativeIdDimensionValue\": {},\n        \"endTime\": \"\",\n        \"richMediaExitOverrides\": [\n          {\n            \"clickThroughUrl\": {},\n            \"enabled\": false,\n            \"exitId\": \"\"\n          }\n        ],\n        \"sequence\": 0,\n        \"sslCompliant\": false,\n        \"startTime\": \"\",\n        \"weight\": 0\n      }\n    ],\n    \"creativeOptimizationConfigurationId\": \"\",\n    \"type\": \"\",\n    \"weightCalculationStrategy\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"deliverySchedule\": {\n    \"frequencyCap\": {\n      \"duration\": \"\",\n      \"impressions\": \"\"\n    },\n    \"hardCutoff\": false,\n    \"impressionRatio\": \"\",\n    \"priority\": \"\"\n  },\n  \"dynamicClickTracker\": false,\n  \"endTime\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementAssignments\": [\n    {\n      \"active\": false,\n      \"placementId\": \"\",\n      \"placementIdDimensionValue\": {},\n      \"sslRequired\": false\n    }\n  ],\n  \"remarketingListExpression\": {\n    \"expression\": \"\"\n  },\n  \"size\": {\n    \"height\": 0,\n    \"iab\": false,\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"width\": 0\n  },\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"startTime\": \"\",\n  \"subaccountId\": \"\",\n  \"targetingTemplateId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"type\": \"\"\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}}/userprofiles/:profileId/ads";

    let payload = json!({
        "accountId": "",
        "active": false,
        "advertiserId": "",
        "advertiserIdDimensionValue": json!({
            "dimensionName": "",
            "etag": "",
            "id": "",
            "kind": "",
            "matchType": "",
            "value": ""
        }),
        "archived": false,
        "audienceSegmentId": "",
        "campaignId": "",
        "campaignIdDimensionValue": json!({}),
        "clickThroughUrl": json!({
            "computedClickThroughUrl": "",
            "customClickThroughUrl": "",
            "defaultLandingPage": false,
            "landingPageId": ""
        }),
        "clickThroughUrlSuffixProperties": json!({
            "clickThroughUrlSuffix": "",
            "overrideInheritedSuffix": false
        }),
        "comments": "",
        "compatibility": "",
        "createInfo": json!({"time": ""}),
        "creativeGroupAssignments": (
            json!({
                "creativeGroupId": "",
                "creativeGroupNumber": ""
            })
        ),
        "creativeRotation": json!({
            "creativeAssignments": (
                json!({
                    "active": false,
                    "applyEventTags": false,
                    "clickThroughUrl": json!({}),
                    "companionCreativeOverrides": (
                        json!({
                            "clickThroughUrl": json!({}),
                            "creativeId": ""
                        })
                    ),
                    "creativeGroupAssignments": (json!({})),
                    "creativeId": "",
                    "creativeIdDimensionValue": json!({}),
                    "endTime": "",
                    "richMediaExitOverrides": (
                        json!({
                            "clickThroughUrl": json!({}),
                            "enabled": false,
                            "exitId": ""
                        })
                    ),
                    "sequence": 0,
                    "sslCompliant": false,
                    "startTime": "",
                    "weight": 0
                })
            ),
            "creativeOptimizationConfigurationId": "",
            "type": "",
            "weightCalculationStrategy": ""
        }),
        "dayPartTargeting": json!({
            "daysOfWeek": (),
            "hoursOfDay": (),
            "userLocalTime": false
        }),
        "defaultClickThroughEventTagProperties": json!({
            "defaultClickThroughEventTagId": "",
            "overrideInheritedEventTag": false
        }),
        "deliverySchedule": json!({
            "frequencyCap": json!({
                "duration": "",
                "impressions": ""
            }),
            "hardCutoff": false,
            "impressionRatio": "",
            "priority": ""
        }),
        "dynamicClickTracker": false,
        "endTime": "",
        "eventTagOverrides": (
            json!({
                "enabled": false,
                "id": ""
            })
        ),
        "geoTargeting": json!({
            "cities": (
                json!({
                    "countryCode": "",
                    "countryDartId": "",
                    "dartId": "",
                    "kind": "",
                    "metroCode": "",
                    "metroDmaId": "",
                    "name": "",
                    "regionCode": "",
                    "regionDartId": ""
                })
            ),
            "countries": (
                json!({
                    "countryCode": "",
                    "dartId": "",
                    "kind": "",
                    "name": "",
                    "sslEnabled": false
                })
            ),
            "excludeCountries": false,
            "metros": (
                json!({
                    "countryCode": "",
                    "countryDartId": "",
                    "dartId": "",
                    "dmaId": "",
                    "kind": "",
                    "metroCode": "",
                    "name": ""
                })
            ),
            "postalCodes": (
                json!({
                    "code": "",
                    "countryCode": "",
                    "countryDartId": "",
                    "id": "",
                    "kind": ""
                })
            ),
            "regions": (
                json!({
                    "countryCode": "",
                    "countryDartId": "",
                    "dartId": "",
                    "kind": "",
                    "name": "",
                    "regionCode": ""
                })
            )
        }),
        "id": "",
        "idDimensionValue": json!({}),
        "keyValueTargetingExpression": json!({"expression": ""}),
        "kind": "",
        "languageTargeting": json!({"languages": (
                json!({
                    "id": "",
                    "kind": "",
                    "languageCode": "",
                    "name": ""
                })
            )}),
        "lastModifiedInfo": json!({}),
        "name": "",
        "placementAssignments": (
            json!({
                "active": false,
                "placementId": "",
                "placementIdDimensionValue": json!({}),
                "sslRequired": false
            })
        ),
        "remarketingListExpression": json!({"expression": ""}),
        "size": json!({
            "height": 0,
            "iab": false,
            "id": "",
            "kind": "",
            "width": 0
        }),
        "sslCompliant": false,
        "sslRequired": false,
        "startTime": "",
        "subaccountId": "",
        "targetingTemplateId": "",
        "technologyTargeting": json!({
            "browsers": (
                json!({
                    "browserVersionId": "",
                    "dartId": "",
                    "kind": "",
                    "majorVersion": "",
                    "minorVersion": "",
                    "name": ""
                })
            ),
            "connectionTypes": (
                json!({
                    "id": "",
                    "kind": "",
                    "name": ""
                })
            ),
            "mobileCarriers": (
                json!({
                    "countryCode": "",
                    "countryDartId": "",
                    "id": "",
                    "kind": "",
                    "name": ""
                })
            ),
            "operatingSystemVersions": (
                json!({
                    "id": "",
                    "kind": "",
                    "majorVersion": "",
                    "minorVersion": "",
                    "name": "",
                    "operatingSystem": json!({
                        "dartId": "",
                        "desktop": false,
                        "kind": "",
                        "mobile": false,
                        "name": ""
                    })
                })
            ),
            "operatingSystems": (json!({})),
            "platformTypes": (
                json!({
                    "id": "",
                    "kind": "",
                    "name": ""
                })
            )
        }),
        "type": ""
    });

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

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

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

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/userprofiles/:profileId/ads \
  --header 'content-type: application/json' \
  --data '{
  "accountId": "",
  "active": false,
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "archived": false,
  "audienceSegmentId": "",
  "campaignId": "",
  "campaignIdDimensionValue": {},
  "clickThroughUrl": {
    "computedClickThroughUrl": "",
    "customClickThroughUrl": "",
    "defaultLandingPage": false,
    "landingPageId": ""
  },
  "clickThroughUrlSuffixProperties": {
    "clickThroughUrlSuffix": "",
    "overrideInheritedSuffix": false
  },
  "comments": "",
  "compatibility": "",
  "createInfo": {
    "time": ""
  },
  "creativeGroupAssignments": [
    {
      "creativeGroupId": "",
      "creativeGroupNumber": ""
    }
  ],
  "creativeRotation": {
    "creativeAssignments": [
      {
        "active": false,
        "applyEventTags": false,
        "clickThroughUrl": {},
        "companionCreativeOverrides": [
          {
            "clickThroughUrl": {},
            "creativeId": ""
          }
        ],
        "creativeGroupAssignments": [
          {}
        ],
        "creativeId": "",
        "creativeIdDimensionValue": {},
        "endTime": "",
        "richMediaExitOverrides": [
          {
            "clickThroughUrl": {},
            "enabled": false,
            "exitId": ""
          }
        ],
        "sequence": 0,
        "sslCompliant": false,
        "startTime": "",
        "weight": 0
      }
    ],
    "creativeOptimizationConfigurationId": "",
    "type": "",
    "weightCalculationStrategy": ""
  },
  "dayPartTargeting": {
    "daysOfWeek": [],
    "hoursOfDay": [],
    "userLocalTime": false
  },
  "defaultClickThroughEventTagProperties": {
    "defaultClickThroughEventTagId": "",
    "overrideInheritedEventTag": false
  },
  "deliverySchedule": {
    "frequencyCap": {
      "duration": "",
      "impressions": ""
    },
    "hardCutoff": false,
    "impressionRatio": "",
    "priority": ""
  },
  "dynamicClickTracker": false,
  "endTime": "",
  "eventTagOverrides": [
    {
      "enabled": false,
      "id": ""
    }
  ],
  "geoTargeting": {
    "cities": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "metroCode": "",
        "metroDmaId": "",
        "name": "",
        "regionCode": "",
        "regionDartId": ""
      }
    ],
    "countries": [
      {
        "countryCode": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "sslEnabled": false
      }
    ],
    "excludeCountries": false,
    "metros": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "dmaId": "",
        "kind": "",
        "metroCode": "",
        "name": ""
      }
    ],
    "postalCodes": [
      {
        "code": "",
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": ""
      }
    ],
    "regions": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "regionCode": ""
      }
    ]
  },
  "id": "",
  "idDimensionValue": {},
  "keyValueTargetingExpression": {
    "expression": ""
  },
  "kind": "",
  "languageTargeting": {
    "languages": [
      {
        "id": "",
        "kind": "",
        "languageCode": "",
        "name": ""
      }
    ]
  },
  "lastModifiedInfo": {},
  "name": "",
  "placementAssignments": [
    {
      "active": false,
      "placementId": "",
      "placementIdDimensionValue": {},
      "sslRequired": false
    }
  ],
  "remarketingListExpression": {
    "expression": ""
  },
  "size": {
    "height": 0,
    "iab": false,
    "id": "",
    "kind": "",
    "width": 0
  },
  "sslCompliant": false,
  "sslRequired": false,
  "startTime": "",
  "subaccountId": "",
  "targetingTemplateId": "",
  "technologyTargeting": {
    "browsers": [
      {
        "browserVersionId": "",
        "dartId": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": ""
      }
    ],
    "connectionTypes": [
      {
        "id": "",
        "kind": "",
        "name": ""
      }
    ],
    "mobileCarriers": [
      {
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": "",
        "name": ""
      }
    ],
    "operatingSystemVersions": [
      {
        "id": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": "",
        "operatingSystem": {
          "dartId": "",
          "desktop": false,
          "kind": "",
          "mobile": false,
          "name": ""
        }
      }
    ],
    "operatingSystems": [
      {}
    ],
    "platformTypes": [
      {
        "id": "",
        "kind": "",
        "name": ""
      }
    ]
  },
  "type": ""
}'
echo '{
  "accountId": "",
  "active": false,
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "archived": false,
  "audienceSegmentId": "",
  "campaignId": "",
  "campaignIdDimensionValue": {},
  "clickThroughUrl": {
    "computedClickThroughUrl": "",
    "customClickThroughUrl": "",
    "defaultLandingPage": false,
    "landingPageId": ""
  },
  "clickThroughUrlSuffixProperties": {
    "clickThroughUrlSuffix": "",
    "overrideInheritedSuffix": false
  },
  "comments": "",
  "compatibility": "",
  "createInfo": {
    "time": ""
  },
  "creativeGroupAssignments": [
    {
      "creativeGroupId": "",
      "creativeGroupNumber": ""
    }
  ],
  "creativeRotation": {
    "creativeAssignments": [
      {
        "active": false,
        "applyEventTags": false,
        "clickThroughUrl": {},
        "companionCreativeOverrides": [
          {
            "clickThroughUrl": {},
            "creativeId": ""
          }
        ],
        "creativeGroupAssignments": [
          {}
        ],
        "creativeId": "",
        "creativeIdDimensionValue": {},
        "endTime": "",
        "richMediaExitOverrides": [
          {
            "clickThroughUrl": {},
            "enabled": false,
            "exitId": ""
          }
        ],
        "sequence": 0,
        "sslCompliant": false,
        "startTime": "",
        "weight": 0
      }
    ],
    "creativeOptimizationConfigurationId": "",
    "type": "",
    "weightCalculationStrategy": ""
  },
  "dayPartTargeting": {
    "daysOfWeek": [],
    "hoursOfDay": [],
    "userLocalTime": false
  },
  "defaultClickThroughEventTagProperties": {
    "defaultClickThroughEventTagId": "",
    "overrideInheritedEventTag": false
  },
  "deliverySchedule": {
    "frequencyCap": {
      "duration": "",
      "impressions": ""
    },
    "hardCutoff": false,
    "impressionRatio": "",
    "priority": ""
  },
  "dynamicClickTracker": false,
  "endTime": "",
  "eventTagOverrides": [
    {
      "enabled": false,
      "id": ""
    }
  ],
  "geoTargeting": {
    "cities": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "metroCode": "",
        "metroDmaId": "",
        "name": "",
        "regionCode": "",
        "regionDartId": ""
      }
    ],
    "countries": [
      {
        "countryCode": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "sslEnabled": false
      }
    ],
    "excludeCountries": false,
    "metros": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "dmaId": "",
        "kind": "",
        "metroCode": "",
        "name": ""
      }
    ],
    "postalCodes": [
      {
        "code": "",
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": ""
      }
    ],
    "regions": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "regionCode": ""
      }
    ]
  },
  "id": "",
  "idDimensionValue": {},
  "keyValueTargetingExpression": {
    "expression": ""
  },
  "kind": "",
  "languageTargeting": {
    "languages": [
      {
        "id": "",
        "kind": "",
        "languageCode": "",
        "name": ""
      }
    ]
  },
  "lastModifiedInfo": {},
  "name": "",
  "placementAssignments": [
    {
      "active": false,
      "placementId": "",
      "placementIdDimensionValue": {},
      "sslRequired": false
    }
  ],
  "remarketingListExpression": {
    "expression": ""
  },
  "size": {
    "height": 0,
    "iab": false,
    "id": "",
    "kind": "",
    "width": 0
  },
  "sslCompliant": false,
  "sslRequired": false,
  "startTime": "",
  "subaccountId": "",
  "targetingTemplateId": "",
  "technologyTargeting": {
    "browsers": [
      {
        "browserVersionId": "",
        "dartId": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": ""
      }
    ],
    "connectionTypes": [
      {
        "id": "",
        "kind": "",
        "name": ""
      }
    ],
    "mobileCarriers": [
      {
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": "",
        "name": ""
      }
    ],
    "operatingSystemVersions": [
      {
        "id": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": "",
        "operatingSystem": {
          "dartId": "",
          "desktop": false,
          "kind": "",
          "mobile": false,
          "name": ""
        }
      }
    ],
    "operatingSystems": [
      {}
    ],
    "platformTypes": [
      {
        "id": "",
        "kind": "",
        "name": ""
      }
    ]
  },
  "type": ""
}' |  \
  http PUT {{baseUrl}}/userprofiles/:profileId/ads \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "accountId": "",\n  "active": false,\n  "advertiserId": "",\n  "advertiserIdDimensionValue": {\n    "dimensionName": "",\n    "etag": "",\n    "id": "",\n    "kind": "",\n    "matchType": "",\n    "value": ""\n  },\n  "archived": false,\n  "audienceSegmentId": "",\n  "campaignId": "",\n  "campaignIdDimensionValue": {},\n  "clickThroughUrl": {\n    "computedClickThroughUrl": "",\n    "customClickThroughUrl": "",\n    "defaultLandingPage": false,\n    "landingPageId": ""\n  },\n  "clickThroughUrlSuffixProperties": {\n    "clickThroughUrlSuffix": "",\n    "overrideInheritedSuffix": false\n  },\n  "comments": "",\n  "compatibility": "",\n  "createInfo": {\n    "time": ""\n  },\n  "creativeGroupAssignments": [\n    {\n      "creativeGroupId": "",\n      "creativeGroupNumber": ""\n    }\n  ],\n  "creativeRotation": {\n    "creativeAssignments": [\n      {\n        "active": false,\n        "applyEventTags": false,\n        "clickThroughUrl": {},\n        "companionCreativeOverrides": [\n          {\n            "clickThroughUrl": {},\n            "creativeId": ""\n          }\n        ],\n        "creativeGroupAssignments": [\n          {}\n        ],\n        "creativeId": "",\n        "creativeIdDimensionValue": {},\n        "endTime": "",\n        "richMediaExitOverrides": [\n          {\n            "clickThroughUrl": {},\n            "enabled": false,\n            "exitId": ""\n          }\n        ],\n        "sequence": 0,\n        "sslCompliant": false,\n        "startTime": "",\n        "weight": 0\n      }\n    ],\n    "creativeOptimizationConfigurationId": "",\n    "type": "",\n    "weightCalculationStrategy": ""\n  },\n  "dayPartTargeting": {\n    "daysOfWeek": [],\n    "hoursOfDay": [],\n    "userLocalTime": false\n  },\n  "defaultClickThroughEventTagProperties": {\n    "defaultClickThroughEventTagId": "",\n    "overrideInheritedEventTag": false\n  },\n  "deliverySchedule": {\n    "frequencyCap": {\n      "duration": "",\n      "impressions": ""\n    },\n    "hardCutoff": false,\n    "impressionRatio": "",\n    "priority": ""\n  },\n  "dynamicClickTracker": false,\n  "endTime": "",\n  "eventTagOverrides": [\n    {\n      "enabled": false,\n      "id": ""\n    }\n  ],\n  "geoTargeting": {\n    "cities": [\n      {\n        "countryCode": "",\n        "countryDartId": "",\n        "dartId": "",\n        "kind": "",\n        "metroCode": "",\n        "metroDmaId": "",\n        "name": "",\n        "regionCode": "",\n        "regionDartId": ""\n      }\n    ],\n    "countries": [\n      {\n        "countryCode": "",\n        "dartId": "",\n        "kind": "",\n        "name": "",\n        "sslEnabled": false\n      }\n    ],\n    "excludeCountries": false,\n    "metros": [\n      {\n        "countryCode": "",\n        "countryDartId": "",\n        "dartId": "",\n        "dmaId": "",\n        "kind": "",\n        "metroCode": "",\n        "name": ""\n      }\n    ],\n    "postalCodes": [\n      {\n        "code": "",\n        "countryCode": "",\n        "countryDartId": "",\n        "id": "",\n        "kind": ""\n      }\n    ],\n    "regions": [\n      {\n        "countryCode": "",\n        "countryDartId": "",\n        "dartId": "",\n        "kind": "",\n        "name": "",\n        "regionCode": ""\n      }\n    ]\n  },\n  "id": "",\n  "idDimensionValue": {},\n  "keyValueTargetingExpression": {\n    "expression": ""\n  },\n  "kind": "",\n  "languageTargeting": {\n    "languages": [\n      {\n        "id": "",\n        "kind": "",\n        "languageCode": "",\n        "name": ""\n      }\n    ]\n  },\n  "lastModifiedInfo": {},\n  "name": "",\n  "placementAssignments": [\n    {\n      "active": false,\n      "placementId": "",\n      "placementIdDimensionValue": {},\n      "sslRequired": false\n    }\n  ],\n  "remarketingListExpression": {\n    "expression": ""\n  },\n  "size": {\n    "height": 0,\n    "iab": false,\n    "id": "",\n    "kind": "",\n    "width": 0\n  },\n  "sslCompliant": false,\n  "sslRequired": false,\n  "startTime": "",\n  "subaccountId": "",\n  "targetingTemplateId": "",\n  "technologyTargeting": {\n    "browsers": [\n      {\n        "browserVersionId": "",\n        "dartId": "",\n        "kind": "",\n        "majorVersion": "",\n        "minorVersion": "",\n        "name": ""\n      }\n    ],\n    "connectionTypes": [\n      {\n        "id": "",\n        "kind": "",\n        "name": ""\n      }\n    ],\n    "mobileCarriers": [\n      {\n        "countryCode": "",\n        "countryDartId": "",\n        "id": "",\n        "kind": "",\n        "name": ""\n      }\n    ],\n    "operatingSystemVersions": [\n      {\n        "id": "",\n        "kind": "",\n        "majorVersion": "",\n        "minorVersion": "",\n        "name": "",\n        "operatingSystem": {\n          "dartId": "",\n          "desktop": false,\n          "kind": "",\n          "mobile": false,\n          "name": ""\n        }\n      }\n    ],\n    "operatingSystems": [\n      {}\n    ],\n    "platformTypes": [\n      {\n        "id": "",\n        "kind": "",\n        "name": ""\n      }\n    ]\n  },\n  "type": ""\n}' \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/ads
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "accountId": "",
  "active": false,
  "advertiserId": "",
  "advertiserIdDimensionValue": [
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  ],
  "archived": false,
  "audienceSegmentId": "",
  "campaignId": "",
  "campaignIdDimensionValue": [],
  "clickThroughUrl": [
    "computedClickThroughUrl": "",
    "customClickThroughUrl": "",
    "defaultLandingPage": false,
    "landingPageId": ""
  ],
  "clickThroughUrlSuffixProperties": [
    "clickThroughUrlSuffix": "",
    "overrideInheritedSuffix": false
  ],
  "comments": "",
  "compatibility": "",
  "createInfo": ["time": ""],
  "creativeGroupAssignments": [
    [
      "creativeGroupId": "",
      "creativeGroupNumber": ""
    ]
  ],
  "creativeRotation": [
    "creativeAssignments": [
      [
        "active": false,
        "applyEventTags": false,
        "clickThroughUrl": [],
        "companionCreativeOverrides": [
          [
            "clickThroughUrl": [],
            "creativeId": ""
          ]
        ],
        "creativeGroupAssignments": [[]],
        "creativeId": "",
        "creativeIdDimensionValue": [],
        "endTime": "",
        "richMediaExitOverrides": [
          [
            "clickThroughUrl": [],
            "enabled": false,
            "exitId": ""
          ]
        ],
        "sequence": 0,
        "sslCompliant": false,
        "startTime": "",
        "weight": 0
      ]
    ],
    "creativeOptimizationConfigurationId": "",
    "type": "",
    "weightCalculationStrategy": ""
  ],
  "dayPartTargeting": [
    "daysOfWeek": [],
    "hoursOfDay": [],
    "userLocalTime": false
  ],
  "defaultClickThroughEventTagProperties": [
    "defaultClickThroughEventTagId": "",
    "overrideInheritedEventTag": false
  ],
  "deliverySchedule": [
    "frequencyCap": [
      "duration": "",
      "impressions": ""
    ],
    "hardCutoff": false,
    "impressionRatio": "",
    "priority": ""
  ],
  "dynamicClickTracker": false,
  "endTime": "",
  "eventTagOverrides": [
    [
      "enabled": false,
      "id": ""
    ]
  ],
  "geoTargeting": [
    "cities": [
      [
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "metroCode": "",
        "metroDmaId": "",
        "name": "",
        "regionCode": "",
        "regionDartId": ""
      ]
    ],
    "countries": [
      [
        "countryCode": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "sslEnabled": false
      ]
    ],
    "excludeCountries": false,
    "metros": [
      [
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "dmaId": "",
        "kind": "",
        "metroCode": "",
        "name": ""
      ]
    ],
    "postalCodes": [
      [
        "code": "",
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": ""
      ]
    ],
    "regions": [
      [
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "regionCode": ""
      ]
    ]
  ],
  "id": "",
  "idDimensionValue": [],
  "keyValueTargetingExpression": ["expression": ""],
  "kind": "",
  "languageTargeting": ["languages": [
      [
        "id": "",
        "kind": "",
        "languageCode": "",
        "name": ""
      ]
    ]],
  "lastModifiedInfo": [],
  "name": "",
  "placementAssignments": [
    [
      "active": false,
      "placementId": "",
      "placementIdDimensionValue": [],
      "sslRequired": false
    ]
  ],
  "remarketingListExpression": ["expression": ""],
  "size": [
    "height": 0,
    "iab": false,
    "id": "",
    "kind": "",
    "width": 0
  ],
  "sslCompliant": false,
  "sslRequired": false,
  "startTime": "",
  "subaccountId": "",
  "targetingTemplateId": "",
  "technologyTargeting": [
    "browsers": [
      [
        "browserVersionId": "",
        "dartId": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": ""
      ]
    ],
    "connectionTypes": [
      [
        "id": "",
        "kind": "",
        "name": ""
      ]
    ],
    "mobileCarriers": [
      [
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": "",
        "name": ""
      ]
    ],
    "operatingSystemVersions": [
      [
        "id": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": "",
        "operatingSystem": [
          "dartId": "",
          "desktop": false,
          "kind": "",
          "mobile": false,
          "name": ""
        ]
      ]
    ],
    "operatingSystems": [[]],
    "platformTypes": [
      [
        "id": "",
        "kind": "",
        "name": ""
      ]
    ]
  ],
  "type": ""
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/ads")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

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

dataTask.resume()
DELETE dfareporting.advertiserGroups.delete
{{baseUrl}}/userprofiles/:profileId/advertiserGroups/:id
QUERY PARAMS

profileId
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/advertiserGroups/:id");

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

(client/delete "{{baseUrl}}/userprofiles/:profileId/advertiserGroups/:id")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/advertiserGroups/:id"

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

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

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/advertiserGroups/:id"

	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/userprofiles/:profileId/advertiserGroups/:id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/userprofiles/:profileId/advertiserGroups/:id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/advertiserGroups/:id"))
    .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}}/userprofiles/:profileId/advertiserGroups/:id")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/userprofiles/:profileId/advertiserGroups/:id")
  .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}}/userprofiles/:profileId/advertiserGroups/:id');

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

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/userprofiles/:profileId/advertiserGroups/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/advertiserGroups/:id';
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}}/userprofiles/:profileId/advertiserGroups/:id',
  method: 'DELETE',
  headers: {}
};

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

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/advertiserGroups/:id")
  .delete(null)
  .build()

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

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/advertiserGroups/:id',
  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}}/userprofiles/:profileId/advertiserGroups/:id'
};

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

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

const req = unirest('DELETE', '{{baseUrl}}/userprofiles/:profileId/advertiserGroups/:id');

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}}/userprofiles/:profileId/advertiserGroups/:id'
};

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

const url = '{{baseUrl}}/userprofiles/:profileId/advertiserGroups/:id';
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}}/userprofiles/:profileId/advertiserGroups/:id"]
                                                       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}}/userprofiles/:profileId/advertiserGroups/:id" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/advertiserGroups/:id",
  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}}/userprofiles/:profileId/advertiserGroups/:id');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/advertiserGroups/:id');
$request->setMethod(HTTP_METH_DELETE);

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/advertiserGroups/:id');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/advertiserGroups/:id' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/advertiserGroups/:id' -Method DELETE 
import http.client

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

conn.request("DELETE", "/baseUrl/userprofiles/:profileId/advertiserGroups/:id")

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

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

url = "{{baseUrl}}/userprofiles/:profileId/advertiserGroups/:id"

response = requests.delete(url)

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

url <- "{{baseUrl}}/userprofiles/:profileId/advertiserGroups/:id"

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

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

url = URI("{{baseUrl}}/userprofiles/:profileId/advertiserGroups/:id")

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/userprofiles/:profileId/advertiserGroups/:id') do |req|
end

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

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/advertiserGroups/:id";

    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}}/userprofiles/:profileId/advertiserGroups/:id
http DELETE {{baseUrl}}/userprofiles/:profileId/advertiserGroups/:id
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/advertiserGroups/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/advertiserGroups/:id")! 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 dfareporting.advertiserGroups.get
{{baseUrl}}/userprofiles/:profileId/advertiserGroups/:id
QUERY PARAMS

profileId
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/advertiserGroups/:id");

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

(client/get "{{baseUrl}}/userprofiles/:profileId/advertiserGroups/:id")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/advertiserGroups/:id"

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

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

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/advertiserGroups/:id"

	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/userprofiles/:profileId/advertiserGroups/:id HTTP/1.1
Host: example.com

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/advertiserGroups/:id"))
    .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}}/userprofiles/:profileId/advertiserGroups/:id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/advertiserGroups/:id")
  .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}}/userprofiles/:profileId/advertiserGroups/:id');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/advertiserGroups/:id'
};

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/advertiserGroups/:id")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/advertiserGroups/:id',
  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}}/userprofiles/:profileId/advertiserGroups/:id'
};

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

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

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/advertiserGroups/:id');

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}}/userprofiles/:profileId/advertiserGroups/:id'
};

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

const url = '{{baseUrl}}/userprofiles/:profileId/advertiserGroups/:id';
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}}/userprofiles/:profileId/advertiserGroups/:id"]
                                                       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}}/userprofiles/:profileId/advertiserGroups/:id" in

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

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/advertiserGroups/:id');
$request->setMethod(HTTP_METH_GET);

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

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

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

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

conn.request("GET", "/baseUrl/userprofiles/:profileId/advertiserGroups/:id")

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

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

url = "{{baseUrl}}/userprofiles/:profileId/advertiserGroups/:id"

response = requests.get(url)

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

url <- "{{baseUrl}}/userprofiles/:profileId/advertiserGroups/:id"

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

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

url = URI("{{baseUrl}}/userprofiles/:profileId/advertiserGroups/:id")

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/userprofiles/:profileId/advertiserGroups/:id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/advertiserGroups/:id";

    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}}/userprofiles/:profileId/advertiserGroups/:id
http GET {{baseUrl}}/userprofiles/:profileId/advertiserGroups/:id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/advertiserGroups/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/advertiserGroups/:id")! 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 dfareporting.advertiserGroups.insert
{{baseUrl}}/userprofiles/:profileId/advertiserGroups
QUERY PARAMS

profileId
BODY json

{
  "accountId": "",
  "id": "",
  "kind": "",
  "name": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/advertiserGroups");

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  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}");

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

(client/post "{{baseUrl}}/userprofiles/:profileId/advertiserGroups" {:content-type :json
                                                                                     :form-params {:accountId ""
                                                                                                   :id ""
                                                                                                   :kind ""
                                                                                                   :name ""}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/advertiserGroups"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/userprofiles/:profileId/advertiserGroups"),
    Content = new StringContent("{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/advertiserGroups");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/advertiserGroups"

	payload := strings.NewReader("{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}")

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

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

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

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

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

}
POST /baseUrl/userprofiles/:profileId/advertiserGroups HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 61

{
  "accountId": "",
  "id": "",
  "kind": "",
  "name": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/userprofiles/:profileId/advertiserGroups")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/advertiserGroups"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/advertiserGroups")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/userprofiles/:profileId/advertiserGroups")
  .header("content-type", "application/json")
  .body("{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  accountId: '',
  id: '',
  kind: '',
  name: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/userprofiles/:profileId/advertiserGroups');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/userprofiles/:profileId/advertiserGroups',
  headers: {'content-type': 'application/json'},
  data: {accountId: '', id: '', kind: '', name: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/advertiserGroups';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","id":"","kind":"","name":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/userprofiles/:profileId/advertiserGroups',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "accountId": "",\n  "id": "",\n  "kind": "",\n  "name": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/advertiserGroups")
  .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/userprofiles/:profileId/advertiserGroups',
  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({accountId: '', id: '', kind: '', name: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/userprofiles/:profileId/advertiserGroups',
  headers: {'content-type': 'application/json'},
  body: {accountId: '', id: '', kind: '', name: ''},
  json: true
};

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

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

const req = unirest('POST', '{{baseUrl}}/userprofiles/:profileId/advertiserGroups');

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

req.type('json');
req.send({
  accountId: '',
  id: '',
  kind: '',
  name: ''
});

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

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/userprofiles/:profileId/advertiserGroups',
  headers: {'content-type': 'application/json'},
  data: {accountId: '', id: '', kind: '', name: ''}
};

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

const url = '{{baseUrl}}/userprofiles/:profileId/advertiserGroups';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","id":"","kind":"","name":""}'
};

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

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"accountId": @"",
                              @"id": @"",
                              @"kind": @"",
                              @"name": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/userprofiles/:profileId/advertiserGroups"]
                                                       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}}/userprofiles/:profileId/advertiserGroups" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/advertiserGroups",
  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([
    'accountId' => '',
    'id' => '',
    'kind' => '',
    'name' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/userprofiles/:profileId/advertiserGroups', [
  'body' => '{
  "accountId": "",
  "id": "",
  "kind": "",
  "name": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/advertiserGroups');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'accountId' => '',
  'id' => '',
  'kind' => '',
  'name' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'accountId' => '',
  'id' => '',
  'kind' => '',
  'name' => ''
]));
$request->setRequestUrl('{{baseUrl}}/userprofiles/:profileId/advertiserGroups');
$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}}/userprofiles/:profileId/advertiserGroups' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "id": "",
  "kind": "",
  "name": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/advertiserGroups' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "id": "",
  "kind": "",
  "name": ""
}'
import http.client

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

payload = "{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"

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

conn.request("POST", "/baseUrl/userprofiles/:profileId/advertiserGroups", payload, headers)

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

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

url = "{{baseUrl}}/userprofiles/:profileId/advertiserGroups"

payload = {
    "accountId": "",
    "id": "",
    "kind": "",
    "name": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/userprofiles/:profileId/advertiserGroups"

payload <- "{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/userprofiles/:profileId/advertiserGroups")

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  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"

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

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

response = conn.post('/baseUrl/userprofiles/:profileId/advertiserGroups') do |req|
  req.body = "{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"
end

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

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

    let payload = json!({
        "accountId": "",
        "id": "",
        "kind": "",
        "name": ""
    });

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

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

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

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/userprofiles/:profileId/advertiserGroups \
  --header 'content-type: application/json' \
  --data '{
  "accountId": "",
  "id": "",
  "kind": "",
  "name": ""
}'
echo '{
  "accountId": "",
  "id": "",
  "kind": "",
  "name": ""
}' |  \
  http POST {{baseUrl}}/userprofiles/:profileId/advertiserGroups \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "accountId": "",\n  "id": "",\n  "kind": "",\n  "name": ""\n}' \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/advertiserGroups
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "accountId": "",
  "id": "",
  "kind": "",
  "name": ""
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/advertiserGroups")! 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 dfareporting.advertiserGroups.list
{{baseUrl}}/userprofiles/:profileId/advertiserGroups
QUERY PARAMS

profileId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/advertiserGroups");

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

(client/get "{{baseUrl}}/userprofiles/:profileId/advertiserGroups")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/advertiserGroups"

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

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

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/advertiserGroups"

	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/userprofiles/:profileId/advertiserGroups HTTP/1.1
Host: example.com

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

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

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/advertiserGroups'
};

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/advertiserGroups")
  .get()
  .build()

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

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

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

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

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/advertiserGroups');

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}}/userprofiles/:profileId/advertiserGroups'
};

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

const url = '{{baseUrl}}/userprofiles/:profileId/advertiserGroups';
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}}/userprofiles/:profileId/advertiserGroups"]
                                                       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}}/userprofiles/:profileId/advertiserGroups" in

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

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/advertiserGroups');
$request->setMethod(HTTP_METH_GET);

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

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

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

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

conn.request("GET", "/baseUrl/userprofiles/:profileId/advertiserGroups")

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

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

url = "{{baseUrl}}/userprofiles/:profileId/advertiserGroups"

response = requests.get(url)

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

url <- "{{baseUrl}}/userprofiles/:profileId/advertiserGroups"

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

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

url = URI("{{baseUrl}}/userprofiles/:profileId/advertiserGroups")

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/userprofiles/:profileId/advertiserGroups') do |req|
end

puts response.status
puts response.body
use reqwest;

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

    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}}/userprofiles/:profileId/advertiserGroups
http GET {{baseUrl}}/userprofiles/:profileId/advertiserGroups
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/advertiserGroups
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/advertiserGroups")! 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 dfareporting.advertiserGroups.patch
{{baseUrl}}/userprofiles/:profileId/advertiserGroups
QUERY PARAMS

id
profileId
BODY json

{
  "accountId": "",
  "id": "",
  "kind": "",
  "name": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/advertiserGroups?id=");

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  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}");

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

(client/patch "{{baseUrl}}/userprofiles/:profileId/advertiserGroups" {:query-params {:id ""}
                                                                                      :content-type :json
                                                                                      :form-params {:accountId ""
                                                                                                    :id ""
                                                                                                    :kind ""
                                                                                                    :name ""}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/advertiserGroups?id="
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"

response = HTTP::Client.patch url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Patch,
    RequestUri = new Uri("{{baseUrl}}/userprofiles/:profileId/advertiserGroups?id="),
    Content = new StringContent("{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/advertiserGroups?id=");
var request = new RestRequest("", Method.Patch);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/advertiserGroups?id="

	payload := strings.NewReader("{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}")

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

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

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

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

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

}
PATCH /baseUrl/userprofiles/:profileId/advertiserGroups?id= HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 61

{
  "accountId": "",
  "id": "",
  "kind": "",
  "name": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/userprofiles/:profileId/advertiserGroups?id=")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/advertiserGroups?id="))
    .header("content-type", "application/json")
    .method("PATCH", HttpRequest.BodyPublishers.ofString("{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/advertiserGroups?id=")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/userprofiles/:profileId/advertiserGroups?id=")
  .header("content-type", "application/json")
  .body("{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  accountId: '',
  id: '',
  kind: '',
  name: ''
});

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

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

xhr.open('PATCH', '{{baseUrl}}/userprofiles/:profileId/advertiserGroups?id=');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/userprofiles/:profileId/advertiserGroups',
  params: {id: ''},
  headers: {'content-type': 'application/json'},
  data: {accountId: '', id: '', kind: '', name: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/advertiserGroups?id=';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","id":"","kind":"","name":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/userprofiles/:profileId/advertiserGroups?id=',
  method: 'PATCH',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "accountId": "",\n  "id": "",\n  "kind": "",\n  "name": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/advertiserGroups?id=")
  .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/userprofiles/:profileId/advertiserGroups?id=',
  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({accountId: '', id: '', kind: '', name: ''}));
req.end();
const request = require('request');

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/userprofiles/:profileId/advertiserGroups',
  qs: {id: ''},
  headers: {'content-type': 'application/json'},
  body: {accountId: '', id: '', kind: '', name: ''},
  json: true
};

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

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

const req = unirest('PATCH', '{{baseUrl}}/userprofiles/:profileId/advertiserGroups');

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

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

req.type('json');
req.send({
  accountId: '',
  id: '',
  kind: '',
  name: ''
});

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

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

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/userprofiles/:profileId/advertiserGroups',
  params: {id: ''},
  headers: {'content-type': 'application/json'},
  data: {accountId: '', id: '', kind: '', name: ''}
};

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

const url = '{{baseUrl}}/userprofiles/:profileId/advertiserGroups?id=';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","id":"","kind":"","name":""}'
};

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

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"accountId": @"",
                              @"id": @"",
                              @"kind": @"",
                              @"name": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/userprofiles/:profileId/advertiserGroups?id="]
                                                       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}}/userprofiles/:profileId/advertiserGroups?id=" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}" in

Client.call ~headers ~body `PATCH uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/advertiserGroups?id=",
  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([
    'accountId' => '',
    'id' => '',
    'kind' => '',
    'name' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PATCH', '{{baseUrl}}/userprofiles/:profileId/advertiserGroups?id=', [
  'body' => '{
  "accountId": "",
  "id": "",
  "kind": "",
  "name": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/advertiserGroups');
$request->setMethod(HttpRequest::HTTP_METH_PATCH);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'accountId' => '',
  'id' => '',
  'kind' => '',
  'name' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'accountId' => '',
  'id' => '',
  'kind' => '',
  'name' => ''
]));
$request->setRequestUrl('{{baseUrl}}/userprofiles/:profileId/advertiserGroups');
$request->setRequestMethod('PATCH');
$request->setBody($body);

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

$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}}/userprofiles/:profileId/advertiserGroups?id=' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "id": "",
  "kind": "",
  "name": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/advertiserGroups?id=' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "id": "",
  "kind": "",
  "name": ""
}'
import http.client

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

payload = "{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"

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

conn.request("PATCH", "/baseUrl/userprofiles/:profileId/advertiserGroups?id=", payload, headers)

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

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

url = "{{baseUrl}}/userprofiles/:profileId/advertiserGroups"

querystring = {"id":""}

payload = {
    "accountId": "",
    "id": "",
    "kind": "",
    "name": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/userprofiles/:profileId/advertiserGroups"

queryString <- list(id = "")

payload <- "{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/userprofiles/:profileId/advertiserGroups?id=")

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  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"

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

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

response = conn.patch('/baseUrl/userprofiles/:profileId/advertiserGroups') do |req|
  req.params['id'] = ''
  req.body = "{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"
end

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

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

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

    let payload = json!({
        "accountId": "",
        "id": "",
        "kind": "",
        "name": ""
    });

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

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

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

    dbg!(results);
}
curl --request PATCH \
  --url '{{baseUrl}}/userprofiles/:profileId/advertiserGroups?id=' \
  --header 'content-type: application/json' \
  --data '{
  "accountId": "",
  "id": "",
  "kind": "",
  "name": ""
}'
echo '{
  "accountId": "",
  "id": "",
  "kind": "",
  "name": ""
}' |  \
  http PATCH '{{baseUrl}}/userprofiles/:profileId/advertiserGroups?id=' \
  content-type:application/json
wget --quiet \
  --method PATCH \
  --header 'content-type: application/json' \
  --body-data '{\n  "accountId": "",\n  "id": "",\n  "kind": "",\n  "name": ""\n}' \
  --output-document \
  - '{{baseUrl}}/userprofiles/:profileId/advertiserGroups?id='
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "accountId": "",
  "id": "",
  "kind": "",
  "name": ""
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/advertiserGroups?id=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PATCH"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

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

dataTask.resume()
PUT dfareporting.advertiserGroups.update
{{baseUrl}}/userprofiles/:profileId/advertiserGroups
QUERY PARAMS

profileId
BODY json

{
  "accountId": "",
  "id": "",
  "kind": "",
  "name": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/advertiserGroups");

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  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}");

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

(client/put "{{baseUrl}}/userprofiles/:profileId/advertiserGroups" {:content-type :json
                                                                                    :form-params {:accountId ""
                                                                                                  :id ""
                                                                                                  :kind ""
                                                                                                  :name ""}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/advertiserGroups"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/userprofiles/:profileId/advertiserGroups"),
    Content = new StringContent("{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/advertiserGroups");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/advertiserGroups"

	payload := strings.NewReader("{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}")

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

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

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

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

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

}
PUT /baseUrl/userprofiles/:profileId/advertiserGroups HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 61

{
  "accountId": "",
  "id": "",
  "kind": "",
  "name": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/userprofiles/:profileId/advertiserGroups")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/advertiserGroups"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/advertiserGroups")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/userprofiles/:profileId/advertiserGroups")
  .header("content-type", "application/json")
  .body("{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  accountId: '',
  id: '',
  kind: '',
  name: ''
});

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

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

xhr.open('PUT', '{{baseUrl}}/userprofiles/:profileId/advertiserGroups');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/userprofiles/:profileId/advertiserGroups',
  headers: {'content-type': 'application/json'},
  data: {accountId: '', id: '', kind: '', name: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/advertiserGroups';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","id":"","kind":"","name":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/userprofiles/:profileId/advertiserGroups',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "accountId": "",\n  "id": "",\n  "kind": "",\n  "name": ""\n}'
};

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

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/advertiserGroups")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

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

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/advertiserGroups',
  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({accountId: '', id: '', kind: '', name: ''}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/userprofiles/:profileId/advertiserGroups',
  headers: {'content-type': 'application/json'},
  body: {accountId: '', id: '', kind: '', name: ''},
  json: true
};

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

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

const req = unirest('PUT', '{{baseUrl}}/userprofiles/:profileId/advertiserGroups');

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

req.type('json');
req.send({
  accountId: '',
  id: '',
  kind: '',
  name: ''
});

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

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

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/userprofiles/:profileId/advertiserGroups',
  headers: {'content-type': 'application/json'},
  data: {accountId: '', id: '', kind: '', name: ''}
};

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

const url = '{{baseUrl}}/userprofiles/:profileId/advertiserGroups';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","id":"","kind":"","name":""}'
};

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

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"accountId": @"",
                              @"id": @"",
                              @"kind": @"",
                              @"name": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/userprofiles/:profileId/advertiserGroups"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

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

let uri = Uri.of_string "{{baseUrl}}/userprofiles/:profileId/advertiserGroups" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/advertiserGroups",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'accountId' => '',
    'id' => '',
    'kind' => '',
    'name' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

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

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/userprofiles/:profileId/advertiserGroups', [
  'body' => '{
  "accountId": "",
  "id": "",
  "kind": "",
  "name": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/advertiserGroups');
$request->setMethod(HTTP_METH_PUT);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'accountId' => '',
  'id' => '',
  'kind' => '',
  'name' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'accountId' => '',
  'id' => '',
  'kind' => '',
  'name' => ''
]));
$request->setRequestUrl('{{baseUrl}}/userprofiles/:profileId/advertiserGroups');
$request->setRequestMethod('PUT');
$request->setBody($body);

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

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

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/advertiserGroups' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "id": "",
  "kind": "",
  "name": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/advertiserGroups' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "id": "",
  "kind": "",
  "name": ""
}'
import http.client

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

payload = "{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"

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

conn.request("PUT", "/baseUrl/userprofiles/:profileId/advertiserGroups", payload, headers)

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

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

url = "{{baseUrl}}/userprofiles/:profileId/advertiserGroups"

payload = {
    "accountId": "",
    "id": "",
    "kind": "",
    "name": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/userprofiles/:profileId/advertiserGroups"

payload <- "{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/userprofiles/:profileId/advertiserGroups")

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

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"

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

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

response = conn.put('/baseUrl/userprofiles/:profileId/advertiserGroups') do |req|
  req.body = "{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"
end

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

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

    let payload = json!({
        "accountId": "",
        "id": "",
        "kind": "",
        "name": ""
    });

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

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

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

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/userprofiles/:profileId/advertiserGroups \
  --header 'content-type: application/json' \
  --data '{
  "accountId": "",
  "id": "",
  "kind": "",
  "name": ""
}'
echo '{
  "accountId": "",
  "id": "",
  "kind": "",
  "name": ""
}' |  \
  http PUT {{baseUrl}}/userprofiles/:profileId/advertiserGroups \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "accountId": "",\n  "id": "",\n  "kind": "",\n  "name": ""\n}' \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/advertiserGroups
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "accountId": "",
  "id": "",
  "kind": "",
  "name": ""
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/advertiserGroups")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

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

dataTask.resume()
GET dfareporting.advertiserLandingPages.get
{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages/:id
QUERY PARAMS

profileId
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages/:id");

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

(client/get "{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages/:id")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages/:id"

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

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

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages/:id"

	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/userprofiles/:profileId/advertiserLandingPages/:id HTTP/1.1
Host: example.com

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

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages/:id"))
    .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}}/userprofiles/:profileId/advertiserLandingPages/:id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages/:id")
  .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}}/userprofiles/:profileId/advertiserLandingPages/:id');

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages/:id'
};

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages/:id")
  .get()
  .build()

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

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/advertiserLandingPages/:id',
  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}}/userprofiles/:profileId/advertiserLandingPages/:id'
};

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

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

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages/:id');

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}}/userprofiles/:profileId/advertiserLandingPages/:id'
};

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

const url = '{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages/:id';
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}}/userprofiles/:profileId/advertiserLandingPages/:id"]
                                                       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}}/userprofiles/:profileId/advertiserLandingPages/:id" in

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

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages/:id');
$request->setMethod(HTTP_METH_GET);

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

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

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

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

conn.request("GET", "/baseUrl/userprofiles/:profileId/advertiserLandingPages/:id")

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

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

url = "{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages/:id"

response = requests.get(url)

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

url <- "{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages/:id"

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

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

url = URI("{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages/:id")

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/userprofiles/:profileId/advertiserLandingPages/:id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages/:id";

    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}}/userprofiles/:profileId/advertiserLandingPages/:id
http GET {{baseUrl}}/userprofiles/:profileId/advertiserLandingPages/:id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/advertiserLandingPages/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages/:id")! 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 dfareporting.advertiserLandingPages.insert
{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages
QUERY PARAMS

profileId
BODY json

{
  "advertiserId": "",
  "archived": false,
  "deepLinks": [
    {
      "appUrl": "",
      "fallbackUrl": "",
      "kind": "",
      "mobileApp": {
        "directory": "",
        "id": "",
        "kind": "",
        "publisherName": "",
        "title": ""
      },
      "remarketingListIds": []
    }
  ],
  "id": "",
  "kind": "",
  "name": "",
  "url": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages");

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  \"archived\": false,\n  \"deepLinks\": [\n    {\n      \"appUrl\": \"\",\n      \"fallbackUrl\": \"\",\n      \"kind\": \"\",\n      \"mobileApp\": {\n        \"directory\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"publisherName\": \"\",\n        \"title\": \"\"\n      },\n      \"remarketingListIds\": []\n    }\n  ],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"url\": \"\"\n}");

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

(client/post "{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages" {:content-type :json
                                                                                           :form-params {:advertiserId ""
                                                                                                         :archived false
                                                                                                         :deepLinks [{:appUrl ""
                                                                                                                      :fallbackUrl ""
                                                                                                                      :kind ""
                                                                                                                      :mobileApp {:directory ""
                                                                                                                                  :id ""
                                                                                                                                  :kind ""
                                                                                                                                  :publisherName ""
                                                                                                                                  :title ""}
                                                                                                                      :remarketingListIds []}]
                                                                                                         :id ""
                                                                                                         :kind ""
                                                                                                         :name ""
                                                                                                         :url ""}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"advertiserId\": \"\",\n  \"archived\": false,\n  \"deepLinks\": [\n    {\n      \"appUrl\": \"\",\n      \"fallbackUrl\": \"\",\n      \"kind\": \"\",\n      \"mobileApp\": {\n        \"directory\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"publisherName\": \"\",\n        \"title\": \"\"\n      },\n      \"remarketingListIds\": []\n    }\n  ],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"url\": \"\"\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}}/userprofiles/:profileId/advertiserLandingPages"),
    Content = new StringContent("{\n  \"advertiserId\": \"\",\n  \"archived\": false,\n  \"deepLinks\": [\n    {\n      \"appUrl\": \"\",\n      \"fallbackUrl\": \"\",\n      \"kind\": \"\",\n      \"mobileApp\": {\n        \"directory\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"publisherName\": \"\",\n        \"title\": \"\"\n      },\n      \"remarketingListIds\": []\n    }\n  ],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"url\": \"\"\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}}/userprofiles/:profileId/advertiserLandingPages");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"advertiserId\": \"\",\n  \"archived\": false,\n  \"deepLinks\": [\n    {\n      \"appUrl\": \"\",\n      \"fallbackUrl\": \"\",\n      \"kind\": \"\",\n      \"mobileApp\": {\n        \"directory\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"publisherName\": \"\",\n        \"title\": \"\"\n      },\n      \"remarketingListIds\": []\n    }\n  ],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"url\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages"

	payload := strings.NewReader("{\n  \"advertiserId\": \"\",\n  \"archived\": false,\n  \"deepLinks\": [\n    {\n      \"appUrl\": \"\",\n      \"fallbackUrl\": \"\",\n      \"kind\": \"\",\n      \"mobileApp\": {\n        \"directory\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"publisherName\": \"\",\n        \"title\": \"\"\n      },\n      \"remarketingListIds\": []\n    }\n  ],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"url\": \"\"\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/userprofiles/:profileId/advertiserLandingPages HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 368

{
  "advertiserId": "",
  "archived": false,
  "deepLinks": [
    {
      "appUrl": "",
      "fallbackUrl": "",
      "kind": "",
      "mobileApp": {
        "directory": "",
        "id": "",
        "kind": "",
        "publisherName": "",
        "title": ""
      },
      "remarketingListIds": []
    }
  ],
  "id": "",
  "kind": "",
  "name": "",
  "url": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"advertiserId\": \"\",\n  \"archived\": false,\n  \"deepLinks\": [\n    {\n      \"appUrl\": \"\",\n      \"fallbackUrl\": \"\",\n      \"kind\": \"\",\n      \"mobileApp\": {\n        \"directory\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"publisherName\": \"\",\n        \"title\": \"\"\n      },\n      \"remarketingListIds\": []\n    }\n  ],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"url\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"advertiserId\": \"\",\n  \"archived\": false,\n  \"deepLinks\": [\n    {\n      \"appUrl\": \"\",\n      \"fallbackUrl\": \"\",\n      \"kind\": \"\",\n      \"mobileApp\": {\n        \"directory\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"publisherName\": \"\",\n        \"title\": \"\"\n      },\n      \"remarketingListIds\": []\n    }\n  ],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"url\": \"\"\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  \"archived\": false,\n  \"deepLinks\": [\n    {\n      \"appUrl\": \"\",\n      \"fallbackUrl\": \"\",\n      \"kind\": \"\",\n      \"mobileApp\": {\n        \"directory\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"publisherName\": \"\",\n        \"title\": \"\"\n      },\n      \"remarketingListIds\": []\n    }\n  ],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"url\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages")
  .header("content-type", "application/json")
  .body("{\n  \"advertiserId\": \"\",\n  \"archived\": false,\n  \"deepLinks\": [\n    {\n      \"appUrl\": \"\",\n      \"fallbackUrl\": \"\",\n      \"kind\": \"\",\n      \"mobileApp\": {\n        \"directory\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"publisherName\": \"\",\n        \"title\": \"\"\n      },\n      \"remarketingListIds\": []\n    }\n  ],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"url\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  advertiserId: '',
  archived: false,
  deepLinks: [
    {
      appUrl: '',
      fallbackUrl: '',
      kind: '',
      mobileApp: {
        directory: '',
        id: '',
        kind: '',
        publisherName: '',
        title: ''
      },
      remarketingListIds: []
    }
  ],
  id: '',
  kind: '',
  name: '',
  url: ''
});

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

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

xhr.open('POST', '{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'POST',
  url: '{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages',
  headers: {'content-type': 'application/json'},
  data: {
    advertiserId: '',
    archived: false,
    deepLinks: [
      {
        appUrl: '',
        fallbackUrl: '',
        kind: '',
        mobileApp: {directory: '', id: '', kind: '', publisherName: '', title: ''},
        remarketingListIds: []
      }
    ],
    id: '',
    kind: '',
    name: '',
    url: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"advertiserId":"","archived":false,"deepLinks":[{"appUrl":"","fallbackUrl":"","kind":"","mobileApp":{"directory":"","id":"","kind":"","publisherName":"","title":""},"remarketingListIds":[]}],"id":"","kind":"","name":"","url":""}'
};

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}}/userprofiles/:profileId/advertiserLandingPages',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "advertiserId": "",\n  "archived": false,\n  "deepLinks": [\n    {\n      "appUrl": "",\n      "fallbackUrl": "",\n      "kind": "",\n      "mobileApp": {\n        "directory": "",\n        "id": "",\n        "kind": "",\n        "publisherName": "",\n        "title": ""\n      },\n      "remarketingListIds": []\n    }\n  ],\n  "id": "",\n  "kind": "",\n  "name": "",\n  "url": ""\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  \"archived\": false,\n  \"deepLinks\": [\n    {\n      \"appUrl\": \"\",\n      \"fallbackUrl\": \"\",\n      \"kind\": \"\",\n      \"mobileApp\": {\n        \"directory\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"publisherName\": \"\",\n        \"title\": \"\"\n      },\n      \"remarketingListIds\": []\n    }\n  ],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"url\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages")
  .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/userprofiles/:profileId/advertiserLandingPages',
  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: '',
  archived: false,
  deepLinks: [
    {
      appUrl: '',
      fallbackUrl: '',
      kind: '',
      mobileApp: {directory: '', id: '', kind: '', publisherName: '', title: ''},
      remarketingListIds: []
    }
  ],
  id: '',
  kind: '',
  name: '',
  url: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages',
  headers: {'content-type': 'application/json'},
  body: {
    advertiserId: '',
    archived: false,
    deepLinks: [
      {
        appUrl: '',
        fallbackUrl: '',
        kind: '',
        mobileApp: {directory: '', id: '', kind: '', publisherName: '', title: ''},
        remarketingListIds: []
      }
    ],
    id: '',
    kind: '',
    name: '',
    url: ''
  },
  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}}/userprofiles/:profileId/advertiserLandingPages');

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

req.type('json');
req.send({
  advertiserId: '',
  archived: false,
  deepLinks: [
    {
      appUrl: '',
      fallbackUrl: '',
      kind: '',
      mobileApp: {
        directory: '',
        id: '',
        kind: '',
        publisherName: '',
        title: ''
      },
      remarketingListIds: []
    }
  ],
  id: '',
  kind: '',
  name: '',
  url: ''
});

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}}/userprofiles/:profileId/advertiserLandingPages',
  headers: {'content-type': 'application/json'},
  data: {
    advertiserId: '',
    archived: false,
    deepLinks: [
      {
        appUrl: '',
        fallbackUrl: '',
        kind: '',
        mobileApp: {directory: '', id: '', kind: '', publisherName: '', title: ''},
        remarketingListIds: []
      }
    ],
    id: '',
    kind: '',
    name: '',
    url: ''
  }
};

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

const url = '{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"advertiserId":"","archived":false,"deepLinks":[{"appUrl":"","fallbackUrl":"","kind":"","mobileApp":{"directory":"","id":"","kind":"","publisherName":"","title":""},"remarketingListIds":[]}],"id":"","kind":"","name":"","url":""}'
};

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": @"",
                              @"archived": @NO,
                              @"deepLinks": @[ @{ @"appUrl": @"", @"fallbackUrl": @"", @"kind": @"", @"mobileApp": @{ @"directory": @"", @"id": @"", @"kind": @"", @"publisherName": @"", @"title": @"" }, @"remarketingListIds": @[  ] } ],
                              @"id": @"",
                              @"kind": @"",
                              @"name": @"",
                              @"url": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages"]
                                                       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}}/userprofiles/:profileId/advertiserLandingPages" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"advertiserId\": \"\",\n  \"archived\": false,\n  \"deepLinks\": [\n    {\n      \"appUrl\": \"\",\n      \"fallbackUrl\": \"\",\n      \"kind\": \"\",\n      \"mobileApp\": {\n        \"directory\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"publisherName\": \"\",\n        \"title\": \"\"\n      },\n      \"remarketingListIds\": []\n    }\n  ],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"url\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages",
  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' => '',
    'archived' => null,
    'deepLinks' => [
        [
                'appUrl' => '',
                'fallbackUrl' => '',
                'kind' => '',
                'mobileApp' => [
                                'directory' => '',
                                'id' => '',
                                'kind' => '',
                                'publisherName' => '',
                                'title' => ''
                ],
                'remarketingListIds' => [
                                
                ]
        ]
    ],
    'id' => '',
    'kind' => '',
    'name' => '',
    'url' => ''
  ]),
  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}}/userprofiles/:profileId/advertiserLandingPages', [
  'body' => '{
  "advertiserId": "",
  "archived": false,
  "deepLinks": [
    {
      "appUrl": "",
      "fallbackUrl": "",
      "kind": "",
      "mobileApp": {
        "directory": "",
        "id": "",
        "kind": "",
        "publisherName": "",
        "title": ""
      },
      "remarketingListIds": []
    }
  ],
  "id": "",
  "kind": "",
  "name": "",
  "url": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages');
$request->setMethod(HTTP_METH_POST);

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'advertiserId' => '',
  'archived' => null,
  'deepLinks' => [
    [
        'appUrl' => '',
        'fallbackUrl' => '',
        'kind' => '',
        'mobileApp' => [
                'directory' => '',
                'id' => '',
                'kind' => '',
                'publisherName' => '',
                'title' => ''
        ],
        'remarketingListIds' => [
                
        ]
    ]
  ],
  'id' => '',
  'kind' => '',
  'name' => '',
  'url' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'advertiserId' => '',
  'archived' => null,
  'deepLinks' => [
    [
        'appUrl' => '',
        'fallbackUrl' => '',
        'kind' => '',
        'mobileApp' => [
                'directory' => '',
                'id' => '',
                'kind' => '',
                'publisherName' => '',
                'title' => ''
        ],
        'remarketingListIds' => [
                
        ]
    ]
  ],
  'id' => '',
  'kind' => '',
  'name' => '',
  'url' => ''
]));
$request->setRequestUrl('{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages');
$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}}/userprofiles/:profileId/advertiserLandingPages' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "advertiserId": "",
  "archived": false,
  "deepLinks": [
    {
      "appUrl": "",
      "fallbackUrl": "",
      "kind": "",
      "mobileApp": {
        "directory": "",
        "id": "",
        "kind": "",
        "publisherName": "",
        "title": ""
      },
      "remarketingListIds": []
    }
  ],
  "id": "",
  "kind": "",
  "name": "",
  "url": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "advertiserId": "",
  "archived": false,
  "deepLinks": [
    {
      "appUrl": "",
      "fallbackUrl": "",
      "kind": "",
      "mobileApp": {
        "directory": "",
        "id": "",
        "kind": "",
        "publisherName": "",
        "title": ""
      },
      "remarketingListIds": []
    }
  ],
  "id": "",
  "kind": "",
  "name": "",
  "url": ""
}'
import http.client

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

payload = "{\n  \"advertiserId\": \"\",\n  \"archived\": false,\n  \"deepLinks\": [\n    {\n      \"appUrl\": \"\",\n      \"fallbackUrl\": \"\",\n      \"kind\": \"\",\n      \"mobileApp\": {\n        \"directory\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"publisherName\": \"\",\n        \"title\": \"\"\n      },\n      \"remarketingListIds\": []\n    }\n  ],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"url\": \"\"\n}"

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

conn.request("POST", "/baseUrl/userprofiles/:profileId/advertiserLandingPages", payload, headers)

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

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

url = "{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages"

payload = {
    "advertiserId": "",
    "archived": False,
    "deepLinks": [
        {
            "appUrl": "",
            "fallbackUrl": "",
            "kind": "",
            "mobileApp": {
                "directory": "",
                "id": "",
                "kind": "",
                "publisherName": "",
                "title": ""
            },
            "remarketingListIds": []
        }
    ],
    "id": "",
    "kind": "",
    "name": "",
    "url": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages"

payload <- "{\n  \"advertiserId\": \"\",\n  \"archived\": false,\n  \"deepLinks\": [\n    {\n      \"appUrl\": \"\",\n      \"fallbackUrl\": \"\",\n      \"kind\": \"\",\n      \"mobileApp\": {\n        \"directory\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"publisherName\": \"\",\n        \"title\": \"\"\n      },\n      \"remarketingListIds\": []\n    }\n  ],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"url\": \"\"\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}}/userprofiles/:profileId/advertiserLandingPages")

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  \"archived\": false,\n  \"deepLinks\": [\n    {\n      \"appUrl\": \"\",\n      \"fallbackUrl\": \"\",\n      \"kind\": \"\",\n      \"mobileApp\": {\n        \"directory\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"publisherName\": \"\",\n        \"title\": \"\"\n      },\n      \"remarketingListIds\": []\n    }\n  ],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"url\": \"\"\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/userprofiles/:profileId/advertiserLandingPages') do |req|
  req.body = "{\n  \"advertiserId\": \"\",\n  \"archived\": false,\n  \"deepLinks\": [\n    {\n      \"appUrl\": \"\",\n      \"fallbackUrl\": \"\",\n      \"kind\": \"\",\n      \"mobileApp\": {\n        \"directory\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"publisherName\": \"\",\n        \"title\": \"\"\n      },\n      \"remarketingListIds\": []\n    }\n  ],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"url\": \"\"\n}"
end

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

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

    let payload = json!({
        "advertiserId": "",
        "archived": false,
        "deepLinks": (
            json!({
                "appUrl": "",
                "fallbackUrl": "",
                "kind": "",
                "mobileApp": json!({
                    "directory": "",
                    "id": "",
                    "kind": "",
                    "publisherName": "",
                    "title": ""
                }),
                "remarketingListIds": ()
            })
        ),
        "id": "",
        "kind": "",
        "name": "",
        "url": ""
    });

    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}}/userprofiles/:profileId/advertiserLandingPages \
  --header 'content-type: application/json' \
  --data '{
  "advertiserId": "",
  "archived": false,
  "deepLinks": [
    {
      "appUrl": "",
      "fallbackUrl": "",
      "kind": "",
      "mobileApp": {
        "directory": "",
        "id": "",
        "kind": "",
        "publisherName": "",
        "title": ""
      },
      "remarketingListIds": []
    }
  ],
  "id": "",
  "kind": "",
  "name": "",
  "url": ""
}'
echo '{
  "advertiserId": "",
  "archived": false,
  "deepLinks": [
    {
      "appUrl": "",
      "fallbackUrl": "",
      "kind": "",
      "mobileApp": {
        "directory": "",
        "id": "",
        "kind": "",
        "publisherName": "",
        "title": ""
      },
      "remarketingListIds": []
    }
  ],
  "id": "",
  "kind": "",
  "name": "",
  "url": ""
}' |  \
  http POST {{baseUrl}}/userprofiles/:profileId/advertiserLandingPages \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "advertiserId": "",\n  "archived": false,\n  "deepLinks": [\n    {\n      "appUrl": "",\n      "fallbackUrl": "",\n      "kind": "",\n      "mobileApp": {\n        "directory": "",\n        "id": "",\n        "kind": "",\n        "publisherName": "",\n        "title": ""\n      },\n      "remarketingListIds": []\n    }\n  ],\n  "id": "",\n  "kind": "",\n  "name": "",\n  "url": ""\n}' \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/advertiserLandingPages
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "advertiserId": "",
  "archived": false,
  "deepLinks": [
    [
      "appUrl": "",
      "fallbackUrl": "",
      "kind": "",
      "mobileApp": [
        "directory": "",
        "id": "",
        "kind": "",
        "publisherName": "",
        "title": ""
      ],
      "remarketingListIds": []
    ]
  ],
  "id": "",
  "kind": "",
  "name": "",
  "url": ""
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages")! 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 dfareporting.advertiserLandingPages.list
{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages
QUERY PARAMS

profileId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages");

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

(client/get "{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages"

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

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

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages"

	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/userprofiles/:profileId/advertiserLandingPages HTTP/1.1
Host: example.com

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

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

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

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

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages'
};

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

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

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages")
  .get()
  .build()

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

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

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

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

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages');

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}}/userprofiles/:profileId/advertiserLandingPages'
};

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

const url = '{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages';
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}}/userprofiles/:profileId/advertiserLandingPages"]
                                                       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}}/userprofiles/:profileId/advertiserLandingPages" in

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

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages');
$request->setMethod(HTTP_METH_GET);

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

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

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

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

conn.request("GET", "/baseUrl/userprofiles/:profileId/advertiserLandingPages")

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

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

url = "{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages"

response = requests.get(url)

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

url <- "{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages"

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

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

url = URI("{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages")

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/userprofiles/:profileId/advertiserLandingPages') do |req|
end

puts response.status
puts response.body
use reqwest;

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

    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}}/userprofiles/:profileId/advertiserLandingPages
http GET {{baseUrl}}/userprofiles/:profileId/advertiserLandingPages
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/advertiserLandingPages
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages")! 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 dfareporting.advertiserLandingPages.patch
{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages
QUERY PARAMS

id
profileId
BODY json

{
  "advertiserId": "",
  "archived": false,
  "deepLinks": [
    {
      "appUrl": "",
      "fallbackUrl": "",
      "kind": "",
      "mobileApp": {
        "directory": "",
        "id": "",
        "kind": "",
        "publisherName": "",
        "title": ""
      },
      "remarketingListIds": []
    }
  ],
  "id": "",
  "kind": "",
  "name": "",
  "url": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages?id=");

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  \"archived\": false,\n  \"deepLinks\": [\n    {\n      \"appUrl\": \"\",\n      \"fallbackUrl\": \"\",\n      \"kind\": \"\",\n      \"mobileApp\": {\n        \"directory\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"publisherName\": \"\",\n        \"title\": \"\"\n      },\n      \"remarketingListIds\": []\n    }\n  ],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"url\": \"\"\n}");

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

(client/patch "{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages" {:query-params {:id ""}
                                                                                            :content-type :json
                                                                                            :form-params {:advertiserId ""
                                                                                                          :archived false
                                                                                                          :deepLinks [{:appUrl ""
                                                                                                                       :fallbackUrl ""
                                                                                                                       :kind ""
                                                                                                                       :mobileApp {:directory ""
                                                                                                                                   :id ""
                                                                                                                                   :kind ""
                                                                                                                                   :publisherName ""
                                                                                                                                   :title ""}
                                                                                                                       :remarketingListIds []}]
                                                                                                          :id ""
                                                                                                          :kind ""
                                                                                                          :name ""
                                                                                                          :url ""}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages?id="
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"advertiserId\": \"\",\n  \"archived\": false,\n  \"deepLinks\": [\n    {\n      \"appUrl\": \"\",\n      \"fallbackUrl\": \"\",\n      \"kind\": \"\",\n      \"mobileApp\": {\n        \"directory\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"publisherName\": \"\",\n        \"title\": \"\"\n      },\n      \"remarketingListIds\": []\n    }\n  ],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"url\": \"\"\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}}/userprofiles/:profileId/advertiserLandingPages?id="),
    Content = new StringContent("{\n  \"advertiserId\": \"\",\n  \"archived\": false,\n  \"deepLinks\": [\n    {\n      \"appUrl\": \"\",\n      \"fallbackUrl\": \"\",\n      \"kind\": \"\",\n      \"mobileApp\": {\n        \"directory\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"publisherName\": \"\",\n        \"title\": \"\"\n      },\n      \"remarketingListIds\": []\n    }\n  ],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"url\": \"\"\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}}/userprofiles/:profileId/advertiserLandingPages?id=");
var request = new RestRequest("", Method.Patch);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"advertiserId\": \"\",\n  \"archived\": false,\n  \"deepLinks\": [\n    {\n      \"appUrl\": \"\",\n      \"fallbackUrl\": \"\",\n      \"kind\": \"\",\n      \"mobileApp\": {\n        \"directory\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"publisherName\": \"\",\n        \"title\": \"\"\n      },\n      \"remarketingListIds\": []\n    }\n  ],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"url\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages?id="

	payload := strings.NewReader("{\n  \"advertiserId\": \"\",\n  \"archived\": false,\n  \"deepLinks\": [\n    {\n      \"appUrl\": \"\",\n      \"fallbackUrl\": \"\",\n      \"kind\": \"\",\n      \"mobileApp\": {\n        \"directory\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"publisherName\": \"\",\n        \"title\": \"\"\n      },\n      \"remarketingListIds\": []\n    }\n  ],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"url\": \"\"\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/userprofiles/:profileId/advertiserLandingPages?id= HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 368

{
  "advertiserId": "",
  "archived": false,
  "deepLinks": [
    {
      "appUrl": "",
      "fallbackUrl": "",
      "kind": "",
      "mobileApp": {
        "directory": "",
        "id": "",
        "kind": "",
        "publisherName": "",
        "title": ""
      },
      "remarketingListIds": []
    }
  ],
  "id": "",
  "kind": "",
  "name": "",
  "url": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages?id=")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"advertiserId\": \"\",\n  \"archived\": false,\n  \"deepLinks\": [\n    {\n      \"appUrl\": \"\",\n      \"fallbackUrl\": \"\",\n      \"kind\": \"\",\n      \"mobileApp\": {\n        \"directory\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"publisherName\": \"\",\n        \"title\": \"\"\n      },\n      \"remarketingListIds\": []\n    }\n  ],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"url\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages?id="))
    .header("content-type", "application/json")
    .method("PATCH", HttpRequest.BodyPublishers.ofString("{\n  \"advertiserId\": \"\",\n  \"archived\": false,\n  \"deepLinks\": [\n    {\n      \"appUrl\": \"\",\n      \"fallbackUrl\": \"\",\n      \"kind\": \"\",\n      \"mobileApp\": {\n        \"directory\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"publisherName\": \"\",\n        \"title\": \"\"\n      },\n      \"remarketingListIds\": []\n    }\n  ],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"url\": \"\"\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  \"archived\": false,\n  \"deepLinks\": [\n    {\n      \"appUrl\": \"\",\n      \"fallbackUrl\": \"\",\n      \"kind\": \"\",\n      \"mobileApp\": {\n        \"directory\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"publisherName\": \"\",\n        \"title\": \"\"\n      },\n      \"remarketingListIds\": []\n    }\n  ],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"url\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages?id=")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages?id=")
  .header("content-type", "application/json")
  .body("{\n  \"advertiserId\": \"\",\n  \"archived\": false,\n  \"deepLinks\": [\n    {\n      \"appUrl\": \"\",\n      \"fallbackUrl\": \"\",\n      \"kind\": \"\",\n      \"mobileApp\": {\n        \"directory\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"publisherName\": \"\",\n        \"title\": \"\"\n      },\n      \"remarketingListIds\": []\n    }\n  ],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"url\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  advertiserId: '',
  archived: false,
  deepLinks: [
    {
      appUrl: '',
      fallbackUrl: '',
      kind: '',
      mobileApp: {
        directory: '',
        id: '',
        kind: '',
        publisherName: '',
        title: ''
      },
      remarketingListIds: []
    }
  ],
  id: '',
  kind: '',
  name: '',
  url: ''
});

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

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

xhr.open('PATCH', '{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages?id=');
xhr.setRequestHeader('content-type', 'application/json');

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

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages',
  params: {id: ''},
  headers: {'content-type': 'application/json'},
  data: {
    advertiserId: '',
    archived: false,
    deepLinks: [
      {
        appUrl: '',
        fallbackUrl: '',
        kind: '',
        mobileApp: {directory: '', id: '', kind: '', publisherName: '', title: ''},
        remarketingListIds: []
      }
    ],
    id: '',
    kind: '',
    name: '',
    url: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages?id=';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"advertiserId":"","archived":false,"deepLinks":[{"appUrl":"","fallbackUrl":"","kind":"","mobileApp":{"directory":"","id":"","kind":"","publisherName":"","title":""},"remarketingListIds":[]}],"id":"","kind":"","name":"","url":""}'
};

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}}/userprofiles/:profileId/advertiserLandingPages?id=',
  method: 'PATCH',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "advertiserId": "",\n  "archived": false,\n  "deepLinks": [\n    {\n      "appUrl": "",\n      "fallbackUrl": "",\n      "kind": "",\n      "mobileApp": {\n        "directory": "",\n        "id": "",\n        "kind": "",\n        "publisherName": "",\n        "title": ""\n      },\n      "remarketingListIds": []\n    }\n  ],\n  "id": "",\n  "kind": "",\n  "name": "",\n  "url": ""\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  \"archived\": false,\n  \"deepLinks\": [\n    {\n      \"appUrl\": \"\",\n      \"fallbackUrl\": \"\",\n      \"kind\": \"\",\n      \"mobileApp\": {\n        \"directory\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"publisherName\": \"\",\n        \"title\": \"\"\n      },\n      \"remarketingListIds\": []\n    }\n  ],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"url\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages?id=")
  .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/userprofiles/:profileId/advertiserLandingPages?id=',
  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: '',
  archived: false,
  deepLinks: [
    {
      appUrl: '',
      fallbackUrl: '',
      kind: '',
      mobileApp: {directory: '', id: '', kind: '', publisherName: '', title: ''},
      remarketingListIds: []
    }
  ],
  id: '',
  kind: '',
  name: '',
  url: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages',
  qs: {id: ''},
  headers: {'content-type': 'application/json'},
  body: {
    advertiserId: '',
    archived: false,
    deepLinks: [
      {
        appUrl: '',
        fallbackUrl: '',
        kind: '',
        mobileApp: {directory: '', id: '', kind: '', publisherName: '', title: ''},
        remarketingListIds: []
      }
    ],
    id: '',
    kind: '',
    name: '',
    url: ''
  },
  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}}/userprofiles/:profileId/advertiserLandingPages');

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

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

req.type('json');
req.send({
  advertiserId: '',
  archived: false,
  deepLinks: [
    {
      appUrl: '',
      fallbackUrl: '',
      kind: '',
      mobileApp: {
        directory: '',
        id: '',
        kind: '',
        publisherName: '',
        title: ''
      },
      remarketingListIds: []
    }
  ],
  id: '',
  kind: '',
  name: '',
  url: ''
});

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}}/userprofiles/:profileId/advertiserLandingPages',
  params: {id: ''},
  headers: {'content-type': 'application/json'},
  data: {
    advertiserId: '',
    archived: false,
    deepLinks: [
      {
        appUrl: '',
        fallbackUrl: '',
        kind: '',
        mobileApp: {directory: '', id: '', kind: '', publisherName: '', title: ''},
        remarketingListIds: []
      }
    ],
    id: '',
    kind: '',
    name: '',
    url: ''
  }
};

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

const url = '{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages?id=';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"advertiserId":"","archived":false,"deepLinks":[{"appUrl":"","fallbackUrl":"","kind":"","mobileApp":{"directory":"","id":"","kind":"","publisherName":"","title":""},"remarketingListIds":[]}],"id":"","kind":"","name":"","url":""}'
};

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": @"",
                              @"archived": @NO,
                              @"deepLinks": @[ @{ @"appUrl": @"", @"fallbackUrl": @"", @"kind": @"", @"mobileApp": @{ @"directory": @"", @"id": @"", @"kind": @"", @"publisherName": @"", @"title": @"" }, @"remarketingListIds": @[  ] } ],
                              @"id": @"",
                              @"kind": @"",
                              @"name": @"",
                              @"url": @"" };

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

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages?id="]
                                                       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}}/userprofiles/:profileId/advertiserLandingPages?id=" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"advertiserId\": \"\",\n  \"archived\": false,\n  \"deepLinks\": [\n    {\n      \"appUrl\": \"\",\n      \"fallbackUrl\": \"\",\n      \"kind\": \"\",\n      \"mobileApp\": {\n        \"directory\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"publisherName\": \"\",\n        \"title\": \"\"\n      },\n      \"remarketingListIds\": []\n    }\n  ],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"url\": \"\"\n}" in

Client.call ~headers ~body `PATCH uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages?id=",
  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' => '',
    'archived' => null,
    'deepLinks' => [
        [
                'appUrl' => '',
                'fallbackUrl' => '',
                'kind' => '',
                'mobileApp' => [
                                'directory' => '',
                                'id' => '',
                                'kind' => '',
                                'publisherName' => '',
                                'title' => ''
                ],
                'remarketingListIds' => [
                                
                ]
        ]
    ],
    'id' => '',
    'kind' => '',
    'name' => '',
    'url' => ''
  ]),
  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}}/userprofiles/:profileId/advertiserLandingPages?id=', [
  'body' => '{
  "advertiserId": "",
  "archived": false,
  "deepLinks": [
    {
      "appUrl": "",
      "fallbackUrl": "",
      "kind": "",
      "mobileApp": {
        "directory": "",
        "id": "",
        "kind": "",
        "publisherName": "",
        "title": ""
      },
      "remarketingListIds": []
    }
  ],
  "id": "",
  "kind": "",
  "name": "",
  "url": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages');
$request->setMethod(HttpRequest::HTTP_METH_PATCH);

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

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

$request->setContentType('application/json');
$request->setBody(json_encode([
  'advertiserId' => '',
  'archived' => null,
  'deepLinks' => [
    [
        'appUrl' => '',
        'fallbackUrl' => '',
        'kind' => '',
        'mobileApp' => [
                'directory' => '',
                'id' => '',
                'kind' => '',
                'publisherName' => '',
                'title' => ''
        ],
        'remarketingListIds' => [
                
        ]
    ]
  ],
  'id' => '',
  'kind' => '',
  'name' => '',
  'url' => ''
]));

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

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'advertiserId' => '',
  'archived' => null,
  'deepLinks' => [
    [
        'appUrl' => '',
        'fallbackUrl' => '',
        'kind' => '',
        'mobileApp' => [
                'directory' => '',
                'id' => '',
                'kind' => '',
                'publisherName' => '',
                'title' => ''
        ],
        'remarketingListIds' => [
                
        ]
    ]
  ],
  'id' => '',
  'kind' => '',
  'name' => '',
  'url' => ''
]));
$request->setRequestUrl('{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages');
$request->setRequestMethod('PATCH');
$request->setBody($body);

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

$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}}/userprofiles/:profileId/advertiserLandingPages?id=' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "advertiserId": "",
  "archived": false,
  "deepLinks": [
    {
      "appUrl": "",
      "fallbackUrl": "",
      "kind": "",
      "mobileApp": {
        "directory": "",
        "id": "",
        "kind": "",
        "publisherName": "",
        "title": ""
      },
      "remarketingListIds": []
    }
  ],
  "id": "",
  "kind": "",
  "name": "",
  "url": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages?id=' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "advertiserId": "",
  "archived": false,
  "deepLinks": [
    {
      "appUrl": "",
      "fallbackUrl": "",
      "kind": "",
      "mobileApp": {
        "directory": "",
        "id": "",
        "kind": "",
        "publisherName": "",
        "title": ""
      },
      "remarketingListIds": []
    }
  ],
  "id": "",
  "kind": "",
  "name": "",
  "url": ""
}'
import http.client

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

payload = "{\n  \"advertiserId\": \"\",\n  \"archived\": false,\n  \"deepLinks\": [\n    {\n      \"appUrl\": \"\",\n      \"fallbackUrl\": \"\",\n      \"kind\": \"\",\n      \"mobileApp\": {\n        \"directory\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"publisherName\": \"\",\n        \"title\": \"\"\n      },\n      \"remarketingListIds\": []\n    }\n  ],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"url\": \"\"\n}"

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

conn.request("PATCH", "/baseUrl/userprofiles/:profileId/advertiserLandingPages?id=", payload, headers)

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

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

url = "{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages"

querystring = {"id":""}

payload = {
    "advertiserId": "",
    "archived": False,
    "deepLinks": [
        {
            "appUrl": "",
            "fallbackUrl": "",
            "kind": "",
            "mobileApp": {
                "directory": "",
                "id": "",
                "kind": "",
                "publisherName": "",
                "title": ""
            },
            "remarketingListIds": []
        }
    ],
    "id": "",
    "kind": "",
    "name": "",
    "url": ""
}
headers = {"content-type": "application/json"}

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

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

url <- "{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages"

queryString <- list(id = "")

payload <- "{\n  \"advertiserId\": \"\",\n  \"archived\": false,\n  \"deepLinks\": [\n    {\n      \"appUrl\": \"\",\n      \"fallbackUrl\": \"\",\n      \"kind\": \"\",\n      \"mobileApp\": {\n        \"directory\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"publisherName\": \"\",\n        \"title\": \"\"\n      },\n      \"remarketingListIds\": []\n    }\n  ],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"url\": \"\"\n}"

encode <- "json"

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

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

url = URI("{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages?id=")

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  \"archived\": false,\n  \"deepLinks\": [\n    {\n      \"appUrl\": \"\",\n      \"fallbackUrl\": \"\",\n      \"kind\": \"\",\n      \"mobileApp\": {\n        \"directory\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"publisherName\": \"\",\n        \"title\": \"\"\n      },\n      \"remarketingListIds\": []\n    }\n  ],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"url\": \"\"\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/userprofiles/:profileId/advertiserLandingPages') do |req|
  req.params['id'] = ''
  req.body = "{\n  \"advertiserId\": \"\",\n  \"archived\": false,\n  \"deepLinks\": [\n    {\n      \"appUrl\": \"\",\n      \"fallbackUrl\": \"\",\n      \"kind\": \"\",\n      \"mobileApp\": {\n        \"directory\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"publisherName\": \"\",\n        \"title\": \"\"\n      },\n      \"remarketingListIds\": []\n    }\n  ],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"url\": \"\"\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}}/userprofiles/:profileId/advertiserLandingPages";

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

    let payload = json!({
        "advertiserId": "",
        "archived": false,
        "deepLinks": (
            json!({
                "appUrl": "",
                "fallbackUrl": "",
                "kind": "",
                "mobileApp": json!({
                    "directory": "",
                    "id": "",
                    "kind": "",
                    "publisherName": "",
                    "title": ""
                }),
                "remarketingListIds": ()
            })
        ),
        "id": "",
        "kind": "",
        "name": "",
        "url": ""
    });

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

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

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

    dbg!(results);
}
curl --request PATCH \
  --url '{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages?id=' \
  --header 'content-type: application/json' \
  --data '{
  "advertiserId": "",
  "archived": false,
  "deepLinks": [
    {
      "appUrl": "",
      "fallbackUrl": "",
      "kind": "",
      "mobileApp": {
        "directory": "",
        "id": "",
        "kind": "",
        "publisherName": "",
        "title": ""
      },
      "remarketingListIds": []
    }
  ],
  "id": "",
  "kind": "",
  "name": "",
  "url": ""
}'
echo '{
  "advertiserId": "",
  "archived": false,
  "deepLinks": [
    {
      "appUrl": "",
      "fallbackUrl": "",
      "kind": "",
      "mobileApp": {
        "directory": "",
        "id": "",
        "kind": "",
        "publisherName": "",
        "title": ""
      },
      "remarketingListIds": []
    }
  ],
  "id": "",
  "kind": "",
  "name": "",
  "url": ""
}' |  \
  http PATCH '{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages?id=' \
  content-type:application/json
wget --quiet \
  --method PATCH \
  --header 'content-type: application/json' \
  --body-data '{\n  "advertiserId": "",\n  "archived": false,\n  "deepLinks": [\n    {\n      "appUrl": "",\n      "fallbackUrl": "",\n      "kind": "",\n      "mobileApp": {\n        "directory": "",\n        "id": "",\n        "kind": "",\n        "publisherName": "",\n        "title": ""\n      },\n      "remarketingListIds": []\n    }\n  ],\n  "id": "",\n  "kind": "",\n  "name": "",\n  "url": ""\n}' \
  --output-document \
  - '{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages?id='
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "advertiserId": "",
  "archived": false,
  "deepLinks": [
    [
      "appUrl": "",
      "fallbackUrl": "",
      "kind": "",
      "mobileApp": [
        "directory": "",
        "id": "",
        "kind": "",
        "publisherName": "",
        "title": ""
      ],
      "remarketingListIds": []
    ]
  ],
  "id": "",
  "kind": "",
  "name": "",
  "url": ""
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages?id=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PATCH"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

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

dataTask.resume()
PUT dfareporting.advertiserLandingPages.update
{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages
QUERY PARAMS

profileId
BODY json

{
  "advertiserId": "",
  "archived": false,
  "deepLinks": [
    {
      "appUrl": "",
      "fallbackUrl": "",
      "kind": "",
      "mobileApp": {
        "directory": "",
        "id": "",
        "kind": "",
        "publisherName": "",
        "title": ""
      },
      "remarketingListIds": []
    }
  ],
  "id": "",
  "kind": "",
  "name": "",
  "url": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages");

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  \"archived\": false,\n  \"deepLinks\": [\n    {\n      \"appUrl\": \"\",\n      \"fallbackUrl\": \"\",\n      \"kind\": \"\",\n      \"mobileApp\": {\n        \"directory\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"publisherName\": \"\",\n        \"title\": \"\"\n      },\n      \"remarketingListIds\": []\n    }\n  ],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"url\": \"\"\n}");

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

(client/put "{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages" {:content-type :json
                                                                                          :form-params {:advertiserId ""
                                                                                                        :archived false
                                                                                                        :deepLinks [{:appUrl ""
                                                                                                                     :fallbackUrl ""
                                                                                                                     :kind ""
                                                                                                                     :mobileApp {:directory ""
                                                                                                                                 :id ""
                                                                                                                                 :kind ""
                                                                                                                                 :publisherName ""
                                                                                                                                 :title ""}
                                                                                                                     :remarketingListIds []}]
                                                                                                        :id ""
                                                                                                        :kind ""
                                                                                                        :name ""
                                                                                                        :url ""}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"advertiserId\": \"\",\n  \"archived\": false,\n  \"deepLinks\": [\n    {\n      \"appUrl\": \"\",\n      \"fallbackUrl\": \"\",\n      \"kind\": \"\",\n      \"mobileApp\": {\n        \"directory\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"publisherName\": \"\",\n        \"title\": \"\"\n      },\n      \"remarketingListIds\": []\n    }\n  ],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"url\": \"\"\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages"),
    Content = new StringContent("{\n  \"advertiserId\": \"\",\n  \"archived\": false,\n  \"deepLinks\": [\n    {\n      \"appUrl\": \"\",\n      \"fallbackUrl\": \"\",\n      \"kind\": \"\",\n      \"mobileApp\": {\n        \"directory\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"publisherName\": \"\",\n        \"title\": \"\"\n      },\n      \"remarketingListIds\": []\n    }\n  ],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"url\": \"\"\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}}/userprofiles/:profileId/advertiserLandingPages");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"advertiserId\": \"\",\n  \"archived\": false,\n  \"deepLinks\": [\n    {\n      \"appUrl\": \"\",\n      \"fallbackUrl\": \"\",\n      \"kind\": \"\",\n      \"mobileApp\": {\n        \"directory\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"publisherName\": \"\",\n        \"title\": \"\"\n      },\n      \"remarketingListIds\": []\n    }\n  ],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"url\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

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

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages"

	payload := strings.NewReader("{\n  \"advertiserId\": \"\",\n  \"archived\": false,\n  \"deepLinks\": [\n    {\n      \"appUrl\": \"\",\n      \"fallbackUrl\": \"\",\n      \"kind\": \"\",\n      \"mobileApp\": {\n        \"directory\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"publisherName\": \"\",\n        \"title\": \"\"\n      },\n      \"remarketingListIds\": []\n    }\n  ],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"url\": \"\"\n}")

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

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

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

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/userprofiles/:profileId/advertiserLandingPages HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 368

{
  "advertiserId": "",
  "archived": false,
  "deepLinks": [
    {
      "appUrl": "",
      "fallbackUrl": "",
      "kind": "",
      "mobileApp": {
        "directory": "",
        "id": "",
        "kind": "",
        "publisherName": "",
        "title": ""
      },
      "remarketingListIds": []
    }
  ],
  "id": "",
  "kind": "",
  "name": "",
  "url": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"advertiserId\": \"\",\n  \"archived\": false,\n  \"deepLinks\": [\n    {\n      \"appUrl\": \"\",\n      \"fallbackUrl\": \"\",\n      \"kind\": \"\",\n      \"mobileApp\": {\n        \"directory\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"publisherName\": \"\",\n        \"title\": \"\"\n      },\n      \"remarketingListIds\": []\n    }\n  ],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"url\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"advertiserId\": \"\",\n  \"archived\": false,\n  \"deepLinks\": [\n    {\n      \"appUrl\": \"\",\n      \"fallbackUrl\": \"\",\n      \"kind\": \"\",\n      \"mobileApp\": {\n        \"directory\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"publisherName\": \"\",\n        \"title\": \"\"\n      },\n      \"remarketingListIds\": []\n    }\n  ],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"url\": \"\"\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  \"archived\": false,\n  \"deepLinks\": [\n    {\n      \"appUrl\": \"\",\n      \"fallbackUrl\": \"\",\n      \"kind\": \"\",\n      \"mobileApp\": {\n        \"directory\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"publisherName\": \"\",\n        \"title\": \"\"\n      },\n      \"remarketingListIds\": []\n    }\n  ],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"url\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages")
  .header("content-type", "application/json")
  .body("{\n  \"advertiserId\": \"\",\n  \"archived\": false,\n  \"deepLinks\": [\n    {\n      \"appUrl\": \"\",\n      \"fallbackUrl\": \"\",\n      \"kind\": \"\",\n      \"mobileApp\": {\n        \"directory\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"publisherName\": \"\",\n        \"title\": \"\"\n      },\n      \"remarketingListIds\": []\n    }\n  ],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"url\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  advertiserId: '',
  archived: false,
  deepLinks: [
    {
      appUrl: '',
      fallbackUrl: '',
      kind: '',
      mobileApp: {
        directory: '',
        id: '',
        kind: '',
        publisherName: '',
        title: ''
      },
      remarketingListIds: []
    }
  ],
  id: '',
  kind: '',
  name: '',
  url: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages',
  headers: {'content-type': 'application/json'},
  data: {
    advertiserId: '',
    archived: false,
    deepLinks: [
      {
        appUrl: '',
        fallbackUrl: '',
        kind: '',
        mobileApp: {directory: '', id: '', kind: '', publisherName: '', title: ''},
        remarketingListIds: []
      }
    ],
    id: '',
    kind: '',
    name: '',
    url: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"advertiserId":"","archived":false,"deepLinks":[{"appUrl":"","fallbackUrl":"","kind":"","mobileApp":{"directory":"","id":"","kind":"","publisherName":"","title":""},"remarketingListIds":[]}],"id":"","kind":"","name":"","url":""}'
};

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}}/userprofiles/:profileId/advertiserLandingPages',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "advertiserId": "",\n  "archived": false,\n  "deepLinks": [\n    {\n      "appUrl": "",\n      "fallbackUrl": "",\n      "kind": "",\n      "mobileApp": {\n        "directory": "",\n        "id": "",\n        "kind": "",\n        "publisherName": "",\n        "title": ""\n      },\n      "remarketingListIds": []\n    }\n  ],\n  "id": "",\n  "kind": "",\n  "name": "",\n  "url": ""\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  \"archived\": false,\n  \"deepLinks\": [\n    {\n      \"appUrl\": \"\",\n      \"fallbackUrl\": \"\",\n      \"kind\": \"\",\n      \"mobileApp\": {\n        \"directory\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"publisherName\": \"\",\n        \"title\": \"\"\n      },\n      \"remarketingListIds\": []\n    }\n  ],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"url\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/advertiserLandingPages',
  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: '',
  archived: false,
  deepLinks: [
    {
      appUrl: '',
      fallbackUrl: '',
      kind: '',
      mobileApp: {directory: '', id: '', kind: '', publisherName: '', title: ''},
      remarketingListIds: []
    }
  ],
  id: '',
  kind: '',
  name: '',
  url: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages',
  headers: {'content-type': 'application/json'},
  body: {
    advertiserId: '',
    archived: false,
    deepLinks: [
      {
        appUrl: '',
        fallbackUrl: '',
        kind: '',
        mobileApp: {directory: '', id: '', kind: '', publisherName: '', title: ''},
        remarketingListIds: []
      }
    ],
    id: '',
    kind: '',
    name: '',
    url: ''
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  advertiserId: '',
  archived: false,
  deepLinks: [
    {
      appUrl: '',
      fallbackUrl: '',
      kind: '',
      mobileApp: {
        directory: '',
        id: '',
        kind: '',
        publisherName: '',
        title: ''
      },
      remarketingListIds: []
    }
  ],
  id: '',
  kind: '',
  name: '',
  url: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages',
  headers: {'content-type': 'application/json'},
  data: {
    advertiserId: '',
    archived: false,
    deepLinks: [
      {
        appUrl: '',
        fallbackUrl: '',
        kind: '',
        mobileApp: {directory: '', id: '', kind: '', publisherName: '', title: ''},
        remarketingListIds: []
      }
    ],
    id: '',
    kind: '',
    name: '',
    url: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"advertiserId":"","archived":false,"deepLinks":[{"appUrl":"","fallbackUrl":"","kind":"","mobileApp":{"directory":"","id":"","kind":"","publisherName":"","title":""},"remarketingListIds":[]}],"id":"","kind":"","name":"","url":""}'
};

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": @"",
                              @"archived": @NO,
                              @"deepLinks": @[ @{ @"appUrl": @"", @"fallbackUrl": @"", @"kind": @"", @"mobileApp": @{ @"directory": @"", @"id": @"", @"kind": @"", @"publisherName": @"", @"title": @"" }, @"remarketingListIds": @[  ] } ],
                              @"id": @"",
                              @"kind": @"",
                              @"name": @"",
                              @"url": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"advertiserId\": \"\",\n  \"archived\": false,\n  \"deepLinks\": [\n    {\n      \"appUrl\": \"\",\n      \"fallbackUrl\": \"\",\n      \"kind\": \"\",\n      \"mobileApp\": {\n        \"directory\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"publisherName\": \"\",\n        \"title\": \"\"\n      },\n      \"remarketingListIds\": []\n    }\n  ],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"url\": \"\"\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'advertiserId' => '',
    'archived' => null,
    'deepLinks' => [
        [
                'appUrl' => '',
                'fallbackUrl' => '',
                'kind' => '',
                'mobileApp' => [
                                'directory' => '',
                                'id' => '',
                                'kind' => '',
                                'publisherName' => '',
                                'title' => ''
                ],
                'remarketingListIds' => [
                                
                ]
        ]
    ],
    'id' => '',
    'kind' => '',
    'name' => '',
    'url' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages', [
  'body' => '{
  "advertiserId": "",
  "archived": false,
  "deepLinks": [
    {
      "appUrl": "",
      "fallbackUrl": "",
      "kind": "",
      "mobileApp": {
        "directory": "",
        "id": "",
        "kind": "",
        "publisherName": "",
        "title": ""
      },
      "remarketingListIds": []
    }
  ],
  "id": "",
  "kind": "",
  "name": "",
  "url": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'advertiserId' => '',
  'archived' => null,
  'deepLinks' => [
    [
        'appUrl' => '',
        'fallbackUrl' => '',
        'kind' => '',
        'mobileApp' => [
                'directory' => '',
                'id' => '',
                'kind' => '',
                'publisherName' => '',
                'title' => ''
        ],
        'remarketingListIds' => [
                
        ]
    ]
  ],
  'id' => '',
  'kind' => '',
  'name' => '',
  'url' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'advertiserId' => '',
  'archived' => null,
  'deepLinks' => [
    [
        'appUrl' => '',
        'fallbackUrl' => '',
        'kind' => '',
        'mobileApp' => [
                'directory' => '',
                'id' => '',
                'kind' => '',
                'publisherName' => '',
                'title' => ''
        ],
        'remarketingListIds' => [
                
        ]
    ]
  ],
  'id' => '',
  'kind' => '',
  'name' => '',
  'url' => ''
]));
$request->setRequestUrl('{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "advertiserId": "",
  "archived": false,
  "deepLinks": [
    {
      "appUrl": "",
      "fallbackUrl": "",
      "kind": "",
      "mobileApp": {
        "directory": "",
        "id": "",
        "kind": "",
        "publisherName": "",
        "title": ""
      },
      "remarketingListIds": []
    }
  ],
  "id": "",
  "kind": "",
  "name": "",
  "url": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "advertiserId": "",
  "archived": false,
  "deepLinks": [
    {
      "appUrl": "",
      "fallbackUrl": "",
      "kind": "",
      "mobileApp": {
        "directory": "",
        "id": "",
        "kind": "",
        "publisherName": "",
        "title": ""
      },
      "remarketingListIds": []
    }
  ],
  "id": "",
  "kind": "",
  "name": "",
  "url": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"advertiserId\": \"\",\n  \"archived\": false,\n  \"deepLinks\": [\n    {\n      \"appUrl\": \"\",\n      \"fallbackUrl\": \"\",\n      \"kind\": \"\",\n      \"mobileApp\": {\n        \"directory\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"publisherName\": \"\",\n        \"title\": \"\"\n      },\n      \"remarketingListIds\": []\n    }\n  ],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"url\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/userprofiles/:profileId/advertiserLandingPages", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages"

payload = {
    "advertiserId": "",
    "archived": False,
    "deepLinks": [
        {
            "appUrl": "",
            "fallbackUrl": "",
            "kind": "",
            "mobileApp": {
                "directory": "",
                "id": "",
                "kind": "",
                "publisherName": "",
                "title": ""
            },
            "remarketingListIds": []
        }
    ],
    "id": "",
    "kind": "",
    "name": "",
    "url": ""
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages"

payload <- "{\n  \"advertiserId\": \"\",\n  \"archived\": false,\n  \"deepLinks\": [\n    {\n      \"appUrl\": \"\",\n      \"fallbackUrl\": \"\",\n      \"kind\": \"\",\n      \"mobileApp\": {\n        \"directory\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"publisherName\": \"\",\n        \"title\": \"\"\n      },\n      \"remarketingListIds\": []\n    }\n  ],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"url\": \"\"\n}"

encode <- "json"

response <- VERB("PUT", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"advertiserId\": \"\",\n  \"archived\": false,\n  \"deepLinks\": [\n    {\n      \"appUrl\": \"\",\n      \"fallbackUrl\": \"\",\n      \"kind\": \"\",\n      \"mobileApp\": {\n        \"directory\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"publisherName\": \"\",\n        \"title\": \"\"\n      },\n      \"remarketingListIds\": []\n    }\n  ],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"url\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.put('/baseUrl/userprofiles/:profileId/advertiserLandingPages') do |req|
  req.body = "{\n  \"advertiserId\": \"\",\n  \"archived\": false,\n  \"deepLinks\": [\n    {\n      \"appUrl\": \"\",\n      \"fallbackUrl\": \"\",\n      \"kind\": \"\",\n      \"mobileApp\": {\n        \"directory\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"publisherName\": \"\",\n        \"title\": \"\"\n      },\n      \"remarketingListIds\": []\n    }\n  ],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"url\": \"\"\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}}/userprofiles/:profileId/advertiserLandingPages";

    let payload = json!({
        "advertiserId": "",
        "archived": false,
        "deepLinks": (
            json!({
                "appUrl": "",
                "fallbackUrl": "",
                "kind": "",
                "mobileApp": json!({
                    "directory": "",
                    "id": "",
                    "kind": "",
                    "publisherName": "",
                    "title": ""
                }),
                "remarketingListIds": ()
            })
        ),
        "id": "",
        "kind": "",
        "name": "",
        "url": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/userprofiles/:profileId/advertiserLandingPages \
  --header 'content-type: application/json' \
  --data '{
  "advertiserId": "",
  "archived": false,
  "deepLinks": [
    {
      "appUrl": "",
      "fallbackUrl": "",
      "kind": "",
      "mobileApp": {
        "directory": "",
        "id": "",
        "kind": "",
        "publisherName": "",
        "title": ""
      },
      "remarketingListIds": []
    }
  ],
  "id": "",
  "kind": "",
  "name": "",
  "url": ""
}'
echo '{
  "advertiserId": "",
  "archived": false,
  "deepLinks": [
    {
      "appUrl": "",
      "fallbackUrl": "",
      "kind": "",
      "mobileApp": {
        "directory": "",
        "id": "",
        "kind": "",
        "publisherName": "",
        "title": ""
      },
      "remarketingListIds": []
    }
  ],
  "id": "",
  "kind": "",
  "name": "",
  "url": ""
}' |  \
  http PUT {{baseUrl}}/userprofiles/:profileId/advertiserLandingPages \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "advertiserId": "",\n  "archived": false,\n  "deepLinks": [\n    {\n      "appUrl": "",\n      "fallbackUrl": "",\n      "kind": "",\n      "mobileApp": {\n        "directory": "",\n        "id": "",\n        "kind": "",\n        "publisherName": "",\n        "title": ""\n      },\n      "remarketingListIds": []\n    }\n  ],\n  "id": "",\n  "kind": "",\n  "name": "",\n  "url": ""\n}' \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/advertiserLandingPages
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "advertiserId": "",
  "archived": false,
  "deepLinks": [
    [
      "appUrl": "",
      "fallbackUrl": "",
      "kind": "",
      "mobileApp": [
        "directory": "",
        "id": "",
        "kind": "",
        "publisherName": "",
        "title": ""
      ],
      "remarketingListIds": []
    ]
  ],
  "id": "",
  "kind": "",
  "name": "",
  "url": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/advertiserLandingPages")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET dfareporting.advertisers.get
{{baseUrl}}/userprofiles/:profileId/advertisers/:id
QUERY PARAMS

profileId
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/advertisers/:id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/advertisers/:id")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/advertisers/:id"

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}}/userprofiles/:profileId/advertisers/:id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/advertisers/:id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/advertisers/:id"

	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/userprofiles/:profileId/advertisers/:id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/advertisers/:id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/advertisers/:id"))
    .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}}/userprofiles/:profileId/advertisers/:id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/advertisers/:id")
  .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}}/userprofiles/:profileId/advertisers/:id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/advertisers/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/advertisers/:id';
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}}/userprofiles/:profileId/advertisers/:id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/advertisers/:id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/advertisers/:id',
  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}}/userprofiles/:profileId/advertisers/:id'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/advertisers/:id');

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}}/userprofiles/:profileId/advertisers/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/advertisers/:id';
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}}/userprofiles/:profileId/advertisers/:id"]
                                                       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}}/userprofiles/:profileId/advertisers/:id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/advertisers/:id",
  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}}/userprofiles/:profileId/advertisers/:id');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/advertisers/:id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/advertisers/:id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/advertisers/:id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/advertisers/:id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/advertisers/:id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/advertisers/:id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/advertisers/:id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/advertisers/:id")

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/userprofiles/:profileId/advertisers/:id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/advertisers/:id";

    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}}/userprofiles/:profileId/advertisers/:id
http GET {{baseUrl}}/userprofiles/:profileId/advertisers/:id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/advertisers/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/advertisers/:id")! 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 dfareporting.advertisers.insert
{{baseUrl}}/userprofiles/:profileId/advertisers
QUERY PARAMS

profileId
BODY json

{
  "accountId": "",
  "advertiserGroupId": "",
  "clickThroughUrlSuffix": "",
  "defaultClickThroughEventTagId": "",
  "defaultEmail": "",
  "floodlightConfigurationId": "",
  "floodlightConfigurationIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "name": "",
  "originalFloodlightConfigurationId": "",
  "status": "",
  "subaccountId": "",
  "suspended": false
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/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  \"accountId\": \"\",\n  \"advertiserGroupId\": \"\",\n  \"clickThroughUrlSuffix\": \"\",\n  \"defaultClickThroughEventTagId\": \"\",\n  \"defaultEmail\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"originalFloodlightConfigurationId\": \"\",\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"suspended\": false\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/userprofiles/:profileId/advertisers" {:content-type :json
                                                                                :form-params {:accountId ""
                                                                                              :advertiserGroupId ""
                                                                                              :clickThroughUrlSuffix ""
                                                                                              :defaultClickThroughEventTagId ""
                                                                                              :defaultEmail ""
                                                                                              :floodlightConfigurationId ""
                                                                                              :floodlightConfigurationIdDimensionValue {:dimensionName ""
                                                                                                                                        :etag ""
                                                                                                                                        :id ""
                                                                                                                                        :kind ""
                                                                                                                                        :matchType ""
                                                                                                                                        :value ""}
                                                                                              :id ""
                                                                                              :idDimensionValue {}
                                                                                              :kind ""
                                                                                              :name ""
                                                                                              :originalFloodlightConfigurationId ""
                                                                                              :status ""
                                                                                              :subaccountId ""
                                                                                              :suspended false}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/advertisers"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"accountId\": \"\",\n  \"advertiserGroupId\": \"\",\n  \"clickThroughUrlSuffix\": \"\",\n  \"defaultClickThroughEventTagId\": \"\",\n  \"defaultEmail\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"originalFloodlightConfigurationId\": \"\",\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"suspended\": 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}}/userprofiles/:profileId/advertisers"),
    Content = new StringContent("{\n  \"accountId\": \"\",\n  \"advertiserGroupId\": \"\",\n  \"clickThroughUrlSuffix\": \"\",\n  \"defaultClickThroughEventTagId\": \"\",\n  \"defaultEmail\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"originalFloodlightConfigurationId\": \"\",\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"suspended\": 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}}/userprofiles/:profileId/advertisers");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"accountId\": \"\",\n  \"advertiserGroupId\": \"\",\n  \"clickThroughUrlSuffix\": \"\",\n  \"defaultClickThroughEventTagId\": \"\",\n  \"defaultEmail\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"originalFloodlightConfigurationId\": \"\",\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"suspended\": false\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/advertisers"

	payload := strings.NewReader("{\n  \"accountId\": \"\",\n  \"advertiserGroupId\": \"\",\n  \"clickThroughUrlSuffix\": \"\",\n  \"defaultClickThroughEventTagId\": \"\",\n  \"defaultEmail\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"originalFloodlightConfigurationId\": \"\",\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"suspended\": 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/userprofiles/:profileId/advertisers HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 504

{
  "accountId": "",
  "advertiserGroupId": "",
  "clickThroughUrlSuffix": "",
  "defaultClickThroughEventTagId": "",
  "defaultEmail": "",
  "floodlightConfigurationId": "",
  "floodlightConfigurationIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "name": "",
  "originalFloodlightConfigurationId": "",
  "status": "",
  "subaccountId": "",
  "suspended": false
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/userprofiles/:profileId/advertisers")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"accountId\": \"\",\n  \"advertiserGroupId\": \"\",\n  \"clickThroughUrlSuffix\": \"\",\n  \"defaultClickThroughEventTagId\": \"\",\n  \"defaultEmail\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"originalFloodlightConfigurationId\": \"\",\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"suspended\": false\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/advertisers"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"accountId\": \"\",\n  \"advertiserGroupId\": \"\",\n  \"clickThroughUrlSuffix\": \"\",\n  \"defaultClickThroughEventTagId\": \"\",\n  \"defaultEmail\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"originalFloodlightConfigurationId\": \"\",\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"suspended\": 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  \"accountId\": \"\",\n  \"advertiserGroupId\": \"\",\n  \"clickThroughUrlSuffix\": \"\",\n  \"defaultClickThroughEventTagId\": \"\",\n  \"defaultEmail\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"originalFloodlightConfigurationId\": \"\",\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"suspended\": false\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/advertisers")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/userprofiles/:profileId/advertisers")
  .header("content-type", "application/json")
  .body("{\n  \"accountId\": \"\",\n  \"advertiserGroupId\": \"\",\n  \"clickThroughUrlSuffix\": \"\",\n  \"defaultClickThroughEventTagId\": \"\",\n  \"defaultEmail\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"originalFloodlightConfigurationId\": \"\",\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"suspended\": false\n}")
  .asString();
const data = JSON.stringify({
  accountId: '',
  advertiserGroupId: '',
  clickThroughUrlSuffix: '',
  defaultClickThroughEventTagId: '',
  defaultEmail: '',
  floodlightConfigurationId: '',
  floodlightConfigurationIdDimensionValue: {
    dimensionName: '',
    etag: '',
    id: '',
    kind: '',
    matchType: '',
    value: ''
  },
  id: '',
  idDimensionValue: {},
  kind: '',
  name: '',
  originalFloodlightConfigurationId: '',
  status: '',
  subaccountId: '',
  suspended: 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}}/userprofiles/:profileId/advertisers');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/userprofiles/:profileId/advertisers',
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    advertiserGroupId: '',
    clickThroughUrlSuffix: '',
    defaultClickThroughEventTagId: '',
    defaultEmail: '',
    floodlightConfigurationId: '',
    floodlightConfigurationIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    id: '',
    idDimensionValue: {},
    kind: '',
    name: '',
    originalFloodlightConfigurationId: '',
    status: '',
    subaccountId: '',
    suspended: false
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/advertisers';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","advertiserGroupId":"","clickThroughUrlSuffix":"","defaultClickThroughEventTagId":"","defaultEmail":"","floodlightConfigurationId":"","floodlightConfigurationIdDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"id":"","idDimensionValue":{},"kind":"","name":"","originalFloodlightConfigurationId":"","status":"","subaccountId":"","suspended":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}}/userprofiles/:profileId/advertisers',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "accountId": "",\n  "advertiserGroupId": "",\n  "clickThroughUrlSuffix": "",\n  "defaultClickThroughEventTagId": "",\n  "defaultEmail": "",\n  "floodlightConfigurationId": "",\n  "floodlightConfigurationIdDimensionValue": {\n    "dimensionName": "",\n    "etag": "",\n    "id": "",\n    "kind": "",\n    "matchType": "",\n    "value": ""\n  },\n  "id": "",\n  "idDimensionValue": {},\n  "kind": "",\n  "name": "",\n  "originalFloodlightConfigurationId": "",\n  "status": "",\n  "subaccountId": "",\n  "suspended": 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  \"accountId\": \"\",\n  \"advertiserGroupId\": \"\",\n  \"clickThroughUrlSuffix\": \"\",\n  \"defaultClickThroughEventTagId\": \"\",\n  \"defaultEmail\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"originalFloodlightConfigurationId\": \"\",\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"suspended\": false\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/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/userprofiles/:profileId/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({
  accountId: '',
  advertiserGroupId: '',
  clickThroughUrlSuffix: '',
  defaultClickThroughEventTagId: '',
  defaultEmail: '',
  floodlightConfigurationId: '',
  floodlightConfigurationIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
  id: '',
  idDimensionValue: {},
  kind: '',
  name: '',
  originalFloodlightConfigurationId: '',
  status: '',
  subaccountId: '',
  suspended: false
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/userprofiles/:profileId/advertisers',
  headers: {'content-type': 'application/json'},
  body: {
    accountId: '',
    advertiserGroupId: '',
    clickThroughUrlSuffix: '',
    defaultClickThroughEventTagId: '',
    defaultEmail: '',
    floodlightConfigurationId: '',
    floodlightConfigurationIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    id: '',
    idDimensionValue: {},
    kind: '',
    name: '',
    originalFloodlightConfigurationId: '',
    status: '',
    subaccountId: '',
    suspended: 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}}/userprofiles/:profileId/advertisers');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  accountId: '',
  advertiserGroupId: '',
  clickThroughUrlSuffix: '',
  defaultClickThroughEventTagId: '',
  defaultEmail: '',
  floodlightConfigurationId: '',
  floodlightConfigurationIdDimensionValue: {
    dimensionName: '',
    etag: '',
    id: '',
    kind: '',
    matchType: '',
    value: ''
  },
  id: '',
  idDimensionValue: {},
  kind: '',
  name: '',
  originalFloodlightConfigurationId: '',
  status: '',
  subaccountId: '',
  suspended: 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}}/userprofiles/:profileId/advertisers',
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    advertiserGroupId: '',
    clickThroughUrlSuffix: '',
    defaultClickThroughEventTagId: '',
    defaultEmail: '',
    floodlightConfigurationId: '',
    floodlightConfigurationIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    id: '',
    idDimensionValue: {},
    kind: '',
    name: '',
    originalFloodlightConfigurationId: '',
    status: '',
    subaccountId: '',
    suspended: false
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/advertisers';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","advertiserGroupId":"","clickThroughUrlSuffix":"","defaultClickThroughEventTagId":"","defaultEmail":"","floodlightConfigurationId":"","floodlightConfigurationIdDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"id":"","idDimensionValue":{},"kind":"","name":"","originalFloodlightConfigurationId":"","status":"","subaccountId":"","suspended":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 = @{ @"accountId": @"",
                              @"advertiserGroupId": @"",
                              @"clickThroughUrlSuffix": @"",
                              @"defaultClickThroughEventTagId": @"",
                              @"defaultEmail": @"",
                              @"floodlightConfigurationId": @"",
                              @"floodlightConfigurationIdDimensionValue": @{ @"dimensionName": @"", @"etag": @"", @"id": @"", @"kind": @"", @"matchType": @"", @"value": @"" },
                              @"id": @"",
                              @"idDimensionValue": @{  },
                              @"kind": @"",
                              @"name": @"",
                              @"originalFloodlightConfigurationId": @"",
                              @"status": @"",
                              @"subaccountId": @"",
                              @"suspended": @NO };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/userprofiles/:profileId/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}}/userprofiles/:profileId/advertisers" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"accountId\": \"\",\n  \"advertiserGroupId\": \"\",\n  \"clickThroughUrlSuffix\": \"\",\n  \"defaultClickThroughEventTagId\": \"\",\n  \"defaultEmail\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"originalFloodlightConfigurationId\": \"\",\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"suspended\": false\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/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([
    'accountId' => '',
    'advertiserGroupId' => '',
    'clickThroughUrlSuffix' => '',
    'defaultClickThroughEventTagId' => '',
    'defaultEmail' => '',
    'floodlightConfigurationId' => '',
    'floodlightConfigurationIdDimensionValue' => [
        'dimensionName' => '',
        'etag' => '',
        'id' => '',
        'kind' => '',
        'matchType' => '',
        'value' => ''
    ],
    'id' => '',
    'idDimensionValue' => [
        
    ],
    'kind' => '',
    'name' => '',
    'originalFloodlightConfigurationId' => '',
    'status' => '',
    'subaccountId' => '',
    'suspended' => 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}}/userprofiles/:profileId/advertisers', [
  'body' => '{
  "accountId": "",
  "advertiserGroupId": "",
  "clickThroughUrlSuffix": "",
  "defaultClickThroughEventTagId": "",
  "defaultEmail": "",
  "floodlightConfigurationId": "",
  "floodlightConfigurationIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "name": "",
  "originalFloodlightConfigurationId": "",
  "status": "",
  "subaccountId": "",
  "suspended": false
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/advertisers');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'accountId' => '',
  'advertiserGroupId' => '',
  'clickThroughUrlSuffix' => '',
  'defaultClickThroughEventTagId' => '',
  'defaultEmail' => '',
  'floodlightConfigurationId' => '',
  'floodlightConfigurationIdDimensionValue' => [
    'dimensionName' => '',
    'etag' => '',
    'id' => '',
    'kind' => '',
    'matchType' => '',
    'value' => ''
  ],
  'id' => '',
  'idDimensionValue' => [
    
  ],
  'kind' => '',
  'name' => '',
  'originalFloodlightConfigurationId' => '',
  'status' => '',
  'subaccountId' => '',
  'suspended' => null
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'accountId' => '',
  'advertiserGroupId' => '',
  'clickThroughUrlSuffix' => '',
  'defaultClickThroughEventTagId' => '',
  'defaultEmail' => '',
  'floodlightConfigurationId' => '',
  'floodlightConfigurationIdDimensionValue' => [
    'dimensionName' => '',
    'etag' => '',
    'id' => '',
    'kind' => '',
    'matchType' => '',
    'value' => ''
  ],
  'id' => '',
  'idDimensionValue' => [
    
  ],
  'kind' => '',
  'name' => '',
  'originalFloodlightConfigurationId' => '',
  'status' => '',
  'subaccountId' => '',
  'suspended' => null
]));
$request->setRequestUrl('{{baseUrl}}/userprofiles/:profileId/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}}/userprofiles/:profileId/advertisers' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "advertiserGroupId": "",
  "clickThroughUrlSuffix": "",
  "defaultClickThroughEventTagId": "",
  "defaultEmail": "",
  "floodlightConfigurationId": "",
  "floodlightConfigurationIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "name": "",
  "originalFloodlightConfigurationId": "",
  "status": "",
  "subaccountId": "",
  "suspended": false
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/advertisers' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "advertiserGroupId": "",
  "clickThroughUrlSuffix": "",
  "defaultClickThroughEventTagId": "",
  "defaultEmail": "",
  "floodlightConfigurationId": "",
  "floodlightConfigurationIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "name": "",
  "originalFloodlightConfigurationId": "",
  "status": "",
  "subaccountId": "",
  "suspended": false
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"accountId\": \"\",\n  \"advertiserGroupId\": \"\",\n  \"clickThroughUrlSuffix\": \"\",\n  \"defaultClickThroughEventTagId\": \"\",\n  \"defaultEmail\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"originalFloodlightConfigurationId\": \"\",\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"suspended\": false\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/userprofiles/:profileId/advertisers", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/advertisers"

payload = {
    "accountId": "",
    "advertiserGroupId": "",
    "clickThroughUrlSuffix": "",
    "defaultClickThroughEventTagId": "",
    "defaultEmail": "",
    "floodlightConfigurationId": "",
    "floodlightConfigurationIdDimensionValue": {
        "dimensionName": "",
        "etag": "",
        "id": "",
        "kind": "",
        "matchType": "",
        "value": ""
    },
    "id": "",
    "idDimensionValue": {},
    "kind": "",
    "name": "",
    "originalFloodlightConfigurationId": "",
    "status": "",
    "subaccountId": "",
    "suspended": False
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/advertisers"

payload <- "{\n  \"accountId\": \"\",\n  \"advertiserGroupId\": \"\",\n  \"clickThroughUrlSuffix\": \"\",\n  \"defaultClickThroughEventTagId\": \"\",\n  \"defaultEmail\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"originalFloodlightConfigurationId\": \"\",\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"suspended\": 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}}/userprofiles/:profileId/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  \"accountId\": \"\",\n  \"advertiserGroupId\": \"\",\n  \"clickThroughUrlSuffix\": \"\",\n  \"defaultClickThroughEventTagId\": \"\",\n  \"defaultEmail\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"originalFloodlightConfigurationId\": \"\",\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"suspended\": 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/userprofiles/:profileId/advertisers') do |req|
  req.body = "{\n  \"accountId\": \"\",\n  \"advertiserGroupId\": \"\",\n  \"clickThroughUrlSuffix\": \"\",\n  \"defaultClickThroughEventTagId\": \"\",\n  \"defaultEmail\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"originalFloodlightConfigurationId\": \"\",\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"suspended\": false\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/advertisers";

    let payload = json!({
        "accountId": "",
        "advertiserGroupId": "",
        "clickThroughUrlSuffix": "",
        "defaultClickThroughEventTagId": "",
        "defaultEmail": "",
        "floodlightConfigurationId": "",
        "floodlightConfigurationIdDimensionValue": json!({
            "dimensionName": "",
            "etag": "",
            "id": "",
            "kind": "",
            "matchType": "",
            "value": ""
        }),
        "id": "",
        "idDimensionValue": json!({}),
        "kind": "",
        "name": "",
        "originalFloodlightConfigurationId": "",
        "status": "",
        "subaccountId": "",
        "suspended": 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}}/userprofiles/:profileId/advertisers \
  --header 'content-type: application/json' \
  --data '{
  "accountId": "",
  "advertiserGroupId": "",
  "clickThroughUrlSuffix": "",
  "defaultClickThroughEventTagId": "",
  "defaultEmail": "",
  "floodlightConfigurationId": "",
  "floodlightConfigurationIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "name": "",
  "originalFloodlightConfigurationId": "",
  "status": "",
  "subaccountId": "",
  "suspended": false
}'
echo '{
  "accountId": "",
  "advertiserGroupId": "",
  "clickThroughUrlSuffix": "",
  "defaultClickThroughEventTagId": "",
  "defaultEmail": "",
  "floodlightConfigurationId": "",
  "floodlightConfigurationIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "name": "",
  "originalFloodlightConfigurationId": "",
  "status": "",
  "subaccountId": "",
  "suspended": false
}' |  \
  http POST {{baseUrl}}/userprofiles/:profileId/advertisers \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "accountId": "",\n  "advertiserGroupId": "",\n  "clickThroughUrlSuffix": "",\n  "defaultClickThroughEventTagId": "",\n  "defaultEmail": "",\n  "floodlightConfigurationId": "",\n  "floodlightConfigurationIdDimensionValue": {\n    "dimensionName": "",\n    "etag": "",\n    "id": "",\n    "kind": "",\n    "matchType": "",\n    "value": ""\n  },\n  "id": "",\n  "idDimensionValue": {},\n  "kind": "",\n  "name": "",\n  "originalFloodlightConfigurationId": "",\n  "status": "",\n  "subaccountId": "",\n  "suspended": false\n}' \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/advertisers
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "accountId": "",
  "advertiserGroupId": "",
  "clickThroughUrlSuffix": "",
  "defaultClickThroughEventTagId": "",
  "defaultEmail": "",
  "floodlightConfigurationId": "",
  "floodlightConfigurationIdDimensionValue": [
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  ],
  "id": "",
  "idDimensionValue": [],
  "kind": "",
  "name": "",
  "originalFloodlightConfigurationId": "",
  "status": "",
  "subaccountId": "",
  "suspended": false
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/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()
GET dfareporting.advertisers.list
{{baseUrl}}/userprofiles/:profileId/advertisers
QUERY PARAMS

profileId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/advertisers");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/advertisers")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/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}}/userprofiles/:profileId/advertisers"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/advertisers");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/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/userprofiles/:profileId/advertisers HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/advertisers")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/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}}/userprofiles/:profileId/advertisers")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/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}}/userprofiles/:profileId/advertisers');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/advertisers'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/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}}/userprofiles/:profileId/advertisers',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/advertisers")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/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}}/userprofiles/:profileId/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}}/userprofiles/:profileId/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}}/userprofiles/:profileId/advertisers'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/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}}/userprofiles/:profileId/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}}/userprofiles/:profileId/advertisers" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/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}}/userprofiles/:profileId/advertisers');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/advertisers');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/advertisers');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/advertisers' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/advertisers' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/advertisers")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/advertisers"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/advertisers"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/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/userprofiles/:profileId/advertisers') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/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}}/userprofiles/:profileId/advertisers
http GET {{baseUrl}}/userprofiles/:profileId/advertisers
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/advertisers
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/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()
PATCH dfareporting.advertisers.patch
{{baseUrl}}/userprofiles/:profileId/advertisers
QUERY PARAMS

id
profileId
BODY json

{
  "accountId": "",
  "advertiserGroupId": "",
  "clickThroughUrlSuffix": "",
  "defaultClickThroughEventTagId": "",
  "defaultEmail": "",
  "floodlightConfigurationId": "",
  "floodlightConfigurationIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "name": "",
  "originalFloodlightConfigurationId": "",
  "status": "",
  "subaccountId": "",
  "suspended": false
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/advertisers?id=");

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  \"accountId\": \"\",\n  \"advertiserGroupId\": \"\",\n  \"clickThroughUrlSuffix\": \"\",\n  \"defaultClickThroughEventTagId\": \"\",\n  \"defaultEmail\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"originalFloodlightConfigurationId\": \"\",\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"suspended\": false\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/patch "{{baseUrl}}/userprofiles/:profileId/advertisers" {:query-params {:id ""}
                                                                                 :content-type :json
                                                                                 :form-params {:accountId ""
                                                                                               :advertiserGroupId ""
                                                                                               :clickThroughUrlSuffix ""
                                                                                               :defaultClickThroughEventTagId ""
                                                                                               :defaultEmail ""
                                                                                               :floodlightConfigurationId ""
                                                                                               :floodlightConfigurationIdDimensionValue {:dimensionName ""
                                                                                                                                         :etag ""
                                                                                                                                         :id ""
                                                                                                                                         :kind ""
                                                                                                                                         :matchType ""
                                                                                                                                         :value ""}
                                                                                               :id ""
                                                                                               :idDimensionValue {}
                                                                                               :kind ""
                                                                                               :name ""
                                                                                               :originalFloodlightConfigurationId ""
                                                                                               :status ""
                                                                                               :subaccountId ""
                                                                                               :suspended false}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/advertisers?id="
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"accountId\": \"\",\n  \"advertiserGroupId\": \"\",\n  \"clickThroughUrlSuffix\": \"\",\n  \"defaultClickThroughEventTagId\": \"\",\n  \"defaultEmail\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"originalFloodlightConfigurationId\": \"\",\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"suspended\": 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}}/userprofiles/:profileId/advertisers?id="),
    Content = new StringContent("{\n  \"accountId\": \"\",\n  \"advertiserGroupId\": \"\",\n  \"clickThroughUrlSuffix\": \"\",\n  \"defaultClickThroughEventTagId\": \"\",\n  \"defaultEmail\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"originalFloodlightConfigurationId\": \"\",\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"suspended\": 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}}/userprofiles/:profileId/advertisers?id=");
var request = new RestRequest("", Method.Patch);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"accountId\": \"\",\n  \"advertiserGroupId\": \"\",\n  \"clickThroughUrlSuffix\": \"\",\n  \"defaultClickThroughEventTagId\": \"\",\n  \"defaultEmail\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"originalFloodlightConfigurationId\": \"\",\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"suspended\": false\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/advertisers?id="

	payload := strings.NewReader("{\n  \"accountId\": \"\",\n  \"advertiserGroupId\": \"\",\n  \"clickThroughUrlSuffix\": \"\",\n  \"defaultClickThroughEventTagId\": \"\",\n  \"defaultEmail\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"originalFloodlightConfigurationId\": \"\",\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"suspended\": 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/userprofiles/:profileId/advertisers?id= HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 504

{
  "accountId": "",
  "advertiserGroupId": "",
  "clickThroughUrlSuffix": "",
  "defaultClickThroughEventTagId": "",
  "defaultEmail": "",
  "floodlightConfigurationId": "",
  "floodlightConfigurationIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "name": "",
  "originalFloodlightConfigurationId": "",
  "status": "",
  "subaccountId": "",
  "suspended": false
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/userprofiles/:profileId/advertisers?id=")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"accountId\": \"\",\n  \"advertiserGroupId\": \"\",\n  \"clickThroughUrlSuffix\": \"\",\n  \"defaultClickThroughEventTagId\": \"\",\n  \"defaultEmail\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"originalFloodlightConfigurationId\": \"\",\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"suspended\": false\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/advertisers?id="))
    .header("content-type", "application/json")
    .method("PATCH", HttpRequest.BodyPublishers.ofString("{\n  \"accountId\": \"\",\n  \"advertiserGroupId\": \"\",\n  \"clickThroughUrlSuffix\": \"\",\n  \"defaultClickThroughEventTagId\": \"\",\n  \"defaultEmail\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"originalFloodlightConfigurationId\": \"\",\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"suspended\": 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  \"accountId\": \"\",\n  \"advertiserGroupId\": \"\",\n  \"clickThroughUrlSuffix\": \"\",\n  \"defaultClickThroughEventTagId\": \"\",\n  \"defaultEmail\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"originalFloodlightConfigurationId\": \"\",\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"suspended\": false\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/advertisers?id=")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/userprofiles/:profileId/advertisers?id=")
  .header("content-type", "application/json")
  .body("{\n  \"accountId\": \"\",\n  \"advertiserGroupId\": \"\",\n  \"clickThroughUrlSuffix\": \"\",\n  \"defaultClickThroughEventTagId\": \"\",\n  \"defaultEmail\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"originalFloodlightConfigurationId\": \"\",\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"suspended\": false\n}")
  .asString();
const data = JSON.stringify({
  accountId: '',
  advertiserGroupId: '',
  clickThroughUrlSuffix: '',
  defaultClickThroughEventTagId: '',
  defaultEmail: '',
  floodlightConfigurationId: '',
  floodlightConfigurationIdDimensionValue: {
    dimensionName: '',
    etag: '',
    id: '',
    kind: '',
    matchType: '',
    value: ''
  },
  id: '',
  idDimensionValue: {},
  kind: '',
  name: '',
  originalFloodlightConfigurationId: '',
  status: '',
  subaccountId: '',
  suspended: 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}}/userprofiles/:profileId/advertisers?id=');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/userprofiles/:profileId/advertisers',
  params: {id: ''},
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    advertiserGroupId: '',
    clickThroughUrlSuffix: '',
    defaultClickThroughEventTagId: '',
    defaultEmail: '',
    floodlightConfigurationId: '',
    floodlightConfigurationIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    id: '',
    idDimensionValue: {},
    kind: '',
    name: '',
    originalFloodlightConfigurationId: '',
    status: '',
    subaccountId: '',
    suspended: false
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/advertisers?id=';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","advertiserGroupId":"","clickThroughUrlSuffix":"","defaultClickThroughEventTagId":"","defaultEmail":"","floodlightConfigurationId":"","floodlightConfigurationIdDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"id":"","idDimensionValue":{},"kind":"","name":"","originalFloodlightConfigurationId":"","status":"","subaccountId":"","suspended":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}}/userprofiles/:profileId/advertisers?id=',
  method: 'PATCH',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "accountId": "",\n  "advertiserGroupId": "",\n  "clickThroughUrlSuffix": "",\n  "defaultClickThroughEventTagId": "",\n  "defaultEmail": "",\n  "floodlightConfigurationId": "",\n  "floodlightConfigurationIdDimensionValue": {\n    "dimensionName": "",\n    "etag": "",\n    "id": "",\n    "kind": "",\n    "matchType": "",\n    "value": ""\n  },\n  "id": "",\n  "idDimensionValue": {},\n  "kind": "",\n  "name": "",\n  "originalFloodlightConfigurationId": "",\n  "status": "",\n  "subaccountId": "",\n  "suspended": 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  \"accountId\": \"\",\n  \"advertiserGroupId\": \"\",\n  \"clickThroughUrlSuffix\": \"\",\n  \"defaultClickThroughEventTagId\": \"\",\n  \"defaultEmail\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"originalFloodlightConfigurationId\": \"\",\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"suspended\": false\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/advertisers?id=")
  .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/userprofiles/:profileId/advertisers?id=',
  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({
  accountId: '',
  advertiserGroupId: '',
  clickThroughUrlSuffix: '',
  defaultClickThroughEventTagId: '',
  defaultEmail: '',
  floodlightConfigurationId: '',
  floodlightConfigurationIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
  id: '',
  idDimensionValue: {},
  kind: '',
  name: '',
  originalFloodlightConfigurationId: '',
  status: '',
  subaccountId: '',
  suspended: false
}));
req.end();
const request = require('request');

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/userprofiles/:profileId/advertisers',
  qs: {id: ''},
  headers: {'content-type': 'application/json'},
  body: {
    accountId: '',
    advertiserGroupId: '',
    clickThroughUrlSuffix: '',
    defaultClickThroughEventTagId: '',
    defaultEmail: '',
    floodlightConfigurationId: '',
    floodlightConfigurationIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    id: '',
    idDimensionValue: {},
    kind: '',
    name: '',
    originalFloodlightConfigurationId: '',
    status: '',
    subaccountId: '',
    suspended: 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}}/userprofiles/:profileId/advertisers');

req.query({
  id: ''
});

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  accountId: '',
  advertiserGroupId: '',
  clickThroughUrlSuffix: '',
  defaultClickThroughEventTagId: '',
  defaultEmail: '',
  floodlightConfigurationId: '',
  floodlightConfigurationIdDimensionValue: {
    dimensionName: '',
    etag: '',
    id: '',
    kind: '',
    matchType: '',
    value: ''
  },
  id: '',
  idDimensionValue: {},
  kind: '',
  name: '',
  originalFloodlightConfigurationId: '',
  status: '',
  subaccountId: '',
  suspended: 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}}/userprofiles/:profileId/advertisers',
  params: {id: ''},
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    advertiserGroupId: '',
    clickThroughUrlSuffix: '',
    defaultClickThroughEventTagId: '',
    defaultEmail: '',
    floodlightConfigurationId: '',
    floodlightConfigurationIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    id: '',
    idDimensionValue: {},
    kind: '',
    name: '',
    originalFloodlightConfigurationId: '',
    status: '',
    subaccountId: '',
    suspended: false
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/advertisers?id=';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","advertiserGroupId":"","clickThroughUrlSuffix":"","defaultClickThroughEventTagId":"","defaultEmail":"","floodlightConfigurationId":"","floodlightConfigurationIdDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"id":"","idDimensionValue":{},"kind":"","name":"","originalFloodlightConfigurationId":"","status":"","subaccountId":"","suspended":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 = @{ @"accountId": @"",
                              @"advertiserGroupId": @"",
                              @"clickThroughUrlSuffix": @"",
                              @"defaultClickThroughEventTagId": @"",
                              @"defaultEmail": @"",
                              @"floodlightConfigurationId": @"",
                              @"floodlightConfigurationIdDimensionValue": @{ @"dimensionName": @"", @"etag": @"", @"id": @"", @"kind": @"", @"matchType": @"", @"value": @"" },
                              @"id": @"",
                              @"idDimensionValue": @{  },
                              @"kind": @"",
                              @"name": @"",
                              @"originalFloodlightConfigurationId": @"",
                              @"status": @"",
                              @"subaccountId": @"",
                              @"suspended": @NO };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/userprofiles/:profileId/advertisers?id="]
                                                       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}}/userprofiles/:profileId/advertisers?id=" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"accountId\": \"\",\n  \"advertiserGroupId\": \"\",\n  \"clickThroughUrlSuffix\": \"\",\n  \"defaultClickThroughEventTagId\": \"\",\n  \"defaultEmail\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"originalFloodlightConfigurationId\": \"\",\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"suspended\": false\n}" in

Client.call ~headers ~body `PATCH uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/advertisers?id=",
  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([
    'accountId' => '',
    'advertiserGroupId' => '',
    'clickThroughUrlSuffix' => '',
    'defaultClickThroughEventTagId' => '',
    'defaultEmail' => '',
    'floodlightConfigurationId' => '',
    'floodlightConfigurationIdDimensionValue' => [
        'dimensionName' => '',
        'etag' => '',
        'id' => '',
        'kind' => '',
        'matchType' => '',
        'value' => ''
    ],
    'id' => '',
    'idDimensionValue' => [
        
    ],
    'kind' => '',
    'name' => '',
    'originalFloodlightConfigurationId' => '',
    'status' => '',
    'subaccountId' => '',
    'suspended' => 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}}/userprofiles/:profileId/advertisers?id=', [
  'body' => '{
  "accountId": "",
  "advertiserGroupId": "",
  "clickThroughUrlSuffix": "",
  "defaultClickThroughEventTagId": "",
  "defaultEmail": "",
  "floodlightConfigurationId": "",
  "floodlightConfigurationIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "name": "",
  "originalFloodlightConfigurationId": "",
  "status": "",
  "subaccountId": "",
  "suspended": false
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/advertisers');
$request->setMethod(HttpRequest::HTTP_METH_PATCH);

$request->setQueryData([
  'id' => ''
]);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'accountId' => '',
  'advertiserGroupId' => '',
  'clickThroughUrlSuffix' => '',
  'defaultClickThroughEventTagId' => '',
  'defaultEmail' => '',
  'floodlightConfigurationId' => '',
  'floodlightConfigurationIdDimensionValue' => [
    'dimensionName' => '',
    'etag' => '',
    'id' => '',
    'kind' => '',
    'matchType' => '',
    'value' => ''
  ],
  'id' => '',
  'idDimensionValue' => [
    
  ],
  'kind' => '',
  'name' => '',
  'originalFloodlightConfigurationId' => '',
  'status' => '',
  'subaccountId' => '',
  'suspended' => null
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'accountId' => '',
  'advertiserGroupId' => '',
  'clickThroughUrlSuffix' => '',
  'defaultClickThroughEventTagId' => '',
  'defaultEmail' => '',
  'floodlightConfigurationId' => '',
  'floodlightConfigurationIdDimensionValue' => [
    'dimensionName' => '',
    'etag' => '',
    'id' => '',
    'kind' => '',
    'matchType' => '',
    'value' => ''
  ],
  'id' => '',
  'idDimensionValue' => [
    
  ],
  'kind' => '',
  'name' => '',
  'originalFloodlightConfigurationId' => '',
  'status' => '',
  'subaccountId' => '',
  'suspended' => null
]));
$request->setRequestUrl('{{baseUrl}}/userprofiles/:profileId/advertisers');
$request->setRequestMethod('PATCH');
$request->setBody($body);

$request->setQuery(new http\QueryString([
  'id' => ''
]));

$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}}/userprofiles/:profileId/advertisers?id=' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "advertiserGroupId": "",
  "clickThroughUrlSuffix": "",
  "defaultClickThroughEventTagId": "",
  "defaultEmail": "",
  "floodlightConfigurationId": "",
  "floodlightConfigurationIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "name": "",
  "originalFloodlightConfigurationId": "",
  "status": "",
  "subaccountId": "",
  "suspended": false
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/advertisers?id=' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "advertiserGroupId": "",
  "clickThroughUrlSuffix": "",
  "defaultClickThroughEventTagId": "",
  "defaultEmail": "",
  "floodlightConfigurationId": "",
  "floodlightConfigurationIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "name": "",
  "originalFloodlightConfigurationId": "",
  "status": "",
  "subaccountId": "",
  "suspended": false
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"accountId\": \"\",\n  \"advertiserGroupId\": \"\",\n  \"clickThroughUrlSuffix\": \"\",\n  \"defaultClickThroughEventTagId\": \"\",\n  \"defaultEmail\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"originalFloodlightConfigurationId\": \"\",\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"suspended\": false\n}"

headers = { 'content-type': "application/json" }

conn.request("PATCH", "/baseUrl/userprofiles/:profileId/advertisers?id=", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/advertisers"

querystring = {"id":""}

payload = {
    "accountId": "",
    "advertiserGroupId": "",
    "clickThroughUrlSuffix": "",
    "defaultClickThroughEventTagId": "",
    "defaultEmail": "",
    "floodlightConfigurationId": "",
    "floodlightConfigurationIdDimensionValue": {
        "dimensionName": "",
        "etag": "",
        "id": "",
        "kind": "",
        "matchType": "",
        "value": ""
    },
    "id": "",
    "idDimensionValue": {},
    "kind": "",
    "name": "",
    "originalFloodlightConfigurationId": "",
    "status": "",
    "subaccountId": "",
    "suspended": False
}
headers = {"content-type": "application/json"}

response = requests.patch(url, json=payload, headers=headers, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/advertisers"

queryString <- list(id = "")

payload <- "{\n  \"accountId\": \"\",\n  \"advertiserGroupId\": \"\",\n  \"clickThroughUrlSuffix\": \"\",\n  \"defaultClickThroughEventTagId\": \"\",\n  \"defaultEmail\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"originalFloodlightConfigurationId\": \"\",\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"suspended\": false\n}"

encode <- "json"

response <- VERB("PATCH", url, body = payload, query = queryString, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/advertisers?id=")

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  \"accountId\": \"\",\n  \"advertiserGroupId\": \"\",\n  \"clickThroughUrlSuffix\": \"\",\n  \"defaultClickThroughEventTagId\": \"\",\n  \"defaultEmail\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"originalFloodlightConfigurationId\": \"\",\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"suspended\": 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/userprofiles/:profileId/advertisers') do |req|
  req.params['id'] = ''
  req.body = "{\n  \"accountId\": \"\",\n  \"advertiserGroupId\": \"\",\n  \"clickThroughUrlSuffix\": \"\",\n  \"defaultClickThroughEventTagId\": \"\",\n  \"defaultEmail\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"originalFloodlightConfigurationId\": \"\",\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"suspended\": 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}}/userprofiles/:profileId/advertisers";

    let querystring = [
        ("id", ""),
    ];

    let payload = json!({
        "accountId": "",
        "advertiserGroupId": "",
        "clickThroughUrlSuffix": "",
        "defaultClickThroughEventTagId": "",
        "defaultEmail": "",
        "floodlightConfigurationId": "",
        "floodlightConfigurationIdDimensionValue": json!({
            "dimensionName": "",
            "etag": "",
            "id": "",
            "kind": "",
            "matchType": "",
            "value": ""
        }),
        "id": "",
        "idDimensionValue": json!({}),
        "kind": "",
        "name": "",
        "originalFloodlightConfigurationId": "",
        "status": "",
        "subaccountId": "",
        "suspended": 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)
        .query(&querystring)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PATCH \
  --url '{{baseUrl}}/userprofiles/:profileId/advertisers?id=' \
  --header 'content-type: application/json' \
  --data '{
  "accountId": "",
  "advertiserGroupId": "",
  "clickThroughUrlSuffix": "",
  "defaultClickThroughEventTagId": "",
  "defaultEmail": "",
  "floodlightConfigurationId": "",
  "floodlightConfigurationIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "name": "",
  "originalFloodlightConfigurationId": "",
  "status": "",
  "subaccountId": "",
  "suspended": false
}'
echo '{
  "accountId": "",
  "advertiserGroupId": "",
  "clickThroughUrlSuffix": "",
  "defaultClickThroughEventTagId": "",
  "defaultEmail": "",
  "floodlightConfigurationId": "",
  "floodlightConfigurationIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "name": "",
  "originalFloodlightConfigurationId": "",
  "status": "",
  "subaccountId": "",
  "suspended": false
}' |  \
  http PATCH '{{baseUrl}}/userprofiles/:profileId/advertisers?id=' \
  content-type:application/json
wget --quiet \
  --method PATCH \
  --header 'content-type: application/json' \
  --body-data '{\n  "accountId": "",\n  "advertiserGroupId": "",\n  "clickThroughUrlSuffix": "",\n  "defaultClickThroughEventTagId": "",\n  "defaultEmail": "",\n  "floodlightConfigurationId": "",\n  "floodlightConfigurationIdDimensionValue": {\n    "dimensionName": "",\n    "etag": "",\n    "id": "",\n    "kind": "",\n    "matchType": "",\n    "value": ""\n  },\n  "id": "",\n  "idDimensionValue": {},\n  "kind": "",\n  "name": "",\n  "originalFloodlightConfigurationId": "",\n  "status": "",\n  "subaccountId": "",\n  "suspended": false\n}' \
  --output-document \
  - '{{baseUrl}}/userprofiles/:profileId/advertisers?id='
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "accountId": "",
  "advertiserGroupId": "",
  "clickThroughUrlSuffix": "",
  "defaultClickThroughEventTagId": "",
  "defaultEmail": "",
  "floodlightConfigurationId": "",
  "floodlightConfigurationIdDimensionValue": [
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  ],
  "id": "",
  "idDimensionValue": [],
  "kind": "",
  "name": "",
  "originalFloodlightConfigurationId": "",
  "status": "",
  "subaccountId": "",
  "suspended": false
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/advertisers?id=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PATCH"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
PUT dfareporting.advertisers.update
{{baseUrl}}/userprofiles/:profileId/advertisers
QUERY PARAMS

profileId
BODY json

{
  "accountId": "",
  "advertiserGroupId": "",
  "clickThroughUrlSuffix": "",
  "defaultClickThroughEventTagId": "",
  "defaultEmail": "",
  "floodlightConfigurationId": "",
  "floodlightConfigurationIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "name": "",
  "originalFloodlightConfigurationId": "",
  "status": "",
  "subaccountId": "",
  "suspended": false
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/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  \"accountId\": \"\",\n  \"advertiserGroupId\": \"\",\n  \"clickThroughUrlSuffix\": \"\",\n  \"defaultClickThroughEventTagId\": \"\",\n  \"defaultEmail\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"originalFloodlightConfigurationId\": \"\",\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"suspended\": false\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/userprofiles/:profileId/advertisers" {:content-type :json
                                                                               :form-params {:accountId ""
                                                                                             :advertiserGroupId ""
                                                                                             :clickThroughUrlSuffix ""
                                                                                             :defaultClickThroughEventTagId ""
                                                                                             :defaultEmail ""
                                                                                             :floodlightConfigurationId ""
                                                                                             :floodlightConfigurationIdDimensionValue {:dimensionName ""
                                                                                                                                       :etag ""
                                                                                                                                       :id ""
                                                                                                                                       :kind ""
                                                                                                                                       :matchType ""
                                                                                                                                       :value ""}
                                                                                             :id ""
                                                                                             :idDimensionValue {}
                                                                                             :kind ""
                                                                                             :name ""
                                                                                             :originalFloodlightConfigurationId ""
                                                                                             :status ""
                                                                                             :subaccountId ""
                                                                                             :suspended false}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/advertisers"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"accountId\": \"\",\n  \"advertiserGroupId\": \"\",\n  \"clickThroughUrlSuffix\": \"\",\n  \"defaultClickThroughEventTagId\": \"\",\n  \"defaultEmail\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"originalFloodlightConfigurationId\": \"\",\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"suspended\": false\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/userprofiles/:profileId/advertisers"),
    Content = new StringContent("{\n  \"accountId\": \"\",\n  \"advertiserGroupId\": \"\",\n  \"clickThroughUrlSuffix\": \"\",\n  \"defaultClickThroughEventTagId\": \"\",\n  \"defaultEmail\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"originalFloodlightConfigurationId\": \"\",\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"suspended\": 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}}/userprofiles/:profileId/advertisers");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"accountId\": \"\",\n  \"advertiserGroupId\": \"\",\n  \"clickThroughUrlSuffix\": \"\",\n  \"defaultClickThroughEventTagId\": \"\",\n  \"defaultEmail\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"originalFloodlightConfigurationId\": \"\",\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"suspended\": false\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/advertisers"

	payload := strings.NewReader("{\n  \"accountId\": \"\",\n  \"advertiserGroupId\": \"\",\n  \"clickThroughUrlSuffix\": \"\",\n  \"defaultClickThroughEventTagId\": \"\",\n  \"defaultEmail\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"originalFloodlightConfigurationId\": \"\",\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"suspended\": false\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/userprofiles/:profileId/advertisers HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 504

{
  "accountId": "",
  "advertiserGroupId": "",
  "clickThroughUrlSuffix": "",
  "defaultClickThroughEventTagId": "",
  "defaultEmail": "",
  "floodlightConfigurationId": "",
  "floodlightConfigurationIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "name": "",
  "originalFloodlightConfigurationId": "",
  "status": "",
  "subaccountId": "",
  "suspended": false
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/userprofiles/:profileId/advertisers")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"accountId\": \"\",\n  \"advertiserGroupId\": \"\",\n  \"clickThroughUrlSuffix\": \"\",\n  \"defaultClickThroughEventTagId\": \"\",\n  \"defaultEmail\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"originalFloodlightConfigurationId\": \"\",\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"suspended\": false\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/advertisers"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"accountId\": \"\",\n  \"advertiserGroupId\": \"\",\n  \"clickThroughUrlSuffix\": \"\",\n  \"defaultClickThroughEventTagId\": \"\",\n  \"defaultEmail\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"originalFloodlightConfigurationId\": \"\",\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"suspended\": 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  \"accountId\": \"\",\n  \"advertiserGroupId\": \"\",\n  \"clickThroughUrlSuffix\": \"\",\n  \"defaultClickThroughEventTagId\": \"\",\n  \"defaultEmail\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"originalFloodlightConfigurationId\": \"\",\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"suspended\": false\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/advertisers")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/userprofiles/:profileId/advertisers")
  .header("content-type", "application/json")
  .body("{\n  \"accountId\": \"\",\n  \"advertiserGroupId\": \"\",\n  \"clickThroughUrlSuffix\": \"\",\n  \"defaultClickThroughEventTagId\": \"\",\n  \"defaultEmail\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"originalFloodlightConfigurationId\": \"\",\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"suspended\": false\n}")
  .asString();
const data = JSON.stringify({
  accountId: '',
  advertiserGroupId: '',
  clickThroughUrlSuffix: '',
  defaultClickThroughEventTagId: '',
  defaultEmail: '',
  floodlightConfigurationId: '',
  floodlightConfigurationIdDimensionValue: {
    dimensionName: '',
    etag: '',
    id: '',
    kind: '',
    matchType: '',
    value: ''
  },
  id: '',
  idDimensionValue: {},
  kind: '',
  name: '',
  originalFloodlightConfigurationId: '',
  status: '',
  subaccountId: '',
  suspended: false
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/userprofiles/:profileId/advertisers');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/userprofiles/:profileId/advertisers',
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    advertiserGroupId: '',
    clickThroughUrlSuffix: '',
    defaultClickThroughEventTagId: '',
    defaultEmail: '',
    floodlightConfigurationId: '',
    floodlightConfigurationIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    id: '',
    idDimensionValue: {},
    kind: '',
    name: '',
    originalFloodlightConfigurationId: '',
    status: '',
    subaccountId: '',
    suspended: false
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/advertisers';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","advertiserGroupId":"","clickThroughUrlSuffix":"","defaultClickThroughEventTagId":"","defaultEmail":"","floodlightConfigurationId":"","floodlightConfigurationIdDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"id":"","idDimensionValue":{},"kind":"","name":"","originalFloodlightConfigurationId":"","status":"","subaccountId":"","suspended":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}}/userprofiles/:profileId/advertisers',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "accountId": "",\n  "advertiserGroupId": "",\n  "clickThroughUrlSuffix": "",\n  "defaultClickThroughEventTagId": "",\n  "defaultEmail": "",\n  "floodlightConfigurationId": "",\n  "floodlightConfigurationIdDimensionValue": {\n    "dimensionName": "",\n    "etag": "",\n    "id": "",\n    "kind": "",\n    "matchType": "",\n    "value": ""\n  },\n  "id": "",\n  "idDimensionValue": {},\n  "kind": "",\n  "name": "",\n  "originalFloodlightConfigurationId": "",\n  "status": "",\n  "subaccountId": "",\n  "suspended": 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  \"accountId\": \"\",\n  \"advertiserGroupId\": \"\",\n  \"clickThroughUrlSuffix\": \"\",\n  \"defaultClickThroughEventTagId\": \"\",\n  \"defaultEmail\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"originalFloodlightConfigurationId\": \"\",\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"suspended\": false\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/advertisers")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/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({
  accountId: '',
  advertiserGroupId: '',
  clickThroughUrlSuffix: '',
  defaultClickThroughEventTagId: '',
  defaultEmail: '',
  floodlightConfigurationId: '',
  floodlightConfigurationIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
  id: '',
  idDimensionValue: {},
  kind: '',
  name: '',
  originalFloodlightConfigurationId: '',
  status: '',
  subaccountId: '',
  suspended: false
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/userprofiles/:profileId/advertisers',
  headers: {'content-type': 'application/json'},
  body: {
    accountId: '',
    advertiserGroupId: '',
    clickThroughUrlSuffix: '',
    defaultClickThroughEventTagId: '',
    defaultEmail: '',
    floodlightConfigurationId: '',
    floodlightConfigurationIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    id: '',
    idDimensionValue: {},
    kind: '',
    name: '',
    originalFloodlightConfigurationId: '',
    status: '',
    subaccountId: '',
    suspended: 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('PUT', '{{baseUrl}}/userprofiles/:profileId/advertisers');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  accountId: '',
  advertiserGroupId: '',
  clickThroughUrlSuffix: '',
  defaultClickThroughEventTagId: '',
  defaultEmail: '',
  floodlightConfigurationId: '',
  floodlightConfigurationIdDimensionValue: {
    dimensionName: '',
    etag: '',
    id: '',
    kind: '',
    matchType: '',
    value: ''
  },
  id: '',
  idDimensionValue: {},
  kind: '',
  name: '',
  originalFloodlightConfigurationId: '',
  status: '',
  subaccountId: '',
  suspended: 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: 'PUT',
  url: '{{baseUrl}}/userprofiles/:profileId/advertisers',
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    advertiserGroupId: '',
    clickThroughUrlSuffix: '',
    defaultClickThroughEventTagId: '',
    defaultEmail: '',
    floodlightConfigurationId: '',
    floodlightConfigurationIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    id: '',
    idDimensionValue: {},
    kind: '',
    name: '',
    originalFloodlightConfigurationId: '',
    status: '',
    subaccountId: '',
    suspended: false
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/advertisers';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","advertiserGroupId":"","clickThroughUrlSuffix":"","defaultClickThroughEventTagId":"","defaultEmail":"","floodlightConfigurationId":"","floodlightConfigurationIdDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"id":"","idDimensionValue":{},"kind":"","name":"","originalFloodlightConfigurationId":"","status":"","subaccountId":"","suspended":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 = @{ @"accountId": @"",
                              @"advertiserGroupId": @"",
                              @"clickThroughUrlSuffix": @"",
                              @"defaultClickThroughEventTagId": @"",
                              @"defaultEmail": @"",
                              @"floodlightConfigurationId": @"",
                              @"floodlightConfigurationIdDimensionValue": @{ @"dimensionName": @"", @"etag": @"", @"id": @"", @"kind": @"", @"matchType": @"", @"value": @"" },
                              @"id": @"",
                              @"idDimensionValue": @{  },
                              @"kind": @"",
                              @"name": @"",
                              @"originalFloodlightConfigurationId": @"",
                              @"status": @"",
                              @"subaccountId": @"",
                              @"suspended": @NO };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/userprofiles/:profileId/advertisers"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/userprofiles/:profileId/advertisers" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"accountId\": \"\",\n  \"advertiserGroupId\": \"\",\n  \"clickThroughUrlSuffix\": \"\",\n  \"defaultClickThroughEventTagId\": \"\",\n  \"defaultEmail\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"originalFloodlightConfigurationId\": \"\",\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"suspended\": false\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/advertisers",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'accountId' => '',
    'advertiserGroupId' => '',
    'clickThroughUrlSuffix' => '',
    'defaultClickThroughEventTagId' => '',
    'defaultEmail' => '',
    'floodlightConfigurationId' => '',
    'floodlightConfigurationIdDimensionValue' => [
        'dimensionName' => '',
        'etag' => '',
        'id' => '',
        'kind' => '',
        'matchType' => '',
        'value' => ''
    ],
    'id' => '',
    'idDimensionValue' => [
        
    ],
    'kind' => '',
    'name' => '',
    'originalFloodlightConfigurationId' => '',
    'status' => '',
    'subaccountId' => '',
    'suspended' => 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('PUT', '{{baseUrl}}/userprofiles/:profileId/advertisers', [
  'body' => '{
  "accountId": "",
  "advertiserGroupId": "",
  "clickThroughUrlSuffix": "",
  "defaultClickThroughEventTagId": "",
  "defaultEmail": "",
  "floodlightConfigurationId": "",
  "floodlightConfigurationIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "name": "",
  "originalFloodlightConfigurationId": "",
  "status": "",
  "subaccountId": "",
  "suspended": false
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/advertisers');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'accountId' => '',
  'advertiserGroupId' => '',
  'clickThroughUrlSuffix' => '',
  'defaultClickThroughEventTagId' => '',
  'defaultEmail' => '',
  'floodlightConfigurationId' => '',
  'floodlightConfigurationIdDimensionValue' => [
    'dimensionName' => '',
    'etag' => '',
    'id' => '',
    'kind' => '',
    'matchType' => '',
    'value' => ''
  ],
  'id' => '',
  'idDimensionValue' => [
    
  ],
  'kind' => '',
  'name' => '',
  'originalFloodlightConfigurationId' => '',
  'status' => '',
  'subaccountId' => '',
  'suspended' => null
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'accountId' => '',
  'advertiserGroupId' => '',
  'clickThroughUrlSuffix' => '',
  'defaultClickThroughEventTagId' => '',
  'defaultEmail' => '',
  'floodlightConfigurationId' => '',
  'floodlightConfigurationIdDimensionValue' => [
    'dimensionName' => '',
    'etag' => '',
    'id' => '',
    'kind' => '',
    'matchType' => '',
    'value' => ''
  ],
  'id' => '',
  'idDimensionValue' => [
    
  ],
  'kind' => '',
  'name' => '',
  'originalFloodlightConfigurationId' => '',
  'status' => '',
  'subaccountId' => '',
  'suspended' => null
]));
$request->setRequestUrl('{{baseUrl}}/userprofiles/:profileId/advertisers');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/advertisers' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "advertiserGroupId": "",
  "clickThroughUrlSuffix": "",
  "defaultClickThroughEventTagId": "",
  "defaultEmail": "",
  "floodlightConfigurationId": "",
  "floodlightConfigurationIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "name": "",
  "originalFloodlightConfigurationId": "",
  "status": "",
  "subaccountId": "",
  "suspended": false
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/advertisers' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "advertiserGroupId": "",
  "clickThroughUrlSuffix": "",
  "defaultClickThroughEventTagId": "",
  "defaultEmail": "",
  "floodlightConfigurationId": "",
  "floodlightConfigurationIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "name": "",
  "originalFloodlightConfigurationId": "",
  "status": "",
  "subaccountId": "",
  "suspended": false
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"accountId\": \"\",\n  \"advertiserGroupId\": \"\",\n  \"clickThroughUrlSuffix\": \"\",\n  \"defaultClickThroughEventTagId\": \"\",\n  \"defaultEmail\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"originalFloodlightConfigurationId\": \"\",\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"suspended\": false\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/userprofiles/:profileId/advertisers", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/advertisers"

payload = {
    "accountId": "",
    "advertiserGroupId": "",
    "clickThroughUrlSuffix": "",
    "defaultClickThroughEventTagId": "",
    "defaultEmail": "",
    "floodlightConfigurationId": "",
    "floodlightConfigurationIdDimensionValue": {
        "dimensionName": "",
        "etag": "",
        "id": "",
        "kind": "",
        "matchType": "",
        "value": ""
    },
    "id": "",
    "idDimensionValue": {},
    "kind": "",
    "name": "",
    "originalFloodlightConfigurationId": "",
    "status": "",
    "subaccountId": "",
    "suspended": False
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/advertisers"

payload <- "{\n  \"accountId\": \"\",\n  \"advertiserGroupId\": \"\",\n  \"clickThroughUrlSuffix\": \"\",\n  \"defaultClickThroughEventTagId\": \"\",\n  \"defaultEmail\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"originalFloodlightConfigurationId\": \"\",\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"suspended\": false\n}"

encode <- "json"

response <- VERB("PUT", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/advertisers")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"accountId\": \"\",\n  \"advertiserGroupId\": \"\",\n  \"clickThroughUrlSuffix\": \"\",\n  \"defaultClickThroughEventTagId\": \"\",\n  \"defaultEmail\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"originalFloodlightConfigurationId\": \"\",\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"suspended\": 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.put('/baseUrl/userprofiles/:profileId/advertisers') do |req|
  req.body = "{\n  \"accountId\": \"\",\n  \"advertiserGroupId\": \"\",\n  \"clickThroughUrlSuffix\": \"\",\n  \"defaultClickThroughEventTagId\": \"\",\n  \"defaultEmail\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"originalFloodlightConfigurationId\": \"\",\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"suspended\": 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}}/userprofiles/:profileId/advertisers";

    let payload = json!({
        "accountId": "",
        "advertiserGroupId": "",
        "clickThroughUrlSuffix": "",
        "defaultClickThroughEventTagId": "",
        "defaultEmail": "",
        "floodlightConfigurationId": "",
        "floodlightConfigurationIdDimensionValue": json!({
            "dimensionName": "",
            "etag": "",
            "id": "",
            "kind": "",
            "matchType": "",
            "value": ""
        }),
        "id": "",
        "idDimensionValue": json!({}),
        "kind": "",
        "name": "",
        "originalFloodlightConfigurationId": "",
        "status": "",
        "subaccountId": "",
        "suspended": 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("PUT").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/userprofiles/:profileId/advertisers \
  --header 'content-type: application/json' \
  --data '{
  "accountId": "",
  "advertiserGroupId": "",
  "clickThroughUrlSuffix": "",
  "defaultClickThroughEventTagId": "",
  "defaultEmail": "",
  "floodlightConfigurationId": "",
  "floodlightConfigurationIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "name": "",
  "originalFloodlightConfigurationId": "",
  "status": "",
  "subaccountId": "",
  "suspended": false
}'
echo '{
  "accountId": "",
  "advertiserGroupId": "",
  "clickThroughUrlSuffix": "",
  "defaultClickThroughEventTagId": "",
  "defaultEmail": "",
  "floodlightConfigurationId": "",
  "floodlightConfigurationIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "name": "",
  "originalFloodlightConfigurationId": "",
  "status": "",
  "subaccountId": "",
  "suspended": false
}' |  \
  http PUT {{baseUrl}}/userprofiles/:profileId/advertisers \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "accountId": "",\n  "advertiserGroupId": "",\n  "clickThroughUrlSuffix": "",\n  "defaultClickThroughEventTagId": "",\n  "defaultEmail": "",\n  "floodlightConfigurationId": "",\n  "floodlightConfigurationIdDimensionValue": {\n    "dimensionName": "",\n    "etag": "",\n    "id": "",\n    "kind": "",\n    "matchType": "",\n    "value": ""\n  },\n  "id": "",\n  "idDimensionValue": {},\n  "kind": "",\n  "name": "",\n  "originalFloodlightConfigurationId": "",\n  "status": "",\n  "subaccountId": "",\n  "suspended": false\n}' \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/advertisers
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "accountId": "",
  "advertiserGroupId": "",
  "clickThroughUrlSuffix": "",
  "defaultClickThroughEventTagId": "",
  "defaultEmail": "",
  "floodlightConfigurationId": "",
  "floodlightConfigurationIdDimensionValue": [
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  ],
  "id": "",
  "idDimensionValue": [],
  "kind": "",
  "name": "",
  "originalFloodlightConfigurationId": "",
  "status": "",
  "subaccountId": "",
  "suspended": false
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/advertisers")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET dfareporting.browsers.list
{{baseUrl}}/userprofiles/:profileId/browsers
QUERY PARAMS

profileId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/browsers");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/browsers")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/browsers"

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}}/userprofiles/:profileId/browsers"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/browsers");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/browsers"

	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/userprofiles/:profileId/browsers HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/browsers")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/browsers"))
    .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}}/userprofiles/:profileId/browsers")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/browsers")
  .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}}/userprofiles/:profileId/browsers');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/browsers'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/browsers';
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}}/userprofiles/:profileId/browsers',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/browsers")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/browsers',
  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}}/userprofiles/:profileId/browsers'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/browsers');

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}}/userprofiles/:profileId/browsers'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/browsers';
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}}/userprofiles/:profileId/browsers"]
                                                       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}}/userprofiles/:profileId/browsers" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/browsers",
  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}}/userprofiles/:profileId/browsers');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/browsers');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/browsers');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/browsers' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/browsers' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/browsers")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/browsers"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/browsers"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/browsers")

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/userprofiles/:profileId/browsers') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/browsers";

    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}}/userprofiles/:profileId/browsers
http GET {{baseUrl}}/userprofiles/:profileId/browsers
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/browsers
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/browsers")! 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 dfareporting.campaignCreativeAssociations.insert
{{baseUrl}}/userprofiles/:profileId/campaigns/:campaignId/campaignCreativeAssociations
QUERY PARAMS

profileId
campaignId
BODY json

{
  "creativeId": "",
  "kind": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/campaigns/:campaignId/campaignCreativeAssociations");

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  \"creativeId\": \"\",\n  \"kind\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/userprofiles/:profileId/campaigns/:campaignId/campaignCreativeAssociations" {:content-type :json
                                                                                                                       :form-params {:creativeId ""
                                                                                                                                     :kind ""}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/campaigns/:campaignId/campaignCreativeAssociations"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"creativeId\": \"\",\n  \"kind\": \"\"\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}}/userprofiles/:profileId/campaigns/:campaignId/campaignCreativeAssociations"),
    Content = new StringContent("{\n  \"creativeId\": \"\",\n  \"kind\": \"\"\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}}/userprofiles/:profileId/campaigns/:campaignId/campaignCreativeAssociations");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"creativeId\": \"\",\n  \"kind\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/campaigns/:campaignId/campaignCreativeAssociations"

	payload := strings.NewReader("{\n  \"creativeId\": \"\",\n  \"kind\": \"\"\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/userprofiles/:profileId/campaigns/:campaignId/campaignCreativeAssociations HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 36

{
  "creativeId": "",
  "kind": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/userprofiles/:profileId/campaigns/:campaignId/campaignCreativeAssociations")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"creativeId\": \"\",\n  \"kind\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/campaigns/:campaignId/campaignCreativeAssociations"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"creativeId\": \"\",\n  \"kind\": \"\"\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  \"creativeId\": \"\",\n  \"kind\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/campaigns/:campaignId/campaignCreativeAssociations")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/userprofiles/:profileId/campaigns/:campaignId/campaignCreativeAssociations")
  .header("content-type", "application/json")
  .body("{\n  \"creativeId\": \"\",\n  \"kind\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  creativeId: '',
  kind: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/userprofiles/:profileId/campaigns/:campaignId/campaignCreativeAssociations');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/userprofiles/:profileId/campaigns/:campaignId/campaignCreativeAssociations',
  headers: {'content-type': 'application/json'},
  data: {creativeId: '', kind: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/campaigns/:campaignId/campaignCreativeAssociations';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"creativeId":"","kind":""}'
};

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}}/userprofiles/:profileId/campaigns/:campaignId/campaignCreativeAssociations',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "creativeId": "",\n  "kind": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"creativeId\": \"\",\n  \"kind\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/campaigns/:campaignId/campaignCreativeAssociations")
  .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/userprofiles/:profileId/campaigns/:campaignId/campaignCreativeAssociations',
  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({creativeId: '', kind: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/userprofiles/:profileId/campaigns/:campaignId/campaignCreativeAssociations',
  headers: {'content-type': 'application/json'},
  body: {creativeId: '', kind: ''},
  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}}/userprofiles/:profileId/campaigns/:campaignId/campaignCreativeAssociations');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  creativeId: '',
  kind: ''
});

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}}/userprofiles/:profileId/campaigns/:campaignId/campaignCreativeAssociations',
  headers: {'content-type': 'application/json'},
  data: {creativeId: '', kind: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/campaigns/:campaignId/campaignCreativeAssociations';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"creativeId":"","kind":""}'
};

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 = @{ @"creativeId": @"",
                              @"kind": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/userprofiles/:profileId/campaigns/:campaignId/campaignCreativeAssociations"]
                                                       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}}/userprofiles/:profileId/campaigns/:campaignId/campaignCreativeAssociations" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"creativeId\": \"\",\n  \"kind\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/campaigns/:campaignId/campaignCreativeAssociations",
  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([
    'creativeId' => '',
    'kind' => ''
  ]),
  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}}/userprofiles/:profileId/campaigns/:campaignId/campaignCreativeAssociations', [
  'body' => '{
  "creativeId": "",
  "kind": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/campaigns/:campaignId/campaignCreativeAssociations');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'creativeId' => '',
  'kind' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'creativeId' => '',
  'kind' => ''
]));
$request->setRequestUrl('{{baseUrl}}/userprofiles/:profileId/campaigns/:campaignId/campaignCreativeAssociations');
$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}}/userprofiles/:profileId/campaigns/:campaignId/campaignCreativeAssociations' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "creativeId": "",
  "kind": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/campaigns/:campaignId/campaignCreativeAssociations' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "creativeId": "",
  "kind": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"creativeId\": \"\",\n  \"kind\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/userprofiles/:profileId/campaigns/:campaignId/campaignCreativeAssociations", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/campaigns/:campaignId/campaignCreativeAssociations"

payload = {
    "creativeId": "",
    "kind": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/campaigns/:campaignId/campaignCreativeAssociations"

payload <- "{\n  \"creativeId\": \"\",\n  \"kind\": \"\"\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}}/userprofiles/:profileId/campaigns/:campaignId/campaignCreativeAssociations")

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  \"creativeId\": \"\",\n  \"kind\": \"\"\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/userprofiles/:profileId/campaigns/:campaignId/campaignCreativeAssociations') do |req|
  req.body = "{\n  \"creativeId\": \"\",\n  \"kind\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/campaigns/:campaignId/campaignCreativeAssociations";

    let payload = json!({
        "creativeId": "",
        "kind": ""
    });

    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}}/userprofiles/:profileId/campaigns/:campaignId/campaignCreativeAssociations \
  --header 'content-type: application/json' \
  --data '{
  "creativeId": "",
  "kind": ""
}'
echo '{
  "creativeId": "",
  "kind": ""
}' |  \
  http POST {{baseUrl}}/userprofiles/:profileId/campaigns/:campaignId/campaignCreativeAssociations \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "creativeId": "",\n  "kind": ""\n}' \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/campaigns/:campaignId/campaignCreativeAssociations
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "creativeId": "",
  "kind": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/campaigns/:campaignId/campaignCreativeAssociations")! 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 dfareporting.campaignCreativeAssociations.list
{{baseUrl}}/userprofiles/:profileId/campaigns/:campaignId/campaignCreativeAssociations
QUERY PARAMS

profileId
campaignId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/campaigns/:campaignId/campaignCreativeAssociations");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/campaigns/:campaignId/campaignCreativeAssociations")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/campaigns/:campaignId/campaignCreativeAssociations"

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}}/userprofiles/:profileId/campaigns/:campaignId/campaignCreativeAssociations"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/campaigns/:campaignId/campaignCreativeAssociations");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/campaigns/:campaignId/campaignCreativeAssociations"

	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/userprofiles/:profileId/campaigns/:campaignId/campaignCreativeAssociations HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/campaigns/:campaignId/campaignCreativeAssociations")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/campaigns/:campaignId/campaignCreativeAssociations"))
    .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}}/userprofiles/:profileId/campaigns/:campaignId/campaignCreativeAssociations")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/campaigns/:campaignId/campaignCreativeAssociations")
  .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}}/userprofiles/:profileId/campaigns/:campaignId/campaignCreativeAssociations');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/campaigns/:campaignId/campaignCreativeAssociations'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/campaigns/:campaignId/campaignCreativeAssociations';
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}}/userprofiles/:profileId/campaigns/:campaignId/campaignCreativeAssociations',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/campaigns/:campaignId/campaignCreativeAssociations")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/campaigns/:campaignId/campaignCreativeAssociations',
  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}}/userprofiles/:profileId/campaigns/:campaignId/campaignCreativeAssociations'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/campaigns/:campaignId/campaignCreativeAssociations');

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}}/userprofiles/:profileId/campaigns/:campaignId/campaignCreativeAssociations'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/campaigns/:campaignId/campaignCreativeAssociations';
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}}/userprofiles/:profileId/campaigns/:campaignId/campaignCreativeAssociations"]
                                                       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}}/userprofiles/:profileId/campaigns/:campaignId/campaignCreativeAssociations" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/campaigns/:campaignId/campaignCreativeAssociations",
  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}}/userprofiles/:profileId/campaigns/:campaignId/campaignCreativeAssociations');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/campaigns/:campaignId/campaignCreativeAssociations');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/campaigns/:campaignId/campaignCreativeAssociations');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/campaigns/:campaignId/campaignCreativeAssociations' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/campaigns/:campaignId/campaignCreativeAssociations' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/campaigns/:campaignId/campaignCreativeAssociations")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/campaigns/:campaignId/campaignCreativeAssociations"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/campaigns/:campaignId/campaignCreativeAssociations"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/campaigns/:campaignId/campaignCreativeAssociations")

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/userprofiles/:profileId/campaigns/:campaignId/campaignCreativeAssociations') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/campaigns/:campaignId/campaignCreativeAssociations";

    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}}/userprofiles/:profileId/campaigns/:campaignId/campaignCreativeAssociations
http GET {{baseUrl}}/userprofiles/:profileId/campaigns/:campaignId/campaignCreativeAssociations
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/campaigns/:campaignId/campaignCreativeAssociations
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/campaigns/:campaignId/campaignCreativeAssociations")! 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 dfareporting.campaigns.get
{{baseUrl}}/userprofiles/:profileId/campaigns/:id
QUERY PARAMS

profileId
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/campaigns/:id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/campaigns/:id")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/campaigns/:id"

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}}/userprofiles/:profileId/campaigns/:id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/campaigns/:id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/campaigns/:id"

	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/userprofiles/:profileId/campaigns/:id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/campaigns/:id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/campaigns/:id"))
    .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}}/userprofiles/:profileId/campaigns/:id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/campaigns/:id")
  .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}}/userprofiles/:profileId/campaigns/:id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/campaigns/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/campaigns/:id';
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}}/userprofiles/:profileId/campaigns/:id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/campaigns/:id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/campaigns/:id',
  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}}/userprofiles/:profileId/campaigns/:id'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/campaigns/:id');

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}}/userprofiles/:profileId/campaigns/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/campaigns/:id';
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}}/userprofiles/:profileId/campaigns/:id"]
                                                       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}}/userprofiles/:profileId/campaigns/:id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/campaigns/:id",
  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}}/userprofiles/:profileId/campaigns/:id');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/campaigns/:id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/campaigns/:id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/campaigns/:id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/campaigns/:id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/campaigns/:id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/campaigns/:id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/campaigns/:id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/campaigns/:id")

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/userprofiles/:profileId/campaigns/:id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/campaigns/:id";

    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}}/userprofiles/:profileId/campaigns/:id
http GET {{baseUrl}}/userprofiles/:profileId/campaigns/:id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/campaigns/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/campaigns/:id")! 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 dfareporting.campaigns.insert
{{baseUrl}}/userprofiles/:profileId/campaigns
QUERY PARAMS

profileId
BODY json

{
  "accountId": "",
  "adBlockingConfiguration": {
    "clickThroughUrl": "",
    "creativeBundleId": "",
    "enabled": false,
    "overrideClickThroughUrl": false
  },
  "additionalCreativeOptimizationConfigurations": [
    {
      "id": "",
      "name": "",
      "optimizationActivitys": [
        {
          "floodlightActivityId": "",
          "floodlightActivityIdDimensionValue": {
            "dimensionName": "",
            "etag": "",
            "id": "",
            "kind": "",
            "matchType": "",
            "value": ""
          },
          "weight": 0
        }
      ],
      "optimizationModel": ""
    }
  ],
  "advertiserGroupId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {},
  "archived": false,
  "audienceSegmentGroups": [
    {
      "audienceSegments": [
        {
          "allocation": 0,
          "id": "",
          "name": ""
        }
      ],
      "id": "",
      "name": ""
    }
  ],
  "billingInvoiceCode": "",
  "clickThroughUrlSuffixProperties": {
    "clickThroughUrlSuffix": "",
    "overrideInheritedSuffix": false
  },
  "comment": "",
  "createInfo": {
    "time": ""
  },
  "creativeGroupIds": [],
  "creativeOptimizationConfiguration": {},
  "defaultClickThroughEventTagProperties": {
    "defaultClickThroughEventTagId": "",
    "overrideInheritedEventTag": false
  },
  "defaultLandingPageId": "",
  "endDate": "",
  "eventTagOverrides": [
    {
      "enabled": false,
      "id": ""
    }
  ],
  "externalId": "",
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "lastModifiedInfo": {},
  "name": "",
  "nielsenOcrEnabled": false,
  "startDate": "",
  "subaccountId": "",
  "traffickerEmails": []
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/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  \"accountId\": \"\",\n  \"adBlockingConfiguration\": {\n    \"clickThroughUrl\": \"\",\n    \"creativeBundleId\": \"\",\n    \"enabled\": false,\n    \"overrideClickThroughUrl\": false\n  },\n  \"additionalCreativeOptimizationConfigurations\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"optimizationActivitys\": [\n        {\n          \"floodlightActivityId\": \"\",\n          \"floodlightActivityIdDimensionValue\": {\n            \"dimensionName\": \"\",\n            \"etag\": \"\",\n            \"id\": \"\",\n            \"kind\": \"\",\n            \"matchType\": \"\",\n            \"value\": \"\"\n          },\n          \"weight\": 0\n        }\n      ],\n      \"optimizationModel\": \"\"\n    }\n  ],\n  \"advertiserGroupId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {},\n  \"archived\": false,\n  \"audienceSegmentGroups\": [\n    {\n      \"audienceSegments\": [\n        {\n          \"allocation\": 0,\n          \"id\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"billingInvoiceCode\": \"\",\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comment\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupIds\": [],\n  \"creativeOptimizationConfiguration\": {},\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"defaultLandingPageId\": \"\",\n  \"endDate\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"nielsenOcrEnabled\": false,\n  \"startDate\": \"\",\n  \"subaccountId\": \"\",\n  \"traffickerEmails\": []\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/userprofiles/:profileId/campaigns" {:content-type :json
                                                                              :form-params {:accountId ""
                                                                                            :adBlockingConfiguration {:clickThroughUrl ""
                                                                                                                      :creativeBundleId ""
                                                                                                                      :enabled false
                                                                                                                      :overrideClickThroughUrl false}
                                                                                            :additionalCreativeOptimizationConfigurations [{:id ""
                                                                                                                                            :name ""
                                                                                                                                            :optimizationActivitys [{:floodlightActivityId ""
                                                                                                                                                                     :floodlightActivityIdDimensionValue {:dimensionName ""
                                                                                                                                                                                                          :etag ""
                                                                                                                                                                                                          :id ""
                                                                                                                                                                                                          :kind ""
                                                                                                                                                                                                          :matchType ""
                                                                                                                                                                                                          :value ""}
                                                                                                                                                                     :weight 0}]
                                                                                                                                            :optimizationModel ""}]
                                                                                            :advertiserGroupId ""
                                                                                            :advertiserId ""
                                                                                            :advertiserIdDimensionValue {}
                                                                                            :archived false
                                                                                            :audienceSegmentGroups [{:audienceSegments [{:allocation 0
                                                                                                                                         :id ""
                                                                                                                                         :name ""}]
                                                                                                                     :id ""
                                                                                                                     :name ""}]
                                                                                            :billingInvoiceCode ""
                                                                                            :clickThroughUrlSuffixProperties {:clickThroughUrlSuffix ""
                                                                                                                              :overrideInheritedSuffix false}
                                                                                            :comment ""
                                                                                            :createInfo {:time ""}
                                                                                            :creativeGroupIds []
                                                                                            :creativeOptimizationConfiguration {}
                                                                                            :defaultClickThroughEventTagProperties {:defaultClickThroughEventTagId ""
                                                                                                                                    :overrideInheritedEventTag false}
                                                                                            :defaultLandingPageId ""
                                                                                            :endDate ""
                                                                                            :eventTagOverrides [{:enabled false
                                                                                                                 :id ""}]
                                                                                            :externalId ""
                                                                                            :id ""
                                                                                            :idDimensionValue {}
                                                                                            :kind ""
                                                                                            :lastModifiedInfo {}
                                                                                            :name ""
                                                                                            :nielsenOcrEnabled false
                                                                                            :startDate ""
                                                                                            :subaccountId ""
                                                                                            :traffickerEmails []}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/campaigns"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"accountId\": \"\",\n  \"adBlockingConfiguration\": {\n    \"clickThroughUrl\": \"\",\n    \"creativeBundleId\": \"\",\n    \"enabled\": false,\n    \"overrideClickThroughUrl\": false\n  },\n  \"additionalCreativeOptimizationConfigurations\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"optimizationActivitys\": [\n        {\n          \"floodlightActivityId\": \"\",\n          \"floodlightActivityIdDimensionValue\": {\n            \"dimensionName\": \"\",\n            \"etag\": \"\",\n            \"id\": \"\",\n            \"kind\": \"\",\n            \"matchType\": \"\",\n            \"value\": \"\"\n          },\n          \"weight\": 0\n        }\n      ],\n      \"optimizationModel\": \"\"\n    }\n  ],\n  \"advertiserGroupId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {},\n  \"archived\": false,\n  \"audienceSegmentGroups\": [\n    {\n      \"audienceSegments\": [\n        {\n          \"allocation\": 0,\n          \"id\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"billingInvoiceCode\": \"\",\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comment\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupIds\": [],\n  \"creativeOptimizationConfiguration\": {},\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"defaultLandingPageId\": \"\",\n  \"endDate\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"nielsenOcrEnabled\": false,\n  \"startDate\": \"\",\n  \"subaccountId\": \"\",\n  \"traffickerEmails\": []\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}}/userprofiles/:profileId/campaigns"),
    Content = new StringContent("{\n  \"accountId\": \"\",\n  \"adBlockingConfiguration\": {\n    \"clickThroughUrl\": \"\",\n    \"creativeBundleId\": \"\",\n    \"enabled\": false,\n    \"overrideClickThroughUrl\": false\n  },\n  \"additionalCreativeOptimizationConfigurations\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"optimizationActivitys\": [\n        {\n          \"floodlightActivityId\": \"\",\n          \"floodlightActivityIdDimensionValue\": {\n            \"dimensionName\": \"\",\n            \"etag\": \"\",\n            \"id\": \"\",\n            \"kind\": \"\",\n            \"matchType\": \"\",\n            \"value\": \"\"\n          },\n          \"weight\": 0\n        }\n      ],\n      \"optimizationModel\": \"\"\n    }\n  ],\n  \"advertiserGroupId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {},\n  \"archived\": false,\n  \"audienceSegmentGroups\": [\n    {\n      \"audienceSegments\": [\n        {\n          \"allocation\": 0,\n          \"id\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"billingInvoiceCode\": \"\",\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comment\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupIds\": [],\n  \"creativeOptimizationConfiguration\": {},\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"defaultLandingPageId\": \"\",\n  \"endDate\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"nielsenOcrEnabled\": false,\n  \"startDate\": \"\",\n  \"subaccountId\": \"\",\n  \"traffickerEmails\": []\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}}/userprofiles/:profileId/campaigns");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"accountId\": \"\",\n  \"adBlockingConfiguration\": {\n    \"clickThroughUrl\": \"\",\n    \"creativeBundleId\": \"\",\n    \"enabled\": false,\n    \"overrideClickThroughUrl\": false\n  },\n  \"additionalCreativeOptimizationConfigurations\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"optimizationActivitys\": [\n        {\n          \"floodlightActivityId\": \"\",\n          \"floodlightActivityIdDimensionValue\": {\n            \"dimensionName\": \"\",\n            \"etag\": \"\",\n            \"id\": \"\",\n            \"kind\": \"\",\n            \"matchType\": \"\",\n            \"value\": \"\"\n          },\n          \"weight\": 0\n        }\n      ],\n      \"optimizationModel\": \"\"\n    }\n  ],\n  \"advertiserGroupId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {},\n  \"archived\": false,\n  \"audienceSegmentGroups\": [\n    {\n      \"audienceSegments\": [\n        {\n          \"allocation\": 0,\n          \"id\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"billingInvoiceCode\": \"\",\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comment\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupIds\": [],\n  \"creativeOptimizationConfiguration\": {},\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"defaultLandingPageId\": \"\",\n  \"endDate\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"nielsenOcrEnabled\": false,\n  \"startDate\": \"\",\n  \"subaccountId\": \"\",\n  \"traffickerEmails\": []\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/campaigns"

	payload := strings.NewReader("{\n  \"accountId\": \"\",\n  \"adBlockingConfiguration\": {\n    \"clickThroughUrl\": \"\",\n    \"creativeBundleId\": \"\",\n    \"enabled\": false,\n    \"overrideClickThroughUrl\": false\n  },\n  \"additionalCreativeOptimizationConfigurations\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"optimizationActivitys\": [\n        {\n          \"floodlightActivityId\": \"\",\n          \"floodlightActivityIdDimensionValue\": {\n            \"dimensionName\": \"\",\n            \"etag\": \"\",\n            \"id\": \"\",\n            \"kind\": \"\",\n            \"matchType\": \"\",\n            \"value\": \"\"\n          },\n          \"weight\": 0\n        }\n      ],\n      \"optimizationModel\": \"\"\n    }\n  ],\n  \"advertiserGroupId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {},\n  \"archived\": false,\n  \"audienceSegmentGroups\": [\n    {\n      \"audienceSegments\": [\n        {\n          \"allocation\": 0,\n          \"id\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"billingInvoiceCode\": \"\",\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comment\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupIds\": [],\n  \"creativeOptimizationConfiguration\": {},\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"defaultLandingPageId\": \"\",\n  \"endDate\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"nielsenOcrEnabled\": false,\n  \"startDate\": \"\",\n  \"subaccountId\": \"\",\n  \"traffickerEmails\": []\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/userprofiles/:profileId/campaigns HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 1688

{
  "accountId": "",
  "adBlockingConfiguration": {
    "clickThroughUrl": "",
    "creativeBundleId": "",
    "enabled": false,
    "overrideClickThroughUrl": false
  },
  "additionalCreativeOptimizationConfigurations": [
    {
      "id": "",
      "name": "",
      "optimizationActivitys": [
        {
          "floodlightActivityId": "",
          "floodlightActivityIdDimensionValue": {
            "dimensionName": "",
            "etag": "",
            "id": "",
            "kind": "",
            "matchType": "",
            "value": ""
          },
          "weight": 0
        }
      ],
      "optimizationModel": ""
    }
  ],
  "advertiserGroupId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {},
  "archived": false,
  "audienceSegmentGroups": [
    {
      "audienceSegments": [
        {
          "allocation": 0,
          "id": "",
          "name": ""
        }
      ],
      "id": "",
      "name": ""
    }
  ],
  "billingInvoiceCode": "",
  "clickThroughUrlSuffixProperties": {
    "clickThroughUrlSuffix": "",
    "overrideInheritedSuffix": false
  },
  "comment": "",
  "createInfo": {
    "time": ""
  },
  "creativeGroupIds": [],
  "creativeOptimizationConfiguration": {},
  "defaultClickThroughEventTagProperties": {
    "defaultClickThroughEventTagId": "",
    "overrideInheritedEventTag": false
  },
  "defaultLandingPageId": "",
  "endDate": "",
  "eventTagOverrides": [
    {
      "enabled": false,
      "id": ""
    }
  ],
  "externalId": "",
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "lastModifiedInfo": {},
  "name": "",
  "nielsenOcrEnabled": false,
  "startDate": "",
  "subaccountId": "",
  "traffickerEmails": []
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/userprofiles/:profileId/campaigns")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"accountId\": \"\",\n  \"adBlockingConfiguration\": {\n    \"clickThroughUrl\": \"\",\n    \"creativeBundleId\": \"\",\n    \"enabled\": false,\n    \"overrideClickThroughUrl\": false\n  },\n  \"additionalCreativeOptimizationConfigurations\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"optimizationActivitys\": [\n        {\n          \"floodlightActivityId\": \"\",\n          \"floodlightActivityIdDimensionValue\": {\n            \"dimensionName\": \"\",\n            \"etag\": \"\",\n            \"id\": \"\",\n            \"kind\": \"\",\n            \"matchType\": \"\",\n            \"value\": \"\"\n          },\n          \"weight\": 0\n        }\n      ],\n      \"optimizationModel\": \"\"\n    }\n  ],\n  \"advertiserGroupId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {},\n  \"archived\": false,\n  \"audienceSegmentGroups\": [\n    {\n      \"audienceSegments\": [\n        {\n          \"allocation\": 0,\n          \"id\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"billingInvoiceCode\": \"\",\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comment\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupIds\": [],\n  \"creativeOptimizationConfiguration\": {},\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"defaultLandingPageId\": \"\",\n  \"endDate\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"nielsenOcrEnabled\": false,\n  \"startDate\": \"\",\n  \"subaccountId\": \"\",\n  \"traffickerEmails\": []\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/campaigns"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"accountId\": \"\",\n  \"adBlockingConfiguration\": {\n    \"clickThroughUrl\": \"\",\n    \"creativeBundleId\": \"\",\n    \"enabled\": false,\n    \"overrideClickThroughUrl\": false\n  },\n  \"additionalCreativeOptimizationConfigurations\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"optimizationActivitys\": [\n        {\n          \"floodlightActivityId\": \"\",\n          \"floodlightActivityIdDimensionValue\": {\n            \"dimensionName\": \"\",\n            \"etag\": \"\",\n            \"id\": \"\",\n            \"kind\": \"\",\n            \"matchType\": \"\",\n            \"value\": \"\"\n          },\n          \"weight\": 0\n        }\n      ],\n      \"optimizationModel\": \"\"\n    }\n  ],\n  \"advertiserGroupId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {},\n  \"archived\": false,\n  \"audienceSegmentGroups\": [\n    {\n      \"audienceSegments\": [\n        {\n          \"allocation\": 0,\n          \"id\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"billingInvoiceCode\": \"\",\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comment\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupIds\": [],\n  \"creativeOptimizationConfiguration\": {},\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"defaultLandingPageId\": \"\",\n  \"endDate\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"nielsenOcrEnabled\": false,\n  \"startDate\": \"\",\n  \"subaccountId\": \"\",\n  \"traffickerEmails\": []\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  \"accountId\": \"\",\n  \"adBlockingConfiguration\": {\n    \"clickThroughUrl\": \"\",\n    \"creativeBundleId\": \"\",\n    \"enabled\": false,\n    \"overrideClickThroughUrl\": false\n  },\n  \"additionalCreativeOptimizationConfigurations\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"optimizationActivitys\": [\n        {\n          \"floodlightActivityId\": \"\",\n          \"floodlightActivityIdDimensionValue\": {\n            \"dimensionName\": \"\",\n            \"etag\": \"\",\n            \"id\": \"\",\n            \"kind\": \"\",\n            \"matchType\": \"\",\n            \"value\": \"\"\n          },\n          \"weight\": 0\n        }\n      ],\n      \"optimizationModel\": \"\"\n    }\n  ],\n  \"advertiserGroupId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {},\n  \"archived\": false,\n  \"audienceSegmentGroups\": [\n    {\n      \"audienceSegments\": [\n        {\n          \"allocation\": 0,\n          \"id\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"billingInvoiceCode\": \"\",\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comment\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupIds\": [],\n  \"creativeOptimizationConfiguration\": {},\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"defaultLandingPageId\": \"\",\n  \"endDate\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"nielsenOcrEnabled\": false,\n  \"startDate\": \"\",\n  \"subaccountId\": \"\",\n  \"traffickerEmails\": []\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/campaigns")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/userprofiles/:profileId/campaigns")
  .header("content-type", "application/json")
  .body("{\n  \"accountId\": \"\",\n  \"adBlockingConfiguration\": {\n    \"clickThroughUrl\": \"\",\n    \"creativeBundleId\": \"\",\n    \"enabled\": false,\n    \"overrideClickThroughUrl\": false\n  },\n  \"additionalCreativeOptimizationConfigurations\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"optimizationActivitys\": [\n        {\n          \"floodlightActivityId\": \"\",\n          \"floodlightActivityIdDimensionValue\": {\n            \"dimensionName\": \"\",\n            \"etag\": \"\",\n            \"id\": \"\",\n            \"kind\": \"\",\n            \"matchType\": \"\",\n            \"value\": \"\"\n          },\n          \"weight\": 0\n        }\n      ],\n      \"optimizationModel\": \"\"\n    }\n  ],\n  \"advertiserGroupId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {},\n  \"archived\": false,\n  \"audienceSegmentGroups\": [\n    {\n      \"audienceSegments\": [\n        {\n          \"allocation\": 0,\n          \"id\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"billingInvoiceCode\": \"\",\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comment\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupIds\": [],\n  \"creativeOptimizationConfiguration\": {},\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"defaultLandingPageId\": \"\",\n  \"endDate\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"nielsenOcrEnabled\": false,\n  \"startDate\": \"\",\n  \"subaccountId\": \"\",\n  \"traffickerEmails\": []\n}")
  .asString();
const data = JSON.stringify({
  accountId: '',
  adBlockingConfiguration: {
    clickThroughUrl: '',
    creativeBundleId: '',
    enabled: false,
    overrideClickThroughUrl: false
  },
  additionalCreativeOptimizationConfigurations: [
    {
      id: '',
      name: '',
      optimizationActivitys: [
        {
          floodlightActivityId: '',
          floodlightActivityIdDimensionValue: {
            dimensionName: '',
            etag: '',
            id: '',
            kind: '',
            matchType: '',
            value: ''
          },
          weight: 0
        }
      ],
      optimizationModel: ''
    }
  ],
  advertiserGroupId: '',
  advertiserId: '',
  advertiserIdDimensionValue: {},
  archived: false,
  audienceSegmentGroups: [
    {
      audienceSegments: [
        {
          allocation: 0,
          id: '',
          name: ''
        }
      ],
      id: '',
      name: ''
    }
  ],
  billingInvoiceCode: '',
  clickThroughUrlSuffixProperties: {
    clickThroughUrlSuffix: '',
    overrideInheritedSuffix: false
  },
  comment: '',
  createInfo: {
    time: ''
  },
  creativeGroupIds: [],
  creativeOptimizationConfiguration: {},
  defaultClickThroughEventTagProperties: {
    defaultClickThroughEventTagId: '',
    overrideInheritedEventTag: false
  },
  defaultLandingPageId: '',
  endDate: '',
  eventTagOverrides: [
    {
      enabled: false,
      id: ''
    }
  ],
  externalId: '',
  id: '',
  idDimensionValue: {},
  kind: '',
  lastModifiedInfo: {},
  name: '',
  nielsenOcrEnabled: false,
  startDate: '',
  subaccountId: '',
  traffickerEmails: []
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/userprofiles/:profileId/campaigns');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/userprofiles/:profileId/campaigns',
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    adBlockingConfiguration: {
      clickThroughUrl: '',
      creativeBundleId: '',
      enabled: false,
      overrideClickThroughUrl: false
    },
    additionalCreativeOptimizationConfigurations: [
      {
        id: '',
        name: '',
        optimizationActivitys: [
          {
            floodlightActivityId: '',
            floodlightActivityIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
            weight: 0
          }
        ],
        optimizationModel: ''
      }
    ],
    advertiserGroupId: '',
    advertiserId: '',
    advertiserIdDimensionValue: {},
    archived: false,
    audienceSegmentGroups: [{audienceSegments: [{allocation: 0, id: '', name: ''}], id: '', name: ''}],
    billingInvoiceCode: '',
    clickThroughUrlSuffixProperties: {clickThroughUrlSuffix: '', overrideInheritedSuffix: false},
    comment: '',
    createInfo: {time: ''},
    creativeGroupIds: [],
    creativeOptimizationConfiguration: {},
    defaultClickThroughEventTagProperties: {defaultClickThroughEventTagId: '', overrideInheritedEventTag: false},
    defaultLandingPageId: '',
    endDate: '',
    eventTagOverrides: [{enabled: false, id: ''}],
    externalId: '',
    id: '',
    idDimensionValue: {},
    kind: '',
    lastModifiedInfo: {},
    name: '',
    nielsenOcrEnabled: false,
    startDate: '',
    subaccountId: '',
    traffickerEmails: []
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/campaigns';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","adBlockingConfiguration":{"clickThroughUrl":"","creativeBundleId":"","enabled":false,"overrideClickThroughUrl":false},"additionalCreativeOptimizationConfigurations":[{"id":"","name":"","optimizationActivitys":[{"floodlightActivityId":"","floodlightActivityIdDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"weight":0}],"optimizationModel":""}],"advertiserGroupId":"","advertiserId":"","advertiserIdDimensionValue":{},"archived":false,"audienceSegmentGroups":[{"audienceSegments":[{"allocation":0,"id":"","name":""}],"id":"","name":""}],"billingInvoiceCode":"","clickThroughUrlSuffixProperties":{"clickThroughUrlSuffix":"","overrideInheritedSuffix":false},"comment":"","createInfo":{"time":""},"creativeGroupIds":[],"creativeOptimizationConfiguration":{},"defaultClickThroughEventTagProperties":{"defaultClickThroughEventTagId":"","overrideInheritedEventTag":false},"defaultLandingPageId":"","endDate":"","eventTagOverrides":[{"enabled":false,"id":""}],"externalId":"","id":"","idDimensionValue":{},"kind":"","lastModifiedInfo":{},"name":"","nielsenOcrEnabled":false,"startDate":"","subaccountId":"","traffickerEmails":[]}'
};

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}}/userprofiles/:profileId/campaigns',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "accountId": "",\n  "adBlockingConfiguration": {\n    "clickThroughUrl": "",\n    "creativeBundleId": "",\n    "enabled": false,\n    "overrideClickThroughUrl": false\n  },\n  "additionalCreativeOptimizationConfigurations": [\n    {\n      "id": "",\n      "name": "",\n      "optimizationActivitys": [\n        {\n          "floodlightActivityId": "",\n          "floodlightActivityIdDimensionValue": {\n            "dimensionName": "",\n            "etag": "",\n            "id": "",\n            "kind": "",\n            "matchType": "",\n            "value": ""\n          },\n          "weight": 0\n        }\n      ],\n      "optimizationModel": ""\n    }\n  ],\n  "advertiserGroupId": "",\n  "advertiserId": "",\n  "advertiserIdDimensionValue": {},\n  "archived": false,\n  "audienceSegmentGroups": [\n    {\n      "audienceSegments": [\n        {\n          "allocation": 0,\n          "id": "",\n          "name": ""\n        }\n      ],\n      "id": "",\n      "name": ""\n    }\n  ],\n  "billingInvoiceCode": "",\n  "clickThroughUrlSuffixProperties": {\n    "clickThroughUrlSuffix": "",\n    "overrideInheritedSuffix": false\n  },\n  "comment": "",\n  "createInfo": {\n    "time": ""\n  },\n  "creativeGroupIds": [],\n  "creativeOptimizationConfiguration": {},\n  "defaultClickThroughEventTagProperties": {\n    "defaultClickThroughEventTagId": "",\n    "overrideInheritedEventTag": false\n  },\n  "defaultLandingPageId": "",\n  "endDate": "",\n  "eventTagOverrides": [\n    {\n      "enabled": false,\n      "id": ""\n    }\n  ],\n  "externalId": "",\n  "id": "",\n  "idDimensionValue": {},\n  "kind": "",\n  "lastModifiedInfo": {},\n  "name": "",\n  "nielsenOcrEnabled": false,\n  "startDate": "",\n  "subaccountId": "",\n  "traffickerEmails": []\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"accountId\": \"\",\n  \"adBlockingConfiguration\": {\n    \"clickThroughUrl\": \"\",\n    \"creativeBundleId\": \"\",\n    \"enabled\": false,\n    \"overrideClickThroughUrl\": false\n  },\n  \"additionalCreativeOptimizationConfigurations\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"optimizationActivitys\": [\n        {\n          \"floodlightActivityId\": \"\",\n          \"floodlightActivityIdDimensionValue\": {\n            \"dimensionName\": \"\",\n            \"etag\": \"\",\n            \"id\": \"\",\n            \"kind\": \"\",\n            \"matchType\": \"\",\n            \"value\": \"\"\n          },\n          \"weight\": 0\n        }\n      ],\n      \"optimizationModel\": \"\"\n    }\n  ],\n  \"advertiserGroupId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {},\n  \"archived\": false,\n  \"audienceSegmentGroups\": [\n    {\n      \"audienceSegments\": [\n        {\n          \"allocation\": 0,\n          \"id\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"billingInvoiceCode\": \"\",\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comment\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupIds\": [],\n  \"creativeOptimizationConfiguration\": {},\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"defaultLandingPageId\": \"\",\n  \"endDate\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"nielsenOcrEnabled\": false,\n  \"startDate\": \"\",\n  \"subaccountId\": \"\",\n  \"traffickerEmails\": []\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/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/userprofiles/:profileId/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({
  accountId: '',
  adBlockingConfiguration: {
    clickThroughUrl: '',
    creativeBundleId: '',
    enabled: false,
    overrideClickThroughUrl: false
  },
  additionalCreativeOptimizationConfigurations: [
    {
      id: '',
      name: '',
      optimizationActivitys: [
        {
          floodlightActivityId: '',
          floodlightActivityIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
          weight: 0
        }
      ],
      optimizationModel: ''
    }
  ],
  advertiserGroupId: '',
  advertiserId: '',
  advertiserIdDimensionValue: {},
  archived: false,
  audienceSegmentGroups: [{audienceSegments: [{allocation: 0, id: '', name: ''}], id: '', name: ''}],
  billingInvoiceCode: '',
  clickThroughUrlSuffixProperties: {clickThroughUrlSuffix: '', overrideInheritedSuffix: false},
  comment: '',
  createInfo: {time: ''},
  creativeGroupIds: [],
  creativeOptimizationConfiguration: {},
  defaultClickThroughEventTagProperties: {defaultClickThroughEventTagId: '', overrideInheritedEventTag: false},
  defaultLandingPageId: '',
  endDate: '',
  eventTagOverrides: [{enabled: false, id: ''}],
  externalId: '',
  id: '',
  idDimensionValue: {},
  kind: '',
  lastModifiedInfo: {},
  name: '',
  nielsenOcrEnabled: false,
  startDate: '',
  subaccountId: '',
  traffickerEmails: []
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/userprofiles/:profileId/campaigns',
  headers: {'content-type': 'application/json'},
  body: {
    accountId: '',
    adBlockingConfiguration: {
      clickThroughUrl: '',
      creativeBundleId: '',
      enabled: false,
      overrideClickThroughUrl: false
    },
    additionalCreativeOptimizationConfigurations: [
      {
        id: '',
        name: '',
        optimizationActivitys: [
          {
            floodlightActivityId: '',
            floodlightActivityIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
            weight: 0
          }
        ],
        optimizationModel: ''
      }
    ],
    advertiserGroupId: '',
    advertiserId: '',
    advertiserIdDimensionValue: {},
    archived: false,
    audienceSegmentGroups: [{audienceSegments: [{allocation: 0, id: '', name: ''}], id: '', name: ''}],
    billingInvoiceCode: '',
    clickThroughUrlSuffixProperties: {clickThroughUrlSuffix: '', overrideInheritedSuffix: false},
    comment: '',
    createInfo: {time: ''},
    creativeGroupIds: [],
    creativeOptimizationConfiguration: {},
    defaultClickThroughEventTagProperties: {defaultClickThroughEventTagId: '', overrideInheritedEventTag: false},
    defaultLandingPageId: '',
    endDate: '',
    eventTagOverrides: [{enabled: false, id: ''}],
    externalId: '',
    id: '',
    idDimensionValue: {},
    kind: '',
    lastModifiedInfo: {},
    name: '',
    nielsenOcrEnabled: false,
    startDate: '',
    subaccountId: '',
    traffickerEmails: []
  },
  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}}/userprofiles/:profileId/campaigns');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  accountId: '',
  adBlockingConfiguration: {
    clickThroughUrl: '',
    creativeBundleId: '',
    enabled: false,
    overrideClickThroughUrl: false
  },
  additionalCreativeOptimizationConfigurations: [
    {
      id: '',
      name: '',
      optimizationActivitys: [
        {
          floodlightActivityId: '',
          floodlightActivityIdDimensionValue: {
            dimensionName: '',
            etag: '',
            id: '',
            kind: '',
            matchType: '',
            value: ''
          },
          weight: 0
        }
      ],
      optimizationModel: ''
    }
  ],
  advertiserGroupId: '',
  advertiserId: '',
  advertiserIdDimensionValue: {},
  archived: false,
  audienceSegmentGroups: [
    {
      audienceSegments: [
        {
          allocation: 0,
          id: '',
          name: ''
        }
      ],
      id: '',
      name: ''
    }
  ],
  billingInvoiceCode: '',
  clickThroughUrlSuffixProperties: {
    clickThroughUrlSuffix: '',
    overrideInheritedSuffix: false
  },
  comment: '',
  createInfo: {
    time: ''
  },
  creativeGroupIds: [],
  creativeOptimizationConfiguration: {},
  defaultClickThroughEventTagProperties: {
    defaultClickThroughEventTagId: '',
    overrideInheritedEventTag: false
  },
  defaultLandingPageId: '',
  endDate: '',
  eventTagOverrides: [
    {
      enabled: false,
      id: ''
    }
  ],
  externalId: '',
  id: '',
  idDimensionValue: {},
  kind: '',
  lastModifiedInfo: {},
  name: '',
  nielsenOcrEnabled: false,
  startDate: '',
  subaccountId: '',
  traffickerEmails: []
});

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}}/userprofiles/:profileId/campaigns',
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    adBlockingConfiguration: {
      clickThroughUrl: '',
      creativeBundleId: '',
      enabled: false,
      overrideClickThroughUrl: false
    },
    additionalCreativeOptimizationConfigurations: [
      {
        id: '',
        name: '',
        optimizationActivitys: [
          {
            floodlightActivityId: '',
            floodlightActivityIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
            weight: 0
          }
        ],
        optimizationModel: ''
      }
    ],
    advertiserGroupId: '',
    advertiserId: '',
    advertiserIdDimensionValue: {},
    archived: false,
    audienceSegmentGroups: [{audienceSegments: [{allocation: 0, id: '', name: ''}], id: '', name: ''}],
    billingInvoiceCode: '',
    clickThroughUrlSuffixProperties: {clickThroughUrlSuffix: '', overrideInheritedSuffix: false},
    comment: '',
    createInfo: {time: ''},
    creativeGroupIds: [],
    creativeOptimizationConfiguration: {},
    defaultClickThroughEventTagProperties: {defaultClickThroughEventTagId: '', overrideInheritedEventTag: false},
    defaultLandingPageId: '',
    endDate: '',
    eventTagOverrides: [{enabled: false, id: ''}],
    externalId: '',
    id: '',
    idDimensionValue: {},
    kind: '',
    lastModifiedInfo: {},
    name: '',
    nielsenOcrEnabled: false,
    startDate: '',
    subaccountId: '',
    traffickerEmails: []
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/campaigns';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","adBlockingConfiguration":{"clickThroughUrl":"","creativeBundleId":"","enabled":false,"overrideClickThroughUrl":false},"additionalCreativeOptimizationConfigurations":[{"id":"","name":"","optimizationActivitys":[{"floodlightActivityId":"","floodlightActivityIdDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"weight":0}],"optimizationModel":""}],"advertiserGroupId":"","advertiserId":"","advertiserIdDimensionValue":{},"archived":false,"audienceSegmentGroups":[{"audienceSegments":[{"allocation":0,"id":"","name":""}],"id":"","name":""}],"billingInvoiceCode":"","clickThroughUrlSuffixProperties":{"clickThroughUrlSuffix":"","overrideInheritedSuffix":false},"comment":"","createInfo":{"time":""},"creativeGroupIds":[],"creativeOptimizationConfiguration":{},"defaultClickThroughEventTagProperties":{"defaultClickThroughEventTagId":"","overrideInheritedEventTag":false},"defaultLandingPageId":"","endDate":"","eventTagOverrides":[{"enabled":false,"id":""}],"externalId":"","id":"","idDimensionValue":{},"kind":"","lastModifiedInfo":{},"name":"","nielsenOcrEnabled":false,"startDate":"","subaccountId":"","traffickerEmails":[]}'
};

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 = @{ @"accountId": @"",
                              @"adBlockingConfiguration": @{ @"clickThroughUrl": @"", @"creativeBundleId": @"", @"enabled": @NO, @"overrideClickThroughUrl": @NO },
                              @"additionalCreativeOptimizationConfigurations": @[ @{ @"id": @"", @"name": @"", @"optimizationActivitys": @[ @{ @"floodlightActivityId": @"", @"floodlightActivityIdDimensionValue": @{ @"dimensionName": @"", @"etag": @"", @"id": @"", @"kind": @"", @"matchType": @"", @"value": @"" }, @"weight": @0 } ], @"optimizationModel": @"" } ],
                              @"advertiserGroupId": @"",
                              @"advertiserId": @"",
                              @"advertiserIdDimensionValue": @{  },
                              @"archived": @NO,
                              @"audienceSegmentGroups": @[ @{ @"audienceSegments": @[ @{ @"allocation": @0, @"id": @"", @"name": @"" } ], @"id": @"", @"name": @"" } ],
                              @"billingInvoiceCode": @"",
                              @"clickThroughUrlSuffixProperties": @{ @"clickThroughUrlSuffix": @"", @"overrideInheritedSuffix": @NO },
                              @"comment": @"",
                              @"createInfo": @{ @"time": @"" },
                              @"creativeGroupIds": @[  ],
                              @"creativeOptimizationConfiguration": @{  },
                              @"defaultClickThroughEventTagProperties": @{ @"defaultClickThroughEventTagId": @"", @"overrideInheritedEventTag": @NO },
                              @"defaultLandingPageId": @"",
                              @"endDate": @"",
                              @"eventTagOverrides": @[ @{ @"enabled": @NO, @"id": @"" } ],
                              @"externalId": @"",
                              @"id": @"",
                              @"idDimensionValue": @{  },
                              @"kind": @"",
                              @"lastModifiedInfo": @{  },
                              @"name": @"",
                              @"nielsenOcrEnabled": @NO,
                              @"startDate": @"",
                              @"subaccountId": @"",
                              @"traffickerEmails": @[  ] };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/userprofiles/:profileId/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}}/userprofiles/:profileId/campaigns" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"accountId\": \"\",\n  \"adBlockingConfiguration\": {\n    \"clickThroughUrl\": \"\",\n    \"creativeBundleId\": \"\",\n    \"enabled\": false,\n    \"overrideClickThroughUrl\": false\n  },\n  \"additionalCreativeOptimizationConfigurations\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"optimizationActivitys\": [\n        {\n          \"floodlightActivityId\": \"\",\n          \"floodlightActivityIdDimensionValue\": {\n            \"dimensionName\": \"\",\n            \"etag\": \"\",\n            \"id\": \"\",\n            \"kind\": \"\",\n            \"matchType\": \"\",\n            \"value\": \"\"\n          },\n          \"weight\": 0\n        }\n      ],\n      \"optimizationModel\": \"\"\n    }\n  ],\n  \"advertiserGroupId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {},\n  \"archived\": false,\n  \"audienceSegmentGroups\": [\n    {\n      \"audienceSegments\": [\n        {\n          \"allocation\": 0,\n          \"id\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"billingInvoiceCode\": \"\",\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comment\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupIds\": [],\n  \"creativeOptimizationConfiguration\": {},\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"defaultLandingPageId\": \"\",\n  \"endDate\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"nielsenOcrEnabled\": false,\n  \"startDate\": \"\",\n  \"subaccountId\": \"\",\n  \"traffickerEmails\": []\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/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([
    'accountId' => '',
    'adBlockingConfiguration' => [
        'clickThroughUrl' => '',
        'creativeBundleId' => '',
        'enabled' => null,
        'overrideClickThroughUrl' => null
    ],
    'additionalCreativeOptimizationConfigurations' => [
        [
                'id' => '',
                'name' => '',
                'optimizationActivitys' => [
                                [
                                                                'floodlightActivityId' => '',
                                                                'floodlightActivityIdDimensionValue' => [
                                                                                                                                'dimensionName' => '',
                                                                                                                                'etag' => '',
                                                                                                                                'id' => '',
                                                                                                                                'kind' => '',
                                                                                                                                'matchType' => '',
                                                                                                                                'value' => ''
                                                                ],
                                                                'weight' => 0
                                ]
                ],
                'optimizationModel' => ''
        ]
    ],
    'advertiserGroupId' => '',
    'advertiserId' => '',
    'advertiserIdDimensionValue' => [
        
    ],
    'archived' => null,
    'audienceSegmentGroups' => [
        [
                'audienceSegments' => [
                                [
                                                                'allocation' => 0,
                                                                'id' => '',
                                                                'name' => ''
                                ]
                ],
                'id' => '',
                'name' => ''
        ]
    ],
    'billingInvoiceCode' => '',
    'clickThroughUrlSuffixProperties' => [
        'clickThroughUrlSuffix' => '',
        'overrideInheritedSuffix' => null
    ],
    'comment' => '',
    'createInfo' => [
        'time' => ''
    ],
    'creativeGroupIds' => [
        
    ],
    'creativeOptimizationConfiguration' => [
        
    ],
    'defaultClickThroughEventTagProperties' => [
        'defaultClickThroughEventTagId' => '',
        'overrideInheritedEventTag' => null
    ],
    'defaultLandingPageId' => '',
    'endDate' => '',
    'eventTagOverrides' => [
        [
                'enabled' => null,
                'id' => ''
        ]
    ],
    'externalId' => '',
    'id' => '',
    'idDimensionValue' => [
        
    ],
    'kind' => '',
    'lastModifiedInfo' => [
        
    ],
    'name' => '',
    'nielsenOcrEnabled' => null,
    'startDate' => '',
    'subaccountId' => '',
    'traffickerEmails' => [
        
    ]
  ]),
  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}}/userprofiles/:profileId/campaigns', [
  'body' => '{
  "accountId": "",
  "adBlockingConfiguration": {
    "clickThroughUrl": "",
    "creativeBundleId": "",
    "enabled": false,
    "overrideClickThroughUrl": false
  },
  "additionalCreativeOptimizationConfigurations": [
    {
      "id": "",
      "name": "",
      "optimizationActivitys": [
        {
          "floodlightActivityId": "",
          "floodlightActivityIdDimensionValue": {
            "dimensionName": "",
            "etag": "",
            "id": "",
            "kind": "",
            "matchType": "",
            "value": ""
          },
          "weight": 0
        }
      ],
      "optimizationModel": ""
    }
  ],
  "advertiserGroupId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {},
  "archived": false,
  "audienceSegmentGroups": [
    {
      "audienceSegments": [
        {
          "allocation": 0,
          "id": "",
          "name": ""
        }
      ],
      "id": "",
      "name": ""
    }
  ],
  "billingInvoiceCode": "",
  "clickThroughUrlSuffixProperties": {
    "clickThroughUrlSuffix": "",
    "overrideInheritedSuffix": false
  },
  "comment": "",
  "createInfo": {
    "time": ""
  },
  "creativeGroupIds": [],
  "creativeOptimizationConfiguration": {},
  "defaultClickThroughEventTagProperties": {
    "defaultClickThroughEventTagId": "",
    "overrideInheritedEventTag": false
  },
  "defaultLandingPageId": "",
  "endDate": "",
  "eventTagOverrides": [
    {
      "enabled": false,
      "id": ""
    }
  ],
  "externalId": "",
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "lastModifiedInfo": {},
  "name": "",
  "nielsenOcrEnabled": false,
  "startDate": "",
  "subaccountId": "",
  "traffickerEmails": []
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/campaigns');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'accountId' => '',
  'adBlockingConfiguration' => [
    'clickThroughUrl' => '',
    'creativeBundleId' => '',
    'enabled' => null,
    'overrideClickThroughUrl' => null
  ],
  'additionalCreativeOptimizationConfigurations' => [
    [
        'id' => '',
        'name' => '',
        'optimizationActivitys' => [
                [
                                'floodlightActivityId' => '',
                                'floodlightActivityIdDimensionValue' => [
                                                                'dimensionName' => '',
                                                                'etag' => '',
                                                                'id' => '',
                                                                'kind' => '',
                                                                'matchType' => '',
                                                                'value' => ''
                                ],
                                'weight' => 0
                ]
        ],
        'optimizationModel' => ''
    ]
  ],
  'advertiserGroupId' => '',
  'advertiserId' => '',
  'advertiserIdDimensionValue' => [
    
  ],
  'archived' => null,
  'audienceSegmentGroups' => [
    [
        'audienceSegments' => [
                [
                                'allocation' => 0,
                                'id' => '',
                                'name' => ''
                ]
        ],
        'id' => '',
        'name' => ''
    ]
  ],
  'billingInvoiceCode' => '',
  'clickThroughUrlSuffixProperties' => [
    'clickThroughUrlSuffix' => '',
    'overrideInheritedSuffix' => null
  ],
  'comment' => '',
  'createInfo' => [
    'time' => ''
  ],
  'creativeGroupIds' => [
    
  ],
  'creativeOptimizationConfiguration' => [
    
  ],
  'defaultClickThroughEventTagProperties' => [
    'defaultClickThroughEventTagId' => '',
    'overrideInheritedEventTag' => null
  ],
  'defaultLandingPageId' => '',
  'endDate' => '',
  'eventTagOverrides' => [
    [
        'enabled' => null,
        'id' => ''
    ]
  ],
  'externalId' => '',
  'id' => '',
  'idDimensionValue' => [
    
  ],
  'kind' => '',
  'lastModifiedInfo' => [
    
  ],
  'name' => '',
  'nielsenOcrEnabled' => null,
  'startDate' => '',
  'subaccountId' => '',
  'traffickerEmails' => [
    
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'accountId' => '',
  'adBlockingConfiguration' => [
    'clickThroughUrl' => '',
    'creativeBundleId' => '',
    'enabled' => null,
    'overrideClickThroughUrl' => null
  ],
  'additionalCreativeOptimizationConfigurations' => [
    [
        'id' => '',
        'name' => '',
        'optimizationActivitys' => [
                [
                                'floodlightActivityId' => '',
                                'floodlightActivityIdDimensionValue' => [
                                                                'dimensionName' => '',
                                                                'etag' => '',
                                                                'id' => '',
                                                                'kind' => '',
                                                                'matchType' => '',
                                                                'value' => ''
                                ],
                                'weight' => 0
                ]
        ],
        'optimizationModel' => ''
    ]
  ],
  'advertiserGroupId' => '',
  'advertiserId' => '',
  'advertiserIdDimensionValue' => [
    
  ],
  'archived' => null,
  'audienceSegmentGroups' => [
    [
        'audienceSegments' => [
                [
                                'allocation' => 0,
                                'id' => '',
                                'name' => ''
                ]
        ],
        'id' => '',
        'name' => ''
    ]
  ],
  'billingInvoiceCode' => '',
  'clickThroughUrlSuffixProperties' => [
    'clickThroughUrlSuffix' => '',
    'overrideInheritedSuffix' => null
  ],
  'comment' => '',
  'createInfo' => [
    'time' => ''
  ],
  'creativeGroupIds' => [
    
  ],
  'creativeOptimizationConfiguration' => [
    
  ],
  'defaultClickThroughEventTagProperties' => [
    'defaultClickThroughEventTagId' => '',
    'overrideInheritedEventTag' => null
  ],
  'defaultLandingPageId' => '',
  'endDate' => '',
  'eventTagOverrides' => [
    [
        'enabled' => null,
        'id' => ''
    ]
  ],
  'externalId' => '',
  'id' => '',
  'idDimensionValue' => [
    
  ],
  'kind' => '',
  'lastModifiedInfo' => [
    
  ],
  'name' => '',
  'nielsenOcrEnabled' => null,
  'startDate' => '',
  'subaccountId' => '',
  'traffickerEmails' => [
    
  ]
]));
$request->setRequestUrl('{{baseUrl}}/userprofiles/:profileId/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}}/userprofiles/:profileId/campaigns' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "adBlockingConfiguration": {
    "clickThroughUrl": "",
    "creativeBundleId": "",
    "enabled": false,
    "overrideClickThroughUrl": false
  },
  "additionalCreativeOptimizationConfigurations": [
    {
      "id": "",
      "name": "",
      "optimizationActivitys": [
        {
          "floodlightActivityId": "",
          "floodlightActivityIdDimensionValue": {
            "dimensionName": "",
            "etag": "",
            "id": "",
            "kind": "",
            "matchType": "",
            "value": ""
          },
          "weight": 0
        }
      ],
      "optimizationModel": ""
    }
  ],
  "advertiserGroupId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {},
  "archived": false,
  "audienceSegmentGroups": [
    {
      "audienceSegments": [
        {
          "allocation": 0,
          "id": "",
          "name": ""
        }
      ],
      "id": "",
      "name": ""
    }
  ],
  "billingInvoiceCode": "",
  "clickThroughUrlSuffixProperties": {
    "clickThroughUrlSuffix": "",
    "overrideInheritedSuffix": false
  },
  "comment": "",
  "createInfo": {
    "time": ""
  },
  "creativeGroupIds": [],
  "creativeOptimizationConfiguration": {},
  "defaultClickThroughEventTagProperties": {
    "defaultClickThroughEventTagId": "",
    "overrideInheritedEventTag": false
  },
  "defaultLandingPageId": "",
  "endDate": "",
  "eventTagOverrides": [
    {
      "enabled": false,
      "id": ""
    }
  ],
  "externalId": "",
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "lastModifiedInfo": {},
  "name": "",
  "nielsenOcrEnabled": false,
  "startDate": "",
  "subaccountId": "",
  "traffickerEmails": []
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/campaigns' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "adBlockingConfiguration": {
    "clickThroughUrl": "",
    "creativeBundleId": "",
    "enabled": false,
    "overrideClickThroughUrl": false
  },
  "additionalCreativeOptimizationConfigurations": [
    {
      "id": "",
      "name": "",
      "optimizationActivitys": [
        {
          "floodlightActivityId": "",
          "floodlightActivityIdDimensionValue": {
            "dimensionName": "",
            "etag": "",
            "id": "",
            "kind": "",
            "matchType": "",
            "value": ""
          },
          "weight": 0
        }
      ],
      "optimizationModel": ""
    }
  ],
  "advertiserGroupId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {},
  "archived": false,
  "audienceSegmentGroups": [
    {
      "audienceSegments": [
        {
          "allocation": 0,
          "id": "",
          "name": ""
        }
      ],
      "id": "",
      "name": ""
    }
  ],
  "billingInvoiceCode": "",
  "clickThroughUrlSuffixProperties": {
    "clickThroughUrlSuffix": "",
    "overrideInheritedSuffix": false
  },
  "comment": "",
  "createInfo": {
    "time": ""
  },
  "creativeGroupIds": [],
  "creativeOptimizationConfiguration": {},
  "defaultClickThroughEventTagProperties": {
    "defaultClickThroughEventTagId": "",
    "overrideInheritedEventTag": false
  },
  "defaultLandingPageId": "",
  "endDate": "",
  "eventTagOverrides": [
    {
      "enabled": false,
      "id": ""
    }
  ],
  "externalId": "",
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "lastModifiedInfo": {},
  "name": "",
  "nielsenOcrEnabled": false,
  "startDate": "",
  "subaccountId": "",
  "traffickerEmails": []
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"accountId\": \"\",\n  \"adBlockingConfiguration\": {\n    \"clickThroughUrl\": \"\",\n    \"creativeBundleId\": \"\",\n    \"enabled\": false,\n    \"overrideClickThroughUrl\": false\n  },\n  \"additionalCreativeOptimizationConfigurations\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"optimizationActivitys\": [\n        {\n          \"floodlightActivityId\": \"\",\n          \"floodlightActivityIdDimensionValue\": {\n            \"dimensionName\": \"\",\n            \"etag\": \"\",\n            \"id\": \"\",\n            \"kind\": \"\",\n            \"matchType\": \"\",\n            \"value\": \"\"\n          },\n          \"weight\": 0\n        }\n      ],\n      \"optimizationModel\": \"\"\n    }\n  ],\n  \"advertiserGroupId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {},\n  \"archived\": false,\n  \"audienceSegmentGroups\": [\n    {\n      \"audienceSegments\": [\n        {\n          \"allocation\": 0,\n          \"id\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"billingInvoiceCode\": \"\",\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comment\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupIds\": [],\n  \"creativeOptimizationConfiguration\": {},\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"defaultLandingPageId\": \"\",\n  \"endDate\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"nielsenOcrEnabled\": false,\n  \"startDate\": \"\",\n  \"subaccountId\": \"\",\n  \"traffickerEmails\": []\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/userprofiles/:profileId/campaigns", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/campaigns"

payload = {
    "accountId": "",
    "adBlockingConfiguration": {
        "clickThroughUrl": "",
        "creativeBundleId": "",
        "enabled": False,
        "overrideClickThroughUrl": False
    },
    "additionalCreativeOptimizationConfigurations": [
        {
            "id": "",
            "name": "",
            "optimizationActivitys": [
                {
                    "floodlightActivityId": "",
                    "floodlightActivityIdDimensionValue": {
                        "dimensionName": "",
                        "etag": "",
                        "id": "",
                        "kind": "",
                        "matchType": "",
                        "value": ""
                    },
                    "weight": 0
                }
            ],
            "optimizationModel": ""
        }
    ],
    "advertiserGroupId": "",
    "advertiserId": "",
    "advertiserIdDimensionValue": {},
    "archived": False,
    "audienceSegmentGroups": [
        {
            "audienceSegments": [
                {
                    "allocation": 0,
                    "id": "",
                    "name": ""
                }
            ],
            "id": "",
            "name": ""
        }
    ],
    "billingInvoiceCode": "",
    "clickThroughUrlSuffixProperties": {
        "clickThroughUrlSuffix": "",
        "overrideInheritedSuffix": False
    },
    "comment": "",
    "createInfo": { "time": "" },
    "creativeGroupIds": [],
    "creativeOptimizationConfiguration": {},
    "defaultClickThroughEventTagProperties": {
        "defaultClickThroughEventTagId": "",
        "overrideInheritedEventTag": False
    },
    "defaultLandingPageId": "",
    "endDate": "",
    "eventTagOverrides": [
        {
            "enabled": False,
            "id": ""
        }
    ],
    "externalId": "",
    "id": "",
    "idDimensionValue": {},
    "kind": "",
    "lastModifiedInfo": {},
    "name": "",
    "nielsenOcrEnabled": False,
    "startDate": "",
    "subaccountId": "",
    "traffickerEmails": []
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/campaigns"

payload <- "{\n  \"accountId\": \"\",\n  \"adBlockingConfiguration\": {\n    \"clickThroughUrl\": \"\",\n    \"creativeBundleId\": \"\",\n    \"enabled\": false,\n    \"overrideClickThroughUrl\": false\n  },\n  \"additionalCreativeOptimizationConfigurations\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"optimizationActivitys\": [\n        {\n          \"floodlightActivityId\": \"\",\n          \"floodlightActivityIdDimensionValue\": {\n            \"dimensionName\": \"\",\n            \"etag\": \"\",\n            \"id\": \"\",\n            \"kind\": \"\",\n            \"matchType\": \"\",\n            \"value\": \"\"\n          },\n          \"weight\": 0\n        }\n      ],\n      \"optimizationModel\": \"\"\n    }\n  ],\n  \"advertiserGroupId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {},\n  \"archived\": false,\n  \"audienceSegmentGroups\": [\n    {\n      \"audienceSegments\": [\n        {\n          \"allocation\": 0,\n          \"id\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"billingInvoiceCode\": \"\",\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comment\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupIds\": [],\n  \"creativeOptimizationConfiguration\": {},\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"defaultLandingPageId\": \"\",\n  \"endDate\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"nielsenOcrEnabled\": false,\n  \"startDate\": \"\",\n  \"subaccountId\": \"\",\n  \"traffickerEmails\": []\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}}/userprofiles/:profileId/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  \"accountId\": \"\",\n  \"adBlockingConfiguration\": {\n    \"clickThroughUrl\": \"\",\n    \"creativeBundleId\": \"\",\n    \"enabled\": false,\n    \"overrideClickThroughUrl\": false\n  },\n  \"additionalCreativeOptimizationConfigurations\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"optimizationActivitys\": [\n        {\n          \"floodlightActivityId\": \"\",\n          \"floodlightActivityIdDimensionValue\": {\n            \"dimensionName\": \"\",\n            \"etag\": \"\",\n            \"id\": \"\",\n            \"kind\": \"\",\n            \"matchType\": \"\",\n            \"value\": \"\"\n          },\n          \"weight\": 0\n        }\n      ],\n      \"optimizationModel\": \"\"\n    }\n  ],\n  \"advertiserGroupId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {},\n  \"archived\": false,\n  \"audienceSegmentGroups\": [\n    {\n      \"audienceSegments\": [\n        {\n          \"allocation\": 0,\n          \"id\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"billingInvoiceCode\": \"\",\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comment\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupIds\": [],\n  \"creativeOptimizationConfiguration\": {},\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"defaultLandingPageId\": \"\",\n  \"endDate\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"nielsenOcrEnabled\": false,\n  \"startDate\": \"\",\n  \"subaccountId\": \"\",\n  \"traffickerEmails\": []\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/userprofiles/:profileId/campaigns') do |req|
  req.body = "{\n  \"accountId\": \"\",\n  \"adBlockingConfiguration\": {\n    \"clickThroughUrl\": \"\",\n    \"creativeBundleId\": \"\",\n    \"enabled\": false,\n    \"overrideClickThroughUrl\": false\n  },\n  \"additionalCreativeOptimizationConfigurations\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"optimizationActivitys\": [\n        {\n          \"floodlightActivityId\": \"\",\n          \"floodlightActivityIdDimensionValue\": {\n            \"dimensionName\": \"\",\n            \"etag\": \"\",\n            \"id\": \"\",\n            \"kind\": \"\",\n            \"matchType\": \"\",\n            \"value\": \"\"\n          },\n          \"weight\": 0\n        }\n      ],\n      \"optimizationModel\": \"\"\n    }\n  ],\n  \"advertiserGroupId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {},\n  \"archived\": false,\n  \"audienceSegmentGroups\": [\n    {\n      \"audienceSegments\": [\n        {\n          \"allocation\": 0,\n          \"id\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"billingInvoiceCode\": \"\",\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comment\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupIds\": [],\n  \"creativeOptimizationConfiguration\": {},\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"defaultLandingPageId\": \"\",\n  \"endDate\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"nielsenOcrEnabled\": false,\n  \"startDate\": \"\",\n  \"subaccountId\": \"\",\n  \"traffickerEmails\": []\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/campaigns";

    let payload = json!({
        "accountId": "",
        "adBlockingConfiguration": json!({
            "clickThroughUrl": "",
            "creativeBundleId": "",
            "enabled": false,
            "overrideClickThroughUrl": false
        }),
        "additionalCreativeOptimizationConfigurations": (
            json!({
                "id": "",
                "name": "",
                "optimizationActivitys": (
                    json!({
                        "floodlightActivityId": "",
                        "floodlightActivityIdDimensionValue": json!({
                            "dimensionName": "",
                            "etag": "",
                            "id": "",
                            "kind": "",
                            "matchType": "",
                            "value": ""
                        }),
                        "weight": 0
                    })
                ),
                "optimizationModel": ""
            })
        ),
        "advertiserGroupId": "",
        "advertiserId": "",
        "advertiserIdDimensionValue": json!({}),
        "archived": false,
        "audienceSegmentGroups": (
            json!({
                "audienceSegments": (
                    json!({
                        "allocation": 0,
                        "id": "",
                        "name": ""
                    })
                ),
                "id": "",
                "name": ""
            })
        ),
        "billingInvoiceCode": "",
        "clickThroughUrlSuffixProperties": json!({
            "clickThroughUrlSuffix": "",
            "overrideInheritedSuffix": false
        }),
        "comment": "",
        "createInfo": json!({"time": ""}),
        "creativeGroupIds": (),
        "creativeOptimizationConfiguration": json!({}),
        "defaultClickThroughEventTagProperties": json!({
            "defaultClickThroughEventTagId": "",
            "overrideInheritedEventTag": false
        }),
        "defaultLandingPageId": "",
        "endDate": "",
        "eventTagOverrides": (
            json!({
                "enabled": false,
                "id": ""
            })
        ),
        "externalId": "",
        "id": "",
        "idDimensionValue": json!({}),
        "kind": "",
        "lastModifiedInfo": json!({}),
        "name": "",
        "nielsenOcrEnabled": false,
        "startDate": "",
        "subaccountId": "",
        "traffickerEmails": ()
    });

    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}}/userprofiles/:profileId/campaigns \
  --header 'content-type: application/json' \
  --data '{
  "accountId": "",
  "adBlockingConfiguration": {
    "clickThroughUrl": "",
    "creativeBundleId": "",
    "enabled": false,
    "overrideClickThroughUrl": false
  },
  "additionalCreativeOptimizationConfigurations": [
    {
      "id": "",
      "name": "",
      "optimizationActivitys": [
        {
          "floodlightActivityId": "",
          "floodlightActivityIdDimensionValue": {
            "dimensionName": "",
            "etag": "",
            "id": "",
            "kind": "",
            "matchType": "",
            "value": ""
          },
          "weight": 0
        }
      ],
      "optimizationModel": ""
    }
  ],
  "advertiserGroupId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {},
  "archived": false,
  "audienceSegmentGroups": [
    {
      "audienceSegments": [
        {
          "allocation": 0,
          "id": "",
          "name": ""
        }
      ],
      "id": "",
      "name": ""
    }
  ],
  "billingInvoiceCode": "",
  "clickThroughUrlSuffixProperties": {
    "clickThroughUrlSuffix": "",
    "overrideInheritedSuffix": false
  },
  "comment": "",
  "createInfo": {
    "time": ""
  },
  "creativeGroupIds": [],
  "creativeOptimizationConfiguration": {},
  "defaultClickThroughEventTagProperties": {
    "defaultClickThroughEventTagId": "",
    "overrideInheritedEventTag": false
  },
  "defaultLandingPageId": "",
  "endDate": "",
  "eventTagOverrides": [
    {
      "enabled": false,
      "id": ""
    }
  ],
  "externalId": "",
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "lastModifiedInfo": {},
  "name": "",
  "nielsenOcrEnabled": false,
  "startDate": "",
  "subaccountId": "",
  "traffickerEmails": []
}'
echo '{
  "accountId": "",
  "adBlockingConfiguration": {
    "clickThroughUrl": "",
    "creativeBundleId": "",
    "enabled": false,
    "overrideClickThroughUrl": false
  },
  "additionalCreativeOptimizationConfigurations": [
    {
      "id": "",
      "name": "",
      "optimizationActivitys": [
        {
          "floodlightActivityId": "",
          "floodlightActivityIdDimensionValue": {
            "dimensionName": "",
            "etag": "",
            "id": "",
            "kind": "",
            "matchType": "",
            "value": ""
          },
          "weight": 0
        }
      ],
      "optimizationModel": ""
    }
  ],
  "advertiserGroupId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {},
  "archived": false,
  "audienceSegmentGroups": [
    {
      "audienceSegments": [
        {
          "allocation": 0,
          "id": "",
          "name": ""
        }
      ],
      "id": "",
      "name": ""
    }
  ],
  "billingInvoiceCode": "",
  "clickThroughUrlSuffixProperties": {
    "clickThroughUrlSuffix": "",
    "overrideInheritedSuffix": false
  },
  "comment": "",
  "createInfo": {
    "time": ""
  },
  "creativeGroupIds": [],
  "creativeOptimizationConfiguration": {},
  "defaultClickThroughEventTagProperties": {
    "defaultClickThroughEventTagId": "",
    "overrideInheritedEventTag": false
  },
  "defaultLandingPageId": "",
  "endDate": "",
  "eventTagOverrides": [
    {
      "enabled": false,
      "id": ""
    }
  ],
  "externalId": "",
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "lastModifiedInfo": {},
  "name": "",
  "nielsenOcrEnabled": false,
  "startDate": "",
  "subaccountId": "",
  "traffickerEmails": []
}' |  \
  http POST {{baseUrl}}/userprofiles/:profileId/campaigns \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "accountId": "",\n  "adBlockingConfiguration": {\n    "clickThroughUrl": "",\n    "creativeBundleId": "",\n    "enabled": false,\n    "overrideClickThroughUrl": false\n  },\n  "additionalCreativeOptimizationConfigurations": [\n    {\n      "id": "",\n      "name": "",\n      "optimizationActivitys": [\n        {\n          "floodlightActivityId": "",\n          "floodlightActivityIdDimensionValue": {\n            "dimensionName": "",\n            "etag": "",\n            "id": "",\n            "kind": "",\n            "matchType": "",\n            "value": ""\n          },\n          "weight": 0\n        }\n      ],\n      "optimizationModel": ""\n    }\n  ],\n  "advertiserGroupId": "",\n  "advertiserId": "",\n  "advertiserIdDimensionValue": {},\n  "archived": false,\n  "audienceSegmentGroups": [\n    {\n      "audienceSegments": [\n        {\n          "allocation": 0,\n          "id": "",\n          "name": ""\n        }\n      ],\n      "id": "",\n      "name": ""\n    }\n  ],\n  "billingInvoiceCode": "",\n  "clickThroughUrlSuffixProperties": {\n    "clickThroughUrlSuffix": "",\n    "overrideInheritedSuffix": false\n  },\n  "comment": "",\n  "createInfo": {\n    "time": ""\n  },\n  "creativeGroupIds": [],\n  "creativeOptimizationConfiguration": {},\n  "defaultClickThroughEventTagProperties": {\n    "defaultClickThroughEventTagId": "",\n    "overrideInheritedEventTag": false\n  },\n  "defaultLandingPageId": "",\n  "endDate": "",\n  "eventTagOverrides": [\n    {\n      "enabled": false,\n      "id": ""\n    }\n  ],\n  "externalId": "",\n  "id": "",\n  "idDimensionValue": {},\n  "kind": "",\n  "lastModifiedInfo": {},\n  "name": "",\n  "nielsenOcrEnabled": false,\n  "startDate": "",\n  "subaccountId": "",\n  "traffickerEmails": []\n}' \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/campaigns
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "accountId": "",
  "adBlockingConfiguration": [
    "clickThroughUrl": "",
    "creativeBundleId": "",
    "enabled": false,
    "overrideClickThroughUrl": false
  ],
  "additionalCreativeOptimizationConfigurations": [
    [
      "id": "",
      "name": "",
      "optimizationActivitys": [
        [
          "floodlightActivityId": "",
          "floodlightActivityIdDimensionValue": [
            "dimensionName": "",
            "etag": "",
            "id": "",
            "kind": "",
            "matchType": "",
            "value": ""
          ],
          "weight": 0
        ]
      ],
      "optimizationModel": ""
    ]
  ],
  "advertiserGroupId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": [],
  "archived": false,
  "audienceSegmentGroups": [
    [
      "audienceSegments": [
        [
          "allocation": 0,
          "id": "",
          "name": ""
        ]
      ],
      "id": "",
      "name": ""
    ]
  ],
  "billingInvoiceCode": "",
  "clickThroughUrlSuffixProperties": [
    "clickThroughUrlSuffix": "",
    "overrideInheritedSuffix": false
  ],
  "comment": "",
  "createInfo": ["time": ""],
  "creativeGroupIds": [],
  "creativeOptimizationConfiguration": [],
  "defaultClickThroughEventTagProperties": [
    "defaultClickThroughEventTagId": "",
    "overrideInheritedEventTag": false
  ],
  "defaultLandingPageId": "",
  "endDate": "",
  "eventTagOverrides": [
    [
      "enabled": false,
      "id": ""
    ]
  ],
  "externalId": "",
  "id": "",
  "idDimensionValue": [],
  "kind": "",
  "lastModifiedInfo": [],
  "name": "",
  "nielsenOcrEnabled": false,
  "startDate": "",
  "subaccountId": "",
  "traffickerEmails": []
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/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()
GET dfareporting.campaigns.list
{{baseUrl}}/userprofiles/:profileId/campaigns
QUERY PARAMS

profileId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/campaigns");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/campaigns")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/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}}/userprofiles/:profileId/campaigns"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/campaigns");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/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/userprofiles/:profileId/campaigns HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/campaigns")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/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}}/userprofiles/:profileId/campaigns")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/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}}/userprofiles/:profileId/campaigns');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/campaigns'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/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}}/userprofiles/:profileId/campaigns',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/campaigns")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/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}}/userprofiles/:profileId/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}}/userprofiles/:profileId/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}}/userprofiles/:profileId/campaigns'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/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}}/userprofiles/:profileId/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}}/userprofiles/:profileId/campaigns" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/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}}/userprofiles/:profileId/campaigns');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/campaigns');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/campaigns');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/campaigns' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/campaigns' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/campaigns")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/campaigns"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/campaigns"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/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/userprofiles/:profileId/campaigns') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/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}}/userprofiles/:profileId/campaigns
http GET {{baseUrl}}/userprofiles/:profileId/campaigns
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/campaigns
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/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()
PATCH dfareporting.campaigns.patch
{{baseUrl}}/userprofiles/:profileId/campaigns
QUERY PARAMS

id
profileId
BODY json

{
  "accountId": "",
  "adBlockingConfiguration": {
    "clickThroughUrl": "",
    "creativeBundleId": "",
    "enabled": false,
    "overrideClickThroughUrl": false
  },
  "additionalCreativeOptimizationConfigurations": [
    {
      "id": "",
      "name": "",
      "optimizationActivitys": [
        {
          "floodlightActivityId": "",
          "floodlightActivityIdDimensionValue": {
            "dimensionName": "",
            "etag": "",
            "id": "",
            "kind": "",
            "matchType": "",
            "value": ""
          },
          "weight": 0
        }
      ],
      "optimizationModel": ""
    }
  ],
  "advertiserGroupId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {},
  "archived": false,
  "audienceSegmentGroups": [
    {
      "audienceSegments": [
        {
          "allocation": 0,
          "id": "",
          "name": ""
        }
      ],
      "id": "",
      "name": ""
    }
  ],
  "billingInvoiceCode": "",
  "clickThroughUrlSuffixProperties": {
    "clickThroughUrlSuffix": "",
    "overrideInheritedSuffix": false
  },
  "comment": "",
  "createInfo": {
    "time": ""
  },
  "creativeGroupIds": [],
  "creativeOptimizationConfiguration": {},
  "defaultClickThroughEventTagProperties": {
    "defaultClickThroughEventTagId": "",
    "overrideInheritedEventTag": false
  },
  "defaultLandingPageId": "",
  "endDate": "",
  "eventTagOverrides": [
    {
      "enabled": false,
      "id": ""
    }
  ],
  "externalId": "",
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "lastModifiedInfo": {},
  "name": "",
  "nielsenOcrEnabled": false,
  "startDate": "",
  "subaccountId": "",
  "traffickerEmails": []
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/campaigns?id=");

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  \"accountId\": \"\",\n  \"adBlockingConfiguration\": {\n    \"clickThroughUrl\": \"\",\n    \"creativeBundleId\": \"\",\n    \"enabled\": false,\n    \"overrideClickThroughUrl\": false\n  },\n  \"additionalCreativeOptimizationConfigurations\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"optimizationActivitys\": [\n        {\n          \"floodlightActivityId\": \"\",\n          \"floodlightActivityIdDimensionValue\": {\n            \"dimensionName\": \"\",\n            \"etag\": \"\",\n            \"id\": \"\",\n            \"kind\": \"\",\n            \"matchType\": \"\",\n            \"value\": \"\"\n          },\n          \"weight\": 0\n        }\n      ],\n      \"optimizationModel\": \"\"\n    }\n  ],\n  \"advertiserGroupId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {},\n  \"archived\": false,\n  \"audienceSegmentGroups\": [\n    {\n      \"audienceSegments\": [\n        {\n          \"allocation\": 0,\n          \"id\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"billingInvoiceCode\": \"\",\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comment\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupIds\": [],\n  \"creativeOptimizationConfiguration\": {},\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"defaultLandingPageId\": \"\",\n  \"endDate\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"nielsenOcrEnabled\": false,\n  \"startDate\": \"\",\n  \"subaccountId\": \"\",\n  \"traffickerEmails\": []\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/patch "{{baseUrl}}/userprofiles/:profileId/campaigns" {:query-params {:id ""}
                                                                               :content-type :json
                                                                               :form-params {:accountId ""
                                                                                             :adBlockingConfiguration {:clickThroughUrl ""
                                                                                                                       :creativeBundleId ""
                                                                                                                       :enabled false
                                                                                                                       :overrideClickThroughUrl false}
                                                                                             :additionalCreativeOptimizationConfigurations [{:id ""
                                                                                                                                             :name ""
                                                                                                                                             :optimizationActivitys [{:floodlightActivityId ""
                                                                                                                                                                      :floodlightActivityIdDimensionValue {:dimensionName ""
                                                                                                                                                                                                           :etag ""
                                                                                                                                                                                                           :id ""
                                                                                                                                                                                                           :kind ""
                                                                                                                                                                                                           :matchType ""
                                                                                                                                                                                                           :value ""}
                                                                                                                                                                      :weight 0}]
                                                                                                                                             :optimizationModel ""}]
                                                                                             :advertiserGroupId ""
                                                                                             :advertiserId ""
                                                                                             :advertiserIdDimensionValue {}
                                                                                             :archived false
                                                                                             :audienceSegmentGroups [{:audienceSegments [{:allocation 0
                                                                                                                                          :id ""
                                                                                                                                          :name ""}]
                                                                                                                      :id ""
                                                                                                                      :name ""}]
                                                                                             :billingInvoiceCode ""
                                                                                             :clickThroughUrlSuffixProperties {:clickThroughUrlSuffix ""
                                                                                                                               :overrideInheritedSuffix false}
                                                                                             :comment ""
                                                                                             :createInfo {:time ""}
                                                                                             :creativeGroupIds []
                                                                                             :creativeOptimizationConfiguration {}
                                                                                             :defaultClickThroughEventTagProperties {:defaultClickThroughEventTagId ""
                                                                                                                                     :overrideInheritedEventTag false}
                                                                                             :defaultLandingPageId ""
                                                                                             :endDate ""
                                                                                             :eventTagOverrides [{:enabled false
                                                                                                                  :id ""}]
                                                                                             :externalId ""
                                                                                             :id ""
                                                                                             :idDimensionValue {}
                                                                                             :kind ""
                                                                                             :lastModifiedInfo {}
                                                                                             :name ""
                                                                                             :nielsenOcrEnabled false
                                                                                             :startDate ""
                                                                                             :subaccountId ""
                                                                                             :traffickerEmails []}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/campaigns?id="
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"accountId\": \"\",\n  \"adBlockingConfiguration\": {\n    \"clickThroughUrl\": \"\",\n    \"creativeBundleId\": \"\",\n    \"enabled\": false,\n    \"overrideClickThroughUrl\": false\n  },\n  \"additionalCreativeOptimizationConfigurations\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"optimizationActivitys\": [\n        {\n          \"floodlightActivityId\": \"\",\n          \"floodlightActivityIdDimensionValue\": {\n            \"dimensionName\": \"\",\n            \"etag\": \"\",\n            \"id\": \"\",\n            \"kind\": \"\",\n            \"matchType\": \"\",\n            \"value\": \"\"\n          },\n          \"weight\": 0\n        }\n      ],\n      \"optimizationModel\": \"\"\n    }\n  ],\n  \"advertiserGroupId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {},\n  \"archived\": false,\n  \"audienceSegmentGroups\": [\n    {\n      \"audienceSegments\": [\n        {\n          \"allocation\": 0,\n          \"id\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"billingInvoiceCode\": \"\",\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comment\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupIds\": [],\n  \"creativeOptimizationConfiguration\": {},\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"defaultLandingPageId\": \"\",\n  \"endDate\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"nielsenOcrEnabled\": false,\n  \"startDate\": \"\",\n  \"subaccountId\": \"\",\n  \"traffickerEmails\": []\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}}/userprofiles/:profileId/campaigns?id="),
    Content = new StringContent("{\n  \"accountId\": \"\",\n  \"adBlockingConfiguration\": {\n    \"clickThroughUrl\": \"\",\n    \"creativeBundleId\": \"\",\n    \"enabled\": false,\n    \"overrideClickThroughUrl\": false\n  },\n  \"additionalCreativeOptimizationConfigurations\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"optimizationActivitys\": [\n        {\n          \"floodlightActivityId\": \"\",\n          \"floodlightActivityIdDimensionValue\": {\n            \"dimensionName\": \"\",\n            \"etag\": \"\",\n            \"id\": \"\",\n            \"kind\": \"\",\n            \"matchType\": \"\",\n            \"value\": \"\"\n          },\n          \"weight\": 0\n        }\n      ],\n      \"optimizationModel\": \"\"\n    }\n  ],\n  \"advertiserGroupId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {},\n  \"archived\": false,\n  \"audienceSegmentGroups\": [\n    {\n      \"audienceSegments\": [\n        {\n          \"allocation\": 0,\n          \"id\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"billingInvoiceCode\": \"\",\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comment\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupIds\": [],\n  \"creativeOptimizationConfiguration\": {},\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"defaultLandingPageId\": \"\",\n  \"endDate\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"nielsenOcrEnabled\": false,\n  \"startDate\": \"\",\n  \"subaccountId\": \"\",\n  \"traffickerEmails\": []\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}}/userprofiles/:profileId/campaigns?id=");
var request = new RestRequest("", Method.Patch);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"accountId\": \"\",\n  \"adBlockingConfiguration\": {\n    \"clickThroughUrl\": \"\",\n    \"creativeBundleId\": \"\",\n    \"enabled\": false,\n    \"overrideClickThroughUrl\": false\n  },\n  \"additionalCreativeOptimizationConfigurations\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"optimizationActivitys\": [\n        {\n          \"floodlightActivityId\": \"\",\n          \"floodlightActivityIdDimensionValue\": {\n            \"dimensionName\": \"\",\n            \"etag\": \"\",\n            \"id\": \"\",\n            \"kind\": \"\",\n            \"matchType\": \"\",\n            \"value\": \"\"\n          },\n          \"weight\": 0\n        }\n      ],\n      \"optimizationModel\": \"\"\n    }\n  ],\n  \"advertiserGroupId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {},\n  \"archived\": false,\n  \"audienceSegmentGroups\": [\n    {\n      \"audienceSegments\": [\n        {\n          \"allocation\": 0,\n          \"id\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"billingInvoiceCode\": \"\",\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comment\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupIds\": [],\n  \"creativeOptimizationConfiguration\": {},\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"defaultLandingPageId\": \"\",\n  \"endDate\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"nielsenOcrEnabled\": false,\n  \"startDate\": \"\",\n  \"subaccountId\": \"\",\n  \"traffickerEmails\": []\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/campaigns?id="

	payload := strings.NewReader("{\n  \"accountId\": \"\",\n  \"adBlockingConfiguration\": {\n    \"clickThroughUrl\": \"\",\n    \"creativeBundleId\": \"\",\n    \"enabled\": false,\n    \"overrideClickThroughUrl\": false\n  },\n  \"additionalCreativeOptimizationConfigurations\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"optimizationActivitys\": [\n        {\n          \"floodlightActivityId\": \"\",\n          \"floodlightActivityIdDimensionValue\": {\n            \"dimensionName\": \"\",\n            \"etag\": \"\",\n            \"id\": \"\",\n            \"kind\": \"\",\n            \"matchType\": \"\",\n            \"value\": \"\"\n          },\n          \"weight\": 0\n        }\n      ],\n      \"optimizationModel\": \"\"\n    }\n  ],\n  \"advertiserGroupId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {},\n  \"archived\": false,\n  \"audienceSegmentGroups\": [\n    {\n      \"audienceSegments\": [\n        {\n          \"allocation\": 0,\n          \"id\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"billingInvoiceCode\": \"\",\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comment\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupIds\": [],\n  \"creativeOptimizationConfiguration\": {},\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"defaultLandingPageId\": \"\",\n  \"endDate\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"nielsenOcrEnabled\": false,\n  \"startDate\": \"\",\n  \"subaccountId\": \"\",\n  \"traffickerEmails\": []\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/userprofiles/:profileId/campaigns?id= HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 1688

{
  "accountId": "",
  "adBlockingConfiguration": {
    "clickThroughUrl": "",
    "creativeBundleId": "",
    "enabled": false,
    "overrideClickThroughUrl": false
  },
  "additionalCreativeOptimizationConfigurations": [
    {
      "id": "",
      "name": "",
      "optimizationActivitys": [
        {
          "floodlightActivityId": "",
          "floodlightActivityIdDimensionValue": {
            "dimensionName": "",
            "etag": "",
            "id": "",
            "kind": "",
            "matchType": "",
            "value": ""
          },
          "weight": 0
        }
      ],
      "optimizationModel": ""
    }
  ],
  "advertiserGroupId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {},
  "archived": false,
  "audienceSegmentGroups": [
    {
      "audienceSegments": [
        {
          "allocation": 0,
          "id": "",
          "name": ""
        }
      ],
      "id": "",
      "name": ""
    }
  ],
  "billingInvoiceCode": "",
  "clickThroughUrlSuffixProperties": {
    "clickThroughUrlSuffix": "",
    "overrideInheritedSuffix": false
  },
  "comment": "",
  "createInfo": {
    "time": ""
  },
  "creativeGroupIds": [],
  "creativeOptimizationConfiguration": {},
  "defaultClickThroughEventTagProperties": {
    "defaultClickThroughEventTagId": "",
    "overrideInheritedEventTag": false
  },
  "defaultLandingPageId": "",
  "endDate": "",
  "eventTagOverrides": [
    {
      "enabled": false,
      "id": ""
    }
  ],
  "externalId": "",
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "lastModifiedInfo": {},
  "name": "",
  "nielsenOcrEnabled": false,
  "startDate": "",
  "subaccountId": "",
  "traffickerEmails": []
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/userprofiles/:profileId/campaigns?id=")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"accountId\": \"\",\n  \"adBlockingConfiguration\": {\n    \"clickThroughUrl\": \"\",\n    \"creativeBundleId\": \"\",\n    \"enabled\": false,\n    \"overrideClickThroughUrl\": false\n  },\n  \"additionalCreativeOptimizationConfigurations\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"optimizationActivitys\": [\n        {\n          \"floodlightActivityId\": \"\",\n          \"floodlightActivityIdDimensionValue\": {\n            \"dimensionName\": \"\",\n            \"etag\": \"\",\n            \"id\": \"\",\n            \"kind\": \"\",\n            \"matchType\": \"\",\n            \"value\": \"\"\n          },\n          \"weight\": 0\n        }\n      ],\n      \"optimizationModel\": \"\"\n    }\n  ],\n  \"advertiserGroupId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {},\n  \"archived\": false,\n  \"audienceSegmentGroups\": [\n    {\n      \"audienceSegments\": [\n        {\n          \"allocation\": 0,\n          \"id\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"billingInvoiceCode\": \"\",\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comment\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupIds\": [],\n  \"creativeOptimizationConfiguration\": {},\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"defaultLandingPageId\": \"\",\n  \"endDate\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"nielsenOcrEnabled\": false,\n  \"startDate\": \"\",\n  \"subaccountId\": \"\",\n  \"traffickerEmails\": []\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/campaigns?id="))
    .header("content-type", "application/json")
    .method("PATCH", HttpRequest.BodyPublishers.ofString("{\n  \"accountId\": \"\",\n  \"adBlockingConfiguration\": {\n    \"clickThroughUrl\": \"\",\n    \"creativeBundleId\": \"\",\n    \"enabled\": false,\n    \"overrideClickThroughUrl\": false\n  },\n  \"additionalCreativeOptimizationConfigurations\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"optimizationActivitys\": [\n        {\n          \"floodlightActivityId\": \"\",\n          \"floodlightActivityIdDimensionValue\": {\n            \"dimensionName\": \"\",\n            \"etag\": \"\",\n            \"id\": \"\",\n            \"kind\": \"\",\n            \"matchType\": \"\",\n            \"value\": \"\"\n          },\n          \"weight\": 0\n        }\n      ],\n      \"optimizationModel\": \"\"\n    }\n  ],\n  \"advertiserGroupId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {},\n  \"archived\": false,\n  \"audienceSegmentGroups\": [\n    {\n      \"audienceSegments\": [\n        {\n          \"allocation\": 0,\n          \"id\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"billingInvoiceCode\": \"\",\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comment\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupIds\": [],\n  \"creativeOptimizationConfiguration\": {},\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"defaultLandingPageId\": \"\",\n  \"endDate\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"nielsenOcrEnabled\": false,\n  \"startDate\": \"\",\n  \"subaccountId\": \"\",\n  \"traffickerEmails\": []\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  \"accountId\": \"\",\n  \"adBlockingConfiguration\": {\n    \"clickThroughUrl\": \"\",\n    \"creativeBundleId\": \"\",\n    \"enabled\": false,\n    \"overrideClickThroughUrl\": false\n  },\n  \"additionalCreativeOptimizationConfigurations\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"optimizationActivitys\": [\n        {\n          \"floodlightActivityId\": \"\",\n          \"floodlightActivityIdDimensionValue\": {\n            \"dimensionName\": \"\",\n            \"etag\": \"\",\n            \"id\": \"\",\n            \"kind\": \"\",\n            \"matchType\": \"\",\n            \"value\": \"\"\n          },\n          \"weight\": 0\n        }\n      ],\n      \"optimizationModel\": \"\"\n    }\n  ],\n  \"advertiserGroupId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {},\n  \"archived\": false,\n  \"audienceSegmentGroups\": [\n    {\n      \"audienceSegments\": [\n        {\n          \"allocation\": 0,\n          \"id\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"billingInvoiceCode\": \"\",\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comment\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupIds\": [],\n  \"creativeOptimizationConfiguration\": {},\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"defaultLandingPageId\": \"\",\n  \"endDate\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"nielsenOcrEnabled\": false,\n  \"startDate\": \"\",\n  \"subaccountId\": \"\",\n  \"traffickerEmails\": []\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/campaigns?id=")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/userprofiles/:profileId/campaigns?id=")
  .header("content-type", "application/json")
  .body("{\n  \"accountId\": \"\",\n  \"adBlockingConfiguration\": {\n    \"clickThroughUrl\": \"\",\n    \"creativeBundleId\": \"\",\n    \"enabled\": false,\n    \"overrideClickThroughUrl\": false\n  },\n  \"additionalCreativeOptimizationConfigurations\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"optimizationActivitys\": [\n        {\n          \"floodlightActivityId\": \"\",\n          \"floodlightActivityIdDimensionValue\": {\n            \"dimensionName\": \"\",\n            \"etag\": \"\",\n            \"id\": \"\",\n            \"kind\": \"\",\n            \"matchType\": \"\",\n            \"value\": \"\"\n          },\n          \"weight\": 0\n        }\n      ],\n      \"optimizationModel\": \"\"\n    }\n  ],\n  \"advertiserGroupId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {},\n  \"archived\": false,\n  \"audienceSegmentGroups\": [\n    {\n      \"audienceSegments\": [\n        {\n          \"allocation\": 0,\n          \"id\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"billingInvoiceCode\": \"\",\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comment\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupIds\": [],\n  \"creativeOptimizationConfiguration\": {},\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"defaultLandingPageId\": \"\",\n  \"endDate\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"nielsenOcrEnabled\": false,\n  \"startDate\": \"\",\n  \"subaccountId\": \"\",\n  \"traffickerEmails\": []\n}")
  .asString();
const data = JSON.stringify({
  accountId: '',
  adBlockingConfiguration: {
    clickThroughUrl: '',
    creativeBundleId: '',
    enabled: false,
    overrideClickThroughUrl: false
  },
  additionalCreativeOptimizationConfigurations: [
    {
      id: '',
      name: '',
      optimizationActivitys: [
        {
          floodlightActivityId: '',
          floodlightActivityIdDimensionValue: {
            dimensionName: '',
            etag: '',
            id: '',
            kind: '',
            matchType: '',
            value: ''
          },
          weight: 0
        }
      ],
      optimizationModel: ''
    }
  ],
  advertiserGroupId: '',
  advertiserId: '',
  advertiserIdDimensionValue: {},
  archived: false,
  audienceSegmentGroups: [
    {
      audienceSegments: [
        {
          allocation: 0,
          id: '',
          name: ''
        }
      ],
      id: '',
      name: ''
    }
  ],
  billingInvoiceCode: '',
  clickThroughUrlSuffixProperties: {
    clickThroughUrlSuffix: '',
    overrideInheritedSuffix: false
  },
  comment: '',
  createInfo: {
    time: ''
  },
  creativeGroupIds: [],
  creativeOptimizationConfiguration: {},
  defaultClickThroughEventTagProperties: {
    defaultClickThroughEventTagId: '',
    overrideInheritedEventTag: false
  },
  defaultLandingPageId: '',
  endDate: '',
  eventTagOverrides: [
    {
      enabled: false,
      id: ''
    }
  ],
  externalId: '',
  id: '',
  idDimensionValue: {},
  kind: '',
  lastModifiedInfo: {},
  name: '',
  nielsenOcrEnabled: false,
  startDate: '',
  subaccountId: '',
  traffickerEmails: []
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PATCH', '{{baseUrl}}/userprofiles/:profileId/campaigns?id=');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/userprofiles/:profileId/campaigns',
  params: {id: ''},
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    adBlockingConfiguration: {
      clickThroughUrl: '',
      creativeBundleId: '',
      enabled: false,
      overrideClickThroughUrl: false
    },
    additionalCreativeOptimizationConfigurations: [
      {
        id: '',
        name: '',
        optimizationActivitys: [
          {
            floodlightActivityId: '',
            floodlightActivityIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
            weight: 0
          }
        ],
        optimizationModel: ''
      }
    ],
    advertiserGroupId: '',
    advertiserId: '',
    advertiserIdDimensionValue: {},
    archived: false,
    audienceSegmentGroups: [{audienceSegments: [{allocation: 0, id: '', name: ''}], id: '', name: ''}],
    billingInvoiceCode: '',
    clickThroughUrlSuffixProperties: {clickThroughUrlSuffix: '', overrideInheritedSuffix: false},
    comment: '',
    createInfo: {time: ''},
    creativeGroupIds: [],
    creativeOptimizationConfiguration: {},
    defaultClickThroughEventTagProperties: {defaultClickThroughEventTagId: '', overrideInheritedEventTag: false},
    defaultLandingPageId: '',
    endDate: '',
    eventTagOverrides: [{enabled: false, id: ''}],
    externalId: '',
    id: '',
    idDimensionValue: {},
    kind: '',
    lastModifiedInfo: {},
    name: '',
    nielsenOcrEnabled: false,
    startDate: '',
    subaccountId: '',
    traffickerEmails: []
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/campaigns?id=';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","adBlockingConfiguration":{"clickThroughUrl":"","creativeBundleId":"","enabled":false,"overrideClickThroughUrl":false},"additionalCreativeOptimizationConfigurations":[{"id":"","name":"","optimizationActivitys":[{"floodlightActivityId":"","floodlightActivityIdDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"weight":0}],"optimizationModel":""}],"advertiserGroupId":"","advertiserId":"","advertiserIdDimensionValue":{},"archived":false,"audienceSegmentGroups":[{"audienceSegments":[{"allocation":0,"id":"","name":""}],"id":"","name":""}],"billingInvoiceCode":"","clickThroughUrlSuffixProperties":{"clickThroughUrlSuffix":"","overrideInheritedSuffix":false},"comment":"","createInfo":{"time":""},"creativeGroupIds":[],"creativeOptimizationConfiguration":{},"defaultClickThroughEventTagProperties":{"defaultClickThroughEventTagId":"","overrideInheritedEventTag":false},"defaultLandingPageId":"","endDate":"","eventTagOverrides":[{"enabled":false,"id":""}],"externalId":"","id":"","idDimensionValue":{},"kind":"","lastModifiedInfo":{},"name":"","nielsenOcrEnabled":false,"startDate":"","subaccountId":"","traffickerEmails":[]}'
};

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}}/userprofiles/:profileId/campaigns?id=',
  method: 'PATCH',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "accountId": "",\n  "adBlockingConfiguration": {\n    "clickThroughUrl": "",\n    "creativeBundleId": "",\n    "enabled": false,\n    "overrideClickThroughUrl": false\n  },\n  "additionalCreativeOptimizationConfigurations": [\n    {\n      "id": "",\n      "name": "",\n      "optimizationActivitys": [\n        {\n          "floodlightActivityId": "",\n          "floodlightActivityIdDimensionValue": {\n            "dimensionName": "",\n            "etag": "",\n            "id": "",\n            "kind": "",\n            "matchType": "",\n            "value": ""\n          },\n          "weight": 0\n        }\n      ],\n      "optimizationModel": ""\n    }\n  ],\n  "advertiserGroupId": "",\n  "advertiserId": "",\n  "advertiserIdDimensionValue": {},\n  "archived": false,\n  "audienceSegmentGroups": [\n    {\n      "audienceSegments": [\n        {\n          "allocation": 0,\n          "id": "",\n          "name": ""\n        }\n      ],\n      "id": "",\n      "name": ""\n    }\n  ],\n  "billingInvoiceCode": "",\n  "clickThroughUrlSuffixProperties": {\n    "clickThroughUrlSuffix": "",\n    "overrideInheritedSuffix": false\n  },\n  "comment": "",\n  "createInfo": {\n    "time": ""\n  },\n  "creativeGroupIds": [],\n  "creativeOptimizationConfiguration": {},\n  "defaultClickThroughEventTagProperties": {\n    "defaultClickThroughEventTagId": "",\n    "overrideInheritedEventTag": false\n  },\n  "defaultLandingPageId": "",\n  "endDate": "",\n  "eventTagOverrides": [\n    {\n      "enabled": false,\n      "id": ""\n    }\n  ],\n  "externalId": "",\n  "id": "",\n  "idDimensionValue": {},\n  "kind": "",\n  "lastModifiedInfo": {},\n  "name": "",\n  "nielsenOcrEnabled": false,\n  "startDate": "",\n  "subaccountId": "",\n  "traffickerEmails": []\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"accountId\": \"\",\n  \"adBlockingConfiguration\": {\n    \"clickThroughUrl\": \"\",\n    \"creativeBundleId\": \"\",\n    \"enabled\": false,\n    \"overrideClickThroughUrl\": false\n  },\n  \"additionalCreativeOptimizationConfigurations\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"optimizationActivitys\": [\n        {\n          \"floodlightActivityId\": \"\",\n          \"floodlightActivityIdDimensionValue\": {\n            \"dimensionName\": \"\",\n            \"etag\": \"\",\n            \"id\": \"\",\n            \"kind\": \"\",\n            \"matchType\": \"\",\n            \"value\": \"\"\n          },\n          \"weight\": 0\n        }\n      ],\n      \"optimizationModel\": \"\"\n    }\n  ],\n  \"advertiserGroupId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {},\n  \"archived\": false,\n  \"audienceSegmentGroups\": [\n    {\n      \"audienceSegments\": [\n        {\n          \"allocation\": 0,\n          \"id\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"billingInvoiceCode\": \"\",\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comment\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupIds\": [],\n  \"creativeOptimizationConfiguration\": {},\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"defaultLandingPageId\": \"\",\n  \"endDate\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"nielsenOcrEnabled\": false,\n  \"startDate\": \"\",\n  \"subaccountId\": \"\",\n  \"traffickerEmails\": []\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/campaigns?id=")
  .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/userprofiles/:profileId/campaigns?id=',
  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({
  accountId: '',
  adBlockingConfiguration: {
    clickThroughUrl: '',
    creativeBundleId: '',
    enabled: false,
    overrideClickThroughUrl: false
  },
  additionalCreativeOptimizationConfigurations: [
    {
      id: '',
      name: '',
      optimizationActivitys: [
        {
          floodlightActivityId: '',
          floodlightActivityIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
          weight: 0
        }
      ],
      optimizationModel: ''
    }
  ],
  advertiserGroupId: '',
  advertiserId: '',
  advertiserIdDimensionValue: {},
  archived: false,
  audienceSegmentGroups: [{audienceSegments: [{allocation: 0, id: '', name: ''}], id: '', name: ''}],
  billingInvoiceCode: '',
  clickThroughUrlSuffixProperties: {clickThroughUrlSuffix: '', overrideInheritedSuffix: false},
  comment: '',
  createInfo: {time: ''},
  creativeGroupIds: [],
  creativeOptimizationConfiguration: {},
  defaultClickThroughEventTagProperties: {defaultClickThroughEventTagId: '', overrideInheritedEventTag: false},
  defaultLandingPageId: '',
  endDate: '',
  eventTagOverrides: [{enabled: false, id: ''}],
  externalId: '',
  id: '',
  idDimensionValue: {},
  kind: '',
  lastModifiedInfo: {},
  name: '',
  nielsenOcrEnabled: false,
  startDate: '',
  subaccountId: '',
  traffickerEmails: []
}));
req.end();
const request = require('request');

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/userprofiles/:profileId/campaigns',
  qs: {id: ''},
  headers: {'content-type': 'application/json'},
  body: {
    accountId: '',
    adBlockingConfiguration: {
      clickThroughUrl: '',
      creativeBundleId: '',
      enabled: false,
      overrideClickThroughUrl: false
    },
    additionalCreativeOptimizationConfigurations: [
      {
        id: '',
        name: '',
        optimizationActivitys: [
          {
            floodlightActivityId: '',
            floodlightActivityIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
            weight: 0
          }
        ],
        optimizationModel: ''
      }
    ],
    advertiserGroupId: '',
    advertiserId: '',
    advertiserIdDimensionValue: {},
    archived: false,
    audienceSegmentGroups: [{audienceSegments: [{allocation: 0, id: '', name: ''}], id: '', name: ''}],
    billingInvoiceCode: '',
    clickThroughUrlSuffixProperties: {clickThroughUrlSuffix: '', overrideInheritedSuffix: false},
    comment: '',
    createInfo: {time: ''},
    creativeGroupIds: [],
    creativeOptimizationConfiguration: {},
    defaultClickThroughEventTagProperties: {defaultClickThroughEventTagId: '', overrideInheritedEventTag: false},
    defaultLandingPageId: '',
    endDate: '',
    eventTagOverrides: [{enabled: false, id: ''}],
    externalId: '',
    id: '',
    idDimensionValue: {},
    kind: '',
    lastModifiedInfo: {},
    name: '',
    nielsenOcrEnabled: false,
    startDate: '',
    subaccountId: '',
    traffickerEmails: []
  },
  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}}/userprofiles/:profileId/campaigns');

req.query({
  id: ''
});

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  accountId: '',
  adBlockingConfiguration: {
    clickThroughUrl: '',
    creativeBundleId: '',
    enabled: false,
    overrideClickThroughUrl: false
  },
  additionalCreativeOptimizationConfigurations: [
    {
      id: '',
      name: '',
      optimizationActivitys: [
        {
          floodlightActivityId: '',
          floodlightActivityIdDimensionValue: {
            dimensionName: '',
            etag: '',
            id: '',
            kind: '',
            matchType: '',
            value: ''
          },
          weight: 0
        }
      ],
      optimizationModel: ''
    }
  ],
  advertiserGroupId: '',
  advertiserId: '',
  advertiserIdDimensionValue: {},
  archived: false,
  audienceSegmentGroups: [
    {
      audienceSegments: [
        {
          allocation: 0,
          id: '',
          name: ''
        }
      ],
      id: '',
      name: ''
    }
  ],
  billingInvoiceCode: '',
  clickThroughUrlSuffixProperties: {
    clickThroughUrlSuffix: '',
    overrideInheritedSuffix: false
  },
  comment: '',
  createInfo: {
    time: ''
  },
  creativeGroupIds: [],
  creativeOptimizationConfiguration: {},
  defaultClickThroughEventTagProperties: {
    defaultClickThroughEventTagId: '',
    overrideInheritedEventTag: false
  },
  defaultLandingPageId: '',
  endDate: '',
  eventTagOverrides: [
    {
      enabled: false,
      id: ''
    }
  ],
  externalId: '',
  id: '',
  idDimensionValue: {},
  kind: '',
  lastModifiedInfo: {},
  name: '',
  nielsenOcrEnabled: false,
  startDate: '',
  subaccountId: '',
  traffickerEmails: []
});

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}}/userprofiles/:profileId/campaigns',
  params: {id: ''},
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    adBlockingConfiguration: {
      clickThroughUrl: '',
      creativeBundleId: '',
      enabled: false,
      overrideClickThroughUrl: false
    },
    additionalCreativeOptimizationConfigurations: [
      {
        id: '',
        name: '',
        optimizationActivitys: [
          {
            floodlightActivityId: '',
            floodlightActivityIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
            weight: 0
          }
        ],
        optimizationModel: ''
      }
    ],
    advertiserGroupId: '',
    advertiserId: '',
    advertiserIdDimensionValue: {},
    archived: false,
    audienceSegmentGroups: [{audienceSegments: [{allocation: 0, id: '', name: ''}], id: '', name: ''}],
    billingInvoiceCode: '',
    clickThroughUrlSuffixProperties: {clickThroughUrlSuffix: '', overrideInheritedSuffix: false},
    comment: '',
    createInfo: {time: ''},
    creativeGroupIds: [],
    creativeOptimizationConfiguration: {},
    defaultClickThroughEventTagProperties: {defaultClickThroughEventTagId: '', overrideInheritedEventTag: false},
    defaultLandingPageId: '',
    endDate: '',
    eventTagOverrides: [{enabled: false, id: ''}],
    externalId: '',
    id: '',
    idDimensionValue: {},
    kind: '',
    lastModifiedInfo: {},
    name: '',
    nielsenOcrEnabled: false,
    startDate: '',
    subaccountId: '',
    traffickerEmails: []
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/campaigns?id=';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","adBlockingConfiguration":{"clickThroughUrl":"","creativeBundleId":"","enabled":false,"overrideClickThroughUrl":false},"additionalCreativeOptimizationConfigurations":[{"id":"","name":"","optimizationActivitys":[{"floodlightActivityId":"","floodlightActivityIdDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"weight":0}],"optimizationModel":""}],"advertiserGroupId":"","advertiserId":"","advertiserIdDimensionValue":{},"archived":false,"audienceSegmentGroups":[{"audienceSegments":[{"allocation":0,"id":"","name":""}],"id":"","name":""}],"billingInvoiceCode":"","clickThroughUrlSuffixProperties":{"clickThroughUrlSuffix":"","overrideInheritedSuffix":false},"comment":"","createInfo":{"time":""},"creativeGroupIds":[],"creativeOptimizationConfiguration":{},"defaultClickThroughEventTagProperties":{"defaultClickThroughEventTagId":"","overrideInheritedEventTag":false},"defaultLandingPageId":"","endDate":"","eventTagOverrides":[{"enabled":false,"id":""}],"externalId":"","id":"","idDimensionValue":{},"kind":"","lastModifiedInfo":{},"name":"","nielsenOcrEnabled":false,"startDate":"","subaccountId":"","traffickerEmails":[]}'
};

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 = @{ @"accountId": @"",
                              @"adBlockingConfiguration": @{ @"clickThroughUrl": @"", @"creativeBundleId": @"", @"enabled": @NO, @"overrideClickThroughUrl": @NO },
                              @"additionalCreativeOptimizationConfigurations": @[ @{ @"id": @"", @"name": @"", @"optimizationActivitys": @[ @{ @"floodlightActivityId": @"", @"floodlightActivityIdDimensionValue": @{ @"dimensionName": @"", @"etag": @"", @"id": @"", @"kind": @"", @"matchType": @"", @"value": @"" }, @"weight": @0 } ], @"optimizationModel": @"" } ],
                              @"advertiserGroupId": @"",
                              @"advertiserId": @"",
                              @"advertiserIdDimensionValue": @{  },
                              @"archived": @NO,
                              @"audienceSegmentGroups": @[ @{ @"audienceSegments": @[ @{ @"allocation": @0, @"id": @"", @"name": @"" } ], @"id": @"", @"name": @"" } ],
                              @"billingInvoiceCode": @"",
                              @"clickThroughUrlSuffixProperties": @{ @"clickThroughUrlSuffix": @"", @"overrideInheritedSuffix": @NO },
                              @"comment": @"",
                              @"createInfo": @{ @"time": @"" },
                              @"creativeGroupIds": @[  ],
                              @"creativeOptimizationConfiguration": @{  },
                              @"defaultClickThroughEventTagProperties": @{ @"defaultClickThroughEventTagId": @"", @"overrideInheritedEventTag": @NO },
                              @"defaultLandingPageId": @"",
                              @"endDate": @"",
                              @"eventTagOverrides": @[ @{ @"enabled": @NO, @"id": @"" } ],
                              @"externalId": @"",
                              @"id": @"",
                              @"idDimensionValue": @{  },
                              @"kind": @"",
                              @"lastModifiedInfo": @{  },
                              @"name": @"",
                              @"nielsenOcrEnabled": @NO,
                              @"startDate": @"",
                              @"subaccountId": @"",
                              @"traffickerEmails": @[  ] };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/userprofiles/:profileId/campaigns?id="]
                                                       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}}/userprofiles/:profileId/campaigns?id=" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"accountId\": \"\",\n  \"adBlockingConfiguration\": {\n    \"clickThroughUrl\": \"\",\n    \"creativeBundleId\": \"\",\n    \"enabled\": false,\n    \"overrideClickThroughUrl\": false\n  },\n  \"additionalCreativeOptimizationConfigurations\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"optimizationActivitys\": [\n        {\n          \"floodlightActivityId\": \"\",\n          \"floodlightActivityIdDimensionValue\": {\n            \"dimensionName\": \"\",\n            \"etag\": \"\",\n            \"id\": \"\",\n            \"kind\": \"\",\n            \"matchType\": \"\",\n            \"value\": \"\"\n          },\n          \"weight\": 0\n        }\n      ],\n      \"optimizationModel\": \"\"\n    }\n  ],\n  \"advertiserGroupId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {},\n  \"archived\": false,\n  \"audienceSegmentGroups\": [\n    {\n      \"audienceSegments\": [\n        {\n          \"allocation\": 0,\n          \"id\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"billingInvoiceCode\": \"\",\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comment\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupIds\": [],\n  \"creativeOptimizationConfiguration\": {},\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"defaultLandingPageId\": \"\",\n  \"endDate\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"nielsenOcrEnabled\": false,\n  \"startDate\": \"\",\n  \"subaccountId\": \"\",\n  \"traffickerEmails\": []\n}" in

Client.call ~headers ~body `PATCH uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/campaigns?id=",
  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([
    'accountId' => '',
    'adBlockingConfiguration' => [
        'clickThroughUrl' => '',
        'creativeBundleId' => '',
        'enabled' => null,
        'overrideClickThroughUrl' => null
    ],
    'additionalCreativeOptimizationConfigurations' => [
        [
                'id' => '',
                'name' => '',
                'optimizationActivitys' => [
                                [
                                                                'floodlightActivityId' => '',
                                                                'floodlightActivityIdDimensionValue' => [
                                                                                                                                'dimensionName' => '',
                                                                                                                                'etag' => '',
                                                                                                                                'id' => '',
                                                                                                                                'kind' => '',
                                                                                                                                'matchType' => '',
                                                                                                                                'value' => ''
                                                                ],
                                                                'weight' => 0
                                ]
                ],
                'optimizationModel' => ''
        ]
    ],
    'advertiserGroupId' => '',
    'advertiserId' => '',
    'advertiserIdDimensionValue' => [
        
    ],
    'archived' => null,
    'audienceSegmentGroups' => [
        [
                'audienceSegments' => [
                                [
                                                                'allocation' => 0,
                                                                'id' => '',
                                                                'name' => ''
                                ]
                ],
                'id' => '',
                'name' => ''
        ]
    ],
    'billingInvoiceCode' => '',
    'clickThroughUrlSuffixProperties' => [
        'clickThroughUrlSuffix' => '',
        'overrideInheritedSuffix' => null
    ],
    'comment' => '',
    'createInfo' => [
        'time' => ''
    ],
    'creativeGroupIds' => [
        
    ],
    'creativeOptimizationConfiguration' => [
        
    ],
    'defaultClickThroughEventTagProperties' => [
        'defaultClickThroughEventTagId' => '',
        'overrideInheritedEventTag' => null
    ],
    'defaultLandingPageId' => '',
    'endDate' => '',
    'eventTagOverrides' => [
        [
                'enabled' => null,
                'id' => ''
        ]
    ],
    'externalId' => '',
    'id' => '',
    'idDimensionValue' => [
        
    ],
    'kind' => '',
    'lastModifiedInfo' => [
        
    ],
    'name' => '',
    'nielsenOcrEnabled' => null,
    'startDate' => '',
    'subaccountId' => '',
    'traffickerEmails' => [
        
    ]
  ]),
  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}}/userprofiles/:profileId/campaigns?id=', [
  'body' => '{
  "accountId": "",
  "adBlockingConfiguration": {
    "clickThroughUrl": "",
    "creativeBundleId": "",
    "enabled": false,
    "overrideClickThroughUrl": false
  },
  "additionalCreativeOptimizationConfigurations": [
    {
      "id": "",
      "name": "",
      "optimizationActivitys": [
        {
          "floodlightActivityId": "",
          "floodlightActivityIdDimensionValue": {
            "dimensionName": "",
            "etag": "",
            "id": "",
            "kind": "",
            "matchType": "",
            "value": ""
          },
          "weight": 0
        }
      ],
      "optimizationModel": ""
    }
  ],
  "advertiserGroupId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {},
  "archived": false,
  "audienceSegmentGroups": [
    {
      "audienceSegments": [
        {
          "allocation": 0,
          "id": "",
          "name": ""
        }
      ],
      "id": "",
      "name": ""
    }
  ],
  "billingInvoiceCode": "",
  "clickThroughUrlSuffixProperties": {
    "clickThroughUrlSuffix": "",
    "overrideInheritedSuffix": false
  },
  "comment": "",
  "createInfo": {
    "time": ""
  },
  "creativeGroupIds": [],
  "creativeOptimizationConfiguration": {},
  "defaultClickThroughEventTagProperties": {
    "defaultClickThroughEventTagId": "",
    "overrideInheritedEventTag": false
  },
  "defaultLandingPageId": "",
  "endDate": "",
  "eventTagOverrides": [
    {
      "enabled": false,
      "id": ""
    }
  ],
  "externalId": "",
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "lastModifiedInfo": {},
  "name": "",
  "nielsenOcrEnabled": false,
  "startDate": "",
  "subaccountId": "",
  "traffickerEmails": []
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/campaigns');
$request->setMethod(HttpRequest::HTTP_METH_PATCH);

$request->setQueryData([
  'id' => ''
]);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'accountId' => '',
  'adBlockingConfiguration' => [
    'clickThroughUrl' => '',
    'creativeBundleId' => '',
    'enabled' => null,
    'overrideClickThroughUrl' => null
  ],
  'additionalCreativeOptimizationConfigurations' => [
    [
        'id' => '',
        'name' => '',
        'optimizationActivitys' => [
                [
                                'floodlightActivityId' => '',
                                'floodlightActivityIdDimensionValue' => [
                                                                'dimensionName' => '',
                                                                'etag' => '',
                                                                'id' => '',
                                                                'kind' => '',
                                                                'matchType' => '',
                                                                'value' => ''
                                ],
                                'weight' => 0
                ]
        ],
        'optimizationModel' => ''
    ]
  ],
  'advertiserGroupId' => '',
  'advertiserId' => '',
  'advertiserIdDimensionValue' => [
    
  ],
  'archived' => null,
  'audienceSegmentGroups' => [
    [
        'audienceSegments' => [
                [
                                'allocation' => 0,
                                'id' => '',
                                'name' => ''
                ]
        ],
        'id' => '',
        'name' => ''
    ]
  ],
  'billingInvoiceCode' => '',
  'clickThroughUrlSuffixProperties' => [
    'clickThroughUrlSuffix' => '',
    'overrideInheritedSuffix' => null
  ],
  'comment' => '',
  'createInfo' => [
    'time' => ''
  ],
  'creativeGroupIds' => [
    
  ],
  'creativeOptimizationConfiguration' => [
    
  ],
  'defaultClickThroughEventTagProperties' => [
    'defaultClickThroughEventTagId' => '',
    'overrideInheritedEventTag' => null
  ],
  'defaultLandingPageId' => '',
  'endDate' => '',
  'eventTagOverrides' => [
    [
        'enabled' => null,
        'id' => ''
    ]
  ],
  'externalId' => '',
  'id' => '',
  'idDimensionValue' => [
    
  ],
  'kind' => '',
  'lastModifiedInfo' => [
    
  ],
  'name' => '',
  'nielsenOcrEnabled' => null,
  'startDate' => '',
  'subaccountId' => '',
  'traffickerEmails' => [
    
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'accountId' => '',
  'adBlockingConfiguration' => [
    'clickThroughUrl' => '',
    'creativeBundleId' => '',
    'enabled' => null,
    'overrideClickThroughUrl' => null
  ],
  'additionalCreativeOptimizationConfigurations' => [
    [
        'id' => '',
        'name' => '',
        'optimizationActivitys' => [
                [
                                'floodlightActivityId' => '',
                                'floodlightActivityIdDimensionValue' => [
                                                                'dimensionName' => '',
                                                                'etag' => '',
                                                                'id' => '',
                                                                'kind' => '',
                                                                'matchType' => '',
                                                                'value' => ''
                                ],
                                'weight' => 0
                ]
        ],
        'optimizationModel' => ''
    ]
  ],
  'advertiserGroupId' => '',
  'advertiserId' => '',
  'advertiserIdDimensionValue' => [
    
  ],
  'archived' => null,
  'audienceSegmentGroups' => [
    [
        'audienceSegments' => [
                [
                                'allocation' => 0,
                                'id' => '',
                                'name' => ''
                ]
        ],
        'id' => '',
        'name' => ''
    ]
  ],
  'billingInvoiceCode' => '',
  'clickThroughUrlSuffixProperties' => [
    'clickThroughUrlSuffix' => '',
    'overrideInheritedSuffix' => null
  ],
  'comment' => '',
  'createInfo' => [
    'time' => ''
  ],
  'creativeGroupIds' => [
    
  ],
  'creativeOptimizationConfiguration' => [
    
  ],
  'defaultClickThroughEventTagProperties' => [
    'defaultClickThroughEventTagId' => '',
    'overrideInheritedEventTag' => null
  ],
  'defaultLandingPageId' => '',
  'endDate' => '',
  'eventTagOverrides' => [
    [
        'enabled' => null,
        'id' => ''
    ]
  ],
  'externalId' => '',
  'id' => '',
  'idDimensionValue' => [
    
  ],
  'kind' => '',
  'lastModifiedInfo' => [
    
  ],
  'name' => '',
  'nielsenOcrEnabled' => null,
  'startDate' => '',
  'subaccountId' => '',
  'traffickerEmails' => [
    
  ]
]));
$request->setRequestUrl('{{baseUrl}}/userprofiles/:profileId/campaigns');
$request->setRequestMethod('PATCH');
$request->setBody($body);

$request->setQuery(new http\QueryString([
  'id' => ''
]));

$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}}/userprofiles/:profileId/campaigns?id=' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "adBlockingConfiguration": {
    "clickThroughUrl": "",
    "creativeBundleId": "",
    "enabled": false,
    "overrideClickThroughUrl": false
  },
  "additionalCreativeOptimizationConfigurations": [
    {
      "id": "",
      "name": "",
      "optimizationActivitys": [
        {
          "floodlightActivityId": "",
          "floodlightActivityIdDimensionValue": {
            "dimensionName": "",
            "etag": "",
            "id": "",
            "kind": "",
            "matchType": "",
            "value": ""
          },
          "weight": 0
        }
      ],
      "optimizationModel": ""
    }
  ],
  "advertiserGroupId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {},
  "archived": false,
  "audienceSegmentGroups": [
    {
      "audienceSegments": [
        {
          "allocation": 0,
          "id": "",
          "name": ""
        }
      ],
      "id": "",
      "name": ""
    }
  ],
  "billingInvoiceCode": "",
  "clickThroughUrlSuffixProperties": {
    "clickThroughUrlSuffix": "",
    "overrideInheritedSuffix": false
  },
  "comment": "",
  "createInfo": {
    "time": ""
  },
  "creativeGroupIds": [],
  "creativeOptimizationConfiguration": {},
  "defaultClickThroughEventTagProperties": {
    "defaultClickThroughEventTagId": "",
    "overrideInheritedEventTag": false
  },
  "defaultLandingPageId": "",
  "endDate": "",
  "eventTagOverrides": [
    {
      "enabled": false,
      "id": ""
    }
  ],
  "externalId": "",
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "lastModifiedInfo": {},
  "name": "",
  "nielsenOcrEnabled": false,
  "startDate": "",
  "subaccountId": "",
  "traffickerEmails": []
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/campaigns?id=' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "adBlockingConfiguration": {
    "clickThroughUrl": "",
    "creativeBundleId": "",
    "enabled": false,
    "overrideClickThroughUrl": false
  },
  "additionalCreativeOptimizationConfigurations": [
    {
      "id": "",
      "name": "",
      "optimizationActivitys": [
        {
          "floodlightActivityId": "",
          "floodlightActivityIdDimensionValue": {
            "dimensionName": "",
            "etag": "",
            "id": "",
            "kind": "",
            "matchType": "",
            "value": ""
          },
          "weight": 0
        }
      ],
      "optimizationModel": ""
    }
  ],
  "advertiserGroupId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {},
  "archived": false,
  "audienceSegmentGroups": [
    {
      "audienceSegments": [
        {
          "allocation": 0,
          "id": "",
          "name": ""
        }
      ],
      "id": "",
      "name": ""
    }
  ],
  "billingInvoiceCode": "",
  "clickThroughUrlSuffixProperties": {
    "clickThroughUrlSuffix": "",
    "overrideInheritedSuffix": false
  },
  "comment": "",
  "createInfo": {
    "time": ""
  },
  "creativeGroupIds": [],
  "creativeOptimizationConfiguration": {},
  "defaultClickThroughEventTagProperties": {
    "defaultClickThroughEventTagId": "",
    "overrideInheritedEventTag": false
  },
  "defaultLandingPageId": "",
  "endDate": "",
  "eventTagOverrides": [
    {
      "enabled": false,
      "id": ""
    }
  ],
  "externalId": "",
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "lastModifiedInfo": {},
  "name": "",
  "nielsenOcrEnabled": false,
  "startDate": "",
  "subaccountId": "",
  "traffickerEmails": []
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"accountId\": \"\",\n  \"adBlockingConfiguration\": {\n    \"clickThroughUrl\": \"\",\n    \"creativeBundleId\": \"\",\n    \"enabled\": false,\n    \"overrideClickThroughUrl\": false\n  },\n  \"additionalCreativeOptimizationConfigurations\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"optimizationActivitys\": [\n        {\n          \"floodlightActivityId\": \"\",\n          \"floodlightActivityIdDimensionValue\": {\n            \"dimensionName\": \"\",\n            \"etag\": \"\",\n            \"id\": \"\",\n            \"kind\": \"\",\n            \"matchType\": \"\",\n            \"value\": \"\"\n          },\n          \"weight\": 0\n        }\n      ],\n      \"optimizationModel\": \"\"\n    }\n  ],\n  \"advertiserGroupId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {},\n  \"archived\": false,\n  \"audienceSegmentGroups\": [\n    {\n      \"audienceSegments\": [\n        {\n          \"allocation\": 0,\n          \"id\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"billingInvoiceCode\": \"\",\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comment\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupIds\": [],\n  \"creativeOptimizationConfiguration\": {},\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"defaultLandingPageId\": \"\",\n  \"endDate\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"nielsenOcrEnabled\": false,\n  \"startDate\": \"\",\n  \"subaccountId\": \"\",\n  \"traffickerEmails\": []\n}"

headers = { 'content-type': "application/json" }

conn.request("PATCH", "/baseUrl/userprofiles/:profileId/campaigns?id=", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/campaigns"

querystring = {"id":""}

payload = {
    "accountId": "",
    "adBlockingConfiguration": {
        "clickThroughUrl": "",
        "creativeBundleId": "",
        "enabled": False,
        "overrideClickThroughUrl": False
    },
    "additionalCreativeOptimizationConfigurations": [
        {
            "id": "",
            "name": "",
            "optimizationActivitys": [
                {
                    "floodlightActivityId": "",
                    "floodlightActivityIdDimensionValue": {
                        "dimensionName": "",
                        "etag": "",
                        "id": "",
                        "kind": "",
                        "matchType": "",
                        "value": ""
                    },
                    "weight": 0
                }
            ],
            "optimizationModel": ""
        }
    ],
    "advertiserGroupId": "",
    "advertiserId": "",
    "advertiserIdDimensionValue": {},
    "archived": False,
    "audienceSegmentGroups": [
        {
            "audienceSegments": [
                {
                    "allocation": 0,
                    "id": "",
                    "name": ""
                }
            ],
            "id": "",
            "name": ""
        }
    ],
    "billingInvoiceCode": "",
    "clickThroughUrlSuffixProperties": {
        "clickThroughUrlSuffix": "",
        "overrideInheritedSuffix": False
    },
    "comment": "",
    "createInfo": { "time": "" },
    "creativeGroupIds": [],
    "creativeOptimizationConfiguration": {},
    "defaultClickThroughEventTagProperties": {
        "defaultClickThroughEventTagId": "",
        "overrideInheritedEventTag": False
    },
    "defaultLandingPageId": "",
    "endDate": "",
    "eventTagOverrides": [
        {
            "enabled": False,
            "id": ""
        }
    ],
    "externalId": "",
    "id": "",
    "idDimensionValue": {},
    "kind": "",
    "lastModifiedInfo": {},
    "name": "",
    "nielsenOcrEnabled": False,
    "startDate": "",
    "subaccountId": "",
    "traffickerEmails": []
}
headers = {"content-type": "application/json"}

response = requests.patch(url, json=payload, headers=headers, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/campaigns"

queryString <- list(id = "")

payload <- "{\n  \"accountId\": \"\",\n  \"adBlockingConfiguration\": {\n    \"clickThroughUrl\": \"\",\n    \"creativeBundleId\": \"\",\n    \"enabled\": false,\n    \"overrideClickThroughUrl\": false\n  },\n  \"additionalCreativeOptimizationConfigurations\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"optimizationActivitys\": [\n        {\n          \"floodlightActivityId\": \"\",\n          \"floodlightActivityIdDimensionValue\": {\n            \"dimensionName\": \"\",\n            \"etag\": \"\",\n            \"id\": \"\",\n            \"kind\": \"\",\n            \"matchType\": \"\",\n            \"value\": \"\"\n          },\n          \"weight\": 0\n        }\n      ],\n      \"optimizationModel\": \"\"\n    }\n  ],\n  \"advertiserGroupId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {},\n  \"archived\": false,\n  \"audienceSegmentGroups\": [\n    {\n      \"audienceSegments\": [\n        {\n          \"allocation\": 0,\n          \"id\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"billingInvoiceCode\": \"\",\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comment\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupIds\": [],\n  \"creativeOptimizationConfiguration\": {},\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"defaultLandingPageId\": \"\",\n  \"endDate\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"nielsenOcrEnabled\": false,\n  \"startDate\": \"\",\n  \"subaccountId\": \"\",\n  \"traffickerEmails\": []\n}"

encode <- "json"

response <- VERB("PATCH", url, body = payload, query = queryString, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/campaigns?id=")

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  \"accountId\": \"\",\n  \"adBlockingConfiguration\": {\n    \"clickThroughUrl\": \"\",\n    \"creativeBundleId\": \"\",\n    \"enabled\": false,\n    \"overrideClickThroughUrl\": false\n  },\n  \"additionalCreativeOptimizationConfigurations\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"optimizationActivitys\": [\n        {\n          \"floodlightActivityId\": \"\",\n          \"floodlightActivityIdDimensionValue\": {\n            \"dimensionName\": \"\",\n            \"etag\": \"\",\n            \"id\": \"\",\n            \"kind\": \"\",\n            \"matchType\": \"\",\n            \"value\": \"\"\n          },\n          \"weight\": 0\n        }\n      ],\n      \"optimizationModel\": \"\"\n    }\n  ],\n  \"advertiserGroupId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {},\n  \"archived\": false,\n  \"audienceSegmentGroups\": [\n    {\n      \"audienceSegments\": [\n        {\n          \"allocation\": 0,\n          \"id\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"billingInvoiceCode\": \"\",\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comment\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupIds\": [],\n  \"creativeOptimizationConfiguration\": {},\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"defaultLandingPageId\": \"\",\n  \"endDate\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"nielsenOcrEnabled\": false,\n  \"startDate\": \"\",\n  \"subaccountId\": \"\",\n  \"traffickerEmails\": []\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/userprofiles/:profileId/campaigns') do |req|
  req.params['id'] = ''
  req.body = "{\n  \"accountId\": \"\",\n  \"adBlockingConfiguration\": {\n    \"clickThroughUrl\": \"\",\n    \"creativeBundleId\": \"\",\n    \"enabled\": false,\n    \"overrideClickThroughUrl\": false\n  },\n  \"additionalCreativeOptimizationConfigurations\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"optimizationActivitys\": [\n        {\n          \"floodlightActivityId\": \"\",\n          \"floodlightActivityIdDimensionValue\": {\n            \"dimensionName\": \"\",\n            \"etag\": \"\",\n            \"id\": \"\",\n            \"kind\": \"\",\n            \"matchType\": \"\",\n            \"value\": \"\"\n          },\n          \"weight\": 0\n        }\n      ],\n      \"optimizationModel\": \"\"\n    }\n  ],\n  \"advertiserGroupId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {},\n  \"archived\": false,\n  \"audienceSegmentGroups\": [\n    {\n      \"audienceSegments\": [\n        {\n          \"allocation\": 0,\n          \"id\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"billingInvoiceCode\": \"\",\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comment\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupIds\": [],\n  \"creativeOptimizationConfiguration\": {},\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"defaultLandingPageId\": \"\",\n  \"endDate\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"nielsenOcrEnabled\": false,\n  \"startDate\": \"\",\n  \"subaccountId\": \"\",\n  \"traffickerEmails\": []\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}}/userprofiles/:profileId/campaigns";

    let querystring = [
        ("id", ""),
    ];

    let payload = json!({
        "accountId": "",
        "adBlockingConfiguration": json!({
            "clickThroughUrl": "",
            "creativeBundleId": "",
            "enabled": false,
            "overrideClickThroughUrl": false
        }),
        "additionalCreativeOptimizationConfigurations": (
            json!({
                "id": "",
                "name": "",
                "optimizationActivitys": (
                    json!({
                        "floodlightActivityId": "",
                        "floodlightActivityIdDimensionValue": json!({
                            "dimensionName": "",
                            "etag": "",
                            "id": "",
                            "kind": "",
                            "matchType": "",
                            "value": ""
                        }),
                        "weight": 0
                    })
                ),
                "optimizationModel": ""
            })
        ),
        "advertiserGroupId": "",
        "advertiserId": "",
        "advertiserIdDimensionValue": json!({}),
        "archived": false,
        "audienceSegmentGroups": (
            json!({
                "audienceSegments": (
                    json!({
                        "allocation": 0,
                        "id": "",
                        "name": ""
                    })
                ),
                "id": "",
                "name": ""
            })
        ),
        "billingInvoiceCode": "",
        "clickThroughUrlSuffixProperties": json!({
            "clickThroughUrlSuffix": "",
            "overrideInheritedSuffix": false
        }),
        "comment": "",
        "createInfo": json!({"time": ""}),
        "creativeGroupIds": (),
        "creativeOptimizationConfiguration": json!({}),
        "defaultClickThroughEventTagProperties": json!({
            "defaultClickThroughEventTagId": "",
            "overrideInheritedEventTag": false
        }),
        "defaultLandingPageId": "",
        "endDate": "",
        "eventTagOverrides": (
            json!({
                "enabled": false,
                "id": ""
            })
        ),
        "externalId": "",
        "id": "",
        "idDimensionValue": json!({}),
        "kind": "",
        "lastModifiedInfo": json!({}),
        "name": "",
        "nielsenOcrEnabled": false,
        "startDate": "",
        "subaccountId": "",
        "traffickerEmails": ()
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PATCH").unwrap(), url)
        .query(&querystring)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PATCH \
  --url '{{baseUrl}}/userprofiles/:profileId/campaigns?id=' \
  --header 'content-type: application/json' \
  --data '{
  "accountId": "",
  "adBlockingConfiguration": {
    "clickThroughUrl": "",
    "creativeBundleId": "",
    "enabled": false,
    "overrideClickThroughUrl": false
  },
  "additionalCreativeOptimizationConfigurations": [
    {
      "id": "",
      "name": "",
      "optimizationActivitys": [
        {
          "floodlightActivityId": "",
          "floodlightActivityIdDimensionValue": {
            "dimensionName": "",
            "etag": "",
            "id": "",
            "kind": "",
            "matchType": "",
            "value": ""
          },
          "weight": 0
        }
      ],
      "optimizationModel": ""
    }
  ],
  "advertiserGroupId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {},
  "archived": false,
  "audienceSegmentGroups": [
    {
      "audienceSegments": [
        {
          "allocation": 0,
          "id": "",
          "name": ""
        }
      ],
      "id": "",
      "name": ""
    }
  ],
  "billingInvoiceCode": "",
  "clickThroughUrlSuffixProperties": {
    "clickThroughUrlSuffix": "",
    "overrideInheritedSuffix": false
  },
  "comment": "",
  "createInfo": {
    "time": ""
  },
  "creativeGroupIds": [],
  "creativeOptimizationConfiguration": {},
  "defaultClickThroughEventTagProperties": {
    "defaultClickThroughEventTagId": "",
    "overrideInheritedEventTag": false
  },
  "defaultLandingPageId": "",
  "endDate": "",
  "eventTagOverrides": [
    {
      "enabled": false,
      "id": ""
    }
  ],
  "externalId": "",
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "lastModifiedInfo": {},
  "name": "",
  "nielsenOcrEnabled": false,
  "startDate": "",
  "subaccountId": "",
  "traffickerEmails": []
}'
echo '{
  "accountId": "",
  "adBlockingConfiguration": {
    "clickThroughUrl": "",
    "creativeBundleId": "",
    "enabled": false,
    "overrideClickThroughUrl": false
  },
  "additionalCreativeOptimizationConfigurations": [
    {
      "id": "",
      "name": "",
      "optimizationActivitys": [
        {
          "floodlightActivityId": "",
          "floodlightActivityIdDimensionValue": {
            "dimensionName": "",
            "etag": "",
            "id": "",
            "kind": "",
            "matchType": "",
            "value": ""
          },
          "weight": 0
        }
      ],
      "optimizationModel": ""
    }
  ],
  "advertiserGroupId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {},
  "archived": false,
  "audienceSegmentGroups": [
    {
      "audienceSegments": [
        {
          "allocation": 0,
          "id": "",
          "name": ""
        }
      ],
      "id": "",
      "name": ""
    }
  ],
  "billingInvoiceCode": "",
  "clickThroughUrlSuffixProperties": {
    "clickThroughUrlSuffix": "",
    "overrideInheritedSuffix": false
  },
  "comment": "",
  "createInfo": {
    "time": ""
  },
  "creativeGroupIds": [],
  "creativeOptimizationConfiguration": {},
  "defaultClickThroughEventTagProperties": {
    "defaultClickThroughEventTagId": "",
    "overrideInheritedEventTag": false
  },
  "defaultLandingPageId": "",
  "endDate": "",
  "eventTagOverrides": [
    {
      "enabled": false,
      "id": ""
    }
  ],
  "externalId": "",
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "lastModifiedInfo": {},
  "name": "",
  "nielsenOcrEnabled": false,
  "startDate": "",
  "subaccountId": "",
  "traffickerEmails": []
}' |  \
  http PATCH '{{baseUrl}}/userprofiles/:profileId/campaigns?id=' \
  content-type:application/json
wget --quiet \
  --method PATCH \
  --header 'content-type: application/json' \
  --body-data '{\n  "accountId": "",\n  "adBlockingConfiguration": {\n    "clickThroughUrl": "",\n    "creativeBundleId": "",\n    "enabled": false,\n    "overrideClickThroughUrl": false\n  },\n  "additionalCreativeOptimizationConfigurations": [\n    {\n      "id": "",\n      "name": "",\n      "optimizationActivitys": [\n        {\n          "floodlightActivityId": "",\n          "floodlightActivityIdDimensionValue": {\n            "dimensionName": "",\n            "etag": "",\n            "id": "",\n            "kind": "",\n            "matchType": "",\n            "value": ""\n          },\n          "weight": 0\n        }\n      ],\n      "optimizationModel": ""\n    }\n  ],\n  "advertiserGroupId": "",\n  "advertiserId": "",\n  "advertiserIdDimensionValue": {},\n  "archived": false,\n  "audienceSegmentGroups": [\n    {\n      "audienceSegments": [\n        {\n          "allocation": 0,\n          "id": "",\n          "name": ""\n        }\n      ],\n      "id": "",\n      "name": ""\n    }\n  ],\n  "billingInvoiceCode": "",\n  "clickThroughUrlSuffixProperties": {\n    "clickThroughUrlSuffix": "",\n    "overrideInheritedSuffix": false\n  },\n  "comment": "",\n  "createInfo": {\n    "time": ""\n  },\n  "creativeGroupIds": [],\n  "creativeOptimizationConfiguration": {},\n  "defaultClickThroughEventTagProperties": {\n    "defaultClickThroughEventTagId": "",\n    "overrideInheritedEventTag": false\n  },\n  "defaultLandingPageId": "",\n  "endDate": "",\n  "eventTagOverrides": [\n    {\n      "enabled": false,\n      "id": ""\n    }\n  ],\n  "externalId": "",\n  "id": "",\n  "idDimensionValue": {},\n  "kind": "",\n  "lastModifiedInfo": {},\n  "name": "",\n  "nielsenOcrEnabled": false,\n  "startDate": "",\n  "subaccountId": "",\n  "traffickerEmails": []\n}' \
  --output-document \
  - '{{baseUrl}}/userprofiles/:profileId/campaigns?id='
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "accountId": "",
  "adBlockingConfiguration": [
    "clickThroughUrl": "",
    "creativeBundleId": "",
    "enabled": false,
    "overrideClickThroughUrl": false
  ],
  "additionalCreativeOptimizationConfigurations": [
    [
      "id": "",
      "name": "",
      "optimizationActivitys": [
        [
          "floodlightActivityId": "",
          "floodlightActivityIdDimensionValue": [
            "dimensionName": "",
            "etag": "",
            "id": "",
            "kind": "",
            "matchType": "",
            "value": ""
          ],
          "weight": 0
        ]
      ],
      "optimizationModel": ""
    ]
  ],
  "advertiserGroupId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": [],
  "archived": false,
  "audienceSegmentGroups": [
    [
      "audienceSegments": [
        [
          "allocation": 0,
          "id": "",
          "name": ""
        ]
      ],
      "id": "",
      "name": ""
    ]
  ],
  "billingInvoiceCode": "",
  "clickThroughUrlSuffixProperties": [
    "clickThroughUrlSuffix": "",
    "overrideInheritedSuffix": false
  ],
  "comment": "",
  "createInfo": ["time": ""],
  "creativeGroupIds": [],
  "creativeOptimizationConfiguration": [],
  "defaultClickThroughEventTagProperties": [
    "defaultClickThroughEventTagId": "",
    "overrideInheritedEventTag": false
  ],
  "defaultLandingPageId": "",
  "endDate": "",
  "eventTagOverrides": [
    [
      "enabled": false,
      "id": ""
    ]
  ],
  "externalId": "",
  "id": "",
  "idDimensionValue": [],
  "kind": "",
  "lastModifiedInfo": [],
  "name": "",
  "nielsenOcrEnabled": false,
  "startDate": "",
  "subaccountId": "",
  "traffickerEmails": []
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/campaigns?id=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PATCH"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
PUT dfareporting.campaigns.update
{{baseUrl}}/userprofiles/:profileId/campaigns
QUERY PARAMS

profileId
BODY json

{
  "accountId": "",
  "adBlockingConfiguration": {
    "clickThroughUrl": "",
    "creativeBundleId": "",
    "enabled": false,
    "overrideClickThroughUrl": false
  },
  "additionalCreativeOptimizationConfigurations": [
    {
      "id": "",
      "name": "",
      "optimizationActivitys": [
        {
          "floodlightActivityId": "",
          "floodlightActivityIdDimensionValue": {
            "dimensionName": "",
            "etag": "",
            "id": "",
            "kind": "",
            "matchType": "",
            "value": ""
          },
          "weight": 0
        }
      ],
      "optimizationModel": ""
    }
  ],
  "advertiserGroupId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {},
  "archived": false,
  "audienceSegmentGroups": [
    {
      "audienceSegments": [
        {
          "allocation": 0,
          "id": "",
          "name": ""
        }
      ],
      "id": "",
      "name": ""
    }
  ],
  "billingInvoiceCode": "",
  "clickThroughUrlSuffixProperties": {
    "clickThroughUrlSuffix": "",
    "overrideInheritedSuffix": false
  },
  "comment": "",
  "createInfo": {
    "time": ""
  },
  "creativeGroupIds": [],
  "creativeOptimizationConfiguration": {},
  "defaultClickThroughEventTagProperties": {
    "defaultClickThroughEventTagId": "",
    "overrideInheritedEventTag": false
  },
  "defaultLandingPageId": "",
  "endDate": "",
  "eventTagOverrides": [
    {
      "enabled": false,
      "id": ""
    }
  ],
  "externalId": "",
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "lastModifiedInfo": {},
  "name": "",
  "nielsenOcrEnabled": false,
  "startDate": "",
  "subaccountId": "",
  "traffickerEmails": []
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/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  \"accountId\": \"\",\n  \"adBlockingConfiguration\": {\n    \"clickThroughUrl\": \"\",\n    \"creativeBundleId\": \"\",\n    \"enabled\": false,\n    \"overrideClickThroughUrl\": false\n  },\n  \"additionalCreativeOptimizationConfigurations\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"optimizationActivitys\": [\n        {\n          \"floodlightActivityId\": \"\",\n          \"floodlightActivityIdDimensionValue\": {\n            \"dimensionName\": \"\",\n            \"etag\": \"\",\n            \"id\": \"\",\n            \"kind\": \"\",\n            \"matchType\": \"\",\n            \"value\": \"\"\n          },\n          \"weight\": 0\n        }\n      ],\n      \"optimizationModel\": \"\"\n    }\n  ],\n  \"advertiserGroupId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {},\n  \"archived\": false,\n  \"audienceSegmentGroups\": [\n    {\n      \"audienceSegments\": [\n        {\n          \"allocation\": 0,\n          \"id\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"billingInvoiceCode\": \"\",\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comment\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupIds\": [],\n  \"creativeOptimizationConfiguration\": {},\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"defaultLandingPageId\": \"\",\n  \"endDate\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"nielsenOcrEnabled\": false,\n  \"startDate\": \"\",\n  \"subaccountId\": \"\",\n  \"traffickerEmails\": []\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/userprofiles/:profileId/campaigns" {:content-type :json
                                                                             :form-params {:accountId ""
                                                                                           :adBlockingConfiguration {:clickThroughUrl ""
                                                                                                                     :creativeBundleId ""
                                                                                                                     :enabled false
                                                                                                                     :overrideClickThroughUrl false}
                                                                                           :additionalCreativeOptimizationConfigurations [{:id ""
                                                                                                                                           :name ""
                                                                                                                                           :optimizationActivitys [{:floodlightActivityId ""
                                                                                                                                                                    :floodlightActivityIdDimensionValue {:dimensionName ""
                                                                                                                                                                                                         :etag ""
                                                                                                                                                                                                         :id ""
                                                                                                                                                                                                         :kind ""
                                                                                                                                                                                                         :matchType ""
                                                                                                                                                                                                         :value ""}
                                                                                                                                                                    :weight 0}]
                                                                                                                                           :optimizationModel ""}]
                                                                                           :advertiserGroupId ""
                                                                                           :advertiserId ""
                                                                                           :advertiserIdDimensionValue {}
                                                                                           :archived false
                                                                                           :audienceSegmentGroups [{:audienceSegments [{:allocation 0
                                                                                                                                        :id ""
                                                                                                                                        :name ""}]
                                                                                                                    :id ""
                                                                                                                    :name ""}]
                                                                                           :billingInvoiceCode ""
                                                                                           :clickThroughUrlSuffixProperties {:clickThroughUrlSuffix ""
                                                                                                                             :overrideInheritedSuffix false}
                                                                                           :comment ""
                                                                                           :createInfo {:time ""}
                                                                                           :creativeGroupIds []
                                                                                           :creativeOptimizationConfiguration {}
                                                                                           :defaultClickThroughEventTagProperties {:defaultClickThroughEventTagId ""
                                                                                                                                   :overrideInheritedEventTag false}
                                                                                           :defaultLandingPageId ""
                                                                                           :endDate ""
                                                                                           :eventTagOverrides [{:enabled false
                                                                                                                :id ""}]
                                                                                           :externalId ""
                                                                                           :id ""
                                                                                           :idDimensionValue {}
                                                                                           :kind ""
                                                                                           :lastModifiedInfo {}
                                                                                           :name ""
                                                                                           :nielsenOcrEnabled false
                                                                                           :startDate ""
                                                                                           :subaccountId ""
                                                                                           :traffickerEmails []}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/campaigns"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"accountId\": \"\",\n  \"adBlockingConfiguration\": {\n    \"clickThroughUrl\": \"\",\n    \"creativeBundleId\": \"\",\n    \"enabled\": false,\n    \"overrideClickThroughUrl\": false\n  },\n  \"additionalCreativeOptimizationConfigurations\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"optimizationActivitys\": [\n        {\n          \"floodlightActivityId\": \"\",\n          \"floodlightActivityIdDimensionValue\": {\n            \"dimensionName\": \"\",\n            \"etag\": \"\",\n            \"id\": \"\",\n            \"kind\": \"\",\n            \"matchType\": \"\",\n            \"value\": \"\"\n          },\n          \"weight\": 0\n        }\n      ],\n      \"optimizationModel\": \"\"\n    }\n  ],\n  \"advertiserGroupId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {},\n  \"archived\": false,\n  \"audienceSegmentGroups\": [\n    {\n      \"audienceSegments\": [\n        {\n          \"allocation\": 0,\n          \"id\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"billingInvoiceCode\": \"\",\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comment\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupIds\": [],\n  \"creativeOptimizationConfiguration\": {},\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"defaultLandingPageId\": \"\",\n  \"endDate\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"nielsenOcrEnabled\": false,\n  \"startDate\": \"\",\n  \"subaccountId\": \"\",\n  \"traffickerEmails\": []\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/userprofiles/:profileId/campaigns"),
    Content = new StringContent("{\n  \"accountId\": \"\",\n  \"adBlockingConfiguration\": {\n    \"clickThroughUrl\": \"\",\n    \"creativeBundleId\": \"\",\n    \"enabled\": false,\n    \"overrideClickThroughUrl\": false\n  },\n  \"additionalCreativeOptimizationConfigurations\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"optimizationActivitys\": [\n        {\n          \"floodlightActivityId\": \"\",\n          \"floodlightActivityIdDimensionValue\": {\n            \"dimensionName\": \"\",\n            \"etag\": \"\",\n            \"id\": \"\",\n            \"kind\": \"\",\n            \"matchType\": \"\",\n            \"value\": \"\"\n          },\n          \"weight\": 0\n        }\n      ],\n      \"optimizationModel\": \"\"\n    }\n  ],\n  \"advertiserGroupId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {},\n  \"archived\": false,\n  \"audienceSegmentGroups\": [\n    {\n      \"audienceSegments\": [\n        {\n          \"allocation\": 0,\n          \"id\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"billingInvoiceCode\": \"\",\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comment\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupIds\": [],\n  \"creativeOptimizationConfiguration\": {},\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"defaultLandingPageId\": \"\",\n  \"endDate\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"nielsenOcrEnabled\": false,\n  \"startDate\": \"\",\n  \"subaccountId\": \"\",\n  \"traffickerEmails\": []\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}}/userprofiles/:profileId/campaigns");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"accountId\": \"\",\n  \"adBlockingConfiguration\": {\n    \"clickThroughUrl\": \"\",\n    \"creativeBundleId\": \"\",\n    \"enabled\": false,\n    \"overrideClickThroughUrl\": false\n  },\n  \"additionalCreativeOptimizationConfigurations\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"optimizationActivitys\": [\n        {\n          \"floodlightActivityId\": \"\",\n          \"floodlightActivityIdDimensionValue\": {\n            \"dimensionName\": \"\",\n            \"etag\": \"\",\n            \"id\": \"\",\n            \"kind\": \"\",\n            \"matchType\": \"\",\n            \"value\": \"\"\n          },\n          \"weight\": 0\n        }\n      ],\n      \"optimizationModel\": \"\"\n    }\n  ],\n  \"advertiserGroupId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {},\n  \"archived\": false,\n  \"audienceSegmentGroups\": [\n    {\n      \"audienceSegments\": [\n        {\n          \"allocation\": 0,\n          \"id\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"billingInvoiceCode\": \"\",\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comment\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupIds\": [],\n  \"creativeOptimizationConfiguration\": {},\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"defaultLandingPageId\": \"\",\n  \"endDate\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"nielsenOcrEnabled\": false,\n  \"startDate\": \"\",\n  \"subaccountId\": \"\",\n  \"traffickerEmails\": []\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/campaigns"

	payload := strings.NewReader("{\n  \"accountId\": \"\",\n  \"adBlockingConfiguration\": {\n    \"clickThroughUrl\": \"\",\n    \"creativeBundleId\": \"\",\n    \"enabled\": false,\n    \"overrideClickThroughUrl\": false\n  },\n  \"additionalCreativeOptimizationConfigurations\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"optimizationActivitys\": [\n        {\n          \"floodlightActivityId\": \"\",\n          \"floodlightActivityIdDimensionValue\": {\n            \"dimensionName\": \"\",\n            \"etag\": \"\",\n            \"id\": \"\",\n            \"kind\": \"\",\n            \"matchType\": \"\",\n            \"value\": \"\"\n          },\n          \"weight\": 0\n        }\n      ],\n      \"optimizationModel\": \"\"\n    }\n  ],\n  \"advertiserGroupId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {},\n  \"archived\": false,\n  \"audienceSegmentGroups\": [\n    {\n      \"audienceSegments\": [\n        {\n          \"allocation\": 0,\n          \"id\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"billingInvoiceCode\": \"\",\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comment\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupIds\": [],\n  \"creativeOptimizationConfiguration\": {},\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"defaultLandingPageId\": \"\",\n  \"endDate\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"nielsenOcrEnabled\": false,\n  \"startDate\": \"\",\n  \"subaccountId\": \"\",\n  \"traffickerEmails\": []\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/userprofiles/:profileId/campaigns HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 1688

{
  "accountId": "",
  "adBlockingConfiguration": {
    "clickThroughUrl": "",
    "creativeBundleId": "",
    "enabled": false,
    "overrideClickThroughUrl": false
  },
  "additionalCreativeOptimizationConfigurations": [
    {
      "id": "",
      "name": "",
      "optimizationActivitys": [
        {
          "floodlightActivityId": "",
          "floodlightActivityIdDimensionValue": {
            "dimensionName": "",
            "etag": "",
            "id": "",
            "kind": "",
            "matchType": "",
            "value": ""
          },
          "weight": 0
        }
      ],
      "optimizationModel": ""
    }
  ],
  "advertiserGroupId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {},
  "archived": false,
  "audienceSegmentGroups": [
    {
      "audienceSegments": [
        {
          "allocation": 0,
          "id": "",
          "name": ""
        }
      ],
      "id": "",
      "name": ""
    }
  ],
  "billingInvoiceCode": "",
  "clickThroughUrlSuffixProperties": {
    "clickThroughUrlSuffix": "",
    "overrideInheritedSuffix": false
  },
  "comment": "",
  "createInfo": {
    "time": ""
  },
  "creativeGroupIds": [],
  "creativeOptimizationConfiguration": {},
  "defaultClickThroughEventTagProperties": {
    "defaultClickThroughEventTagId": "",
    "overrideInheritedEventTag": false
  },
  "defaultLandingPageId": "",
  "endDate": "",
  "eventTagOverrides": [
    {
      "enabled": false,
      "id": ""
    }
  ],
  "externalId": "",
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "lastModifiedInfo": {},
  "name": "",
  "nielsenOcrEnabled": false,
  "startDate": "",
  "subaccountId": "",
  "traffickerEmails": []
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/userprofiles/:profileId/campaigns")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"accountId\": \"\",\n  \"adBlockingConfiguration\": {\n    \"clickThroughUrl\": \"\",\n    \"creativeBundleId\": \"\",\n    \"enabled\": false,\n    \"overrideClickThroughUrl\": false\n  },\n  \"additionalCreativeOptimizationConfigurations\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"optimizationActivitys\": [\n        {\n          \"floodlightActivityId\": \"\",\n          \"floodlightActivityIdDimensionValue\": {\n            \"dimensionName\": \"\",\n            \"etag\": \"\",\n            \"id\": \"\",\n            \"kind\": \"\",\n            \"matchType\": \"\",\n            \"value\": \"\"\n          },\n          \"weight\": 0\n        }\n      ],\n      \"optimizationModel\": \"\"\n    }\n  ],\n  \"advertiserGroupId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {},\n  \"archived\": false,\n  \"audienceSegmentGroups\": [\n    {\n      \"audienceSegments\": [\n        {\n          \"allocation\": 0,\n          \"id\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"billingInvoiceCode\": \"\",\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comment\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupIds\": [],\n  \"creativeOptimizationConfiguration\": {},\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"defaultLandingPageId\": \"\",\n  \"endDate\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"nielsenOcrEnabled\": false,\n  \"startDate\": \"\",\n  \"subaccountId\": \"\",\n  \"traffickerEmails\": []\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/campaigns"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"accountId\": \"\",\n  \"adBlockingConfiguration\": {\n    \"clickThroughUrl\": \"\",\n    \"creativeBundleId\": \"\",\n    \"enabled\": false,\n    \"overrideClickThroughUrl\": false\n  },\n  \"additionalCreativeOptimizationConfigurations\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"optimizationActivitys\": [\n        {\n          \"floodlightActivityId\": \"\",\n          \"floodlightActivityIdDimensionValue\": {\n            \"dimensionName\": \"\",\n            \"etag\": \"\",\n            \"id\": \"\",\n            \"kind\": \"\",\n            \"matchType\": \"\",\n            \"value\": \"\"\n          },\n          \"weight\": 0\n        }\n      ],\n      \"optimizationModel\": \"\"\n    }\n  ],\n  \"advertiserGroupId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {},\n  \"archived\": false,\n  \"audienceSegmentGroups\": [\n    {\n      \"audienceSegments\": [\n        {\n          \"allocation\": 0,\n          \"id\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"billingInvoiceCode\": \"\",\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comment\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupIds\": [],\n  \"creativeOptimizationConfiguration\": {},\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"defaultLandingPageId\": \"\",\n  \"endDate\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"nielsenOcrEnabled\": false,\n  \"startDate\": \"\",\n  \"subaccountId\": \"\",\n  \"traffickerEmails\": []\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  \"accountId\": \"\",\n  \"adBlockingConfiguration\": {\n    \"clickThroughUrl\": \"\",\n    \"creativeBundleId\": \"\",\n    \"enabled\": false,\n    \"overrideClickThroughUrl\": false\n  },\n  \"additionalCreativeOptimizationConfigurations\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"optimizationActivitys\": [\n        {\n          \"floodlightActivityId\": \"\",\n          \"floodlightActivityIdDimensionValue\": {\n            \"dimensionName\": \"\",\n            \"etag\": \"\",\n            \"id\": \"\",\n            \"kind\": \"\",\n            \"matchType\": \"\",\n            \"value\": \"\"\n          },\n          \"weight\": 0\n        }\n      ],\n      \"optimizationModel\": \"\"\n    }\n  ],\n  \"advertiserGroupId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {},\n  \"archived\": false,\n  \"audienceSegmentGroups\": [\n    {\n      \"audienceSegments\": [\n        {\n          \"allocation\": 0,\n          \"id\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"billingInvoiceCode\": \"\",\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comment\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupIds\": [],\n  \"creativeOptimizationConfiguration\": {},\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"defaultLandingPageId\": \"\",\n  \"endDate\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"nielsenOcrEnabled\": false,\n  \"startDate\": \"\",\n  \"subaccountId\": \"\",\n  \"traffickerEmails\": []\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/campaigns")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/userprofiles/:profileId/campaigns")
  .header("content-type", "application/json")
  .body("{\n  \"accountId\": \"\",\n  \"adBlockingConfiguration\": {\n    \"clickThroughUrl\": \"\",\n    \"creativeBundleId\": \"\",\n    \"enabled\": false,\n    \"overrideClickThroughUrl\": false\n  },\n  \"additionalCreativeOptimizationConfigurations\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"optimizationActivitys\": [\n        {\n          \"floodlightActivityId\": \"\",\n          \"floodlightActivityIdDimensionValue\": {\n            \"dimensionName\": \"\",\n            \"etag\": \"\",\n            \"id\": \"\",\n            \"kind\": \"\",\n            \"matchType\": \"\",\n            \"value\": \"\"\n          },\n          \"weight\": 0\n        }\n      ],\n      \"optimizationModel\": \"\"\n    }\n  ],\n  \"advertiserGroupId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {},\n  \"archived\": false,\n  \"audienceSegmentGroups\": [\n    {\n      \"audienceSegments\": [\n        {\n          \"allocation\": 0,\n          \"id\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"billingInvoiceCode\": \"\",\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comment\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupIds\": [],\n  \"creativeOptimizationConfiguration\": {},\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"defaultLandingPageId\": \"\",\n  \"endDate\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"nielsenOcrEnabled\": false,\n  \"startDate\": \"\",\n  \"subaccountId\": \"\",\n  \"traffickerEmails\": []\n}")
  .asString();
const data = JSON.stringify({
  accountId: '',
  adBlockingConfiguration: {
    clickThroughUrl: '',
    creativeBundleId: '',
    enabled: false,
    overrideClickThroughUrl: false
  },
  additionalCreativeOptimizationConfigurations: [
    {
      id: '',
      name: '',
      optimizationActivitys: [
        {
          floodlightActivityId: '',
          floodlightActivityIdDimensionValue: {
            dimensionName: '',
            etag: '',
            id: '',
            kind: '',
            matchType: '',
            value: ''
          },
          weight: 0
        }
      ],
      optimizationModel: ''
    }
  ],
  advertiserGroupId: '',
  advertiserId: '',
  advertiserIdDimensionValue: {},
  archived: false,
  audienceSegmentGroups: [
    {
      audienceSegments: [
        {
          allocation: 0,
          id: '',
          name: ''
        }
      ],
      id: '',
      name: ''
    }
  ],
  billingInvoiceCode: '',
  clickThroughUrlSuffixProperties: {
    clickThroughUrlSuffix: '',
    overrideInheritedSuffix: false
  },
  comment: '',
  createInfo: {
    time: ''
  },
  creativeGroupIds: [],
  creativeOptimizationConfiguration: {},
  defaultClickThroughEventTagProperties: {
    defaultClickThroughEventTagId: '',
    overrideInheritedEventTag: false
  },
  defaultLandingPageId: '',
  endDate: '',
  eventTagOverrides: [
    {
      enabled: false,
      id: ''
    }
  ],
  externalId: '',
  id: '',
  idDimensionValue: {},
  kind: '',
  lastModifiedInfo: {},
  name: '',
  nielsenOcrEnabled: false,
  startDate: '',
  subaccountId: '',
  traffickerEmails: []
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/userprofiles/:profileId/campaigns');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/userprofiles/:profileId/campaigns',
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    adBlockingConfiguration: {
      clickThroughUrl: '',
      creativeBundleId: '',
      enabled: false,
      overrideClickThroughUrl: false
    },
    additionalCreativeOptimizationConfigurations: [
      {
        id: '',
        name: '',
        optimizationActivitys: [
          {
            floodlightActivityId: '',
            floodlightActivityIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
            weight: 0
          }
        ],
        optimizationModel: ''
      }
    ],
    advertiserGroupId: '',
    advertiserId: '',
    advertiserIdDimensionValue: {},
    archived: false,
    audienceSegmentGroups: [{audienceSegments: [{allocation: 0, id: '', name: ''}], id: '', name: ''}],
    billingInvoiceCode: '',
    clickThroughUrlSuffixProperties: {clickThroughUrlSuffix: '', overrideInheritedSuffix: false},
    comment: '',
    createInfo: {time: ''},
    creativeGroupIds: [],
    creativeOptimizationConfiguration: {},
    defaultClickThroughEventTagProperties: {defaultClickThroughEventTagId: '', overrideInheritedEventTag: false},
    defaultLandingPageId: '',
    endDate: '',
    eventTagOverrides: [{enabled: false, id: ''}],
    externalId: '',
    id: '',
    idDimensionValue: {},
    kind: '',
    lastModifiedInfo: {},
    name: '',
    nielsenOcrEnabled: false,
    startDate: '',
    subaccountId: '',
    traffickerEmails: []
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/campaigns';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","adBlockingConfiguration":{"clickThroughUrl":"","creativeBundleId":"","enabled":false,"overrideClickThroughUrl":false},"additionalCreativeOptimizationConfigurations":[{"id":"","name":"","optimizationActivitys":[{"floodlightActivityId":"","floodlightActivityIdDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"weight":0}],"optimizationModel":""}],"advertiserGroupId":"","advertiserId":"","advertiserIdDimensionValue":{},"archived":false,"audienceSegmentGroups":[{"audienceSegments":[{"allocation":0,"id":"","name":""}],"id":"","name":""}],"billingInvoiceCode":"","clickThroughUrlSuffixProperties":{"clickThroughUrlSuffix":"","overrideInheritedSuffix":false},"comment":"","createInfo":{"time":""},"creativeGroupIds":[],"creativeOptimizationConfiguration":{},"defaultClickThroughEventTagProperties":{"defaultClickThroughEventTagId":"","overrideInheritedEventTag":false},"defaultLandingPageId":"","endDate":"","eventTagOverrides":[{"enabled":false,"id":""}],"externalId":"","id":"","idDimensionValue":{},"kind":"","lastModifiedInfo":{},"name":"","nielsenOcrEnabled":false,"startDate":"","subaccountId":"","traffickerEmails":[]}'
};

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}}/userprofiles/:profileId/campaigns',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "accountId": "",\n  "adBlockingConfiguration": {\n    "clickThroughUrl": "",\n    "creativeBundleId": "",\n    "enabled": false,\n    "overrideClickThroughUrl": false\n  },\n  "additionalCreativeOptimizationConfigurations": [\n    {\n      "id": "",\n      "name": "",\n      "optimizationActivitys": [\n        {\n          "floodlightActivityId": "",\n          "floodlightActivityIdDimensionValue": {\n            "dimensionName": "",\n            "etag": "",\n            "id": "",\n            "kind": "",\n            "matchType": "",\n            "value": ""\n          },\n          "weight": 0\n        }\n      ],\n      "optimizationModel": ""\n    }\n  ],\n  "advertiserGroupId": "",\n  "advertiserId": "",\n  "advertiserIdDimensionValue": {},\n  "archived": false,\n  "audienceSegmentGroups": [\n    {\n      "audienceSegments": [\n        {\n          "allocation": 0,\n          "id": "",\n          "name": ""\n        }\n      ],\n      "id": "",\n      "name": ""\n    }\n  ],\n  "billingInvoiceCode": "",\n  "clickThroughUrlSuffixProperties": {\n    "clickThroughUrlSuffix": "",\n    "overrideInheritedSuffix": false\n  },\n  "comment": "",\n  "createInfo": {\n    "time": ""\n  },\n  "creativeGroupIds": [],\n  "creativeOptimizationConfiguration": {},\n  "defaultClickThroughEventTagProperties": {\n    "defaultClickThroughEventTagId": "",\n    "overrideInheritedEventTag": false\n  },\n  "defaultLandingPageId": "",\n  "endDate": "",\n  "eventTagOverrides": [\n    {\n      "enabled": false,\n      "id": ""\n    }\n  ],\n  "externalId": "",\n  "id": "",\n  "idDimensionValue": {},\n  "kind": "",\n  "lastModifiedInfo": {},\n  "name": "",\n  "nielsenOcrEnabled": false,\n  "startDate": "",\n  "subaccountId": "",\n  "traffickerEmails": []\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"accountId\": \"\",\n  \"adBlockingConfiguration\": {\n    \"clickThroughUrl\": \"\",\n    \"creativeBundleId\": \"\",\n    \"enabled\": false,\n    \"overrideClickThroughUrl\": false\n  },\n  \"additionalCreativeOptimizationConfigurations\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"optimizationActivitys\": [\n        {\n          \"floodlightActivityId\": \"\",\n          \"floodlightActivityIdDimensionValue\": {\n            \"dimensionName\": \"\",\n            \"etag\": \"\",\n            \"id\": \"\",\n            \"kind\": \"\",\n            \"matchType\": \"\",\n            \"value\": \"\"\n          },\n          \"weight\": 0\n        }\n      ],\n      \"optimizationModel\": \"\"\n    }\n  ],\n  \"advertiserGroupId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {},\n  \"archived\": false,\n  \"audienceSegmentGroups\": [\n    {\n      \"audienceSegments\": [\n        {\n          \"allocation\": 0,\n          \"id\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"billingInvoiceCode\": \"\",\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comment\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupIds\": [],\n  \"creativeOptimizationConfiguration\": {},\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"defaultLandingPageId\": \"\",\n  \"endDate\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"nielsenOcrEnabled\": false,\n  \"startDate\": \"\",\n  \"subaccountId\": \"\",\n  \"traffickerEmails\": []\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/campaigns")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/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({
  accountId: '',
  adBlockingConfiguration: {
    clickThroughUrl: '',
    creativeBundleId: '',
    enabled: false,
    overrideClickThroughUrl: false
  },
  additionalCreativeOptimizationConfigurations: [
    {
      id: '',
      name: '',
      optimizationActivitys: [
        {
          floodlightActivityId: '',
          floodlightActivityIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
          weight: 0
        }
      ],
      optimizationModel: ''
    }
  ],
  advertiserGroupId: '',
  advertiserId: '',
  advertiserIdDimensionValue: {},
  archived: false,
  audienceSegmentGroups: [{audienceSegments: [{allocation: 0, id: '', name: ''}], id: '', name: ''}],
  billingInvoiceCode: '',
  clickThroughUrlSuffixProperties: {clickThroughUrlSuffix: '', overrideInheritedSuffix: false},
  comment: '',
  createInfo: {time: ''},
  creativeGroupIds: [],
  creativeOptimizationConfiguration: {},
  defaultClickThroughEventTagProperties: {defaultClickThroughEventTagId: '', overrideInheritedEventTag: false},
  defaultLandingPageId: '',
  endDate: '',
  eventTagOverrides: [{enabled: false, id: ''}],
  externalId: '',
  id: '',
  idDimensionValue: {},
  kind: '',
  lastModifiedInfo: {},
  name: '',
  nielsenOcrEnabled: false,
  startDate: '',
  subaccountId: '',
  traffickerEmails: []
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/userprofiles/:profileId/campaigns',
  headers: {'content-type': 'application/json'},
  body: {
    accountId: '',
    adBlockingConfiguration: {
      clickThroughUrl: '',
      creativeBundleId: '',
      enabled: false,
      overrideClickThroughUrl: false
    },
    additionalCreativeOptimizationConfigurations: [
      {
        id: '',
        name: '',
        optimizationActivitys: [
          {
            floodlightActivityId: '',
            floodlightActivityIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
            weight: 0
          }
        ],
        optimizationModel: ''
      }
    ],
    advertiserGroupId: '',
    advertiserId: '',
    advertiserIdDimensionValue: {},
    archived: false,
    audienceSegmentGroups: [{audienceSegments: [{allocation: 0, id: '', name: ''}], id: '', name: ''}],
    billingInvoiceCode: '',
    clickThroughUrlSuffixProperties: {clickThroughUrlSuffix: '', overrideInheritedSuffix: false},
    comment: '',
    createInfo: {time: ''},
    creativeGroupIds: [],
    creativeOptimizationConfiguration: {},
    defaultClickThroughEventTagProperties: {defaultClickThroughEventTagId: '', overrideInheritedEventTag: false},
    defaultLandingPageId: '',
    endDate: '',
    eventTagOverrides: [{enabled: false, id: ''}],
    externalId: '',
    id: '',
    idDimensionValue: {},
    kind: '',
    lastModifiedInfo: {},
    name: '',
    nielsenOcrEnabled: false,
    startDate: '',
    subaccountId: '',
    traffickerEmails: []
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/userprofiles/:profileId/campaigns');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  accountId: '',
  adBlockingConfiguration: {
    clickThroughUrl: '',
    creativeBundleId: '',
    enabled: false,
    overrideClickThroughUrl: false
  },
  additionalCreativeOptimizationConfigurations: [
    {
      id: '',
      name: '',
      optimizationActivitys: [
        {
          floodlightActivityId: '',
          floodlightActivityIdDimensionValue: {
            dimensionName: '',
            etag: '',
            id: '',
            kind: '',
            matchType: '',
            value: ''
          },
          weight: 0
        }
      ],
      optimizationModel: ''
    }
  ],
  advertiserGroupId: '',
  advertiserId: '',
  advertiserIdDimensionValue: {},
  archived: false,
  audienceSegmentGroups: [
    {
      audienceSegments: [
        {
          allocation: 0,
          id: '',
          name: ''
        }
      ],
      id: '',
      name: ''
    }
  ],
  billingInvoiceCode: '',
  clickThroughUrlSuffixProperties: {
    clickThroughUrlSuffix: '',
    overrideInheritedSuffix: false
  },
  comment: '',
  createInfo: {
    time: ''
  },
  creativeGroupIds: [],
  creativeOptimizationConfiguration: {},
  defaultClickThroughEventTagProperties: {
    defaultClickThroughEventTagId: '',
    overrideInheritedEventTag: false
  },
  defaultLandingPageId: '',
  endDate: '',
  eventTagOverrides: [
    {
      enabled: false,
      id: ''
    }
  ],
  externalId: '',
  id: '',
  idDimensionValue: {},
  kind: '',
  lastModifiedInfo: {},
  name: '',
  nielsenOcrEnabled: false,
  startDate: '',
  subaccountId: '',
  traffickerEmails: []
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/userprofiles/:profileId/campaigns',
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    adBlockingConfiguration: {
      clickThroughUrl: '',
      creativeBundleId: '',
      enabled: false,
      overrideClickThroughUrl: false
    },
    additionalCreativeOptimizationConfigurations: [
      {
        id: '',
        name: '',
        optimizationActivitys: [
          {
            floodlightActivityId: '',
            floodlightActivityIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
            weight: 0
          }
        ],
        optimizationModel: ''
      }
    ],
    advertiserGroupId: '',
    advertiserId: '',
    advertiserIdDimensionValue: {},
    archived: false,
    audienceSegmentGroups: [{audienceSegments: [{allocation: 0, id: '', name: ''}], id: '', name: ''}],
    billingInvoiceCode: '',
    clickThroughUrlSuffixProperties: {clickThroughUrlSuffix: '', overrideInheritedSuffix: false},
    comment: '',
    createInfo: {time: ''},
    creativeGroupIds: [],
    creativeOptimizationConfiguration: {},
    defaultClickThroughEventTagProperties: {defaultClickThroughEventTagId: '', overrideInheritedEventTag: false},
    defaultLandingPageId: '',
    endDate: '',
    eventTagOverrides: [{enabled: false, id: ''}],
    externalId: '',
    id: '',
    idDimensionValue: {},
    kind: '',
    lastModifiedInfo: {},
    name: '',
    nielsenOcrEnabled: false,
    startDate: '',
    subaccountId: '',
    traffickerEmails: []
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/campaigns';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","adBlockingConfiguration":{"clickThroughUrl":"","creativeBundleId":"","enabled":false,"overrideClickThroughUrl":false},"additionalCreativeOptimizationConfigurations":[{"id":"","name":"","optimizationActivitys":[{"floodlightActivityId":"","floodlightActivityIdDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"weight":0}],"optimizationModel":""}],"advertiserGroupId":"","advertiserId":"","advertiserIdDimensionValue":{},"archived":false,"audienceSegmentGroups":[{"audienceSegments":[{"allocation":0,"id":"","name":""}],"id":"","name":""}],"billingInvoiceCode":"","clickThroughUrlSuffixProperties":{"clickThroughUrlSuffix":"","overrideInheritedSuffix":false},"comment":"","createInfo":{"time":""},"creativeGroupIds":[],"creativeOptimizationConfiguration":{},"defaultClickThroughEventTagProperties":{"defaultClickThroughEventTagId":"","overrideInheritedEventTag":false},"defaultLandingPageId":"","endDate":"","eventTagOverrides":[{"enabled":false,"id":""}],"externalId":"","id":"","idDimensionValue":{},"kind":"","lastModifiedInfo":{},"name":"","nielsenOcrEnabled":false,"startDate":"","subaccountId":"","traffickerEmails":[]}'
};

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 = @{ @"accountId": @"",
                              @"adBlockingConfiguration": @{ @"clickThroughUrl": @"", @"creativeBundleId": @"", @"enabled": @NO, @"overrideClickThroughUrl": @NO },
                              @"additionalCreativeOptimizationConfigurations": @[ @{ @"id": @"", @"name": @"", @"optimizationActivitys": @[ @{ @"floodlightActivityId": @"", @"floodlightActivityIdDimensionValue": @{ @"dimensionName": @"", @"etag": @"", @"id": @"", @"kind": @"", @"matchType": @"", @"value": @"" }, @"weight": @0 } ], @"optimizationModel": @"" } ],
                              @"advertiserGroupId": @"",
                              @"advertiserId": @"",
                              @"advertiserIdDimensionValue": @{  },
                              @"archived": @NO,
                              @"audienceSegmentGroups": @[ @{ @"audienceSegments": @[ @{ @"allocation": @0, @"id": @"", @"name": @"" } ], @"id": @"", @"name": @"" } ],
                              @"billingInvoiceCode": @"",
                              @"clickThroughUrlSuffixProperties": @{ @"clickThroughUrlSuffix": @"", @"overrideInheritedSuffix": @NO },
                              @"comment": @"",
                              @"createInfo": @{ @"time": @"" },
                              @"creativeGroupIds": @[  ],
                              @"creativeOptimizationConfiguration": @{  },
                              @"defaultClickThroughEventTagProperties": @{ @"defaultClickThroughEventTagId": @"", @"overrideInheritedEventTag": @NO },
                              @"defaultLandingPageId": @"",
                              @"endDate": @"",
                              @"eventTagOverrides": @[ @{ @"enabled": @NO, @"id": @"" } ],
                              @"externalId": @"",
                              @"id": @"",
                              @"idDimensionValue": @{  },
                              @"kind": @"",
                              @"lastModifiedInfo": @{  },
                              @"name": @"",
                              @"nielsenOcrEnabled": @NO,
                              @"startDate": @"",
                              @"subaccountId": @"",
                              @"traffickerEmails": @[  ] };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/userprofiles/:profileId/campaigns"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/userprofiles/:profileId/campaigns" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"accountId\": \"\",\n  \"adBlockingConfiguration\": {\n    \"clickThroughUrl\": \"\",\n    \"creativeBundleId\": \"\",\n    \"enabled\": false,\n    \"overrideClickThroughUrl\": false\n  },\n  \"additionalCreativeOptimizationConfigurations\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"optimizationActivitys\": [\n        {\n          \"floodlightActivityId\": \"\",\n          \"floodlightActivityIdDimensionValue\": {\n            \"dimensionName\": \"\",\n            \"etag\": \"\",\n            \"id\": \"\",\n            \"kind\": \"\",\n            \"matchType\": \"\",\n            \"value\": \"\"\n          },\n          \"weight\": 0\n        }\n      ],\n      \"optimizationModel\": \"\"\n    }\n  ],\n  \"advertiserGroupId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {},\n  \"archived\": false,\n  \"audienceSegmentGroups\": [\n    {\n      \"audienceSegments\": [\n        {\n          \"allocation\": 0,\n          \"id\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"billingInvoiceCode\": \"\",\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comment\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupIds\": [],\n  \"creativeOptimizationConfiguration\": {},\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"defaultLandingPageId\": \"\",\n  \"endDate\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"nielsenOcrEnabled\": false,\n  \"startDate\": \"\",\n  \"subaccountId\": \"\",\n  \"traffickerEmails\": []\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/campaigns",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'accountId' => '',
    'adBlockingConfiguration' => [
        'clickThroughUrl' => '',
        'creativeBundleId' => '',
        'enabled' => null,
        'overrideClickThroughUrl' => null
    ],
    'additionalCreativeOptimizationConfigurations' => [
        [
                'id' => '',
                'name' => '',
                'optimizationActivitys' => [
                                [
                                                                'floodlightActivityId' => '',
                                                                'floodlightActivityIdDimensionValue' => [
                                                                                                                                'dimensionName' => '',
                                                                                                                                'etag' => '',
                                                                                                                                'id' => '',
                                                                                                                                'kind' => '',
                                                                                                                                'matchType' => '',
                                                                                                                                'value' => ''
                                                                ],
                                                                'weight' => 0
                                ]
                ],
                'optimizationModel' => ''
        ]
    ],
    'advertiserGroupId' => '',
    'advertiserId' => '',
    'advertiserIdDimensionValue' => [
        
    ],
    'archived' => null,
    'audienceSegmentGroups' => [
        [
                'audienceSegments' => [
                                [
                                                                'allocation' => 0,
                                                                'id' => '',
                                                                'name' => ''
                                ]
                ],
                'id' => '',
                'name' => ''
        ]
    ],
    'billingInvoiceCode' => '',
    'clickThroughUrlSuffixProperties' => [
        'clickThroughUrlSuffix' => '',
        'overrideInheritedSuffix' => null
    ],
    'comment' => '',
    'createInfo' => [
        'time' => ''
    ],
    'creativeGroupIds' => [
        
    ],
    'creativeOptimizationConfiguration' => [
        
    ],
    'defaultClickThroughEventTagProperties' => [
        'defaultClickThroughEventTagId' => '',
        'overrideInheritedEventTag' => null
    ],
    'defaultLandingPageId' => '',
    'endDate' => '',
    'eventTagOverrides' => [
        [
                'enabled' => null,
                'id' => ''
        ]
    ],
    'externalId' => '',
    'id' => '',
    'idDimensionValue' => [
        
    ],
    'kind' => '',
    'lastModifiedInfo' => [
        
    ],
    'name' => '',
    'nielsenOcrEnabled' => null,
    'startDate' => '',
    'subaccountId' => '',
    'traffickerEmails' => [
        
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/userprofiles/:profileId/campaigns', [
  'body' => '{
  "accountId": "",
  "adBlockingConfiguration": {
    "clickThroughUrl": "",
    "creativeBundleId": "",
    "enabled": false,
    "overrideClickThroughUrl": false
  },
  "additionalCreativeOptimizationConfigurations": [
    {
      "id": "",
      "name": "",
      "optimizationActivitys": [
        {
          "floodlightActivityId": "",
          "floodlightActivityIdDimensionValue": {
            "dimensionName": "",
            "etag": "",
            "id": "",
            "kind": "",
            "matchType": "",
            "value": ""
          },
          "weight": 0
        }
      ],
      "optimizationModel": ""
    }
  ],
  "advertiserGroupId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {},
  "archived": false,
  "audienceSegmentGroups": [
    {
      "audienceSegments": [
        {
          "allocation": 0,
          "id": "",
          "name": ""
        }
      ],
      "id": "",
      "name": ""
    }
  ],
  "billingInvoiceCode": "",
  "clickThroughUrlSuffixProperties": {
    "clickThroughUrlSuffix": "",
    "overrideInheritedSuffix": false
  },
  "comment": "",
  "createInfo": {
    "time": ""
  },
  "creativeGroupIds": [],
  "creativeOptimizationConfiguration": {},
  "defaultClickThroughEventTagProperties": {
    "defaultClickThroughEventTagId": "",
    "overrideInheritedEventTag": false
  },
  "defaultLandingPageId": "",
  "endDate": "",
  "eventTagOverrides": [
    {
      "enabled": false,
      "id": ""
    }
  ],
  "externalId": "",
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "lastModifiedInfo": {},
  "name": "",
  "nielsenOcrEnabled": false,
  "startDate": "",
  "subaccountId": "",
  "traffickerEmails": []
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/campaigns');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'accountId' => '',
  'adBlockingConfiguration' => [
    'clickThroughUrl' => '',
    'creativeBundleId' => '',
    'enabled' => null,
    'overrideClickThroughUrl' => null
  ],
  'additionalCreativeOptimizationConfigurations' => [
    [
        'id' => '',
        'name' => '',
        'optimizationActivitys' => [
                [
                                'floodlightActivityId' => '',
                                'floodlightActivityIdDimensionValue' => [
                                                                'dimensionName' => '',
                                                                'etag' => '',
                                                                'id' => '',
                                                                'kind' => '',
                                                                'matchType' => '',
                                                                'value' => ''
                                ],
                                'weight' => 0
                ]
        ],
        'optimizationModel' => ''
    ]
  ],
  'advertiserGroupId' => '',
  'advertiserId' => '',
  'advertiserIdDimensionValue' => [
    
  ],
  'archived' => null,
  'audienceSegmentGroups' => [
    [
        'audienceSegments' => [
                [
                                'allocation' => 0,
                                'id' => '',
                                'name' => ''
                ]
        ],
        'id' => '',
        'name' => ''
    ]
  ],
  'billingInvoiceCode' => '',
  'clickThroughUrlSuffixProperties' => [
    'clickThroughUrlSuffix' => '',
    'overrideInheritedSuffix' => null
  ],
  'comment' => '',
  'createInfo' => [
    'time' => ''
  ],
  'creativeGroupIds' => [
    
  ],
  'creativeOptimizationConfiguration' => [
    
  ],
  'defaultClickThroughEventTagProperties' => [
    'defaultClickThroughEventTagId' => '',
    'overrideInheritedEventTag' => null
  ],
  'defaultLandingPageId' => '',
  'endDate' => '',
  'eventTagOverrides' => [
    [
        'enabled' => null,
        'id' => ''
    ]
  ],
  'externalId' => '',
  'id' => '',
  'idDimensionValue' => [
    
  ],
  'kind' => '',
  'lastModifiedInfo' => [
    
  ],
  'name' => '',
  'nielsenOcrEnabled' => null,
  'startDate' => '',
  'subaccountId' => '',
  'traffickerEmails' => [
    
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'accountId' => '',
  'adBlockingConfiguration' => [
    'clickThroughUrl' => '',
    'creativeBundleId' => '',
    'enabled' => null,
    'overrideClickThroughUrl' => null
  ],
  'additionalCreativeOptimizationConfigurations' => [
    [
        'id' => '',
        'name' => '',
        'optimizationActivitys' => [
                [
                                'floodlightActivityId' => '',
                                'floodlightActivityIdDimensionValue' => [
                                                                'dimensionName' => '',
                                                                'etag' => '',
                                                                'id' => '',
                                                                'kind' => '',
                                                                'matchType' => '',
                                                                'value' => ''
                                ],
                                'weight' => 0
                ]
        ],
        'optimizationModel' => ''
    ]
  ],
  'advertiserGroupId' => '',
  'advertiserId' => '',
  'advertiserIdDimensionValue' => [
    
  ],
  'archived' => null,
  'audienceSegmentGroups' => [
    [
        'audienceSegments' => [
                [
                                'allocation' => 0,
                                'id' => '',
                                'name' => ''
                ]
        ],
        'id' => '',
        'name' => ''
    ]
  ],
  'billingInvoiceCode' => '',
  'clickThroughUrlSuffixProperties' => [
    'clickThroughUrlSuffix' => '',
    'overrideInheritedSuffix' => null
  ],
  'comment' => '',
  'createInfo' => [
    'time' => ''
  ],
  'creativeGroupIds' => [
    
  ],
  'creativeOptimizationConfiguration' => [
    
  ],
  'defaultClickThroughEventTagProperties' => [
    'defaultClickThroughEventTagId' => '',
    'overrideInheritedEventTag' => null
  ],
  'defaultLandingPageId' => '',
  'endDate' => '',
  'eventTagOverrides' => [
    [
        'enabled' => null,
        'id' => ''
    ]
  ],
  'externalId' => '',
  'id' => '',
  'idDimensionValue' => [
    
  ],
  'kind' => '',
  'lastModifiedInfo' => [
    
  ],
  'name' => '',
  'nielsenOcrEnabled' => null,
  'startDate' => '',
  'subaccountId' => '',
  'traffickerEmails' => [
    
  ]
]));
$request->setRequestUrl('{{baseUrl}}/userprofiles/:profileId/campaigns');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/campaigns' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "adBlockingConfiguration": {
    "clickThroughUrl": "",
    "creativeBundleId": "",
    "enabled": false,
    "overrideClickThroughUrl": false
  },
  "additionalCreativeOptimizationConfigurations": [
    {
      "id": "",
      "name": "",
      "optimizationActivitys": [
        {
          "floodlightActivityId": "",
          "floodlightActivityIdDimensionValue": {
            "dimensionName": "",
            "etag": "",
            "id": "",
            "kind": "",
            "matchType": "",
            "value": ""
          },
          "weight": 0
        }
      ],
      "optimizationModel": ""
    }
  ],
  "advertiserGroupId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {},
  "archived": false,
  "audienceSegmentGroups": [
    {
      "audienceSegments": [
        {
          "allocation": 0,
          "id": "",
          "name": ""
        }
      ],
      "id": "",
      "name": ""
    }
  ],
  "billingInvoiceCode": "",
  "clickThroughUrlSuffixProperties": {
    "clickThroughUrlSuffix": "",
    "overrideInheritedSuffix": false
  },
  "comment": "",
  "createInfo": {
    "time": ""
  },
  "creativeGroupIds": [],
  "creativeOptimizationConfiguration": {},
  "defaultClickThroughEventTagProperties": {
    "defaultClickThroughEventTagId": "",
    "overrideInheritedEventTag": false
  },
  "defaultLandingPageId": "",
  "endDate": "",
  "eventTagOverrides": [
    {
      "enabled": false,
      "id": ""
    }
  ],
  "externalId": "",
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "lastModifiedInfo": {},
  "name": "",
  "nielsenOcrEnabled": false,
  "startDate": "",
  "subaccountId": "",
  "traffickerEmails": []
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/campaigns' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "adBlockingConfiguration": {
    "clickThroughUrl": "",
    "creativeBundleId": "",
    "enabled": false,
    "overrideClickThroughUrl": false
  },
  "additionalCreativeOptimizationConfigurations": [
    {
      "id": "",
      "name": "",
      "optimizationActivitys": [
        {
          "floodlightActivityId": "",
          "floodlightActivityIdDimensionValue": {
            "dimensionName": "",
            "etag": "",
            "id": "",
            "kind": "",
            "matchType": "",
            "value": ""
          },
          "weight": 0
        }
      ],
      "optimizationModel": ""
    }
  ],
  "advertiserGroupId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {},
  "archived": false,
  "audienceSegmentGroups": [
    {
      "audienceSegments": [
        {
          "allocation": 0,
          "id": "",
          "name": ""
        }
      ],
      "id": "",
      "name": ""
    }
  ],
  "billingInvoiceCode": "",
  "clickThroughUrlSuffixProperties": {
    "clickThroughUrlSuffix": "",
    "overrideInheritedSuffix": false
  },
  "comment": "",
  "createInfo": {
    "time": ""
  },
  "creativeGroupIds": [],
  "creativeOptimizationConfiguration": {},
  "defaultClickThroughEventTagProperties": {
    "defaultClickThroughEventTagId": "",
    "overrideInheritedEventTag": false
  },
  "defaultLandingPageId": "",
  "endDate": "",
  "eventTagOverrides": [
    {
      "enabled": false,
      "id": ""
    }
  ],
  "externalId": "",
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "lastModifiedInfo": {},
  "name": "",
  "nielsenOcrEnabled": false,
  "startDate": "",
  "subaccountId": "",
  "traffickerEmails": []
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"accountId\": \"\",\n  \"adBlockingConfiguration\": {\n    \"clickThroughUrl\": \"\",\n    \"creativeBundleId\": \"\",\n    \"enabled\": false,\n    \"overrideClickThroughUrl\": false\n  },\n  \"additionalCreativeOptimizationConfigurations\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"optimizationActivitys\": [\n        {\n          \"floodlightActivityId\": \"\",\n          \"floodlightActivityIdDimensionValue\": {\n            \"dimensionName\": \"\",\n            \"etag\": \"\",\n            \"id\": \"\",\n            \"kind\": \"\",\n            \"matchType\": \"\",\n            \"value\": \"\"\n          },\n          \"weight\": 0\n        }\n      ],\n      \"optimizationModel\": \"\"\n    }\n  ],\n  \"advertiserGroupId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {},\n  \"archived\": false,\n  \"audienceSegmentGroups\": [\n    {\n      \"audienceSegments\": [\n        {\n          \"allocation\": 0,\n          \"id\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"billingInvoiceCode\": \"\",\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comment\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupIds\": [],\n  \"creativeOptimizationConfiguration\": {},\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"defaultLandingPageId\": \"\",\n  \"endDate\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"nielsenOcrEnabled\": false,\n  \"startDate\": \"\",\n  \"subaccountId\": \"\",\n  \"traffickerEmails\": []\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/userprofiles/:profileId/campaigns", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/campaigns"

payload = {
    "accountId": "",
    "adBlockingConfiguration": {
        "clickThroughUrl": "",
        "creativeBundleId": "",
        "enabled": False,
        "overrideClickThroughUrl": False
    },
    "additionalCreativeOptimizationConfigurations": [
        {
            "id": "",
            "name": "",
            "optimizationActivitys": [
                {
                    "floodlightActivityId": "",
                    "floodlightActivityIdDimensionValue": {
                        "dimensionName": "",
                        "etag": "",
                        "id": "",
                        "kind": "",
                        "matchType": "",
                        "value": ""
                    },
                    "weight": 0
                }
            ],
            "optimizationModel": ""
        }
    ],
    "advertiserGroupId": "",
    "advertiserId": "",
    "advertiserIdDimensionValue": {},
    "archived": False,
    "audienceSegmentGroups": [
        {
            "audienceSegments": [
                {
                    "allocation": 0,
                    "id": "",
                    "name": ""
                }
            ],
            "id": "",
            "name": ""
        }
    ],
    "billingInvoiceCode": "",
    "clickThroughUrlSuffixProperties": {
        "clickThroughUrlSuffix": "",
        "overrideInheritedSuffix": False
    },
    "comment": "",
    "createInfo": { "time": "" },
    "creativeGroupIds": [],
    "creativeOptimizationConfiguration": {},
    "defaultClickThroughEventTagProperties": {
        "defaultClickThroughEventTagId": "",
        "overrideInheritedEventTag": False
    },
    "defaultLandingPageId": "",
    "endDate": "",
    "eventTagOverrides": [
        {
            "enabled": False,
            "id": ""
        }
    ],
    "externalId": "",
    "id": "",
    "idDimensionValue": {},
    "kind": "",
    "lastModifiedInfo": {},
    "name": "",
    "nielsenOcrEnabled": False,
    "startDate": "",
    "subaccountId": "",
    "traffickerEmails": []
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/campaigns"

payload <- "{\n  \"accountId\": \"\",\n  \"adBlockingConfiguration\": {\n    \"clickThroughUrl\": \"\",\n    \"creativeBundleId\": \"\",\n    \"enabled\": false,\n    \"overrideClickThroughUrl\": false\n  },\n  \"additionalCreativeOptimizationConfigurations\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"optimizationActivitys\": [\n        {\n          \"floodlightActivityId\": \"\",\n          \"floodlightActivityIdDimensionValue\": {\n            \"dimensionName\": \"\",\n            \"etag\": \"\",\n            \"id\": \"\",\n            \"kind\": \"\",\n            \"matchType\": \"\",\n            \"value\": \"\"\n          },\n          \"weight\": 0\n        }\n      ],\n      \"optimizationModel\": \"\"\n    }\n  ],\n  \"advertiserGroupId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {},\n  \"archived\": false,\n  \"audienceSegmentGroups\": [\n    {\n      \"audienceSegments\": [\n        {\n          \"allocation\": 0,\n          \"id\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"billingInvoiceCode\": \"\",\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comment\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupIds\": [],\n  \"creativeOptimizationConfiguration\": {},\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"defaultLandingPageId\": \"\",\n  \"endDate\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"nielsenOcrEnabled\": false,\n  \"startDate\": \"\",\n  \"subaccountId\": \"\",\n  \"traffickerEmails\": []\n}"

encode <- "json"

response <- VERB("PUT", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/campaigns")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"accountId\": \"\",\n  \"adBlockingConfiguration\": {\n    \"clickThroughUrl\": \"\",\n    \"creativeBundleId\": \"\",\n    \"enabled\": false,\n    \"overrideClickThroughUrl\": false\n  },\n  \"additionalCreativeOptimizationConfigurations\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"optimizationActivitys\": [\n        {\n          \"floodlightActivityId\": \"\",\n          \"floodlightActivityIdDimensionValue\": {\n            \"dimensionName\": \"\",\n            \"etag\": \"\",\n            \"id\": \"\",\n            \"kind\": \"\",\n            \"matchType\": \"\",\n            \"value\": \"\"\n          },\n          \"weight\": 0\n        }\n      ],\n      \"optimizationModel\": \"\"\n    }\n  ],\n  \"advertiserGroupId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {},\n  \"archived\": false,\n  \"audienceSegmentGroups\": [\n    {\n      \"audienceSegments\": [\n        {\n          \"allocation\": 0,\n          \"id\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"billingInvoiceCode\": \"\",\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comment\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupIds\": [],\n  \"creativeOptimizationConfiguration\": {},\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"defaultLandingPageId\": \"\",\n  \"endDate\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"nielsenOcrEnabled\": false,\n  \"startDate\": \"\",\n  \"subaccountId\": \"\",\n  \"traffickerEmails\": []\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.put('/baseUrl/userprofiles/:profileId/campaigns') do |req|
  req.body = "{\n  \"accountId\": \"\",\n  \"adBlockingConfiguration\": {\n    \"clickThroughUrl\": \"\",\n    \"creativeBundleId\": \"\",\n    \"enabled\": false,\n    \"overrideClickThroughUrl\": false\n  },\n  \"additionalCreativeOptimizationConfigurations\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"optimizationActivitys\": [\n        {\n          \"floodlightActivityId\": \"\",\n          \"floodlightActivityIdDimensionValue\": {\n            \"dimensionName\": \"\",\n            \"etag\": \"\",\n            \"id\": \"\",\n            \"kind\": \"\",\n            \"matchType\": \"\",\n            \"value\": \"\"\n          },\n          \"weight\": 0\n        }\n      ],\n      \"optimizationModel\": \"\"\n    }\n  ],\n  \"advertiserGroupId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {},\n  \"archived\": false,\n  \"audienceSegmentGroups\": [\n    {\n      \"audienceSegments\": [\n        {\n          \"allocation\": 0,\n          \"id\": \"\",\n          \"name\": \"\"\n        }\n      ],\n      \"id\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"billingInvoiceCode\": \"\",\n  \"clickThroughUrlSuffixProperties\": {\n    \"clickThroughUrlSuffix\": \"\",\n    \"overrideInheritedSuffix\": false\n  },\n  \"comment\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"creativeGroupIds\": [],\n  \"creativeOptimizationConfiguration\": {},\n  \"defaultClickThroughEventTagProperties\": {\n    \"defaultClickThroughEventTagId\": \"\",\n    \"overrideInheritedEventTag\": false\n  },\n  \"defaultLandingPageId\": \"\",\n  \"endDate\": \"\",\n  \"eventTagOverrides\": [\n    {\n      \"enabled\": false,\n      \"id\": \"\"\n    }\n  ],\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"nielsenOcrEnabled\": false,\n  \"startDate\": \"\",\n  \"subaccountId\": \"\",\n  \"traffickerEmails\": []\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}}/userprofiles/:profileId/campaigns";

    let payload = json!({
        "accountId": "",
        "adBlockingConfiguration": json!({
            "clickThroughUrl": "",
            "creativeBundleId": "",
            "enabled": false,
            "overrideClickThroughUrl": false
        }),
        "additionalCreativeOptimizationConfigurations": (
            json!({
                "id": "",
                "name": "",
                "optimizationActivitys": (
                    json!({
                        "floodlightActivityId": "",
                        "floodlightActivityIdDimensionValue": json!({
                            "dimensionName": "",
                            "etag": "",
                            "id": "",
                            "kind": "",
                            "matchType": "",
                            "value": ""
                        }),
                        "weight": 0
                    })
                ),
                "optimizationModel": ""
            })
        ),
        "advertiserGroupId": "",
        "advertiserId": "",
        "advertiserIdDimensionValue": json!({}),
        "archived": false,
        "audienceSegmentGroups": (
            json!({
                "audienceSegments": (
                    json!({
                        "allocation": 0,
                        "id": "",
                        "name": ""
                    })
                ),
                "id": "",
                "name": ""
            })
        ),
        "billingInvoiceCode": "",
        "clickThroughUrlSuffixProperties": json!({
            "clickThroughUrlSuffix": "",
            "overrideInheritedSuffix": false
        }),
        "comment": "",
        "createInfo": json!({"time": ""}),
        "creativeGroupIds": (),
        "creativeOptimizationConfiguration": json!({}),
        "defaultClickThroughEventTagProperties": json!({
            "defaultClickThroughEventTagId": "",
            "overrideInheritedEventTag": false
        }),
        "defaultLandingPageId": "",
        "endDate": "",
        "eventTagOverrides": (
            json!({
                "enabled": false,
                "id": ""
            })
        ),
        "externalId": "",
        "id": "",
        "idDimensionValue": json!({}),
        "kind": "",
        "lastModifiedInfo": json!({}),
        "name": "",
        "nielsenOcrEnabled": false,
        "startDate": "",
        "subaccountId": "",
        "traffickerEmails": ()
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/userprofiles/:profileId/campaigns \
  --header 'content-type: application/json' \
  --data '{
  "accountId": "",
  "adBlockingConfiguration": {
    "clickThroughUrl": "",
    "creativeBundleId": "",
    "enabled": false,
    "overrideClickThroughUrl": false
  },
  "additionalCreativeOptimizationConfigurations": [
    {
      "id": "",
      "name": "",
      "optimizationActivitys": [
        {
          "floodlightActivityId": "",
          "floodlightActivityIdDimensionValue": {
            "dimensionName": "",
            "etag": "",
            "id": "",
            "kind": "",
            "matchType": "",
            "value": ""
          },
          "weight": 0
        }
      ],
      "optimizationModel": ""
    }
  ],
  "advertiserGroupId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {},
  "archived": false,
  "audienceSegmentGroups": [
    {
      "audienceSegments": [
        {
          "allocation": 0,
          "id": "",
          "name": ""
        }
      ],
      "id": "",
      "name": ""
    }
  ],
  "billingInvoiceCode": "",
  "clickThroughUrlSuffixProperties": {
    "clickThroughUrlSuffix": "",
    "overrideInheritedSuffix": false
  },
  "comment": "",
  "createInfo": {
    "time": ""
  },
  "creativeGroupIds": [],
  "creativeOptimizationConfiguration": {},
  "defaultClickThroughEventTagProperties": {
    "defaultClickThroughEventTagId": "",
    "overrideInheritedEventTag": false
  },
  "defaultLandingPageId": "",
  "endDate": "",
  "eventTagOverrides": [
    {
      "enabled": false,
      "id": ""
    }
  ],
  "externalId": "",
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "lastModifiedInfo": {},
  "name": "",
  "nielsenOcrEnabled": false,
  "startDate": "",
  "subaccountId": "",
  "traffickerEmails": []
}'
echo '{
  "accountId": "",
  "adBlockingConfiguration": {
    "clickThroughUrl": "",
    "creativeBundleId": "",
    "enabled": false,
    "overrideClickThroughUrl": false
  },
  "additionalCreativeOptimizationConfigurations": [
    {
      "id": "",
      "name": "",
      "optimizationActivitys": [
        {
          "floodlightActivityId": "",
          "floodlightActivityIdDimensionValue": {
            "dimensionName": "",
            "etag": "",
            "id": "",
            "kind": "",
            "matchType": "",
            "value": ""
          },
          "weight": 0
        }
      ],
      "optimizationModel": ""
    }
  ],
  "advertiserGroupId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {},
  "archived": false,
  "audienceSegmentGroups": [
    {
      "audienceSegments": [
        {
          "allocation": 0,
          "id": "",
          "name": ""
        }
      ],
      "id": "",
      "name": ""
    }
  ],
  "billingInvoiceCode": "",
  "clickThroughUrlSuffixProperties": {
    "clickThroughUrlSuffix": "",
    "overrideInheritedSuffix": false
  },
  "comment": "",
  "createInfo": {
    "time": ""
  },
  "creativeGroupIds": [],
  "creativeOptimizationConfiguration": {},
  "defaultClickThroughEventTagProperties": {
    "defaultClickThroughEventTagId": "",
    "overrideInheritedEventTag": false
  },
  "defaultLandingPageId": "",
  "endDate": "",
  "eventTagOverrides": [
    {
      "enabled": false,
      "id": ""
    }
  ],
  "externalId": "",
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "lastModifiedInfo": {},
  "name": "",
  "nielsenOcrEnabled": false,
  "startDate": "",
  "subaccountId": "",
  "traffickerEmails": []
}' |  \
  http PUT {{baseUrl}}/userprofiles/:profileId/campaigns \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "accountId": "",\n  "adBlockingConfiguration": {\n    "clickThroughUrl": "",\n    "creativeBundleId": "",\n    "enabled": false,\n    "overrideClickThroughUrl": false\n  },\n  "additionalCreativeOptimizationConfigurations": [\n    {\n      "id": "",\n      "name": "",\n      "optimizationActivitys": [\n        {\n          "floodlightActivityId": "",\n          "floodlightActivityIdDimensionValue": {\n            "dimensionName": "",\n            "etag": "",\n            "id": "",\n            "kind": "",\n            "matchType": "",\n            "value": ""\n          },\n          "weight": 0\n        }\n      ],\n      "optimizationModel": ""\n    }\n  ],\n  "advertiserGroupId": "",\n  "advertiserId": "",\n  "advertiserIdDimensionValue": {},\n  "archived": false,\n  "audienceSegmentGroups": [\n    {\n      "audienceSegments": [\n        {\n          "allocation": 0,\n          "id": "",\n          "name": ""\n        }\n      ],\n      "id": "",\n      "name": ""\n    }\n  ],\n  "billingInvoiceCode": "",\n  "clickThroughUrlSuffixProperties": {\n    "clickThroughUrlSuffix": "",\n    "overrideInheritedSuffix": false\n  },\n  "comment": "",\n  "createInfo": {\n    "time": ""\n  },\n  "creativeGroupIds": [],\n  "creativeOptimizationConfiguration": {},\n  "defaultClickThroughEventTagProperties": {\n    "defaultClickThroughEventTagId": "",\n    "overrideInheritedEventTag": false\n  },\n  "defaultLandingPageId": "",\n  "endDate": "",\n  "eventTagOverrides": [\n    {\n      "enabled": false,\n      "id": ""\n    }\n  ],\n  "externalId": "",\n  "id": "",\n  "idDimensionValue": {},\n  "kind": "",\n  "lastModifiedInfo": {},\n  "name": "",\n  "nielsenOcrEnabled": false,\n  "startDate": "",\n  "subaccountId": "",\n  "traffickerEmails": []\n}' \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/campaigns
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "accountId": "",
  "adBlockingConfiguration": [
    "clickThroughUrl": "",
    "creativeBundleId": "",
    "enabled": false,
    "overrideClickThroughUrl": false
  ],
  "additionalCreativeOptimizationConfigurations": [
    [
      "id": "",
      "name": "",
      "optimizationActivitys": [
        [
          "floodlightActivityId": "",
          "floodlightActivityIdDimensionValue": [
            "dimensionName": "",
            "etag": "",
            "id": "",
            "kind": "",
            "matchType": "",
            "value": ""
          ],
          "weight": 0
        ]
      ],
      "optimizationModel": ""
    ]
  ],
  "advertiserGroupId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": [],
  "archived": false,
  "audienceSegmentGroups": [
    [
      "audienceSegments": [
        [
          "allocation": 0,
          "id": "",
          "name": ""
        ]
      ],
      "id": "",
      "name": ""
    ]
  ],
  "billingInvoiceCode": "",
  "clickThroughUrlSuffixProperties": [
    "clickThroughUrlSuffix": "",
    "overrideInheritedSuffix": false
  ],
  "comment": "",
  "createInfo": ["time": ""],
  "creativeGroupIds": [],
  "creativeOptimizationConfiguration": [],
  "defaultClickThroughEventTagProperties": [
    "defaultClickThroughEventTagId": "",
    "overrideInheritedEventTag": false
  ],
  "defaultLandingPageId": "",
  "endDate": "",
  "eventTagOverrides": [
    [
      "enabled": false,
      "id": ""
    ]
  ],
  "externalId": "",
  "id": "",
  "idDimensionValue": [],
  "kind": "",
  "lastModifiedInfo": [],
  "name": "",
  "nielsenOcrEnabled": false,
  "startDate": "",
  "subaccountId": "",
  "traffickerEmails": []
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/campaigns")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET dfareporting.changeLogs.get
{{baseUrl}}/userprofiles/:profileId/changeLogs/:id
QUERY PARAMS

profileId
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/changeLogs/:id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/changeLogs/:id")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/changeLogs/:id"

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}}/userprofiles/:profileId/changeLogs/:id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/changeLogs/:id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/changeLogs/:id"

	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/userprofiles/:profileId/changeLogs/:id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/changeLogs/:id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/changeLogs/:id"))
    .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}}/userprofiles/:profileId/changeLogs/:id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/changeLogs/:id")
  .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}}/userprofiles/:profileId/changeLogs/:id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/changeLogs/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/changeLogs/:id';
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}}/userprofiles/:profileId/changeLogs/:id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/changeLogs/:id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/changeLogs/:id',
  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}}/userprofiles/:profileId/changeLogs/:id'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/changeLogs/:id');

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}}/userprofiles/:profileId/changeLogs/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/changeLogs/:id';
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}}/userprofiles/:profileId/changeLogs/:id"]
                                                       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}}/userprofiles/:profileId/changeLogs/:id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/changeLogs/:id",
  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}}/userprofiles/:profileId/changeLogs/:id');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/changeLogs/:id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/changeLogs/:id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/changeLogs/:id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/changeLogs/:id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/changeLogs/:id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/changeLogs/:id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/changeLogs/:id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/changeLogs/:id")

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/userprofiles/:profileId/changeLogs/:id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/changeLogs/:id";

    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}}/userprofiles/:profileId/changeLogs/:id
http GET {{baseUrl}}/userprofiles/:profileId/changeLogs/:id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/changeLogs/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/changeLogs/:id")! 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 dfareporting.changeLogs.list
{{baseUrl}}/userprofiles/:profileId/changeLogs
QUERY PARAMS

profileId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/changeLogs");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/changeLogs")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/changeLogs"

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}}/userprofiles/:profileId/changeLogs"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/changeLogs");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/changeLogs"

	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/userprofiles/:profileId/changeLogs HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/changeLogs")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/changeLogs"))
    .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}}/userprofiles/:profileId/changeLogs")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/changeLogs")
  .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}}/userprofiles/:profileId/changeLogs');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/changeLogs'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/changeLogs';
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}}/userprofiles/:profileId/changeLogs',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/changeLogs")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/changeLogs',
  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}}/userprofiles/:profileId/changeLogs'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/changeLogs');

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}}/userprofiles/:profileId/changeLogs'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/changeLogs';
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}}/userprofiles/:profileId/changeLogs"]
                                                       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}}/userprofiles/:profileId/changeLogs" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/changeLogs",
  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}}/userprofiles/:profileId/changeLogs');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/changeLogs');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/changeLogs');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/changeLogs' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/changeLogs' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/changeLogs")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/changeLogs"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/changeLogs"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/changeLogs")

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/userprofiles/:profileId/changeLogs') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/changeLogs";

    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}}/userprofiles/:profileId/changeLogs
http GET {{baseUrl}}/userprofiles/:profileId/changeLogs
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/changeLogs
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/changeLogs")! 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 dfareporting.cities.list
{{baseUrl}}/userprofiles/:profileId/cities
QUERY PARAMS

profileId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/cities");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/cities")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/cities"

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}}/userprofiles/:profileId/cities"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/cities");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/cities"

	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/userprofiles/:profileId/cities HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/cities")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/cities"))
    .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}}/userprofiles/:profileId/cities")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/cities")
  .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}}/userprofiles/:profileId/cities');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/cities'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/cities';
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}}/userprofiles/:profileId/cities',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/cities")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/cities',
  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}}/userprofiles/:profileId/cities'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/cities');

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}}/userprofiles/:profileId/cities'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/cities';
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}}/userprofiles/:profileId/cities"]
                                                       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}}/userprofiles/:profileId/cities" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/cities",
  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}}/userprofiles/:profileId/cities');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/cities');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/cities');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/cities' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/cities' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/cities")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/cities"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/cities"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/cities")

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/userprofiles/:profileId/cities') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/cities";

    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}}/userprofiles/:profileId/cities
http GET {{baseUrl}}/userprofiles/:profileId/cities
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/cities
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/cities")! 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 dfareporting.connectionTypes.get
{{baseUrl}}/userprofiles/:profileId/connectionTypes/:id
QUERY PARAMS

profileId
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/connectionTypes/:id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/connectionTypes/:id")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/connectionTypes/:id"

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}}/userprofiles/:profileId/connectionTypes/:id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/connectionTypes/:id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/connectionTypes/:id"

	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/userprofiles/:profileId/connectionTypes/:id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/connectionTypes/:id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/connectionTypes/:id"))
    .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}}/userprofiles/:profileId/connectionTypes/:id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/connectionTypes/:id")
  .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}}/userprofiles/:profileId/connectionTypes/:id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/connectionTypes/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/connectionTypes/:id';
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}}/userprofiles/:profileId/connectionTypes/:id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/connectionTypes/:id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/connectionTypes/:id',
  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}}/userprofiles/:profileId/connectionTypes/:id'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/connectionTypes/:id');

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}}/userprofiles/:profileId/connectionTypes/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/connectionTypes/:id';
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}}/userprofiles/:profileId/connectionTypes/:id"]
                                                       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}}/userprofiles/:profileId/connectionTypes/:id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/connectionTypes/:id",
  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}}/userprofiles/:profileId/connectionTypes/:id');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/connectionTypes/:id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/connectionTypes/:id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/connectionTypes/:id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/connectionTypes/:id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/connectionTypes/:id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/connectionTypes/:id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/connectionTypes/:id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/connectionTypes/:id")

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/userprofiles/:profileId/connectionTypes/:id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/connectionTypes/:id";

    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}}/userprofiles/:profileId/connectionTypes/:id
http GET {{baseUrl}}/userprofiles/:profileId/connectionTypes/:id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/connectionTypes/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/connectionTypes/:id")! 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 dfareporting.connectionTypes.list
{{baseUrl}}/userprofiles/:profileId/connectionTypes
QUERY PARAMS

profileId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/connectionTypes");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/connectionTypes")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/connectionTypes"

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}}/userprofiles/:profileId/connectionTypes"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/connectionTypes");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/connectionTypes"

	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/userprofiles/:profileId/connectionTypes HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/connectionTypes")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/connectionTypes"))
    .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}}/userprofiles/:profileId/connectionTypes")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/connectionTypes")
  .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}}/userprofiles/:profileId/connectionTypes');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/connectionTypes'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/connectionTypes';
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}}/userprofiles/:profileId/connectionTypes',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/connectionTypes")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/connectionTypes',
  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}}/userprofiles/:profileId/connectionTypes'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/connectionTypes');

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}}/userprofiles/:profileId/connectionTypes'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/connectionTypes';
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}}/userprofiles/:profileId/connectionTypes"]
                                                       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}}/userprofiles/:profileId/connectionTypes" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/connectionTypes",
  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}}/userprofiles/:profileId/connectionTypes');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/connectionTypes');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/connectionTypes');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/connectionTypes' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/connectionTypes' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/connectionTypes")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/connectionTypes"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/connectionTypes"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/connectionTypes")

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/userprofiles/:profileId/connectionTypes') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/connectionTypes";

    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}}/userprofiles/:profileId/connectionTypes
http GET {{baseUrl}}/userprofiles/:profileId/connectionTypes
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/connectionTypes
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/connectionTypes")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
DELETE dfareporting.contentCategories.delete
{{baseUrl}}/userprofiles/:profileId/contentCategories/:id
QUERY PARAMS

profileId
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/contentCategories/:id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/userprofiles/:profileId/contentCategories/:id")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/contentCategories/:id"

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}}/userprofiles/:profileId/contentCategories/:id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/contentCategories/:id");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/contentCategories/:id"

	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/userprofiles/:profileId/contentCategories/:id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/userprofiles/:profileId/contentCategories/:id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/contentCategories/:id"))
    .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}}/userprofiles/:profileId/contentCategories/:id")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/userprofiles/:profileId/contentCategories/:id")
  .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}}/userprofiles/:profileId/contentCategories/:id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/userprofiles/:profileId/contentCategories/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/contentCategories/:id';
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}}/userprofiles/:profileId/contentCategories/:id',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/contentCategories/:id")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/contentCategories/:id',
  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}}/userprofiles/:profileId/contentCategories/:id'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/userprofiles/:profileId/contentCategories/:id');

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}}/userprofiles/:profileId/contentCategories/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/contentCategories/:id';
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}}/userprofiles/:profileId/contentCategories/:id"]
                                                       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}}/userprofiles/:profileId/contentCategories/:id" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/contentCategories/:id",
  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}}/userprofiles/:profileId/contentCategories/:id');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/contentCategories/:id');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/contentCategories/:id');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/contentCategories/:id' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/contentCategories/:id' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/userprofiles/:profileId/contentCategories/:id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/contentCategories/:id"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/contentCategories/:id"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/contentCategories/:id")

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/userprofiles/:profileId/contentCategories/:id') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/contentCategories/:id";

    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}}/userprofiles/:profileId/contentCategories/:id
http DELETE {{baseUrl}}/userprofiles/:profileId/contentCategories/:id
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/contentCategories/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/contentCategories/:id")! 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 dfareporting.contentCategories.get
{{baseUrl}}/userprofiles/:profileId/contentCategories/:id
QUERY PARAMS

profileId
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/contentCategories/:id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/contentCategories/:id")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/contentCategories/:id"

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}}/userprofiles/:profileId/contentCategories/:id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/contentCategories/:id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/contentCategories/:id"

	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/userprofiles/:profileId/contentCategories/:id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/contentCategories/:id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/contentCategories/:id"))
    .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}}/userprofiles/:profileId/contentCategories/:id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/contentCategories/:id")
  .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}}/userprofiles/:profileId/contentCategories/:id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/contentCategories/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/contentCategories/:id';
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}}/userprofiles/:profileId/contentCategories/:id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/contentCategories/:id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/contentCategories/:id',
  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}}/userprofiles/:profileId/contentCategories/:id'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/contentCategories/:id');

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}}/userprofiles/:profileId/contentCategories/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/contentCategories/:id';
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}}/userprofiles/:profileId/contentCategories/:id"]
                                                       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}}/userprofiles/:profileId/contentCategories/:id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/contentCategories/:id",
  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}}/userprofiles/:profileId/contentCategories/:id');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/contentCategories/:id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/contentCategories/:id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/contentCategories/:id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/contentCategories/:id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/contentCategories/:id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/contentCategories/:id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/contentCategories/:id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/contentCategories/:id")

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/userprofiles/:profileId/contentCategories/:id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/contentCategories/:id";

    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}}/userprofiles/:profileId/contentCategories/:id
http GET {{baseUrl}}/userprofiles/:profileId/contentCategories/:id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/contentCategories/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/contentCategories/:id")! 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 dfareporting.contentCategories.insert
{{baseUrl}}/userprofiles/:profileId/contentCategories
QUERY PARAMS

profileId
BODY json

{
  "accountId": "",
  "id": "",
  "kind": "",
  "name": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/contentCategories");

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  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/userprofiles/:profileId/contentCategories" {:content-type :json
                                                                                      :form-params {:accountId ""
                                                                                                    :id ""
                                                                                                    :kind ""
                                                                                                    :name ""}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/contentCategories"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/userprofiles/:profileId/contentCategories"),
    Content = new StringContent("{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/contentCategories");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/contentCategories"

	payload := strings.NewReader("{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/userprofiles/:profileId/contentCategories HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 61

{
  "accountId": "",
  "id": "",
  "kind": "",
  "name": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/userprofiles/:profileId/contentCategories")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/contentCategories"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/contentCategories")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/userprofiles/:profileId/contentCategories")
  .header("content-type", "application/json")
  .body("{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  accountId: '',
  id: '',
  kind: '',
  name: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/userprofiles/:profileId/contentCategories');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/userprofiles/:profileId/contentCategories',
  headers: {'content-type': 'application/json'},
  data: {accountId: '', id: '', kind: '', name: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/contentCategories';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","id":"","kind":"","name":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/userprofiles/:profileId/contentCategories',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "accountId": "",\n  "id": "",\n  "kind": "",\n  "name": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/contentCategories")
  .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/userprofiles/:profileId/contentCategories',
  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({accountId: '', id: '', kind: '', name: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/userprofiles/:profileId/contentCategories',
  headers: {'content-type': 'application/json'},
  body: {accountId: '', id: '', kind: '', name: ''},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/userprofiles/:profileId/contentCategories');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  accountId: '',
  id: '',
  kind: '',
  name: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/userprofiles/:profileId/contentCategories',
  headers: {'content-type': 'application/json'},
  data: {accountId: '', id: '', kind: '', name: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/contentCategories';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","id":"","kind":"","name":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"accountId": @"",
                              @"id": @"",
                              @"kind": @"",
                              @"name": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/userprofiles/:profileId/contentCategories"]
                                                       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}}/userprofiles/:profileId/contentCategories" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/contentCategories",
  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([
    'accountId' => '',
    'id' => '',
    'kind' => '',
    'name' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/userprofiles/:profileId/contentCategories', [
  'body' => '{
  "accountId": "",
  "id": "",
  "kind": "",
  "name": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/contentCategories');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'accountId' => '',
  'id' => '',
  'kind' => '',
  'name' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'accountId' => '',
  'id' => '',
  'kind' => '',
  'name' => ''
]));
$request->setRequestUrl('{{baseUrl}}/userprofiles/:profileId/contentCategories');
$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}}/userprofiles/:profileId/contentCategories' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "id": "",
  "kind": "",
  "name": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/contentCategories' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "id": "",
  "kind": "",
  "name": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/userprofiles/:profileId/contentCategories", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/contentCategories"

payload = {
    "accountId": "",
    "id": "",
    "kind": "",
    "name": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/contentCategories"

payload <- "{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/contentCategories")

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  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/userprofiles/:profileId/contentCategories') do |req|
  req.body = "{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/contentCategories";

    let payload = json!({
        "accountId": "",
        "id": "",
        "kind": "",
        "name": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/userprofiles/:profileId/contentCategories \
  --header 'content-type: application/json' \
  --data '{
  "accountId": "",
  "id": "",
  "kind": "",
  "name": ""
}'
echo '{
  "accountId": "",
  "id": "",
  "kind": "",
  "name": ""
}' |  \
  http POST {{baseUrl}}/userprofiles/:profileId/contentCategories \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "accountId": "",\n  "id": "",\n  "kind": "",\n  "name": ""\n}' \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/contentCategories
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "accountId": "",
  "id": "",
  "kind": "",
  "name": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/contentCategories")! 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 dfareporting.contentCategories.list
{{baseUrl}}/userprofiles/:profileId/contentCategories
QUERY PARAMS

profileId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/contentCategories");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/contentCategories")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/contentCategories"

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}}/userprofiles/:profileId/contentCategories"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/contentCategories");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/contentCategories"

	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/userprofiles/:profileId/contentCategories HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/contentCategories")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/contentCategories"))
    .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}}/userprofiles/:profileId/contentCategories")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/contentCategories")
  .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}}/userprofiles/:profileId/contentCategories');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/contentCategories'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/contentCategories';
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}}/userprofiles/:profileId/contentCategories',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/contentCategories")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/contentCategories',
  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}}/userprofiles/:profileId/contentCategories'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/contentCategories');

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}}/userprofiles/:profileId/contentCategories'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/contentCategories';
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}}/userprofiles/:profileId/contentCategories"]
                                                       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}}/userprofiles/:profileId/contentCategories" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/contentCategories",
  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}}/userprofiles/:profileId/contentCategories');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/contentCategories');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/contentCategories');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/contentCategories' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/contentCategories' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/contentCategories")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/contentCategories"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/contentCategories"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/contentCategories")

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/userprofiles/:profileId/contentCategories') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/contentCategories";

    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}}/userprofiles/:profileId/contentCategories
http GET {{baseUrl}}/userprofiles/:profileId/contentCategories
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/contentCategories
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/contentCategories")! 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 dfareporting.contentCategories.patch
{{baseUrl}}/userprofiles/:profileId/contentCategories
QUERY PARAMS

id
profileId
BODY json

{
  "accountId": "",
  "id": "",
  "kind": "",
  "name": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/contentCategories?id=");

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  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/patch "{{baseUrl}}/userprofiles/:profileId/contentCategories" {:query-params {:id ""}
                                                                                       :content-type :json
                                                                                       :form-params {:accountId ""
                                                                                                     :id ""
                                                                                                     :kind ""
                                                                                                     :name ""}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/contentCategories?id="
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"

response = HTTP::Client.patch url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Patch,
    RequestUri = new Uri("{{baseUrl}}/userprofiles/:profileId/contentCategories?id="),
    Content = new StringContent("{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/contentCategories?id=");
var request = new RestRequest("", Method.Patch);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/contentCategories?id="

	payload := strings.NewReader("{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}")

	req, _ := http.NewRequest("PATCH", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PATCH /baseUrl/userprofiles/:profileId/contentCategories?id= HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 61

{
  "accountId": "",
  "id": "",
  "kind": "",
  "name": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/userprofiles/:profileId/contentCategories?id=")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/contentCategories?id="))
    .header("content-type", "application/json")
    .method("PATCH", HttpRequest.BodyPublishers.ofString("{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/contentCategories?id=")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/userprofiles/:profileId/contentCategories?id=")
  .header("content-type", "application/json")
  .body("{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  accountId: '',
  id: '',
  kind: '',
  name: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PATCH', '{{baseUrl}}/userprofiles/:profileId/contentCategories?id=');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/userprofiles/:profileId/contentCategories',
  params: {id: ''},
  headers: {'content-type': 'application/json'},
  data: {accountId: '', id: '', kind: '', name: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/contentCategories?id=';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","id":"","kind":"","name":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/userprofiles/:profileId/contentCategories?id=',
  method: 'PATCH',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "accountId": "",\n  "id": "",\n  "kind": "",\n  "name": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/contentCategories?id=")
  .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/userprofiles/:profileId/contentCategories?id=',
  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({accountId: '', id: '', kind: '', name: ''}));
req.end();
const request = require('request');

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/userprofiles/:profileId/contentCategories',
  qs: {id: ''},
  headers: {'content-type': 'application/json'},
  body: {accountId: '', id: '', kind: '', name: ''},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PATCH', '{{baseUrl}}/userprofiles/:profileId/contentCategories');

req.query({
  id: ''
});

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  accountId: '',
  id: '',
  kind: '',
  name: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/userprofiles/:profileId/contentCategories',
  params: {id: ''},
  headers: {'content-type': 'application/json'},
  data: {accountId: '', id: '', kind: '', name: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/contentCategories?id=';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","id":"","kind":"","name":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"accountId": @"",
                              @"id": @"",
                              @"kind": @"",
                              @"name": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/userprofiles/:profileId/contentCategories?id="]
                                                       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}}/userprofiles/:profileId/contentCategories?id=" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}" in

Client.call ~headers ~body `PATCH uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/contentCategories?id=",
  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([
    'accountId' => '',
    'id' => '',
    'kind' => '',
    'name' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PATCH', '{{baseUrl}}/userprofiles/:profileId/contentCategories?id=', [
  'body' => '{
  "accountId": "",
  "id": "",
  "kind": "",
  "name": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/contentCategories');
$request->setMethod(HttpRequest::HTTP_METH_PATCH);

$request->setQueryData([
  'id' => ''
]);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'accountId' => '',
  'id' => '',
  'kind' => '',
  'name' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'accountId' => '',
  'id' => '',
  'kind' => '',
  'name' => ''
]));
$request->setRequestUrl('{{baseUrl}}/userprofiles/:profileId/contentCategories');
$request->setRequestMethod('PATCH');
$request->setBody($body);

$request->setQuery(new http\QueryString([
  'id' => ''
]));

$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}}/userprofiles/:profileId/contentCategories?id=' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "id": "",
  "kind": "",
  "name": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/contentCategories?id=' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "id": "",
  "kind": "",
  "name": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("PATCH", "/baseUrl/userprofiles/:profileId/contentCategories?id=", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/contentCategories"

querystring = {"id":""}

payload = {
    "accountId": "",
    "id": "",
    "kind": "",
    "name": ""
}
headers = {"content-type": "application/json"}

response = requests.patch(url, json=payload, headers=headers, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/contentCategories"

queryString <- list(id = "")

payload <- "{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"

encode <- "json"

response <- VERB("PATCH", url, body = payload, query = queryString, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/contentCategories?id=")

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  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.patch('/baseUrl/userprofiles/:profileId/contentCategories') do |req|
  req.params['id'] = ''
  req.body = "{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"
end

puts response.status
puts response.body
use std::str::FromStr;
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/contentCategories";

    let querystring = [
        ("id", ""),
    ];

    let payload = json!({
        "accountId": "",
        "id": "",
        "kind": "",
        "name": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PATCH").unwrap(), url)
        .query(&querystring)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PATCH \
  --url '{{baseUrl}}/userprofiles/:profileId/contentCategories?id=' \
  --header 'content-type: application/json' \
  --data '{
  "accountId": "",
  "id": "",
  "kind": "",
  "name": ""
}'
echo '{
  "accountId": "",
  "id": "",
  "kind": "",
  "name": ""
}' |  \
  http PATCH '{{baseUrl}}/userprofiles/:profileId/contentCategories?id=' \
  content-type:application/json
wget --quiet \
  --method PATCH \
  --header 'content-type: application/json' \
  --body-data '{\n  "accountId": "",\n  "id": "",\n  "kind": "",\n  "name": ""\n}' \
  --output-document \
  - '{{baseUrl}}/userprofiles/:profileId/contentCategories?id='
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "accountId": "",
  "id": "",
  "kind": "",
  "name": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/contentCategories?id=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PATCH"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
PUT dfareporting.contentCategories.update
{{baseUrl}}/userprofiles/:profileId/contentCategories
QUERY PARAMS

profileId
BODY json

{
  "accountId": "",
  "id": "",
  "kind": "",
  "name": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/contentCategories");

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  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/userprofiles/:profileId/contentCategories" {:content-type :json
                                                                                     :form-params {:accountId ""
                                                                                                   :id ""
                                                                                                   :kind ""
                                                                                                   :name ""}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/contentCategories"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/userprofiles/:profileId/contentCategories"),
    Content = new StringContent("{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/contentCategories");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/contentCategories"

	payload := strings.NewReader("{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/userprofiles/:profileId/contentCategories HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 61

{
  "accountId": "",
  "id": "",
  "kind": "",
  "name": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/userprofiles/:profileId/contentCategories")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/contentCategories"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/contentCategories")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/userprofiles/:profileId/contentCategories")
  .header("content-type", "application/json")
  .body("{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  accountId: '',
  id: '',
  kind: '',
  name: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/userprofiles/:profileId/contentCategories');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/userprofiles/:profileId/contentCategories',
  headers: {'content-type': 'application/json'},
  data: {accountId: '', id: '', kind: '', name: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/contentCategories';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","id":"","kind":"","name":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/userprofiles/:profileId/contentCategories',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "accountId": "",\n  "id": "",\n  "kind": "",\n  "name": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/contentCategories")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/contentCategories',
  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({accountId: '', id: '', kind: '', name: ''}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/userprofiles/:profileId/contentCategories',
  headers: {'content-type': 'application/json'},
  body: {accountId: '', id: '', kind: '', name: ''},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/userprofiles/:profileId/contentCategories');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  accountId: '',
  id: '',
  kind: '',
  name: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/userprofiles/:profileId/contentCategories',
  headers: {'content-type': 'application/json'},
  data: {accountId: '', id: '', kind: '', name: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/contentCategories';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","id":"","kind":"","name":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"accountId": @"",
                              @"id": @"",
                              @"kind": @"",
                              @"name": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/userprofiles/:profileId/contentCategories"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/userprofiles/:profileId/contentCategories" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/contentCategories",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'accountId' => '',
    'id' => '',
    'kind' => '',
    'name' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/userprofiles/:profileId/contentCategories', [
  'body' => '{
  "accountId": "",
  "id": "",
  "kind": "",
  "name": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/contentCategories');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'accountId' => '',
  'id' => '',
  'kind' => '',
  'name' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'accountId' => '',
  'id' => '',
  'kind' => '',
  'name' => ''
]));
$request->setRequestUrl('{{baseUrl}}/userprofiles/:profileId/contentCategories');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/contentCategories' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "id": "",
  "kind": "",
  "name": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/contentCategories' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "id": "",
  "kind": "",
  "name": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/userprofiles/:profileId/contentCategories", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/contentCategories"

payload = {
    "accountId": "",
    "id": "",
    "kind": "",
    "name": ""
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/contentCategories"

payload <- "{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"

encode <- "json"

response <- VERB("PUT", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/contentCategories")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.put('/baseUrl/userprofiles/:profileId/contentCategories') do |req|
  req.body = "{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"
end

puts response.status
puts response.body
use std::str::FromStr;
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/contentCategories";

    let payload = json!({
        "accountId": "",
        "id": "",
        "kind": "",
        "name": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/userprofiles/:profileId/contentCategories \
  --header 'content-type: application/json' \
  --data '{
  "accountId": "",
  "id": "",
  "kind": "",
  "name": ""
}'
echo '{
  "accountId": "",
  "id": "",
  "kind": "",
  "name": ""
}' |  \
  http PUT {{baseUrl}}/userprofiles/:profileId/contentCategories \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "accountId": "",\n  "id": "",\n  "kind": "",\n  "name": ""\n}' \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/contentCategories
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "accountId": "",
  "id": "",
  "kind": "",
  "name": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/contentCategories")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST dfareporting.conversions.batchinsert
{{baseUrl}}/userprofiles/:profileId/conversions/batchinsert
QUERY PARAMS

profileId
BODY json

{
  "conversions": [
    {
      "childDirectedTreatment": false,
      "customVariables": [
        {
          "kind": "",
          "type": "",
          "value": ""
        }
      ],
      "dclid": "",
      "encryptedUserId": "",
      "encryptedUserIdCandidates": [],
      "floodlightActivityId": "",
      "floodlightConfigurationId": "",
      "gclid": "",
      "kind": "",
      "limitAdTracking": false,
      "matchId": "",
      "mobileDeviceId": "",
      "nonPersonalizedAd": false,
      "ordinal": "",
      "quantity": "",
      "timestampMicros": "",
      "treatmentForUnderage": false,
      "value": ""
    }
  ],
  "encryptionInfo": {
    "encryptionEntityId": "",
    "encryptionEntityType": "",
    "encryptionSource": "",
    "kind": ""
  },
  "kind": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/conversions/batchinsert");

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  \"conversions\": [\n    {\n      \"childDirectedTreatment\": false,\n      \"customVariables\": [\n        {\n          \"kind\": \"\",\n          \"type\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"dclid\": \"\",\n      \"encryptedUserId\": \"\",\n      \"encryptedUserIdCandidates\": [],\n      \"floodlightActivityId\": \"\",\n      \"floodlightConfigurationId\": \"\",\n      \"gclid\": \"\",\n      \"kind\": \"\",\n      \"limitAdTracking\": false,\n      \"matchId\": \"\",\n      \"mobileDeviceId\": \"\",\n      \"nonPersonalizedAd\": false,\n      \"ordinal\": \"\",\n      \"quantity\": \"\",\n      \"timestampMicros\": \"\",\n      \"treatmentForUnderage\": false,\n      \"value\": \"\"\n    }\n  ],\n  \"encryptionInfo\": {\n    \"encryptionEntityId\": \"\",\n    \"encryptionEntityType\": \"\",\n    \"encryptionSource\": \"\",\n    \"kind\": \"\"\n  },\n  \"kind\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/userprofiles/:profileId/conversions/batchinsert" {:content-type :json
                                                                                            :form-params {:conversions [{:childDirectedTreatment false
                                                                                                                         :customVariables [{:kind ""
                                                                                                                                            :type ""
                                                                                                                                            :value ""}]
                                                                                                                         :dclid ""
                                                                                                                         :encryptedUserId ""
                                                                                                                         :encryptedUserIdCandidates []
                                                                                                                         :floodlightActivityId ""
                                                                                                                         :floodlightConfigurationId ""
                                                                                                                         :gclid ""
                                                                                                                         :kind ""
                                                                                                                         :limitAdTracking false
                                                                                                                         :matchId ""
                                                                                                                         :mobileDeviceId ""
                                                                                                                         :nonPersonalizedAd false
                                                                                                                         :ordinal ""
                                                                                                                         :quantity ""
                                                                                                                         :timestampMicros ""
                                                                                                                         :treatmentForUnderage false
                                                                                                                         :value ""}]
                                                                                                          :encryptionInfo {:encryptionEntityId ""
                                                                                                                           :encryptionEntityType ""
                                                                                                                           :encryptionSource ""
                                                                                                                           :kind ""}
                                                                                                          :kind ""}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/conversions/batchinsert"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"conversions\": [\n    {\n      \"childDirectedTreatment\": false,\n      \"customVariables\": [\n        {\n          \"kind\": \"\",\n          \"type\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"dclid\": \"\",\n      \"encryptedUserId\": \"\",\n      \"encryptedUserIdCandidates\": [],\n      \"floodlightActivityId\": \"\",\n      \"floodlightConfigurationId\": \"\",\n      \"gclid\": \"\",\n      \"kind\": \"\",\n      \"limitAdTracking\": false,\n      \"matchId\": \"\",\n      \"mobileDeviceId\": \"\",\n      \"nonPersonalizedAd\": false,\n      \"ordinal\": \"\",\n      \"quantity\": \"\",\n      \"timestampMicros\": \"\",\n      \"treatmentForUnderage\": false,\n      \"value\": \"\"\n    }\n  ],\n  \"encryptionInfo\": {\n    \"encryptionEntityId\": \"\",\n    \"encryptionEntityType\": \"\",\n    \"encryptionSource\": \"\",\n    \"kind\": \"\"\n  },\n  \"kind\": \"\"\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}}/userprofiles/:profileId/conversions/batchinsert"),
    Content = new StringContent("{\n  \"conversions\": [\n    {\n      \"childDirectedTreatment\": false,\n      \"customVariables\": [\n        {\n          \"kind\": \"\",\n          \"type\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"dclid\": \"\",\n      \"encryptedUserId\": \"\",\n      \"encryptedUserIdCandidates\": [],\n      \"floodlightActivityId\": \"\",\n      \"floodlightConfigurationId\": \"\",\n      \"gclid\": \"\",\n      \"kind\": \"\",\n      \"limitAdTracking\": false,\n      \"matchId\": \"\",\n      \"mobileDeviceId\": \"\",\n      \"nonPersonalizedAd\": false,\n      \"ordinal\": \"\",\n      \"quantity\": \"\",\n      \"timestampMicros\": \"\",\n      \"treatmentForUnderage\": false,\n      \"value\": \"\"\n    }\n  ],\n  \"encryptionInfo\": {\n    \"encryptionEntityId\": \"\",\n    \"encryptionEntityType\": \"\",\n    \"encryptionSource\": \"\",\n    \"kind\": \"\"\n  },\n  \"kind\": \"\"\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}}/userprofiles/:profileId/conversions/batchinsert");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"conversions\": [\n    {\n      \"childDirectedTreatment\": false,\n      \"customVariables\": [\n        {\n          \"kind\": \"\",\n          \"type\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"dclid\": \"\",\n      \"encryptedUserId\": \"\",\n      \"encryptedUserIdCandidates\": [],\n      \"floodlightActivityId\": \"\",\n      \"floodlightConfigurationId\": \"\",\n      \"gclid\": \"\",\n      \"kind\": \"\",\n      \"limitAdTracking\": false,\n      \"matchId\": \"\",\n      \"mobileDeviceId\": \"\",\n      \"nonPersonalizedAd\": false,\n      \"ordinal\": \"\",\n      \"quantity\": \"\",\n      \"timestampMicros\": \"\",\n      \"treatmentForUnderage\": false,\n      \"value\": \"\"\n    }\n  ],\n  \"encryptionInfo\": {\n    \"encryptionEntityId\": \"\",\n    \"encryptionEntityType\": \"\",\n    \"encryptionSource\": \"\",\n    \"kind\": \"\"\n  },\n  \"kind\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/conversions/batchinsert"

	payload := strings.NewReader("{\n  \"conversions\": [\n    {\n      \"childDirectedTreatment\": false,\n      \"customVariables\": [\n        {\n          \"kind\": \"\",\n          \"type\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"dclid\": \"\",\n      \"encryptedUserId\": \"\",\n      \"encryptedUserIdCandidates\": [],\n      \"floodlightActivityId\": \"\",\n      \"floodlightConfigurationId\": \"\",\n      \"gclid\": \"\",\n      \"kind\": \"\",\n      \"limitAdTracking\": false,\n      \"matchId\": \"\",\n      \"mobileDeviceId\": \"\",\n      \"nonPersonalizedAd\": false,\n      \"ordinal\": \"\",\n      \"quantity\": \"\",\n      \"timestampMicros\": \"\",\n      \"treatmentForUnderage\": false,\n      \"value\": \"\"\n    }\n  ],\n  \"encryptionInfo\": {\n    \"encryptionEntityId\": \"\",\n    \"encryptionEntityType\": \"\",\n    \"encryptionSource\": \"\",\n    \"kind\": \"\"\n  },\n  \"kind\": \"\"\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/userprofiles/:profileId/conversions/batchinsert HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 784

{
  "conversions": [
    {
      "childDirectedTreatment": false,
      "customVariables": [
        {
          "kind": "",
          "type": "",
          "value": ""
        }
      ],
      "dclid": "",
      "encryptedUserId": "",
      "encryptedUserIdCandidates": [],
      "floodlightActivityId": "",
      "floodlightConfigurationId": "",
      "gclid": "",
      "kind": "",
      "limitAdTracking": false,
      "matchId": "",
      "mobileDeviceId": "",
      "nonPersonalizedAd": false,
      "ordinal": "",
      "quantity": "",
      "timestampMicros": "",
      "treatmentForUnderage": false,
      "value": ""
    }
  ],
  "encryptionInfo": {
    "encryptionEntityId": "",
    "encryptionEntityType": "",
    "encryptionSource": "",
    "kind": ""
  },
  "kind": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/userprofiles/:profileId/conversions/batchinsert")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"conversions\": [\n    {\n      \"childDirectedTreatment\": false,\n      \"customVariables\": [\n        {\n          \"kind\": \"\",\n          \"type\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"dclid\": \"\",\n      \"encryptedUserId\": \"\",\n      \"encryptedUserIdCandidates\": [],\n      \"floodlightActivityId\": \"\",\n      \"floodlightConfigurationId\": \"\",\n      \"gclid\": \"\",\n      \"kind\": \"\",\n      \"limitAdTracking\": false,\n      \"matchId\": \"\",\n      \"mobileDeviceId\": \"\",\n      \"nonPersonalizedAd\": false,\n      \"ordinal\": \"\",\n      \"quantity\": \"\",\n      \"timestampMicros\": \"\",\n      \"treatmentForUnderage\": false,\n      \"value\": \"\"\n    }\n  ],\n  \"encryptionInfo\": {\n    \"encryptionEntityId\": \"\",\n    \"encryptionEntityType\": \"\",\n    \"encryptionSource\": \"\",\n    \"kind\": \"\"\n  },\n  \"kind\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/conversions/batchinsert"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"conversions\": [\n    {\n      \"childDirectedTreatment\": false,\n      \"customVariables\": [\n        {\n          \"kind\": \"\",\n          \"type\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"dclid\": \"\",\n      \"encryptedUserId\": \"\",\n      \"encryptedUserIdCandidates\": [],\n      \"floodlightActivityId\": \"\",\n      \"floodlightConfigurationId\": \"\",\n      \"gclid\": \"\",\n      \"kind\": \"\",\n      \"limitAdTracking\": false,\n      \"matchId\": \"\",\n      \"mobileDeviceId\": \"\",\n      \"nonPersonalizedAd\": false,\n      \"ordinal\": \"\",\n      \"quantity\": \"\",\n      \"timestampMicros\": \"\",\n      \"treatmentForUnderage\": false,\n      \"value\": \"\"\n    }\n  ],\n  \"encryptionInfo\": {\n    \"encryptionEntityId\": \"\",\n    \"encryptionEntityType\": \"\",\n    \"encryptionSource\": \"\",\n    \"kind\": \"\"\n  },\n  \"kind\": \"\"\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  \"conversions\": [\n    {\n      \"childDirectedTreatment\": false,\n      \"customVariables\": [\n        {\n          \"kind\": \"\",\n          \"type\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"dclid\": \"\",\n      \"encryptedUserId\": \"\",\n      \"encryptedUserIdCandidates\": [],\n      \"floodlightActivityId\": \"\",\n      \"floodlightConfigurationId\": \"\",\n      \"gclid\": \"\",\n      \"kind\": \"\",\n      \"limitAdTracking\": false,\n      \"matchId\": \"\",\n      \"mobileDeviceId\": \"\",\n      \"nonPersonalizedAd\": false,\n      \"ordinal\": \"\",\n      \"quantity\": \"\",\n      \"timestampMicros\": \"\",\n      \"treatmentForUnderage\": false,\n      \"value\": \"\"\n    }\n  ],\n  \"encryptionInfo\": {\n    \"encryptionEntityId\": \"\",\n    \"encryptionEntityType\": \"\",\n    \"encryptionSource\": \"\",\n    \"kind\": \"\"\n  },\n  \"kind\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/conversions/batchinsert")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/userprofiles/:profileId/conversions/batchinsert")
  .header("content-type", "application/json")
  .body("{\n  \"conversions\": [\n    {\n      \"childDirectedTreatment\": false,\n      \"customVariables\": [\n        {\n          \"kind\": \"\",\n          \"type\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"dclid\": \"\",\n      \"encryptedUserId\": \"\",\n      \"encryptedUserIdCandidates\": [],\n      \"floodlightActivityId\": \"\",\n      \"floodlightConfigurationId\": \"\",\n      \"gclid\": \"\",\n      \"kind\": \"\",\n      \"limitAdTracking\": false,\n      \"matchId\": \"\",\n      \"mobileDeviceId\": \"\",\n      \"nonPersonalizedAd\": false,\n      \"ordinal\": \"\",\n      \"quantity\": \"\",\n      \"timestampMicros\": \"\",\n      \"treatmentForUnderage\": false,\n      \"value\": \"\"\n    }\n  ],\n  \"encryptionInfo\": {\n    \"encryptionEntityId\": \"\",\n    \"encryptionEntityType\": \"\",\n    \"encryptionSource\": \"\",\n    \"kind\": \"\"\n  },\n  \"kind\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  conversions: [
    {
      childDirectedTreatment: false,
      customVariables: [
        {
          kind: '',
          type: '',
          value: ''
        }
      ],
      dclid: '',
      encryptedUserId: '',
      encryptedUserIdCandidates: [],
      floodlightActivityId: '',
      floodlightConfigurationId: '',
      gclid: '',
      kind: '',
      limitAdTracking: false,
      matchId: '',
      mobileDeviceId: '',
      nonPersonalizedAd: false,
      ordinal: '',
      quantity: '',
      timestampMicros: '',
      treatmentForUnderage: false,
      value: ''
    }
  ],
  encryptionInfo: {
    encryptionEntityId: '',
    encryptionEntityType: '',
    encryptionSource: '',
    kind: ''
  },
  kind: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/userprofiles/:profileId/conversions/batchinsert');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/userprofiles/:profileId/conversions/batchinsert',
  headers: {'content-type': 'application/json'},
  data: {
    conversions: [
      {
        childDirectedTreatment: false,
        customVariables: [{kind: '', type: '', value: ''}],
        dclid: '',
        encryptedUserId: '',
        encryptedUserIdCandidates: [],
        floodlightActivityId: '',
        floodlightConfigurationId: '',
        gclid: '',
        kind: '',
        limitAdTracking: false,
        matchId: '',
        mobileDeviceId: '',
        nonPersonalizedAd: false,
        ordinal: '',
        quantity: '',
        timestampMicros: '',
        treatmentForUnderage: false,
        value: ''
      }
    ],
    encryptionInfo: {
      encryptionEntityId: '',
      encryptionEntityType: '',
      encryptionSource: '',
      kind: ''
    },
    kind: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/conversions/batchinsert';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"conversions":[{"childDirectedTreatment":false,"customVariables":[{"kind":"","type":"","value":""}],"dclid":"","encryptedUserId":"","encryptedUserIdCandidates":[],"floodlightActivityId":"","floodlightConfigurationId":"","gclid":"","kind":"","limitAdTracking":false,"matchId":"","mobileDeviceId":"","nonPersonalizedAd":false,"ordinal":"","quantity":"","timestampMicros":"","treatmentForUnderage":false,"value":""}],"encryptionInfo":{"encryptionEntityId":"","encryptionEntityType":"","encryptionSource":"","kind":""},"kind":""}'
};

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}}/userprofiles/:profileId/conversions/batchinsert',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "conversions": [\n    {\n      "childDirectedTreatment": false,\n      "customVariables": [\n        {\n          "kind": "",\n          "type": "",\n          "value": ""\n        }\n      ],\n      "dclid": "",\n      "encryptedUserId": "",\n      "encryptedUserIdCandidates": [],\n      "floodlightActivityId": "",\n      "floodlightConfigurationId": "",\n      "gclid": "",\n      "kind": "",\n      "limitAdTracking": false,\n      "matchId": "",\n      "mobileDeviceId": "",\n      "nonPersonalizedAd": false,\n      "ordinal": "",\n      "quantity": "",\n      "timestampMicros": "",\n      "treatmentForUnderage": false,\n      "value": ""\n    }\n  ],\n  "encryptionInfo": {\n    "encryptionEntityId": "",\n    "encryptionEntityType": "",\n    "encryptionSource": "",\n    "kind": ""\n  },\n  "kind": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"conversions\": [\n    {\n      \"childDirectedTreatment\": false,\n      \"customVariables\": [\n        {\n          \"kind\": \"\",\n          \"type\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"dclid\": \"\",\n      \"encryptedUserId\": \"\",\n      \"encryptedUserIdCandidates\": [],\n      \"floodlightActivityId\": \"\",\n      \"floodlightConfigurationId\": \"\",\n      \"gclid\": \"\",\n      \"kind\": \"\",\n      \"limitAdTracking\": false,\n      \"matchId\": \"\",\n      \"mobileDeviceId\": \"\",\n      \"nonPersonalizedAd\": false,\n      \"ordinal\": \"\",\n      \"quantity\": \"\",\n      \"timestampMicros\": \"\",\n      \"treatmentForUnderage\": false,\n      \"value\": \"\"\n    }\n  ],\n  \"encryptionInfo\": {\n    \"encryptionEntityId\": \"\",\n    \"encryptionEntityType\": \"\",\n    \"encryptionSource\": \"\",\n    \"kind\": \"\"\n  },\n  \"kind\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/conversions/batchinsert")
  .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/userprofiles/:profileId/conversions/batchinsert',
  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({
  conversions: [
    {
      childDirectedTreatment: false,
      customVariables: [{kind: '', type: '', value: ''}],
      dclid: '',
      encryptedUserId: '',
      encryptedUserIdCandidates: [],
      floodlightActivityId: '',
      floodlightConfigurationId: '',
      gclid: '',
      kind: '',
      limitAdTracking: false,
      matchId: '',
      mobileDeviceId: '',
      nonPersonalizedAd: false,
      ordinal: '',
      quantity: '',
      timestampMicros: '',
      treatmentForUnderage: false,
      value: ''
    }
  ],
  encryptionInfo: {
    encryptionEntityId: '',
    encryptionEntityType: '',
    encryptionSource: '',
    kind: ''
  },
  kind: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/userprofiles/:profileId/conversions/batchinsert',
  headers: {'content-type': 'application/json'},
  body: {
    conversions: [
      {
        childDirectedTreatment: false,
        customVariables: [{kind: '', type: '', value: ''}],
        dclid: '',
        encryptedUserId: '',
        encryptedUserIdCandidates: [],
        floodlightActivityId: '',
        floodlightConfigurationId: '',
        gclid: '',
        kind: '',
        limitAdTracking: false,
        matchId: '',
        mobileDeviceId: '',
        nonPersonalizedAd: false,
        ordinal: '',
        quantity: '',
        timestampMicros: '',
        treatmentForUnderage: false,
        value: ''
      }
    ],
    encryptionInfo: {
      encryptionEntityId: '',
      encryptionEntityType: '',
      encryptionSource: '',
      kind: ''
    },
    kind: ''
  },
  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}}/userprofiles/:profileId/conversions/batchinsert');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  conversions: [
    {
      childDirectedTreatment: false,
      customVariables: [
        {
          kind: '',
          type: '',
          value: ''
        }
      ],
      dclid: '',
      encryptedUserId: '',
      encryptedUserIdCandidates: [],
      floodlightActivityId: '',
      floodlightConfigurationId: '',
      gclid: '',
      kind: '',
      limitAdTracking: false,
      matchId: '',
      mobileDeviceId: '',
      nonPersonalizedAd: false,
      ordinal: '',
      quantity: '',
      timestampMicros: '',
      treatmentForUnderage: false,
      value: ''
    }
  ],
  encryptionInfo: {
    encryptionEntityId: '',
    encryptionEntityType: '',
    encryptionSource: '',
    kind: ''
  },
  kind: ''
});

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}}/userprofiles/:profileId/conversions/batchinsert',
  headers: {'content-type': 'application/json'},
  data: {
    conversions: [
      {
        childDirectedTreatment: false,
        customVariables: [{kind: '', type: '', value: ''}],
        dclid: '',
        encryptedUserId: '',
        encryptedUserIdCandidates: [],
        floodlightActivityId: '',
        floodlightConfigurationId: '',
        gclid: '',
        kind: '',
        limitAdTracking: false,
        matchId: '',
        mobileDeviceId: '',
        nonPersonalizedAd: false,
        ordinal: '',
        quantity: '',
        timestampMicros: '',
        treatmentForUnderage: false,
        value: ''
      }
    ],
    encryptionInfo: {
      encryptionEntityId: '',
      encryptionEntityType: '',
      encryptionSource: '',
      kind: ''
    },
    kind: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/conversions/batchinsert';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"conversions":[{"childDirectedTreatment":false,"customVariables":[{"kind":"","type":"","value":""}],"dclid":"","encryptedUserId":"","encryptedUserIdCandidates":[],"floodlightActivityId":"","floodlightConfigurationId":"","gclid":"","kind":"","limitAdTracking":false,"matchId":"","mobileDeviceId":"","nonPersonalizedAd":false,"ordinal":"","quantity":"","timestampMicros":"","treatmentForUnderage":false,"value":""}],"encryptionInfo":{"encryptionEntityId":"","encryptionEntityType":"","encryptionSource":"","kind":""},"kind":""}'
};

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 = @{ @"conversions": @[ @{ @"childDirectedTreatment": @NO, @"customVariables": @[ @{ @"kind": @"", @"type": @"", @"value": @"" } ], @"dclid": @"", @"encryptedUserId": @"", @"encryptedUserIdCandidates": @[  ], @"floodlightActivityId": @"", @"floodlightConfigurationId": @"", @"gclid": @"", @"kind": @"", @"limitAdTracking": @NO, @"matchId": @"", @"mobileDeviceId": @"", @"nonPersonalizedAd": @NO, @"ordinal": @"", @"quantity": @"", @"timestampMicros": @"", @"treatmentForUnderage": @NO, @"value": @"" } ],
                              @"encryptionInfo": @{ @"encryptionEntityId": @"", @"encryptionEntityType": @"", @"encryptionSource": @"", @"kind": @"" },
                              @"kind": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/userprofiles/:profileId/conversions/batchinsert"]
                                                       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}}/userprofiles/:profileId/conversions/batchinsert" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"conversions\": [\n    {\n      \"childDirectedTreatment\": false,\n      \"customVariables\": [\n        {\n          \"kind\": \"\",\n          \"type\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"dclid\": \"\",\n      \"encryptedUserId\": \"\",\n      \"encryptedUserIdCandidates\": [],\n      \"floodlightActivityId\": \"\",\n      \"floodlightConfigurationId\": \"\",\n      \"gclid\": \"\",\n      \"kind\": \"\",\n      \"limitAdTracking\": false,\n      \"matchId\": \"\",\n      \"mobileDeviceId\": \"\",\n      \"nonPersonalizedAd\": false,\n      \"ordinal\": \"\",\n      \"quantity\": \"\",\n      \"timestampMicros\": \"\",\n      \"treatmentForUnderage\": false,\n      \"value\": \"\"\n    }\n  ],\n  \"encryptionInfo\": {\n    \"encryptionEntityId\": \"\",\n    \"encryptionEntityType\": \"\",\n    \"encryptionSource\": \"\",\n    \"kind\": \"\"\n  },\n  \"kind\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/conversions/batchinsert",
  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([
    'conversions' => [
        [
                'childDirectedTreatment' => null,
                'customVariables' => [
                                [
                                                                'kind' => '',
                                                                'type' => '',
                                                                'value' => ''
                                ]
                ],
                'dclid' => '',
                'encryptedUserId' => '',
                'encryptedUserIdCandidates' => [
                                
                ],
                'floodlightActivityId' => '',
                'floodlightConfigurationId' => '',
                'gclid' => '',
                'kind' => '',
                'limitAdTracking' => null,
                'matchId' => '',
                'mobileDeviceId' => '',
                'nonPersonalizedAd' => null,
                'ordinal' => '',
                'quantity' => '',
                'timestampMicros' => '',
                'treatmentForUnderage' => null,
                'value' => ''
        ]
    ],
    'encryptionInfo' => [
        'encryptionEntityId' => '',
        'encryptionEntityType' => '',
        'encryptionSource' => '',
        'kind' => ''
    ],
    'kind' => ''
  ]),
  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}}/userprofiles/:profileId/conversions/batchinsert', [
  'body' => '{
  "conversions": [
    {
      "childDirectedTreatment": false,
      "customVariables": [
        {
          "kind": "",
          "type": "",
          "value": ""
        }
      ],
      "dclid": "",
      "encryptedUserId": "",
      "encryptedUserIdCandidates": [],
      "floodlightActivityId": "",
      "floodlightConfigurationId": "",
      "gclid": "",
      "kind": "",
      "limitAdTracking": false,
      "matchId": "",
      "mobileDeviceId": "",
      "nonPersonalizedAd": false,
      "ordinal": "",
      "quantity": "",
      "timestampMicros": "",
      "treatmentForUnderage": false,
      "value": ""
    }
  ],
  "encryptionInfo": {
    "encryptionEntityId": "",
    "encryptionEntityType": "",
    "encryptionSource": "",
    "kind": ""
  },
  "kind": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/conversions/batchinsert');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'conversions' => [
    [
        'childDirectedTreatment' => null,
        'customVariables' => [
                [
                                'kind' => '',
                                'type' => '',
                                'value' => ''
                ]
        ],
        'dclid' => '',
        'encryptedUserId' => '',
        'encryptedUserIdCandidates' => [
                
        ],
        'floodlightActivityId' => '',
        'floodlightConfigurationId' => '',
        'gclid' => '',
        'kind' => '',
        'limitAdTracking' => null,
        'matchId' => '',
        'mobileDeviceId' => '',
        'nonPersonalizedAd' => null,
        'ordinal' => '',
        'quantity' => '',
        'timestampMicros' => '',
        'treatmentForUnderage' => null,
        'value' => ''
    ]
  ],
  'encryptionInfo' => [
    'encryptionEntityId' => '',
    'encryptionEntityType' => '',
    'encryptionSource' => '',
    'kind' => ''
  ],
  'kind' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'conversions' => [
    [
        'childDirectedTreatment' => null,
        'customVariables' => [
                [
                                'kind' => '',
                                'type' => '',
                                'value' => ''
                ]
        ],
        'dclid' => '',
        'encryptedUserId' => '',
        'encryptedUserIdCandidates' => [
                
        ],
        'floodlightActivityId' => '',
        'floodlightConfigurationId' => '',
        'gclid' => '',
        'kind' => '',
        'limitAdTracking' => null,
        'matchId' => '',
        'mobileDeviceId' => '',
        'nonPersonalizedAd' => null,
        'ordinal' => '',
        'quantity' => '',
        'timestampMicros' => '',
        'treatmentForUnderage' => null,
        'value' => ''
    ]
  ],
  'encryptionInfo' => [
    'encryptionEntityId' => '',
    'encryptionEntityType' => '',
    'encryptionSource' => '',
    'kind' => ''
  ],
  'kind' => ''
]));
$request->setRequestUrl('{{baseUrl}}/userprofiles/:profileId/conversions/batchinsert');
$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}}/userprofiles/:profileId/conversions/batchinsert' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "conversions": [
    {
      "childDirectedTreatment": false,
      "customVariables": [
        {
          "kind": "",
          "type": "",
          "value": ""
        }
      ],
      "dclid": "",
      "encryptedUserId": "",
      "encryptedUserIdCandidates": [],
      "floodlightActivityId": "",
      "floodlightConfigurationId": "",
      "gclid": "",
      "kind": "",
      "limitAdTracking": false,
      "matchId": "",
      "mobileDeviceId": "",
      "nonPersonalizedAd": false,
      "ordinal": "",
      "quantity": "",
      "timestampMicros": "",
      "treatmentForUnderage": false,
      "value": ""
    }
  ],
  "encryptionInfo": {
    "encryptionEntityId": "",
    "encryptionEntityType": "",
    "encryptionSource": "",
    "kind": ""
  },
  "kind": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/conversions/batchinsert' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "conversions": [
    {
      "childDirectedTreatment": false,
      "customVariables": [
        {
          "kind": "",
          "type": "",
          "value": ""
        }
      ],
      "dclid": "",
      "encryptedUserId": "",
      "encryptedUserIdCandidates": [],
      "floodlightActivityId": "",
      "floodlightConfigurationId": "",
      "gclid": "",
      "kind": "",
      "limitAdTracking": false,
      "matchId": "",
      "mobileDeviceId": "",
      "nonPersonalizedAd": false,
      "ordinal": "",
      "quantity": "",
      "timestampMicros": "",
      "treatmentForUnderage": false,
      "value": ""
    }
  ],
  "encryptionInfo": {
    "encryptionEntityId": "",
    "encryptionEntityType": "",
    "encryptionSource": "",
    "kind": ""
  },
  "kind": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"conversions\": [\n    {\n      \"childDirectedTreatment\": false,\n      \"customVariables\": [\n        {\n          \"kind\": \"\",\n          \"type\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"dclid\": \"\",\n      \"encryptedUserId\": \"\",\n      \"encryptedUserIdCandidates\": [],\n      \"floodlightActivityId\": \"\",\n      \"floodlightConfigurationId\": \"\",\n      \"gclid\": \"\",\n      \"kind\": \"\",\n      \"limitAdTracking\": false,\n      \"matchId\": \"\",\n      \"mobileDeviceId\": \"\",\n      \"nonPersonalizedAd\": false,\n      \"ordinal\": \"\",\n      \"quantity\": \"\",\n      \"timestampMicros\": \"\",\n      \"treatmentForUnderage\": false,\n      \"value\": \"\"\n    }\n  ],\n  \"encryptionInfo\": {\n    \"encryptionEntityId\": \"\",\n    \"encryptionEntityType\": \"\",\n    \"encryptionSource\": \"\",\n    \"kind\": \"\"\n  },\n  \"kind\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/userprofiles/:profileId/conversions/batchinsert", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/conversions/batchinsert"

payload = {
    "conversions": [
        {
            "childDirectedTreatment": False,
            "customVariables": [
                {
                    "kind": "",
                    "type": "",
                    "value": ""
                }
            ],
            "dclid": "",
            "encryptedUserId": "",
            "encryptedUserIdCandidates": [],
            "floodlightActivityId": "",
            "floodlightConfigurationId": "",
            "gclid": "",
            "kind": "",
            "limitAdTracking": False,
            "matchId": "",
            "mobileDeviceId": "",
            "nonPersonalizedAd": False,
            "ordinal": "",
            "quantity": "",
            "timestampMicros": "",
            "treatmentForUnderage": False,
            "value": ""
        }
    ],
    "encryptionInfo": {
        "encryptionEntityId": "",
        "encryptionEntityType": "",
        "encryptionSource": "",
        "kind": ""
    },
    "kind": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/conversions/batchinsert"

payload <- "{\n  \"conversions\": [\n    {\n      \"childDirectedTreatment\": false,\n      \"customVariables\": [\n        {\n          \"kind\": \"\",\n          \"type\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"dclid\": \"\",\n      \"encryptedUserId\": \"\",\n      \"encryptedUserIdCandidates\": [],\n      \"floodlightActivityId\": \"\",\n      \"floodlightConfigurationId\": \"\",\n      \"gclid\": \"\",\n      \"kind\": \"\",\n      \"limitAdTracking\": false,\n      \"matchId\": \"\",\n      \"mobileDeviceId\": \"\",\n      \"nonPersonalizedAd\": false,\n      \"ordinal\": \"\",\n      \"quantity\": \"\",\n      \"timestampMicros\": \"\",\n      \"treatmentForUnderage\": false,\n      \"value\": \"\"\n    }\n  ],\n  \"encryptionInfo\": {\n    \"encryptionEntityId\": \"\",\n    \"encryptionEntityType\": \"\",\n    \"encryptionSource\": \"\",\n    \"kind\": \"\"\n  },\n  \"kind\": \"\"\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}}/userprofiles/:profileId/conversions/batchinsert")

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  \"conversions\": [\n    {\n      \"childDirectedTreatment\": false,\n      \"customVariables\": [\n        {\n          \"kind\": \"\",\n          \"type\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"dclid\": \"\",\n      \"encryptedUserId\": \"\",\n      \"encryptedUserIdCandidates\": [],\n      \"floodlightActivityId\": \"\",\n      \"floodlightConfigurationId\": \"\",\n      \"gclid\": \"\",\n      \"kind\": \"\",\n      \"limitAdTracking\": false,\n      \"matchId\": \"\",\n      \"mobileDeviceId\": \"\",\n      \"nonPersonalizedAd\": false,\n      \"ordinal\": \"\",\n      \"quantity\": \"\",\n      \"timestampMicros\": \"\",\n      \"treatmentForUnderage\": false,\n      \"value\": \"\"\n    }\n  ],\n  \"encryptionInfo\": {\n    \"encryptionEntityId\": \"\",\n    \"encryptionEntityType\": \"\",\n    \"encryptionSource\": \"\",\n    \"kind\": \"\"\n  },\n  \"kind\": \"\"\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/userprofiles/:profileId/conversions/batchinsert') do |req|
  req.body = "{\n  \"conversions\": [\n    {\n      \"childDirectedTreatment\": false,\n      \"customVariables\": [\n        {\n          \"kind\": \"\",\n          \"type\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"dclid\": \"\",\n      \"encryptedUserId\": \"\",\n      \"encryptedUserIdCandidates\": [],\n      \"floodlightActivityId\": \"\",\n      \"floodlightConfigurationId\": \"\",\n      \"gclid\": \"\",\n      \"kind\": \"\",\n      \"limitAdTracking\": false,\n      \"matchId\": \"\",\n      \"mobileDeviceId\": \"\",\n      \"nonPersonalizedAd\": false,\n      \"ordinal\": \"\",\n      \"quantity\": \"\",\n      \"timestampMicros\": \"\",\n      \"treatmentForUnderage\": false,\n      \"value\": \"\"\n    }\n  ],\n  \"encryptionInfo\": {\n    \"encryptionEntityId\": \"\",\n    \"encryptionEntityType\": \"\",\n    \"encryptionSource\": \"\",\n    \"kind\": \"\"\n  },\n  \"kind\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/conversions/batchinsert";

    let payload = json!({
        "conversions": (
            json!({
                "childDirectedTreatment": false,
                "customVariables": (
                    json!({
                        "kind": "",
                        "type": "",
                        "value": ""
                    })
                ),
                "dclid": "",
                "encryptedUserId": "",
                "encryptedUserIdCandidates": (),
                "floodlightActivityId": "",
                "floodlightConfigurationId": "",
                "gclid": "",
                "kind": "",
                "limitAdTracking": false,
                "matchId": "",
                "mobileDeviceId": "",
                "nonPersonalizedAd": false,
                "ordinal": "",
                "quantity": "",
                "timestampMicros": "",
                "treatmentForUnderage": false,
                "value": ""
            })
        ),
        "encryptionInfo": json!({
            "encryptionEntityId": "",
            "encryptionEntityType": "",
            "encryptionSource": "",
            "kind": ""
        }),
        "kind": ""
    });

    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}}/userprofiles/:profileId/conversions/batchinsert \
  --header 'content-type: application/json' \
  --data '{
  "conversions": [
    {
      "childDirectedTreatment": false,
      "customVariables": [
        {
          "kind": "",
          "type": "",
          "value": ""
        }
      ],
      "dclid": "",
      "encryptedUserId": "",
      "encryptedUserIdCandidates": [],
      "floodlightActivityId": "",
      "floodlightConfigurationId": "",
      "gclid": "",
      "kind": "",
      "limitAdTracking": false,
      "matchId": "",
      "mobileDeviceId": "",
      "nonPersonalizedAd": false,
      "ordinal": "",
      "quantity": "",
      "timestampMicros": "",
      "treatmentForUnderage": false,
      "value": ""
    }
  ],
  "encryptionInfo": {
    "encryptionEntityId": "",
    "encryptionEntityType": "",
    "encryptionSource": "",
    "kind": ""
  },
  "kind": ""
}'
echo '{
  "conversions": [
    {
      "childDirectedTreatment": false,
      "customVariables": [
        {
          "kind": "",
          "type": "",
          "value": ""
        }
      ],
      "dclid": "",
      "encryptedUserId": "",
      "encryptedUserIdCandidates": [],
      "floodlightActivityId": "",
      "floodlightConfigurationId": "",
      "gclid": "",
      "kind": "",
      "limitAdTracking": false,
      "matchId": "",
      "mobileDeviceId": "",
      "nonPersonalizedAd": false,
      "ordinal": "",
      "quantity": "",
      "timestampMicros": "",
      "treatmentForUnderage": false,
      "value": ""
    }
  ],
  "encryptionInfo": {
    "encryptionEntityId": "",
    "encryptionEntityType": "",
    "encryptionSource": "",
    "kind": ""
  },
  "kind": ""
}' |  \
  http POST {{baseUrl}}/userprofiles/:profileId/conversions/batchinsert \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "conversions": [\n    {\n      "childDirectedTreatment": false,\n      "customVariables": [\n        {\n          "kind": "",\n          "type": "",\n          "value": ""\n        }\n      ],\n      "dclid": "",\n      "encryptedUserId": "",\n      "encryptedUserIdCandidates": [],\n      "floodlightActivityId": "",\n      "floodlightConfigurationId": "",\n      "gclid": "",\n      "kind": "",\n      "limitAdTracking": false,\n      "matchId": "",\n      "mobileDeviceId": "",\n      "nonPersonalizedAd": false,\n      "ordinal": "",\n      "quantity": "",\n      "timestampMicros": "",\n      "treatmentForUnderage": false,\n      "value": ""\n    }\n  ],\n  "encryptionInfo": {\n    "encryptionEntityId": "",\n    "encryptionEntityType": "",\n    "encryptionSource": "",\n    "kind": ""\n  },\n  "kind": ""\n}' \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/conversions/batchinsert
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "conversions": [
    [
      "childDirectedTreatment": false,
      "customVariables": [
        [
          "kind": "",
          "type": "",
          "value": ""
        ]
      ],
      "dclid": "",
      "encryptedUserId": "",
      "encryptedUserIdCandidates": [],
      "floodlightActivityId": "",
      "floodlightConfigurationId": "",
      "gclid": "",
      "kind": "",
      "limitAdTracking": false,
      "matchId": "",
      "mobileDeviceId": "",
      "nonPersonalizedAd": false,
      "ordinal": "",
      "quantity": "",
      "timestampMicros": "",
      "treatmentForUnderage": false,
      "value": ""
    ]
  ],
  "encryptionInfo": [
    "encryptionEntityId": "",
    "encryptionEntityType": "",
    "encryptionSource": "",
    "kind": ""
  ],
  "kind": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/conversions/batchinsert")! 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 dfareporting.conversions.batchupdate
{{baseUrl}}/userprofiles/:profileId/conversions/batchupdate
QUERY PARAMS

profileId
BODY json

{
  "conversions": [
    {
      "childDirectedTreatment": false,
      "customVariables": [
        {
          "kind": "",
          "type": "",
          "value": ""
        }
      ],
      "dclid": "",
      "encryptedUserId": "",
      "encryptedUserIdCandidates": [],
      "floodlightActivityId": "",
      "floodlightConfigurationId": "",
      "gclid": "",
      "kind": "",
      "limitAdTracking": false,
      "matchId": "",
      "mobileDeviceId": "",
      "nonPersonalizedAd": false,
      "ordinal": "",
      "quantity": "",
      "timestampMicros": "",
      "treatmentForUnderage": false,
      "value": ""
    }
  ],
  "encryptionInfo": {
    "encryptionEntityId": "",
    "encryptionEntityType": "",
    "encryptionSource": "",
    "kind": ""
  },
  "kind": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/conversions/batchupdate");

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  \"conversions\": [\n    {\n      \"childDirectedTreatment\": false,\n      \"customVariables\": [\n        {\n          \"kind\": \"\",\n          \"type\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"dclid\": \"\",\n      \"encryptedUserId\": \"\",\n      \"encryptedUserIdCandidates\": [],\n      \"floodlightActivityId\": \"\",\n      \"floodlightConfigurationId\": \"\",\n      \"gclid\": \"\",\n      \"kind\": \"\",\n      \"limitAdTracking\": false,\n      \"matchId\": \"\",\n      \"mobileDeviceId\": \"\",\n      \"nonPersonalizedAd\": false,\n      \"ordinal\": \"\",\n      \"quantity\": \"\",\n      \"timestampMicros\": \"\",\n      \"treatmentForUnderage\": false,\n      \"value\": \"\"\n    }\n  ],\n  \"encryptionInfo\": {\n    \"encryptionEntityId\": \"\",\n    \"encryptionEntityType\": \"\",\n    \"encryptionSource\": \"\",\n    \"kind\": \"\"\n  },\n  \"kind\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/userprofiles/:profileId/conversions/batchupdate" {:content-type :json
                                                                                            :form-params {:conversions [{:childDirectedTreatment false
                                                                                                                         :customVariables [{:kind ""
                                                                                                                                            :type ""
                                                                                                                                            :value ""}]
                                                                                                                         :dclid ""
                                                                                                                         :encryptedUserId ""
                                                                                                                         :encryptedUserIdCandidates []
                                                                                                                         :floodlightActivityId ""
                                                                                                                         :floodlightConfigurationId ""
                                                                                                                         :gclid ""
                                                                                                                         :kind ""
                                                                                                                         :limitAdTracking false
                                                                                                                         :matchId ""
                                                                                                                         :mobileDeviceId ""
                                                                                                                         :nonPersonalizedAd false
                                                                                                                         :ordinal ""
                                                                                                                         :quantity ""
                                                                                                                         :timestampMicros ""
                                                                                                                         :treatmentForUnderage false
                                                                                                                         :value ""}]
                                                                                                          :encryptionInfo {:encryptionEntityId ""
                                                                                                                           :encryptionEntityType ""
                                                                                                                           :encryptionSource ""
                                                                                                                           :kind ""}
                                                                                                          :kind ""}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/conversions/batchupdate"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"conversions\": [\n    {\n      \"childDirectedTreatment\": false,\n      \"customVariables\": [\n        {\n          \"kind\": \"\",\n          \"type\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"dclid\": \"\",\n      \"encryptedUserId\": \"\",\n      \"encryptedUserIdCandidates\": [],\n      \"floodlightActivityId\": \"\",\n      \"floodlightConfigurationId\": \"\",\n      \"gclid\": \"\",\n      \"kind\": \"\",\n      \"limitAdTracking\": false,\n      \"matchId\": \"\",\n      \"mobileDeviceId\": \"\",\n      \"nonPersonalizedAd\": false,\n      \"ordinal\": \"\",\n      \"quantity\": \"\",\n      \"timestampMicros\": \"\",\n      \"treatmentForUnderage\": false,\n      \"value\": \"\"\n    }\n  ],\n  \"encryptionInfo\": {\n    \"encryptionEntityId\": \"\",\n    \"encryptionEntityType\": \"\",\n    \"encryptionSource\": \"\",\n    \"kind\": \"\"\n  },\n  \"kind\": \"\"\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}}/userprofiles/:profileId/conversions/batchupdate"),
    Content = new StringContent("{\n  \"conversions\": [\n    {\n      \"childDirectedTreatment\": false,\n      \"customVariables\": [\n        {\n          \"kind\": \"\",\n          \"type\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"dclid\": \"\",\n      \"encryptedUserId\": \"\",\n      \"encryptedUserIdCandidates\": [],\n      \"floodlightActivityId\": \"\",\n      \"floodlightConfigurationId\": \"\",\n      \"gclid\": \"\",\n      \"kind\": \"\",\n      \"limitAdTracking\": false,\n      \"matchId\": \"\",\n      \"mobileDeviceId\": \"\",\n      \"nonPersonalizedAd\": false,\n      \"ordinal\": \"\",\n      \"quantity\": \"\",\n      \"timestampMicros\": \"\",\n      \"treatmentForUnderage\": false,\n      \"value\": \"\"\n    }\n  ],\n  \"encryptionInfo\": {\n    \"encryptionEntityId\": \"\",\n    \"encryptionEntityType\": \"\",\n    \"encryptionSource\": \"\",\n    \"kind\": \"\"\n  },\n  \"kind\": \"\"\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}}/userprofiles/:profileId/conversions/batchupdate");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"conversions\": [\n    {\n      \"childDirectedTreatment\": false,\n      \"customVariables\": [\n        {\n          \"kind\": \"\",\n          \"type\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"dclid\": \"\",\n      \"encryptedUserId\": \"\",\n      \"encryptedUserIdCandidates\": [],\n      \"floodlightActivityId\": \"\",\n      \"floodlightConfigurationId\": \"\",\n      \"gclid\": \"\",\n      \"kind\": \"\",\n      \"limitAdTracking\": false,\n      \"matchId\": \"\",\n      \"mobileDeviceId\": \"\",\n      \"nonPersonalizedAd\": false,\n      \"ordinal\": \"\",\n      \"quantity\": \"\",\n      \"timestampMicros\": \"\",\n      \"treatmentForUnderage\": false,\n      \"value\": \"\"\n    }\n  ],\n  \"encryptionInfo\": {\n    \"encryptionEntityId\": \"\",\n    \"encryptionEntityType\": \"\",\n    \"encryptionSource\": \"\",\n    \"kind\": \"\"\n  },\n  \"kind\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/conversions/batchupdate"

	payload := strings.NewReader("{\n  \"conversions\": [\n    {\n      \"childDirectedTreatment\": false,\n      \"customVariables\": [\n        {\n          \"kind\": \"\",\n          \"type\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"dclid\": \"\",\n      \"encryptedUserId\": \"\",\n      \"encryptedUserIdCandidates\": [],\n      \"floodlightActivityId\": \"\",\n      \"floodlightConfigurationId\": \"\",\n      \"gclid\": \"\",\n      \"kind\": \"\",\n      \"limitAdTracking\": false,\n      \"matchId\": \"\",\n      \"mobileDeviceId\": \"\",\n      \"nonPersonalizedAd\": false,\n      \"ordinal\": \"\",\n      \"quantity\": \"\",\n      \"timestampMicros\": \"\",\n      \"treatmentForUnderage\": false,\n      \"value\": \"\"\n    }\n  ],\n  \"encryptionInfo\": {\n    \"encryptionEntityId\": \"\",\n    \"encryptionEntityType\": \"\",\n    \"encryptionSource\": \"\",\n    \"kind\": \"\"\n  },\n  \"kind\": \"\"\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/userprofiles/:profileId/conversions/batchupdate HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 784

{
  "conversions": [
    {
      "childDirectedTreatment": false,
      "customVariables": [
        {
          "kind": "",
          "type": "",
          "value": ""
        }
      ],
      "dclid": "",
      "encryptedUserId": "",
      "encryptedUserIdCandidates": [],
      "floodlightActivityId": "",
      "floodlightConfigurationId": "",
      "gclid": "",
      "kind": "",
      "limitAdTracking": false,
      "matchId": "",
      "mobileDeviceId": "",
      "nonPersonalizedAd": false,
      "ordinal": "",
      "quantity": "",
      "timestampMicros": "",
      "treatmentForUnderage": false,
      "value": ""
    }
  ],
  "encryptionInfo": {
    "encryptionEntityId": "",
    "encryptionEntityType": "",
    "encryptionSource": "",
    "kind": ""
  },
  "kind": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/userprofiles/:profileId/conversions/batchupdate")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"conversions\": [\n    {\n      \"childDirectedTreatment\": false,\n      \"customVariables\": [\n        {\n          \"kind\": \"\",\n          \"type\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"dclid\": \"\",\n      \"encryptedUserId\": \"\",\n      \"encryptedUserIdCandidates\": [],\n      \"floodlightActivityId\": \"\",\n      \"floodlightConfigurationId\": \"\",\n      \"gclid\": \"\",\n      \"kind\": \"\",\n      \"limitAdTracking\": false,\n      \"matchId\": \"\",\n      \"mobileDeviceId\": \"\",\n      \"nonPersonalizedAd\": false,\n      \"ordinal\": \"\",\n      \"quantity\": \"\",\n      \"timestampMicros\": \"\",\n      \"treatmentForUnderage\": false,\n      \"value\": \"\"\n    }\n  ],\n  \"encryptionInfo\": {\n    \"encryptionEntityId\": \"\",\n    \"encryptionEntityType\": \"\",\n    \"encryptionSource\": \"\",\n    \"kind\": \"\"\n  },\n  \"kind\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/conversions/batchupdate"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"conversions\": [\n    {\n      \"childDirectedTreatment\": false,\n      \"customVariables\": [\n        {\n          \"kind\": \"\",\n          \"type\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"dclid\": \"\",\n      \"encryptedUserId\": \"\",\n      \"encryptedUserIdCandidates\": [],\n      \"floodlightActivityId\": \"\",\n      \"floodlightConfigurationId\": \"\",\n      \"gclid\": \"\",\n      \"kind\": \"\",\n      \"limitAdTracking\": false,\n      \"matchId\": \"\",\n      \"mobileDeviceId\": \"\",\n      \"nonPersonalizedAd\": false,\n      \"ordinal\": \"\",\n      \"quantity\": \"\",\n      \"timestampMicros\": \"\",\n      \"treatmentForUnderage\": false,\n      \"value\": \"\"\n    }\n  ],\n  \"encryptionInfo\": {\n    \"encryptionEntityId\": \"\",\n    \"encryptionEntityType\": \"\",\n    \"encryptionSource\": \"\",\n    \"kind\": \"\"\n  },\n  \"kind\": \"\"\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  \"conversions\": [\n    {\n      \"childDirectedTreatment\": false,\n      \"customVariables\": [\n        {\n          \"kind\": \"\",\n          \"type\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"dclid\": \"\",\n      \"encryptedUserId\": \"\",\n      \"encryptedUserIdCandidates\": [],\n      \"floodlightActivityId\": \"\",\n      \"floodlightConfigurationId\": \"\",\n      \"gclid\": \"\",\n      \"kind\": \"\",\n      \"limitAdTracking\": false,\n      \"matchId\": \"\",\n      \"mobileDeviceId\": \"\",\n      \"nonPersonalizedAd\": false,\n      \"ordinal\": \"\",\n      \"quantity\": \"\",\n      \"timestampMicros\": \"\",\n      \"treatmentForUnderage\": false,\n      \"value\": \"\"\n    }\n  ],\n  \"encryptionInfo\": {\n    \"encryptionEntityId\": \"\",\n    \"encryptionEntityType\": \"\",\n    \"encryptionSource\": \"\",\n    \"kind\": \"\"\n  },\n  \"kind\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/conversions/batchupdate")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/userprofiles/:profileId/conversions/batchupdate")
  .header("content-type", "application/json")
  .body("{\n  \"conversions\": [\n    {\n      \"childDirectedTreatment\": false,\n      \"customVariables\": [\n        {\n          \"kind\": \"\",\n          \"type\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"dclid\": \"\",\n      \"encryptedUserId\": \"\",\n      \"encryptedUserIdCandidates\": [],\n      \"floodlightActivityId\": \"\",\n      \"floodlightConfigurationId\": \"\",\n      \"gclid\": \"\",\n      \"kind\": \"\",\n      \"limitAdTracking\": false,\n      \"matchId\": \"\",\n      \"mobileDeviceId\": \"\",\n      \"nonPersonalizedAd\": false,\n      \"ordinal\": \"\",\n      \"quantity\": \"\",\n      \"timestampMicros\": \"\",\n      \"treatmentForUnderage\": false,\n      \"value\": \"\"\n    }\n  ],\n  \"encryptionInfo\": {\n    \"encryptionEntityId\": \"\",\n    \"encryptionEntityType\": \"\",\n    \"encryptionSource\": \"\",\n    \"kind\": \"\"\n  },\n  \"kind\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  conversions: [
    {
      childDirectedTreatment: false,
      customVariables: [
        {
          kind: '',
          type: '',
          value: ''
        }
      ],
      dclid: '',
      encryptedUserId: '',
      encryptedUserIdCandidates: [],
      floodlightActivityId: '',
      floodlightConfigurationId: '',
      gclid: '',
      kind: '',
      limitAdTracking: false,
      matchId: '',
      mobileDeviceId: '',
      nonPersonalizedAd: false,
      ordinal: '',
      quantity: '',
      timestampMicros: '',
      treatmentForUnderage: false,
      value: ''
    }
  ],
  encryptionInfo: {
    encryptionEntityId: '',
    encryptionEntityType: '',
    encryptionSource: '',
    kind: ''
  },
  kind: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/userprofiles/:profileId/conversions/batchupdate');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/userprofiles/:profileId/conversions/batchupdate',
  headers: {'content-type': 'application/json'},
  data: {
    conversions: [
      {
        childDirectedTreatment: false,
        customVariables: [{kind: '', type: '', value: ''}],
        dclid: '',
        encryptedUserId: '',
        encryptedUserIdCandidates: [],
        floodlightActivityId: '',
        floodlightConfigurationId: '',
        gclid: '',
        kind: '',
        limitAdTracking: false,
        matchId: '',
        mobileDeviceId: '',
        nonPersonalizedAd: false,
        ordinal: '',
        quantity: '',
        timestampMicros: '',
        treatmentForUnderage: false,
        value: ''
      }
    ],
    encryptionInfo: {
      encryptionEntityId: '',
      encryptionEntityType: '',
      encryptionSource: '',
      kind: ''
    },
    kind: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/conversions/batchupdate';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"conversions":[{"childDirectedTreatment":false,"customVariables":[{"kind":"","type":"","value":""}],"dclid":"","encryptedUserId":"","encryptedUserIdCandidates":[],"floodlightActivityId":"","floodlightConfigurationId":"","gclid":"","kind":"","limitAdTracking":false,"matchId":"","mobileDeviceId":"","nonPersonalizedAd":false,"ordinal":"","quantity":"","timestampMicros":"","treatmentForUnderage":false,"value":""}],"encryptionInfo":{"encryptionEntityId":"","encryptionEntityType":"","encryptionSource":"","kind":""},"kind":""}'
};

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}}/userprofiles/:profileId/conversions/batchupdate',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "conversions": [\n    {\n      "childDirectedTreatment": false,\n      "customVariables": [\n        {\n          "kind": "",\n          "type": "",\n          "value": ""\n        }\n      ],\n      "dclid": "",\n      "encryptedUserId": "",\n      "encryptedUserIdCandidates": [],\n      "floodlightActivityId": "",\n      "floodlightConfigurationId": "",\n      "gclid": "",\n      "kind": "",\n      "limitAdTracking": false,\n      "matchId": "",\n      "mobileDeviceId": "",\n      "nonPersonalizedAd": false,\n      "ordinal": "",\n      "quantity": "",\n      "timestampMicros": "",\n      "treatmentForUnderage": false,\n      "value": ""\n    }\n  ],\n  "encryptionInfo": {\n    "encryptionEntityId": "",\n    "encryptionEntityType": "",\n    "encryptionSource": "",\n    "kind": ""\n  },\n  "kind": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"conversions\": [\n    {\n      \"childDirectedTreatment\": false,\n      \"customVariables\": [\n        {\n          \"kind\": \"\",\n          \"type\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"dclid\": \"\",\n      \"encryptedUserId\": \"\",\n      \"encryptedUserIdCandidates\": [],\n      \"floodlightActivityId\": \"\",\n      \"floodlightConfigurationId\": \"\",\n      \"gclid\": \"\",\n      \"kind\": \"\",\n      \"limitAdTracking\": false,\n      \"matchId\": \"\",\n      \"mobileDeviceId\": \"\",\n      \"nonPersonalizedAd\": false,\n      \"ordinal\": \"\",\n      \"quantity\": \"\",\n      \"timestampMicros\": \"\",\n      \"treatmentForUnderage\": false,\n      \"value\": \"\"\n    }\n  ],\n  \"encryptionInfo\": {\n    \"encryptionEntityId\": \"\",\n    \"encryptionEntityType\": \"\",\n    \"encryptionSource\": \"\",\n    \"kind\": \"\"\n  },\n  \"kind\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/conversions/batchupdate")
  .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/userprofiles/:profileId/conversions/batchupdate',
  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({
  conversions: [
    {
      childDirectedTreatment: false,
      customVariables: [{kind: '', type: '', value: ''}],
      dclid: '',
      encryptedUserId: '',
      encryptedUserIdCandidates: [],
      floodlightActivityId: '',
      floodlightConfigurationId: '',
      gclid: '',
      kind: '',
      limitAdTracking: false,
      matchId: '',
      mobileDeviceId: '',
      nonPersonalizedAd: false,
      ordinal: '',
      quantity: '',
      timestampMicros: '',
      treatmentForUnderage: false,
      value: ''
    }
  ],
  encryptionInfo: {
    encryptionEntityId: '',
    encryptionEntityType: '',
    encryptionSource: '',
    kind: ''
  },
  kind: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/userprofiles/:profileId/conversions/batchupdate',
  headers: {'content-type': 'application/json'},
  body: {
    conversions: [
      {
        childDirectedTreatment: false,
        customVariables: [{kind: '', type: '', value: ''}],
        dclid: '',
        encryptedUserId: '',
        encryptedUserIdCandidates: [],
        floodlightActivityId: '',
        floodlightConfigurationId: '',
        gclid: '',
        kind: '',
        limitAdTracking: false,
        matchId: '',
        mobileDeviceId: '',
        nonPersonalizedAd: false,
        ordinal: '',
        quantity: '',
        timestampMicros: '',
        treatmentForUnderage: false,
        value: ''
      }
    ],
    encryptionInfo: {
      encryptionEntityId: '',
      encryptionEntityType: '',
      encryptionSource: '',
      kind: ''
    },
    kind: ''
  },
  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}}/userprofiles/:profileId/conversions/batchupdate');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  conversions: [
    {
      childDirectedTreatment: false,
      customVariables: [
        {
          kind: '',
          type: '',
          value: ''
        }
      ],
      dclid: '',
      encryptedUserId: '',
      encryptedUserIdCandidates: [],
      floodlightActivityId: '',
      floodlightConfigurationId: '',
      gclid: '',
      kind: '',
      limitAdTracking: false,
      matchId: '',
      mobileDeviceId: '',
      nonPersonalizedAd: false,
      ordinal: '',
      quantity: '',
      timestampMicros: '',
      treatmentForUnderage: false,
      value: ''
    }
  ],
  encryptionInfo: {
    encryptionEntityId: '',
    encryptionEntityType: '',
    encryptionSource: '',
    kind: ''
  },
  kind: ''
});

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}}/userprofiles/:profileId/conversions/batchupdate',
  headers: {'content-type': 'application/json'},
  data: {
    conversions: [
      {
        childDirectedTreatment: false,
        customVariables: [{kind: '', type: '', value: ''}],
        dclid: '',
        encryptedUserId: '',
        encryptedUserIdCandidates: [],
        floodlightActivityId: '',
        floodlightConfigurationId: '',
        gclid: '',
        kind: '',
        limitAdTracking: false,
        matchId: '',
        mobileDeviceId: '',
        nonPersonalizedAd: false,
        ordinal: '',
        quantity: '',
        timestampMicros: '',
        treatmentForUnderage: false,
        value: ''
      }
    ],
    encryptionInfo: {
      encryptionEntityId: '',
      encryptionEntityType: '',
      encryptionSource: '',
      kind: ''
    },
    kind: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/conversions/batchupdate';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"conversions":[{"childDirectedTreatment":false,"customVariables":[{"kind":"","type":"","value":""}],"dclid":"","encryptedUserId":"","encryptedUserIdCandidates":[],"floodlightActivityId":"","floodlightConfigurationId":"","gclid":"","kind":"","limitAdTracking":false,"matchId":"","mobileDeviceId":"","nonPersonalizedAd":false,"ordinal":"","quantity":"","timestampMicros":"","treatmentForUnderage":false,"value":""}],"encryptionInfo":{"encryptionEntityId":"","encryptionEntityType":"","encryptionSource":"","kind":""},"kind":""}'
};

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 = @{ @"conversions": @[ @{ @"childDirectedTreatment": @NO, @"customVariables": @[ @{ @"kind": @"", @"type": @"", @"value": @"" } ], @"dclid": @"", @"encryptedUserId": @"", @"encryptedUserIdCandidates": @[  ], @"floodlightActivityId": @"", @"floodlightConfigurationId": @"", @"gclid": @"", @"kind": @"", @"limitAdTracking": @NO, @"matchId": @"", @"mobileDeviceId": @"", @"nonPersonalizedAd": @NO, @"ordinal": @"", @"quantity": @"", @"timestampMicros": @"", @"treatmentForUnderage": @NO, @"value": @"" } ],
                              @"encryptionInfo": @{ @"encryptionEntityId": @"", @"encryptionEntityType": @"", @"encryptionSource": @"", @"kind": @"" },
                              @"kind": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/userprofiles/:profileId/conversions/batchupdate"]
                                                       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}}/userprofiles/:profileId/conversions/batchupdate" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"conversions\": [\n    {\n      \"childDirectedTreatment\": false,\n      \"customVariables\": [\n        {\n          \"kind\": \"\",\n          \"type\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"dclid\": \"\",\n      \"encryptedUserId\": \"\",\n      \"encryptedUserIdCandidates\": [],\n      \"floodlightActivityId\": \"\",\n      \"floodlightConfigurationId\": \"\",\n      \"gclid\": \"\",\n      \"kind\": \"\",\n      \"limitAdTracking\": false,\n      \"matchId\": \"\",\n      \"mobileDeviceId\": \"\",\n      \"nonPersonalizedAd\": false,\n      \"ordinal\": \"\",\n      \"quantity\": \"\",\n      \"timestampMicros\": \"\",\n      \"treatmentForUnderage\": false,\n      \"value\": \"\"\n    }\n  ],\n  \"encryptionInfo\": {\n    \"encryptionEntityId\": \"\",\n    \"encryptionEntityType\": \"\",\n    \"encryptionSource\": \"\",\n    \"kind\": \"\"\n  },\n  \"kind\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/conversions/batchupdate",
  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([
    'conversions' => [
        [
                'childDirectedTreatment' => null,
                'customVariables' => [
                                [
                                                                'kind' => '',
                                                                'type' => '',
                                                                'value' => ''
                                ]
                ],
                'dclid' => '',
                'encryptedUserId' => '',
                'encryptedUserIdCandidates' => [
                                
                ],
                'floodlightActivityId' => '',
                'floodlightConfigurationId' => '',
                'gclid' => '',
                'kind' => '',
                'limitAdTracking' => null,
                'matchId' => '',
                'mobileDeviceId' => '',
                'nonPersonalizedAd' => null,
                'ordinal' => '',
                'quantity' => '',
                'timestampMicros' => '',
                'treatmentForUnderage' => null,
                'value' => ''
        ]
    ],
    'encryptionInfo' => [
        'encryptionEntityId' => '',
        'encryptionEntityType' => '',
        'encryptionSource' => '',
        'kind' => ''
    ],
    'kind' => ''
  ]),
  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}}/userprofiles/:profileId/conversions/batchupdate', [
  'body' => '{
  "conversions": [
    {
      "childDirectedTreatment": false,
      "customVariables": [
        {
          "kind": "",
          "type": "",
          "value": ""
        }
      ],
      "dclid": "",
      "encryptedUserId": "",
      "encryptedUserIdCandidates": [],
      "floodlightActivityId": "",
      "floodlightConfigurationId": "",
      "gclid": "",
      "kind": "",
      "limitAdTracking": false,
      "matchId": "",
      "mobileDeviceId": "",
      "nonPersonalizedAd": false,
      "ordinal": "",
      "quantity": "",
      "timestampMicros": "",
      "treatmentForUnderage": false,
      "value": ""
    }
  ],
  "encryptionInfo": {
    "encryptionEntityId": "",
    "encryptionEntityType": "",
    "encryptionSource": "",
    "kind": ""
  },
  "kind": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/conversions/batchupdate');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'conversions' => [
    [
        'childDirectedTreatment' => null,
        'customVariables' => [
                [
                                'kind' => '',
                                'type' => '',
                                'value' => ''
                ]
        ],
        'dclid' => '',
        'encryptedUserId' => '',
        'encryptedUserIdCandidates' => [
                
        ],
        'floodlightActivityId' => '',
        'floodlightConfigurationId' => '',
        'gclid' => '',
        'kind' => '',
        'limitAdTracking' => null,
        'matchId' => '',
        'mobileDeviceId' => '',
        'nonPersonalizedAd' => null,
        'ordinal' => '',
        'quantity' => '',
        'timestampMicros' => '',
        'treatmentForUnderage' => null,
        'value' => ''
    ]
  ],
  'encryptionInfo' => [
    'encryptionEntityId' => '',
    'encryptionEntityType' => '',
    'encryptionSource' => '',
    'kind' => ''
  ],
  'kind' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'conversions' => [
    [
        'childDirectedTreatment' => null,
        'customVariables' => [
                [
                                'kind' => '',
                                'type' => '',
                                'value' => ''
                ]
        ],
        'dclid' => '',
        'encryptedUserId' => '',
        'encryptedUserIdCandidates' => [
                
        ],
        'floodlightActivityId' => '',
        'floodlightConfigurationId' => '',
        'gclid' => '',
        'kind' => '',
        'limitAdTracking' => null,
        'matchId' => '',
        'mobileDeviceId' => '',
        'nonPersonalizedAd' => null,
        'ordinal' => '',
        'quantity' => '',
        'timestampMicros' => '',
        'treatmentForUnderage' => null,
        'value' => ''
    ]
  ],
  'encryptionInfo' => [
    'encryptionEntityId' => '',
    'encryptionEntityType' => '',
    'encryptionSource' => '',
    'kind' => ''
  ],
  'kind' => ''
]));
$request->setRequestUrl('{{baseUrl}}/userprofiles/:profileId/conversions/batchupdate');
$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}}/userprofiles/:profileId/conversions/batchupdate' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "conversions": [
    {
      "childDirectedTreatment": false,
      "customVariables": [
        {
          "kind": "",
          "type": "",
          "value": ""
        }
      ],
      "dclid": "",
      "encryptedUserId": "",
      "encryptedUserIdCandidates": [],
      "floodlightActivityId": "",
      "floodlightConfigurationId": "",
      "gclid": "",
      "kind": "",
      "limitAdTracking": false,
      "matchId": "",
      "mobileDeviceId": "",
      "nonPersonalizedAd": false,
      "ordinal": "",
      "quantity": "",
      "timestampMicros": "",
      "treatmentForUnderage": false,
      "value": ""
    }
  ],
  "encryptionInfo": {
    "encryptionEntityId": "",
    "encryptionEntityType": "",
    "encryptionSource": "",
    "kind": ""
  },
  "kind": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/conversions/batchupdate' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "conversions": [
    {
      "childDirectedTreatment": false,
      "customVariables": [
        {
          "kind": "",
          "type": "",
          "value": ""
        }
      ],
      "dclid": "",
      "encryptedUserId": "",
      "encryptedUserIdCandidates": [],
      "floodlightActivityId": "",
      "floodlightConfigurationId": "",
      "gclid": "",
      "kind": "",
      "limitAdTracking": false,
      "matchId": "",
      "mobileDeviceId": "",
      "nonPersonalizedAd": false,
      "ordinal": "",
      "quantity": "",
      "timestampMicros": "",
      "treatmentForUnderage": false,
      "value": ""
    }
  ],
  "encryptionInfo": {
    "encryptionEntityId": "",
    "encryptionEntityType": "",
    "encryptionSource": "",
    "kind": ""
  },
  "kind": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"conversions\": [\n    {\n      \"childDirectedTreatment\": false,\n      \"customVariables\": [\n        {\n          \"kind\": \"\",\n          \"type\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"dclid\": \"\",\n      \"encryptedUserId\": \"\",\n      \"encryptedUserIdCandidates\": [],\n      \"floodlightActivityId\": \"\",\n      \"floodlightConfigurationId\": \"\",\n      \"gclid\": \"\",\n      \"kind\": \"\",\n      \"limitAdTracking\": false,\n      \"matchId\": \"\",\n      \"mobileDeviceId\": \"\",\n      \"nonPersonalizedAd\": false,\n      \"ordinal\": \"\",\n      \"quantity\": \"\",\n      \"timestampMicros\": \"\",\n      \"treatmentForUnderage\": false,\n      \"value\": \"\"\n    }\n  ],\n  \"encryptionInfo\": {\n    \"encryptionEntityId\": \"\",\n    \"encryptionEntityType\": \"\",\n    \"encryptionSource\": \"\",\n    \"kind\": \"\"\n  },\n  \"kind\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/userprofiles/:profileId/conversions/batchupdate", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/conversions/batchupdate"

payload = {
    "conversions": [
        {
            "childDirectedTreatment": False,
            "customVariables": [
                {
                    "kind": "",
                    "type": "",
                    "value": ""
                }
            ],
            "dclid": "",
            "encryptedUserId": "",
            "encryptedUserIdCandidates": [],
            "floodlightActivityId": "",
            "floodlightConfigurationId": "",
            "gclid": "",
            "kind": "",
            "limitAdTracking": False,
            "matchId": "",
            "mobileDeviceId": "",
            "nonPersonalizedAd": False,
            "ordinal": "",
            "quantity": "",
            "timestampMicros": "",
            "treatmentForUnderage": False,
            "value": ""
        }
    ],
    "encryptionInfo": {
        "encryptionEntityId": "",
        "encryptionEntityType": "",
        "encryptionSource": "",
        "kind": ""
    },
    "kind": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/conversions/batchupdate"

payload <- "{\n  \"conversions\": [\n    {\n      \"childDirectedTreatment\": false,\n      \"customVariables\": [\n        {\n          \"kind\": \"\",\n          \"type\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"dclid\": \"\",\n      \"encryptedUserId\": \"\",\n      \"encryptedUserIdCandidates\": [],\n      \"floodlightActivityId\": \"\",\n      \"floodlightConfigurationId\": \"\",\n      \"gclid\": \"\",\n      \"kind\": \"\",\n      \"limitAdTracking\": false,\n      \"matchId\": \"\",\n      \"mobileDeviceId\": \"\",\n      \"nonPersonalizedAd\": false,\n      \"ordinal\": \"\",\n      \"quantity\": \"\",\n      \"timestampMicros\": \"\",\n      \"treatmentForUnderage\": false,\n      \"value\": \"\"\n    }\n  ],\n  \"encryptionInfo\": {\n    \"encryptionEntityId\": \"\",\n    \"encryptionEntityType\": \"\",\n    \"encryptionSource\": \"\",\n    \"kind\": \"\"\n  },\n  \"kind\": \"\"\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}}/userprofiles/:profileId/conversions/batchupdate")

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  \"conversions\": [\n    {\n      \"childDirectedTreatment\": false,\n      \"customVariables\": [\n        {\n          \"kind\": \"\",\n          \"type\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"dclid\": \"\",\n      \"encryptedUserId\": \"\",\n      \"encryptedUserIdCandidates\": [],\n      \"floodlightActivityId\": \"\",\n      \"floodlightConfigurationId\": \"\",\n      \"gclid\": \"\",\n      \"kind\": \"\",\n      \"limitAdTracking\": false,\n      \"matchId\": \"\",\n      \"mobileDeviceId\": \"\",\n      \"nonPersonalizedAd\": false,\n      \"ordinal\": \"\",\n      \"quantity\": \"\",\n      \"timestampMicros\": \"\",\n      \"treatmentForUnderage\": false,\n      \"value\": \"\"\n    }\n  ],\n  \"encryptionInfo\": {\n    \"encryptionEntityId\": \"\",\n    \"encryptionEntityType\": \"\",\n    \"encryptionSource\": \"\",\n    \"kind\": \"\"\n  },\n  \"kind\": \"\"\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/userprofiles/:profileId/conversions/batchupdate') do |req|
  req.body = "{\n  \"conversions\": [\n    {\n      \"childDirectedTreatment\": false,\n      \"customVariables\": [\n        {\n          \"kind\": \"\",\n          \"type\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"dclid\": \"\",\n      \"encryptedUserId\": \"\",\n      \"encryptedUserIdCandidates\": [],\n      \"floodlightActivityId\": \"\",\n      \"floodlightConfigurationId\": \"\",\n      \"gclid\": \"\",\n      \"kind\": \"\",\n      \"limitAdTracking\": false,\n      \"matchId\": \"\",\n      \"mobileDeviceId\": \"\",\n      \"nonPersonalizedAd\": false,\n      \"ordinal\": \"\",\n      \"quantity\": \"\",\n      \"timestampMicros\": \"\",\n      \"treatmentForUnderage\": false,\n      \"value\": \"\"\n    }\n  ],\n  \"encryptionInfo\": {\n    \"encryptionEntityId\": \"\",\n    \"encryptionEntityType\": \"\",\n    \"encryptionSource\": \"\",\n    \"kind\": \"\"\n  },\n  \"kind\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/conversions/batchupdate";

    let payload = json!({
        "conversions": (
            json!({
                "childDirectedTreatment": false,
                "customVariables": (
                    json!({
                        "kind": "",
                        "type": "",
                        "value": ""
                    })
                ),
                "dclid": "",
                "encryptedUserId": "",
                "encryptedUserIdCandidates": (),
                "floodlightActivityId": "",
                "floodlightConfigurationId": "",
                "gclid": "",
                "kind": "",
                "limitAdTracking": false,
                "matchId": "",
                "mobileDeviceId": "",
                "nonPersonalizedAd": false,
                "ordinal": "",
                "quantity": "",
                "timestampMicros": "",
                "treatmentForUnderage": false,
                "value": ""
            })
        ),
        "encryptionInfo": json!({
            "encryptionEntityId": "",
            "encryptionEntityType": "",
            "encryptionSource": "",
            "kind": ""
        }),
        "kind": ""
    });

    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}}/userprofiles/:profileId/conversions/batchupdate \
  --header 'content-type: application/json' \
  --data '{
  "conversions": [
    {
      "childDirectedTreatment": false,
      "customVariables": [
        {
          "kind": "",
          "type": "",
          "value": ""
        }
      ],
      "dclid": "",
      "encryptedUserId": "",
      "encryptedUserIdCandidates": [],
      "floodlightActivityId": "",
      "floodlightConfigurationId": "",
      "gclid": "",
      "kind": "",
      "limitAdTracking": false,
      "matchId": "",
      "mobileDeviceId": "",
      "nonPersonalizedAd": false,
      "ordinal": "",
      "quantity": "",
      "timestampMicros": "",
      "treatmentForUnderage": false,
      "value": ""
    }
  ],
  "encryptionInfo": {
    "encryptionEntityId": "",
    "encryptionEntityType": "",
    "encryptionSource": "",
    "kind": ""
  },
  "kind": ""
}'
echo '{
  "conversions": [
    {
      "childDirectedTreatment": false,
      "customVariables": [
        {
          "kind": "",
          "type": "",
          "value": ""
        }
      ],
      "dclid": "",
      "encryptedUserId": "",
      "encryptedUserIdCandidates": [],
      "floodlightActivityId": "",
      "floodlightConfigurationId": "",
      "gclid": "",
      "kind": "",
      "limitAdTracking": false,
      "matchId": "",
      "mobileDeviceId": "",
      "nonPersonalizedAd": false,
      "ordinal": "",
      "quantity": "",
      "timestampMicros": "",
      "treatmentForUnderage": false,
      "value": ""
    }
  ],
  "encryptionInfo": {
    "encryptionEntityId": "",
    "encryptionEntityType": "",
    "encryptionSource": "",
    "kind": ""
  },
  "kind": ""
}' |  \
  http POST {{baseUrl}}/userprofiles/:profileId/conversions/batchupdate \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "conversions": [\n    {\n      "childDirectedTreatment": false,\n      "customVariables": [\n        {\n          "kind": "",\n          "type": "",\n          "value": ""\n        }\n      ],\n      "dclid": "",\n      "encryptedUserId": "",\n      "encryptedUserIdCandidates": [],\n      "floodlightActivityId": "",\n      "floodlightConfigurationId": "",\n      "gclid": "",\n      "kind": "",\n      "limitAdTracking": false,\n      "matchId": "",\n      "mobileDeviceId": "",\n      "nonPersonalizedAd": false,\n      "ordinal": "",\n      "quantity": "",\n      "timestampMicros": "",\n      "treatmentForUnderage": false,\n      "value": ""\n    }\n  ],\n  "encryptionInfo": {\n    "encryptionEntityId": "",\n    "encryptionEntityType": "",\n    "encryptionSource": "",\n    "kind": ""\n  },\n  "kind": ""\n}' \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/conversions/batchupdate
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "conversions": [
    [
      "childDirectedTreatment": false,
      "customVariables": [
        [
          "kind": "",
          "type": "",
          "value": ""
        ]
      ],
      "dclid": "",
      "encryptedUserId": "",
      "encryptedUserIdCandidates": [],
      "floodlightActivityId": "",
      "floodlightConfigurationId": "",
      "gclid": "",
      "kind": "",
      "limitAdTracking": false,
      "matchId": "",
      "mobileDeviceId": "",
      "nonPersonalizedAd": false,
      "ordinal": "",
      "quantity": "",
      "timestampMicros": "",
      "treatmentForUnderage": false,
      "value": ""
    ]
  ],
  "encryptionInfo": [
    "encryptionEntityId": "",
    "encryptionEntityType": "",
    "encryptionSource": "",
    "kind": ""
  ],
  "kind": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/conversions/batchupdate")! 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 dfareporting.countries.get
{{baseUrl}}/userprofiles/:profileId/countries/:dartId
QUERY PARAMS

profileId
dartId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/countries/:dartId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/countries/:dartId")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/countries/:dartId"

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}}/userprofiles/:profileId/countries/:dartId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/countries/:dartId");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/countries/:dartId"

	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/userprofiles/:profileId/countries/:dartId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/countries/:dartId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/countries/:dartId"))
    .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}}/userprofiles/:profileId/countries/:dartId")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/countries/:dartId")
  .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}}/userprofiles/:profileId/countries/:dartId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/countries/:dartId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/countries/:dartId';
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}}/userprofiles/:profileId/countries/:dartId',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/countries/:dartId")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/countries/:dartId',
  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}}/userprofiles/:profileId/countries/:dartId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/countries/:dartId');

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}}/userprofiles/:profileId/countries/:dartId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/countries/:dartId';
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}}/userprofiles/:profileId/countries/:dartId"]
                                                       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}}/userprofiles/:profileId/countries/:dartId" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/countries/:dartId",
  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}}/userprofiles/:profileId/countries/:dartId');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/countries/:dartId');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/countries/:dartId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/countries/:dartId' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/countries/:dartId' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/countries/:dartId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/countries/:dartId"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/countries/:dartId"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/countries/:dartId")

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/userprofiles/:profileId/countries/:dartId') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/countries/:dartId";

    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}}/userprofiles/:profileId/countries/:dartId
http GET {{baseUrl}}/userprofiles/:profileId/countries/:dartId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/countries/:dartId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/countries/:dartId")! 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 dfareporting.countries.list
{{baseUrl}}/userprofiles/:profileId/countries
QUERY PARAMS

profileId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/countries");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/countries")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/countries"

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}}/userprofiles/:profileId/countries"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/countries");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/countries"

	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/userprofiles/:profileId/countries HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/countries")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/countries"))
    .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}}/userprofiles/:profileId/countries")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/countries")
  .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}}/userprofiles/:profileId/countries');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/countries'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/countries';
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}}/userprofiles/:profileId/countries',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/countries")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/countries',
  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}}/userprofiles/:profileId/countries'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/countries');

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}}/userprofiles/:profileId/countries'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/countries';
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}}/userprofiles/:profileId/countries"]
                                                       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}}/userprofiles/:profileId/countries" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/countries",
  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}}/userprofiles/:profileId/countries');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/countries');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/countries');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/countries' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/countries' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/countries")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/countries"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/countries"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/countries")

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/userprofiles/:profileId/countries') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/countries";

    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}}/userprofiles/:profileId/countries
http GET {{baseUrl}}/userprofiles/:profileId/countries
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/countries
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/countries")! 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 dfareporting.creativeAssets.insert
{{baseUrl}}/userprofiles/:profileId/creativeAssets/:advertiserId/creativeAssets
QUERY PARAMS

profileId
advertiserId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/creativeAssets/:advertiserId/creativeAssets");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/userprofiles/:profileId/creativeAssets/:advertiserId/creativeAssets")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/creativeAssets/:advertiserId/creativeAssets"

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}}/userprofiles/:profileId/creativeAssets/:advertiserId/creativeAssets"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/creativeAssets/:advertiserId/creativeAssets");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/creativeAssets/:advertiserId/creativeAssets"

	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/userprofiles/:profileId/creativeAssets/:advertiserId/creativeAssets HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/userprofiles/:profileId/creativeAssets/:advertiserId/creativeAssets")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/creativeAssets/:advertiserId/creativeAssets"))
    .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}}/userprofiles/:profileId/creativeAssets/:advertiserId/creativeAssets")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/userprofiles/:profileId/creativeAssets/:advertiserId/creativeAssets")
  .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}}/userprofiles/:profileId/creativeAssets/:advertiserId/creativeAssets');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/userprofiles/:profileId/creativeAssets/:advertiserId/creativeAssets'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/creativeAssets/:advertiserId/creativeAssets';
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}}/userprofiles/:profileId/creativeAssets/:advertiserId/creativeAssets',
  method: 'POST',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/creativeAssets/:advertiserId/creativeAssets")
  .post(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/creativeAssets/:advertiserId/creativeAssets',
  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}}/userprofiles/:profileId/creativeAssets/:advertiserId/creativeAssets'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/userprofiles/:profileId/creativeAssets/:advertiserId/creativeAssets');

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}}/userprofiles/:profileId/creativeAssets/:advertiserId/creativeAssets'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/creativeAssets/:advertiserId/creativeAssets';
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}}/userprofiles/:profileId/creativeAssets/:advertiserId/creativeAssets"]
                                                       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}}/userprofiles/:profileId/creativeAssets/:advertiserId/creativeAssets" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/creativeAssets/:advertiserId/creativeAssets",
  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}}/userprofiles/:profileId/creativeAssets/:advertiserId/creativeAssets');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/creativeAssets/:advertiserId/creativeAssets');
$request->setMethod(HTTP_METH_POST);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/creativeAssets/:advertiserId/creativeAssets');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/creativeAssets/:advertiserId/creativeAssets' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/creativeAssets/:advertiserId/creativeAssets' -Method POST 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("POST", "/baseUrl/userprofiles/:profileId/creativeAssets/:advertiserId/creativeAssets")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/creativeAssets/:advertiserId/creativeAssets"

response = requests.post(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/creativeAssets/:advertiserId/creativeAssets"

response <- VERB("POST", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/creativeAssets/:advertiserId/creativeAssets")

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/userprofiles/:profileId/creativeAssets/:advertiserId/creativeAssets') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/creativeAssets/:advertiserId/creativeAssets";

    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}}/userprofiles/:profileId/creativeAssets/:advertiserId/creativeAssets
http POST {{baseUrl}}/userprofiles/:profileId/creativeAssets/:advertiserId/creativeAssets
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/creativeAssets/:advertiserId/creativeAssets
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/creativeAssets/:advertiserId/creativeAssets")! 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()
DELETE dfareporting.creativeFields.delete
{{baseUrl}}/userprofiles/:profileId/creativeFields/:id
QUERY PARAMS

profileId
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/creativeFields/:id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/userprofiles/:profileId/creativeFields/:id")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/creativeFields/:id"

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}}/userprofiles/:profileId/creativeFields/:id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/creativeFields/:id");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/creativeFields/:id"

	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/userprofiles/:profileId/creativeFields/:id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/userprofiles/:profileId/creativeFields/:id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/creativeFields/:id"))
    .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}}/userprofiles/:profileId/creativeFields/:id")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/userprofiles/:profileId/creativeFields/:id")
  .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}}/userprofiles/:profileId/creativeFields/:id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/userprofiles/:profileId/creativeFields/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/creativeFields/:id';
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}}/userprofiles/:profileId/creativeFields/:id',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/creativeFields/:id")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/creativeFields/:id',
  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}}/userprofiles/:profileId/creativeFields/:id'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/userprofiles/:profileId/creativeFields/:id');

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}}/userprofiles/:profileId/creativeFields/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/creativeFields/:id';
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}}/userprofiles/:profileId/creativeFields/:id"]
                                                       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}}/userprofiles/:profileId/creativeFields/:id" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/creativeFields/:id",
  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}}/userprofiles/:profileId/creativeFields/:id');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/creativeFields/:id');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/creativeFields/:id');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/creativeFields/:id' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/creativeFields/:id' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/userprofiles/:profileId/creativeFields/:id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/creativeFields/:id"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/creativeFields/:id"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/creativeFields/:id")

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/userprofiles/:profileId/creativeFields/:id') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/creativeFields/:id";

    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}}/userprofiles/:profileId/creativeFields/:id
http DELETE {{baseUrl}}/userprofiles/:profileId/creativeFields/:id
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/creativeFields/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/creativeFields/:id")! 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 dfareporting.creativeFields.get
{{baseUrl}}/userprofiles/:profileId/creativeFields/:id
QUERY PARAMS

profileId
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/creativeFields/:id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/creativeFields/:id")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/creativeFields/:id"

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}}/userprofiles/:profileId/creativeFields/:id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/creativeFields/:id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/creativeFields/:id"

	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/userprofiles/:profileId/creativeFields/:id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/creativeFields/:id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/creativeFields/:id"))
    .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}}/userprofiles/:profileId/creativeFields/:id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/creativeFields/:id")
  .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}}/userprofiles/:profileId/creativeFields/:id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/creativeFields/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/creativeFields/:id';
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}}/userprofiles/:profileId/creativeFields/:id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/creativeFields/:id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/creativeFields/:id',
  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}}/userprofiles/:profileId/creativeFields/:id'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/creativeFields/:id');

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}}/userprofiles/:profileId/creativeFields/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/creativeFields/:id';
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}}/userprofiles/:profileId/creativeFields/:id"]
                                                       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}}/userprofiles/:profileId/creativeFields/:id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/creativeFields/:id",
  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}}/userprofiles/:profileId/creativeFields/:id');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/creativeFields/:id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/creativeFields/:id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/creativeFields/:id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/creativeFields/:id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/creativeFields/:id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/creativeFields/:id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/creativeFields/:id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/creativeFields/:id")

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/userprofiles/:profileId/creativeFields/:id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/creativeFields/:id";

    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}}/userprofiles/:profileId/creativeFields/:id
http GET {{baseUrl}}/userprofiles/:profileId/creativeFields/:id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/creativeFields/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/creativeFields/:id")! 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 dfareporting.creativeFields.insert
{{baseUrl}}/userprofiles/:profileId/creativeFields
QUERY PARAMS

profileId
BODY json

{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "id": "",
  "kind": "",
  "name": "",
  "subaccountId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/creativeFields");

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  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/userprofiles/:profileId/creativeFields" {:content-type :json
                                                                                   :form-params {:accountId ""
                                                                                                 :advertiserId ""
                                                                                                 :advertiserIdDimensionValue {:dimensionName ""
                                                                                                                              :etag ""
                                                                                                                              :id ""
                                                                                                                              :kind ""
                                                                                                                              :matchType ""
                                                                                                                              :value ""}
                                                                                                 :id ""
                                                                                                 :kind ""
                                                                                                 :name ""
                                                                                                 :subaccountId ""}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/creativeFields"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\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}}/userprofiles/:profileId/creativeFields"),
    Content = new StringContent("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\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}}/userprofiles/:profileId/creativeFields");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/creativeFields"

	payload := strings.NewReader("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\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/userprofiles/:profileId/creativeFields HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 252

{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "id": "",
  "kind": "",
  "name": "",
  "subaccountId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/userprofiles/:profileId/creativeFields")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/creativeFields"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\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  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/creativeFields")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/userprofiles/:profileId/creativeFields")
  .header("content-type", "application/json")
  .body("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  accountId: '',
  advertiserId: '',
  advertiserIdDimensionValue: {
    dimensionName: '',
    etag: '',
    id: '',
    kind: '',
    matchType: '',
    value: ''
  },
  id: '',
  kind: '',
  name: '',
  subaccountId: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/userprofiles/:profileId/creativeFields');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/userprofiles/:profileId/creativeFields',
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    id: '',
    kind: '',
    name: '',
    subaccountId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/creativeFields';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","advertiserId":"","advertiserIdDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"id":"","kind":"","name":"","subaccountId":""}'
};

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}}/userprofiles/:profileId/creativeFields',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "accountId": "",\n  "advertiserId": "",\n  "advertiserIdDimensionValue": {\n    "dimensionName": "",\n    "etag": "",\n    "id": "",\n    "kind": "",\n    "matchType": "",\n    "value": ""\n  },\n  "id": "",\n  "kind": "",\n  "name": "",\n  "subaccountId": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/creativeFields")
  .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/userprofiles/:profileId/creativeFields',
  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({
  accountId: '',
  advertiserId: '',
  advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
  id: '',
  kind: '',
  name: '',
  subaccountId: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/userprofiles/:profileId/creativeFields',
  headers: {'content-type': 'application/json'},
  body: {
    accountId: '',
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    id: '',
    kind: '',
    name: '',
    subaccountId: ''
  },
  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}}/userprofiles/:profileId/creativeFields');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  accountId: '',
  advertiserId: '',
  advertiserIdDimensionValue: {
    dimensionName: '',
    etag: '',
    id: '',
    kind: '',
    matchType: '',
    value: ''
  },
  id: '',
  kind: '',
  name: '',
  subaccountId: ''
});

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}}/userprofiles/:profileId/creativeFields',
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    id: '',
    kind: '',
    name: '',
    subaccountId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/creativeFields';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","advertiserId":"","advertiserIdDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"id":"","kind":"","name":"","subaccountId":""}'
};

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 = @{ @"accountId": @"",
                              @"advertiserId": @"",
                              @"advertiserIdDimensionValue": @{ @"dimensionName": @"", @"etag": @"", @"id": @"", @"kind": @"", @"matchType": @"", @"value": @"" },
                              @"id": @"",
                              @"kind": @"",
                              @"name": @"",
                              @"subaccountId": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/userprofiles/:profileId/creativeFields"]
                                                       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}}/userprofiles/:profileId/creativeFields" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/creativeFields",
  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([
    'accountId' => '',
    'advertiserId' => '',
    'advertiserIdDimensionValue' => [
        'dimensionName' => '',
        'etag' => '',
        'id' => '',
        'kind' => '',
        'matchType' => '',
        'value' => ''
    ],
    'id' => '',
    'kind' => '',
    'name' => '',
    'subaccountId' => ''
  ]),
  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}}/userprofiles/:profileId/creativeFields', [
  'body' => '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "id": "",
  "kind": "",
  "name": "",
  "subaccountId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/creativeFields');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'accountId' => '',
  'advertiserId' => '',
  'advertiserIdDimensionValue' => [
    'dimensionName' => '',
    'etag' => '',
    'id' => '',
    'kind' => '',
    'matchType' => '',
    'value' => ''
  ],
  'id' => '',
  'kind' => '',
  'name' => '',
  'subaccountId' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'accountId' => '',
  'advertiserId' => '',
  'advertiserIdDimensionValue' => [
    'dimensionName' => '',
    'etag' => '',
    'id' => '',
    'kind' => '',
    'matchType' => '',
    'value' => ''
  ],
  'id' => '',
  'kind' => '',
  'name' => '',
  'subaccountId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/userprofiles/:profileId/creativeFields');
$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}}/userprofiles/:profileId/creativeFields' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "id": "",
  "kind": "",
  "name": "",
  "subaccountId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/creativeFields' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "id": "",
  "kind": "",
  "name": "",
  "subaccountId": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/userprofiles/:profileId/creativeFields", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/creativeFields"

payload = {
    "accountId": "",
    "advertiserId": "",
    "advertiserIdDimensionValue": {
        "dimensionName": "",
        "etag": "",
        "id": "",
        "kind": "",
        "matchType": "",
        "value": ""
    },
    "id": "",
    "kind": "",
    "name": "",
    "subaccountId": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/creativeFields"

payload <- "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\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}}/userprofiles/:profileId/creativeFields")

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  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\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/userprofiles/:profileId/creativeFields') do |req|
  req.body = "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/creativeFields";

    let payload = json!({
        "accountId": "",
        "advertiserId": "",
        "advertiserIdDimensionValue": json!({
            "dimensionName": "",
            "etag": "",
            "id": "",
            "kind": "",
            "matchType": "",
            "value": ""
        }),
        "id": "",
        "kind": "",
        "name": "",
        "subaccountId": ""
    });

    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}}/userprofiles/:profileId/creativeFields \
  --header 'content-type: application/json' \
  --data '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "id": "",
  "kind": "",
  "name": "",
  "subaccountId": ""
}'
echo '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "id": "",
  "kind": "",
  "name": "",
  "subaccountId": ""
}' |  \
  http POST {{baseUrl}}/userprofiles/:profileId/creativeFields \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "accountId": "",\n  "advertiserId": "",\n  "advertiserIdDimensionValue": {\n    "dimensionName": "",\n    "etag": "",\n    "id": "",\n    "kind": "",\n    "matchType": "",\n    "value": ""\n  },\n  "id": "",\n  "kind": "",\n  "name": "",\n  "subaccountId": ""\n}' \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/creativeFields
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": [
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  ],
  "id": "",
  "kind": "",
  "name": "",
  "subaccountId": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/creativeFields")! 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 dfareporting.creativeFields.list
{{baseUrl}}/userprofiles/:profileId/creativeFields
QUERY PARAMS

profileId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/creativeFields");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/creativeFields")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/creativeFields"

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}}/userprofiles/:profileId/creativeFields"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/creativeFields");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/creativeFields"

	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/userprofiles/:profileId/creativeFields HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/creativeFields")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/creativeFields"))
    .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}}/userprofiles/:profileId/creativeFields")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/creativeFields")
  .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}}/userprofiles/:profileId/creativeFields');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/creativeFields'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/creativeFields';
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}}/userprofiles/:profileId/creativeFields',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/creativeFields")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/creativeFields',
  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}}/userprofiles/:profileId/creativeFields'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/creativeFields');

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}}/userprofiles/:profileId/creativeFields'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/creativeFields';
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}}/userprofiles/:profileId/creativeFields"]
                                                       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}}/userprofiles/:profileId/creativeFields" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/creativeFields",
  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}}/userprofiles/:profileId/creativeFields');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/creativeFields');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/creativeFields');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/creativeFields' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/creativeFields' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/creativeFields")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/creativeFields"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/creativeFields"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/creativeFields")

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/userprofiles/:profileId/creativeFields') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/creativeFields";

    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}}/userprofiles/:profileId/creativeFields
http GET {{baseUrl}}/userprofiles/:profileId/creativeFields
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/creativeFields
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/creativeFields")! 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 dfareporting.creativeFields.patch
{{baseUrl}}/userprofiles/:profileId/creativeFields
QUERY PARAMS

id
profileId
BODY json

{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "id": "",
  "kind": "",
  "name": "",
  "subaccountId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/creativeFields?id=");

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  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/patch "{{baseUrl}}/userprofiles/:profileId/creativeFields" {:query-params {:id ""}
                                                                                    :content-type :json
                                                                                    :form-params {:accountId ""
                                                                                                  :advertiserId ""
                                                                                                  :advertiserIdDimensionValue {:dimensionName ""
                                                                                                                               :etag ""
                                                                                                                               :id ""
                                                                                                                               :kind ""
                                                                                                                               :matchType ""
                                                                                                                               :value ""}
                                                                                                  :id ""
                                                                                                  :kind ""
                                                                                                  :name ""
                                                                                                  :subaccountId ""}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/creativeFields?id="
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\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}}/userprofiles/:profileId/creativeFields?id="),
    Content = new StringContent("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\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}}/userprofiles/:profileId/creativeFields?id=");
var request = new RestRequest("", Method.Patch);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/creativeFields?id="

	payload := strings.NewReader("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\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/userprofiles/:profileId/creativeFields?id= HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 252

{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "id": "",
  "kind": "",
  "name": "",
  "subaccountId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/userprofiles/:profileId/creativeFields?id=")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/creativeFields?id="))
    .header("content-type", "application/json")
    .method("PATCH", HttpRequest.BodyPublishers.ofString("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\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  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/creativeFields?id=")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/userprofiles/:profileId/creativeFields?id=")
  .header("content-type", "application/json")
  .body("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  accountId: '',
  advertiserId: '',
  advertiserIdDimensionValue: {
    dimensionName: '',
    etag: '',
    id: '',
    kind: '',
    matchType: '',
    value: ''
  },
  id: '',
  kind: '',
  name: '',
  subaccountId: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PATCH', '{{baseUrl}}/userprofiles/:profileId/creativeFields?id=');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/userprofiles/:profileId/creativeFields',
  params: {id: ''},
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    id: '',
    kind: '',
    name: '',
    subaccountId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/creativeFields?id=';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","advertiserId":"","advertiserIdDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"id":"","kind":"","name":"","subaccountId":""}'
};

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}}/userprofiles/:profileId/creativeFields?id=',
  method: 'PATCH',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "accountId": "",\n  "advertiserId": "",\n  "advertiserIdDimensionValue": {\n    "dimensionName": "",\n    "etag": "",\n    "id": "",\n    "kind": "",\n    "matchType": "",\n    "value": ""\n  },\n  "id": "",\n  "kind": "",\n  "name": "",\n  "subaccountId": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/creativeFields?id=")
  .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/userprofiles/:profileId/creativeFields?id=',
  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({
  accountId: '',
  advertiserId: '',
  advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
  id: '',
  kind: '',
  name: '',
  subaccountId: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/userprofiles/:profileId/creativeFields',
  qs: {id: ''},
  headers: {'content-type': 'application/json'},
  body: {
    accountId: '',
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    id: '',
    kind: '',
    name: '',
    subaccountId: ''
  },
  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}}/userprofiles/:profileId/creativeFields');

req.query({
  id: ''
});

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  accountId: '',
  advertiserId: '',
  advertiserIdDimensionValue: {
    dimensionName: '',
    etag: '',
    id: '',
    kind: '',
    matchType: '',
    value: ''
  },
  id: '',
  kind: '',
  name: '',
  subaccountId: ''
});

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}}/userprofiles/:profileId/creativeFields',
  params: {id: ''},
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    id: '',
    kind: '',
    name: '',
    subaccountId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/creativeFields?id=';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","advertiserId":"","advertiserIdDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"id":"","kind":"","name":"","subaccountId":""}'
};

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 = @{ @"accountId": @"",
                              @"advertiserId": @"",
                              @"advertiserIdDimensionValue": @{ @"dimensionName": @"", @"etag": @"", @"id": @"", @"kind": @"", @"matchType": @"", @"value": @"" },
                              @"id": @"",
                              @"kind": @"",
                              @"name": @"",
                              @"subaccountId": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/userprofiles/:profileId/creativeFields?id="]
                                                       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}}/userprofiles/:profileId/creativeFields?id=" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}" in

Client.call ~headers ~body `PATCH uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/creativeFields?id=",
  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([
    'accountId' => '',
    'advertiserId' => '',
    'advertiserIdDimensionValue' => [
        'dimensionName' => '',
        'etag' => '',
        'id' => '',
        'kind' => '',
        'matchType' => '',
        'value' => ''
    ],
    'id' => '',
    'kind' => '',
    'name' => '',
    'subaccountId' => ''
  ]),
  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}}/userprofiles/:profileId/creativeFields?id=', [
  'body' => '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "id": "",
  "kind": "",
  "name": "",
  "subaccountId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/creativeFields');
$request->setMethod(HttpRequest::HTTP_METH_PATCH);

$request->setQueryData([
  'id' => ''
]);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'accountId' => '',
  'advertiserId' => '',
  'advertiserIdDimensionValue' => [
    'dimensionName' => '',
    'etag' => '',
    'id' => '',
    'kind' => '',
    'matchType' => '',
    'value' => ''
  ],
  'id' => '',
  'kind' => '',
  'name' => '',
  'subaccountId' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'accountId' => '',
  'advertiserId' => '',
  'advertiserIdDimensionValue' => [
    'dimensionName' => '',
    'etag' => '',
    'id' => '',
    'kind' => '',
    'matchType' => '',
    'value' => ''
  ],
  'id' => '',
  'kind' => '',
  'name' => '',
  'subaccountId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/userprofiles/:profileId/creativeFields');
$request->setRequestMethod('PATCH');
$request->setBody($body);

$request->setQuery(new http\QueryString([
  'id' => ''
]));

$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}}/userprofiles/:profileId/creativeFields?id=' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "id": "",
  "kind": "",
  "name": "",
  "subaccountId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/creativeFields?id=' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "id": "",
  "kind": "",
  "name": "",
  "subaccountId": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("PATCH", "/baseUrl/userprofiles/:profileId/creativeFields?id=", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/creativeFields"

querystring = {"id":""}

payload = {
    "accountId": "",
    "advertiserId": "",
    "advertiserIdDimensionValue": {
        "dimensionName": "",
        "etag": "",
        "id": "",
        "kind": "",
        "matchType": "",
        "value": ""
    },
    "id": "",
    "kind": "",
    "name": "",
    "subaccountId": ""
}
headers = {"content-type": "application/json"}

response = requests.patch(url, json=payload, headers=headers, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/creativeFields"

queryString <- list(id = "")

payload <- "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}"

encode <- "json"

response <- VERB("PATCH", url, body = payload, query = queryString, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/creativeFields?id=")

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  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\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/userprofiles/:profileId/creativeFields') do |req|
  req.params['id'] = ''
  req.body = "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\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}}/userprofiles/:profileId/creativeFields";

    let querystring = [
        ("id", ""),
    ];

    let payload = json!({
        "accountId": "",
        "advertiserId": "",
        "advertiserIdDimensionValue": json!({
            "dimensionName": "",
            "etag": "",
            "id": "",
            "kind": "",
            "matchType": "",
            "value": ""
        }),
        "id": "",
        "kind": "",
        "name": "",
        "subaccountId": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PATCH").unwrap(), url)
        .query(&querystring)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PATCH \
  --url '{{baseUrl}}/userprofiles/:profileId/creativeFields?id=' \
  --header 'content-type: application/json' \
  --data '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "id": "",
  "kind": "",
  "name": "",
  "subaccountId": ""
}'
echo '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "id": "",
  "kind": "",
  "name": "",
  "subaccountId": ""
}' |  \
  http PATCH '{{baseUrl}}/userprofiles/:profileId/creativeFields?id=' \
  content-type:application/json
wget --quiet \
  --method PATCH \
  --header 'content-type: application/json' \
  --body-data '{\n  "accountId": "",\n  "advertiserId": "",\n  "advertiserIdDimensionValue": {\n    "dimensionName": "",\n    "etag": "",\n    "id": "",\n    "kind": "",\n    "matchType": "",\n    "value": ""\n  },\n  "id": "",\n  "kind": "",\n  "name": "",\n  "subaccountId": ""\n}' \
  --output-document \
  - '{{baseUrl}}/userprofiles/:profileId/creativeFields?id='
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": [
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  ],
  "id": "",
  "kind": "",
  "name": "",
  "subaccountId": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/creativeFields?id=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PATCH"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
PUT dfareporting.creativeFields.update
{{baseUrl}}/userprofiles/:profileId/creativeFields
QUERY PARAMS

profileId
BODY json

{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "id": "",
  "kind": "",
  "name": "",
  "subaccountId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/creativeFields");

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  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/userprofiles/:profileId/creativeFields" {:content-type :json
                                                                                  :form-params {:accountId ""
                                                                                                :advertiserId ""
                                                                                                :advertiserIdDimensionValue {:dimensionName ""
                                                                                                                             :etag ""
                                                                                                                             :id ""
                                                                                                                             :kind ""
                                                                                                                             :matchType ""
                                                                                                                             :value ""}
                                                                                                :id ""
                                                                                                :kind ""
                                                                                                :name ""
                                                                                                :subaccountId ""}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/creativeFields"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/userprofiles/:profileId/creativeFields"),
    Content = new StringContent("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\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}}/userprofiles/:profileId/creativeFields");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/creativeFields"

	payload := strings.NewReader("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/userprofiles/:profileId/creativeFields HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 252

{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "id": "",
  "kind": "",
  "name": "",
  "subaccountId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/userprofiles/:profileId/creativeFields")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/creativeFields"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\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  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/creativeFields")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/userprofiles/:profileId/creativeFields")
  .header("content-type", "application/json")
  .body("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  accountId: '',
  advertiserId: '',
  advertiserIdDimensionValue: {
    dimensionName: '',
    etag: '',
    id: '',
    kind: '',
    matchType: '',
    value: ''
  },
  id: '',
  kind: '',
  name: '',
  subaccountId: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/userprofiles/:profileId/creativeFields');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/userprofiles/:profileId/creativeFields',
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    id: '',
    kind: '',
    name: '',
    subaccountId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/creativeFields';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","advertiserId":"","advertiserIdDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"id":"","kind":"","name":"","subaccountId":""}'
};

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}}/userprofiles/:profileId/creativeFields',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "accountId": "",\n  "advertiserId": "",\n  "advertiserIdDimensionValue": {\n    "dimensionName": "",\n    "etag": "",\n    "id": "",\n    "kind": "",\n    "matchType": "",\n    "value": ""\n  },\n  "id": "",\n  "kind": "",\n  "name": "",\n  "subaccountId": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/creativeFields")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/creativeFields',
  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({
  accountId: '',
  advertiserId: '',
  advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
  id: '',
  kind: '',
  name: '',
  subaccountId: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/userprofiles/:profileId/creativeFields',
  headers: {'content-type': 'application/json'},
  body: {
    accountId: '',
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    id: '',
    kind: '',
    name: '',
    subaccountId: ''
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/userprofiles/:profileId/creativeFields');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  accountId: '',
  advertiserId: '',
  advertiserIdDimensionValue: {
    dimensionName: '',
    etag: '',
    id: '',
    kind: '',
    matchType: '',
    value: ''
  },
  id: '',
  kind: '',
  name: '',
  subaccountId: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/userprofiles/:profileId/creativeFields',
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    id: '',
    kind: '',
    name: '',
    subaccountId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/creativeFields';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","advertiserId":"","advertiserIdDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"id":"","kind":"","name":"","subaccountId":""}'
};

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 = @{ @"accountId": @"",
                              @"advertiserId": @"",
                              @"advertiserIdDimensionValue": @{ @"dimensionName": @"", @"etag": @"", @"id": @"", @"kind": @"", @"matchType": @"", @"value": @"" },
                              @"id": @"",
                              @"kind": @"",
                              @"name": @"",
                              @"subaccountId": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/userprofiles/:profileId/creativeFields"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/userprofiles/:profileId/creativeFields" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/creativeFields",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'accountId' => '',
    'advertiserId' => '',
    'advertiserIdDimensionValue' => [
        'dimensionName' => '',
        'etag' => '',
        'id' => '',
        'kind' => '',
        'matchType' => '',
        'value' => ''
    ],
    'id' => '',
    'kind' => '',
    'name' => '',
    'subaccountId' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/userprofiles/:profileId/creativeFields', [
  'body' => '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "id": "",
  "kind": "",
  "name": "",
  "subaccountId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/creativeFields');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'accountId' => '',
  'advertiserId' => '',
  'advertiserIdDimensionValue' => [
    'dimensionName' => '',
    'etag' => '',
    'id' => '',
    'kind' => '',
    'matchType' => '',
    'value' => ''
  ],
  'id' => '',
  'kind' => '',
  'name' => '',
  'subaccountId' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'accountId' => '',
  'advertiserId' => '',
  'advertiserIdDimensionValue' => [
    'dimensionName' => '',
    'etag' => '',
    'id' => '',
    'kind' => '',
    'matchType' => '',
    'value' => ''
  ],
  'id' => '',
  'kind' => '',
  'name' => '',
  'subaccountId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/userprofiles/:profileId/creativeFields');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/creativeFields' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "id": "",
  "kind": "",
  "name": "",
  "subaccountId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/creativeFields' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "id": "",
  "kind": "",
  "name": "",
  "subaccountId": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/userprofiles/:profileId/creativeFields", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/creativeFields"

payload = {
    "accountId": "",
    "advertiserId": "",
    "advertiserIdDimensionValue": {
        "dimensionName": "",
        "etag": "",
        "id": "",
        "kind": "",
        "matchType": "",
        "value": ""
    },
    "id": "",
    "kind": "",
    "name": "",
    "subaccountId": ""
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/creativeFields"

payload <- "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}"

encode <- "json"

response <- VERB("PUT", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/creativeFields")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.put('/baseUrl/userprofiles/:profileId/creativeFields') do |req|
  req.body = "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\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}}/userprofiles/:profileId/creativeFields";

    let payload = json!({
        "accountId": "",
        "advertiserId": "",
        "advertiserIdDimensionValue": json!({
            "dimensionName": "",
            "etag": "",
            "id": "",
            "kind": "",
            "matchType": "",
            "value": ""
        }),
        "id": "",
        "kind": "",
        "name": "",
        "subaccountId": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/userprofiles/:profileId/creativeFields \
  --header 'content-type: application/json' \
  --data '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "id": "",
  "kind": "",
  "name": "",
  "subaccountId": ""
}'
echo '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "id": "",
  "kind": "",
  "name": "",
  "subaccountId": ""
}' |  \
  http PUT {{baseUrl}}/userprofiles/:profileId/creativeFields \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "accountId": "",\n  "advertiserId": "",\n  "advertiserIdDimensionValue": {\n    "dimensionName": "",\n    "etag": "",\n    "id": "",\n    "kind": "",\n    "matchType": "",\n    "value": ""\n  },\n  "id": "",\n  "kind": "",\n  "name": "",\n  "subaccountId": ""\n}' \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/creativeFields
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": [
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  ],
  "id": "",
  "kind": "",
  "name": "",
  "subaccountId": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/creativeFields")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
DELETE dfareporting.creativeFieldValues.delete
{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues/:id
QUERY PARAMS

profileId
creativeFieldId
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues/:id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues/:id")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues/:id"

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}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues/:id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues/:id");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues/:id"

	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/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues/:id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues/:id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues/:id"))
    .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}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues/:id")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues/:id")
  .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}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues/:id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues/:id';
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}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues/:id',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues/:id")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues/:id',
  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}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues/:id'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues/:id');

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}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues/:id';
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}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues/:id"]
                                                       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}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues/:id" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues/:id",
  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}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues/:id');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues/:id');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues/:id');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues/:id' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues/:id' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues/:id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues/:id"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues/:id"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues/:id")

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/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues/:id') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues/:id";

    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}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues/:id
http DELETE {{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues/:id
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues/:id")! 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 dfareporting.creativeFieldValues.get
{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues/:id
QUERY PARAMS

profileId
creativeFieldId
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues/:id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues/:id")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues/:id"

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}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues/:id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues/:id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues/:id"

	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/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues/:id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues/:id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues/:id"))
    .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}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues/:id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues/:id")
  .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}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues/:id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues/:id';
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}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues/:id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues/:id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues/:id',
  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}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues/:id'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues/:id');

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}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues/:id';
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}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues/:id"]
                                                       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}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues/:id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues/:id",
  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}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues/:id');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues/:id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues/:id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues/:id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues/:id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues/:id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues/:id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues/:id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues/:id")

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/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues/:id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues/:id";

    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}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues/:id
http GET {{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues/:id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues/:id")! 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 dfareporting.creativeFieldValues.insert
{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues
QUERY PARAMS

profileId
creativeFieldId
BODY json

{
  "id": "",
  "kind": "",
  "value": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"value\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues" {:content-type :json
                                                                                                                        :form-params {:id ""
                                                                                                                                      :kind ""
                                                                                                                                      :value ""}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"value\": \"\"\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}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues"),
    Content = new StringContent("{\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"value\": \"\"\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}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"value\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues"

	payload := strings.NewReader("{\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"value\": \"\"\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/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 43

{
  "id": "",
  "kind": "",
  "value": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"value\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"value\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"value\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues")
  .header("content-type", "application/json")
  .body("{\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"value\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  id: '',
  kind: '',
  value: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues',
  headers: {'content-type': 'application/json'},
  data: {id: '', kind: '', value: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","kind":"","value":""}'
};

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}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "id": "",\n  "kind": "",\n  "value": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"value\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues")
  .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/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({id: '', kind: '', value: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues',
  headers: {'content-type': 'application/json'},
  body: {id: '', kind: '', value: ''},
  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}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  id: '',
  kind: '',
  value: ''
});

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}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues',
  headers: {'content-type': 'application/json'},
  data: {id: '', kind: '', value: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","kind":"","value":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"id": @"",
                              @"kind": @"",
                              @"value": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues"]
                                                       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}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"value\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'id' => '',
    'kind' => '',
    'value' => ''
  ]),
  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}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues', [
  'body' => '{
  "id": "",
  "kind": "",
  "value": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'id' => '',
  'kind' => '',
  'value' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'id' => '',
  'kind' => '',
  'value' => ''
]));
$request->setRequestUrl('{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues');
$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}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "kind": "",
  "value": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "kind": "",
  "value": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"value\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues"

payload = {
    "id": "",
    "kind": "",
    "value": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues"

payload <- "{\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"value\": \"\"\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}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"value\": \"\"\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/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues') do |req|
  req.body = "{\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"value\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues";

    let payload = json!({
        "id": "",
        "kind": "",
        "value": ""
    });

    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}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues \
  --header 'content-type: application/json' \
  --data '{
  "id": "",
  "kind": "",
  "value": ""
}'
echo '{
  "id": "",
  "kind": "",
  "value": ""
}' |  \
  http POST {{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "id": "",\n  "kind": "",\n  "value": ""\n}' \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "id": "",
  "kind": "",
  "value": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues")! 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 dfareporting.creativeFieldValues.list
{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues
QUERY PARAMS

profileId
creativeFieldId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues"

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}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues"

	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/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues"))
    .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}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues")
  .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}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues';
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}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues',
  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}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues');

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}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues';
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}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues"]
                                                       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}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues",
  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}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues")

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/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues";

    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}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues
http GET {{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues")! 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 dfareporting.creativeFieldValues.patch
{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues
QUERY PARAMS

id
profileId
creativeFieldId
BODY json

{
  "id": "",
  "kind": "",
  "value": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues?id=");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"value\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/patch "{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues" {:query-params {:id ""}
                                                                                                                         :content-type :json
                                                                                                                         :form-params {:id ""
                                                                                                                                       :kind ""
                                                                                                                                       :value ""}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues?id="
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"value\": \"\"\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}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues?id="),
    Content = new StringContent("{\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"value\": \"\"\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}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues?id=");
var request = new RestRequest("", Method.Patch);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"value\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues?id="

	payload := strings.NewReader("{\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"value\": \"\"\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/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues?id= HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 43

{
  "id": "",
  "kind": "",
  "value": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues?id=")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"value\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues?id="))
    .header("content-type", "application/json")
    .method("PATCH", HttpRequest.BodyPublishers.ofString("{\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"value\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"value\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues?id=")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues?id=")
  .header("content-type", "application/json")
  .body("{\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"value\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  id: '',
  kind: '',
  value: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PATCH', '{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues?id=');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues',
  params: {id: ''},
  headers: {'content-type': 'application/json'},
  data: {id: '', kind: '', value: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues?id=';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","kind":"","value":""}'
};

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}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues?id=',
  method: 'PATCH',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "id": "",\n  "kind": "",\n  "value": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"value\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues?id=")
  .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/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues?id=',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({id: '', kind: '', value: ''}));
req.end();
const request = require('request');

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues',
  qs: {id: ''},
  headers: {'content-type': 'application/json'},
  body: {id: '', kind: '', value: ''},
  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}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues');

req.query({
  id: ''
});

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  id: '',
  kind: '',
  value: ''
});

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}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues',
  params: {id: ''},
  headers: {'content-type': 'application/json'},
  data: {id: '', kind: '', value: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues?id=';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","kind":"","value":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"id": @"",
                              @"kind": @"",
                              @"value": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues?id="]
                                                       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}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues?id=" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"value\": \"\"\n}" in

Client.call ~headers ~body `PATCH uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues?id=",
  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([
    'id' => '',
    'kind' => '',
    'value' => ''
  ]),
  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}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues?id=', [
  'body' => '{
  "id": "",
  "kind": "",
  "value": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues');
$request->setMethod(HttpRequest::HTTP_METH_PATCH);

$request->setQueryData([
  'id' => ''
]);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'id' => '',
  'kind' => '',
  'value' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'id' => '',
  'kind' => '',
  'value' => ''
]));
$request->setRequestUrl('{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues');
$request->setRequestMethod('PATCH');
$request->setBody($body);

$request->setQuery(new http\QueryString([
  'id' => ''
]));

$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}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues?id=' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "kind": "",
  "value": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues?id=' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "kind": "",
  "value": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"value\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("PATCH", "/baseUrl/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues?id=", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues"

querystring = {"id":""}

payload = {
    "id": "",
    "kind": "",
    "value": ""
}
headers = {"content-type": "application/json"}

response = requests.patch(url, json=payload, headers=headers, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues"

queryString <- list(id = "")

payload <- "{\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"value\": \"\"\n}"

encode <- "json"

response <- VERB("PATCH", url, body = payload, query = queryString, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues?id=")

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  \"id\": \"\",\n  \"kind\": \"\",\n  \"value\": \"\"\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/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues') do |req|
  req.params['id'] = ''
  req.body = "{\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"value\": \"\"\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}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues";

    let querystring = [
        ("id", ""),
    ];

    let payload = json!({
        "id": "",
        "kind": "",
        "value": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PATCH").unwrap(), url)
        .query(&querystring)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PATCH \
  --url '{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues?id=' \
  --header 'content-type: application/json' \
  --data '{
  "id": "",
  "kind": "",
  "value": ""
}'
echo '{
  "id": "",
  "kind": "",
  "value": ""
}' |  \
  http PATCH '{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues?id=' \
  content-type:application/json
wget --quiet \
  --method PATCH \
  --header 'content-type: application/json' \
  --body-data '{\n  "id": "",\n  "kind": "",\n  "value": ""\n}' \
  --output-document \
  - '{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues?id='
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "id": "",
  "kind": "",
  "value": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues?id=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PATCH"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
PUT dfareporting.creativeFieldValues.update
{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues
QUERY PARAMS

profileId
creativeFieldId
BODY json

{
  "id": "",
  "kind": "",
  "value": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"value\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues" {:content-type :json
                                                                                                                       :form-params {:id ""
                                                                                                                                     :kind ""
                                                                                                                                     :value ""}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"value\": \"\"\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues"),
    Content = new StringContent("{\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"value\": \"\"\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}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"value\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues"

	payload := strings.NewReader("{\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"value\": \"\"\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 43

{
  "id": "",
  "kind": "",
  "value": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"value\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"value\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"value\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues")
  .header("content-type", "application/json")
  .body("{\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"value\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  id: '',
  kind: '',
  value: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues',
  headers: {'content-type': 'application/json'},
  data: {id: '', kind: '', value: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","kind":"","value":""}'
};

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}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "id": "",\n  "kind": "",\n  "value": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"value\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({id: '', kind: '', value: ''}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues',
  headers: {'content-type': 'application/json'},
  body: {id: '', kind: '', value: ''},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  id: '',
  kind: '',
  value: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues',
  headers: {'content-type': 'application/json'},
  data: {id: '', kind: '', value: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","kind":"","value":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"id": @"",
                              @"kind": @"",
                              @"value": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"value\": \"\"\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'id' => '',
    'kind' => '',
    'value' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues', [
  'body' => '{
  "id": "",
  "kind": "",
  "value": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'id' => '',
  'kind' => '',
  'value' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'id' => '',
  'kind' => '',
  'value' => ''
]));
$request->setRequestUrl('{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "kind": "",
  "value": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "kind": "",
  "value": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"value\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues"

payload = {
    "id": "",
    "kind": "",
    "value": ""
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues"

payload <- "{\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"value\": \"\"\n}"

encode <- "json"

response <- VERB("PUT", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"value\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.put('/baseUrl/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues') do |req|
  req.body = "{\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"value\": \"\"\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}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues";

    let payload = json!({
        "id": "",
        "kind": "",
        "value": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues \
  --header 'content-type: application/json' \
  --data '{
  "id": "",
  "kind": "",
  "value": ""
}'
echo '{
  "id": "",
  "kind": "",
  "value": ""
}' |  \
  http PUT {{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "id": "",\n  "kind": "",\n  "value": ""\n}' \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "id": "",
  "kind": "",
  "value": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/creativeFields/:creativeFieldId/creativeFieldValues")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET dfareporting.creativeGroups.get
{{baseUrl}}/userprofiles/:profileId/creativeGroups/:id
QUERY PARAMS

profileId
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/creativeGroups/:id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/creativeGroups/:id")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/creativeGroups/:id"

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}}/userprofiles/:profileId/creativeGroups/:id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/creativeGroups/:id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/creativeGroups/:id"

	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/userprofiles/:profileId/creativeGroups/:id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/creativeGroups/:id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/creativeGroups/:id"))
    .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}}/userprofiles/:profileId/creativeGroups/:id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/creativeGroups/:id")
  .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}}/userprofiles/:profileId/creativeGroups/:id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/creativeGroups/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/creativeGroups/:id';
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}}/userprofiles/:profileId/creativeGroups/:id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/creativeGroups/:id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/creativeGroups/:id',
  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}}/userprofiles/:profileId/creativeGroups/:id'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/creativeGroups/:id');

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}}/userprofiles/:profileId/creativeGroups/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/creativeGroups/:id';
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}}/userprofiles/:profileId/creativeGroups/:id"]
                                                       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}}/userprofiles/:profileId/creativeGroups/:id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/creativeGroups/:id",
  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}}/userprofiles/:profileId/creativeGroups/:id');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/creativeGroups/:id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/creativeGroups/:id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/creativeGroups/:id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/creativeGroups/:id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/creativeGroups/:id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/creativeGroups/:id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/creativeGroups/:id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/creativeGroups/:id")

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/userprofiles/:profileId/creativeGroups/:id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/creativeGroups/:id";

    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}}/userprofiles/:profileId/creativeGroups/:id
http GET {{baseUrl}}/userprofiles/:profileId/creativeGroups/:id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/creativeGroups/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/creativeGroups/:id")! 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 dfareporting.creativeGroups.insert
{{baseUrl}}/userprofiles/:profileId/creativeGroups
QUERY PARAMS

profileId
BODY json

{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "groupNumber": 0,
  "id": "",
  "kind": "",
  "name": "",
  "subaccountId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/creativeGroups");

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  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"groupNumber\": 0,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/userprofiles/:profileId/creativeGroups" {:content-type :json
                                                                                   :form-params {:accountId ""
                                                                                                 :advertiserId ""
                                                                                                 :advertiserIdDimensionValue {:dimensionName ""
                                                                                                                              :etag ""
                                                                                                                              :id ""
                                                                                                                              :kind ""
                                                                                                                              :matchType ""
                                                                                                                              :value ""}
                                                                                                 :groupNumber 0
                                                                                                 :id ""
                                                                                                 :kind ""
                                                                                                 :name ""
                                                                                                 :subaccountId ""}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/creativeGroups"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"groupNumber\": 0,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\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}}/userprofiles/:profileId/creativeGroups"),
    Content = new StringContent("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"groupNumber\": 0,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\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}}/userprofiles/:profileId/creativeGroups");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"groupNumber\": 0,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/creativeGroups"

	payload := strings.NewReader("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"groupNumber\": 0,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\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/userprofiles/:profileId/creativeGroups HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 272

{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "groupNumber": 0,
  "id": "",
  "kind": "",
  "name": "",
  "subaccountId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/userprofiles/:profileId/creativeGroups")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"groupNumber\": 0,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/creativeGroups"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"groupNumber\": 0,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\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  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"groupNumber\": 0,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/creativeGroups")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/userprofiles/:profileId/creativeGroups")
  .header("content-type", "application/json")
  .body("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"groupNumber\": 0,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  accountId: '',
  advertiserId: '',
  advertiserIdDimensionValue: {
    dimensionName: '',
    etag: '',
    id: '',
    kind: '',
    matchType: '',
    value: ''
  },
  groupNumber: 0,
  id: '',
  kind: '',
  name: '',
  subaccountId: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/userprofiles/:profileId/creativeGroups');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/userprofiles/:profileId/creativeGroups',
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    groupNumber: 0,
    id: '',
    kind: '',
    name: '',
    subaccountId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/creativeGroups';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","advertiserId":"","advertiserIdDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"groupNumber":0,"id":"","kind":"","name":"","subaccountId":""}'
};

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}}/userprofiles/:profileId/creativeGroups',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "accountId": "",\n  "advertiserId": "",\n  "advertiserIdDimensionValue": {\n    "dimensionName": "",\n    "etag": "",\n    "id": "",\n    "kind": "",\n    "matchType": "",\n    "value": ""\n  },\n  "groupNumber": 0,\n  "id": "",\n  "kind": "",\n  "name": "",\n  "subaccountId": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"groupNumber\": 0,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/creativeGroups")
  .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/userprofiles/:profileId/creativeGroups',
  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({
  accountId: '',
  advertiserId: '',
  advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
  groupNumber: 0,
  id: '',
  kind: '',
  name: '',
  subaccountId: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/userprofiles/:profileId/creativeGroups',
  headers: {'content-type': 'application/json'},
  body: {
    accountId: '',
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    groupNumber: 0,
    id: '',
    kind: '',
    name: '',
    subaccountId: ''
  },
  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}}/userprofiles/:profileId/creativeGroups');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  accountId: '',
  advertiserId: '',
  advertiserIdDimensionValue: {
    dimensionName: '',
    etag: '',
    id: '',
    kind: '',
    matchType: '',
    value: ''
  },
  groupNumber: 0,
  id: '',
  kind: '',
  name: '',
  subaccountId: ''
});

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}}/userprofiles/:profileId/creativeGroups',
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    groupNumber: 0,
    id: '',
    kind: '',
    name: '',
    subaccountId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/creativeGroups';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","advertiserId":"","advertiserIdDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"groupNumber":0,"id":"","kind":"","name":"","subaccountId":""}'
};

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 = @{ @"accountId": @"",
                              @"advertiserId": @"",
                              @"advertiserIdDimensionValue": @{ @"dimensionName": @"", @"etag": @"", @"id": @"", @"kind": @"", @"matchType": @"", @"value": @"" },
                              @"groupNumber": @0,
                              @"id": @"",
                              @"kind": @"",
                              @"name": @"",
                              @"subaccountId": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/userprofiles/:profileId/creativeGroups"]
                                                       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}}/userprofiles/:profileId/creativeGroups" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"groupNumber\": 0,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/creativeGroups",
  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([
    'accountId' => '',
    'advertiserId' => '',
    'advertiserIdDimensionValue' => [
        'dimensionName' => '',
        'etag' => '',
        'id' => '',
        'kind' => '',
        'matchType' => '',
        'value' => ''
    ],
    'groupNumber' => 0,
    'id' => '',
    'kind' => '',
    'name' => '',
    'subaccountId' => ''
  ]),
  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}}/userprofiles/:profileId/creativeGroups', [
  'body' => '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "groupNumber": 0,
  "id": "",
  "kind": "",
  "name": "",
  "subaccountId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/creativeGroups');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'accountId' => '',
  'advertiserId' => '',
  'advertiserIdDimensionValue' => [
    'dimensionName' => '',
    'etag' => '',
    'id' => '',
    'kind' => '',
    'matchType' => '',
    'value' => ''
  ],
  'groupNumber' => 0,
  'id' => '',
  'kind' => '',
  'name' => '',
  'subaccountId' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'accountId' => '',
  'advertiserId' => '',
  'advertiserIdDimensionValue' => [
    'dimensionName' => '',
    'etag' => '',
    'id' => '',
    'kind' => '',
    'matchType' => '',
    'value' => ''
  ],
  'groupNumber' => 0,
  'id' => '',
  'kind' => '',
  'name' => '',
  'subaccountId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/userprofiles/:profileId/creativeGroups');
$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}}/userprofiles/:profileId/creativeGroups' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "groupNumber": 0,
  "id": "",
  "kind": "",
  "name": "",
  "subaccountId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/creativeGroups' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "groupNumber": 0,
  "id": "",
  "kind": "",
  "name": "",
  "subaccountId": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"groupNumber\": 0,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/userprofiles/:profileId/creativeGroups", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/creativeGroups"

payload = {
    "accountId": "",
    "advertiserId": "",
    "advertiserIdDimensionValue": {
        "dimensionName": "",
        "etag": "",
        "id": "",
        "kind": "",
        "matchType": "",
        "value": ""
    },
    "groupNumber": 0,
    "id": "",
    "kind": "",
    "name": "",
    "subaccountId": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/creativeGroups"

payload <- "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"groupNumber\": 0,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\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}}/userprofiles/:profileId/creativeGroups")

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  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"groupNumber\": 0,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\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/userprofiles/:profileId/creativeGroups') do |req|
  req.body = "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"groupNumber\": 0,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/creativeGroups";

    let payload = json!({
        "accountId": "",
        "advertiserId": "",
        "advertiserIdDimensionValue": json!({
            "dimensionName": "",
            "etag": "",
            "id": "",
            "kind": "",
            "matchType": "",
            "value": ""
        }),
        "groupNumber": 0,
        "id": "",
        "kind": "",
        "name": "",
        "subaccountId": ""
    });

    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}}/userprofiles/:profileId/creativeGroups \
  --header 'content-type: application/json' \
  --data '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "groupNumber": 0,
  "id": "",
  "kind": "",
  "name": "",
  "subaccountId": ""
}'
echo '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "groupNumber": 0,
  "id": "",
  "kind": "",
  "name": "",
  "subaccountId": ""
}' |  \
  http POST {{baseUrl}}/userprofiles/:profileId/creativeGroups \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "accountId": "",\n  "advertiserId": "",\n  "advertiserIdDimensionValue": {\n    "dimensionName": "",\n    "etag": "",\n    "id": "",\n    "kind": "",\n    "matchType": "",\n    "value": ""\n  },\n  "groupNumber": 0,\n  "id": "",\n  "kind": "",\n  "name": "",\n  "subaccountId": ""\n}' \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/creativeGroups
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": [
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  ],
  "groupNumber": 0,
  "id": "",
  "kind": "",
  "name": "",
  "subaccountId": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/creativeGroups")! 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 dfareporting.creativeGroups.list
{{baseUrl}}/userprofiles/:profileId/creativeGroups
QUERY PARAMS

profileId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/creativeGroups");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/creativeGroups")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/creativeGroups"

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}}/userprofiles/:profileId/creativeGroups"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/creativeGroups");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/creativeGroups"

	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/userprofiles/:profileId/creativeGroups HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/creativeGroups")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/creativeGroups"))
    .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}}/userprofiles/:profileId/creativeGroups")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/creativeGroups")
  .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}}/userprofiles/:profileId/creativeGroups');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/creativeGroups'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/creativeGroups';
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}}/userprofiles/:profileId/creativeGroups',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/creativeGroups")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/creativeGroups',
  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}}/userprofiles/:profileId/creativeGroups'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/creativeGroups');

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}}/userprofiles/:profileId/creativeGroups'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/creativeGroups';
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}}/userprofiles/:profileId/creativeGroups"]
                                                       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}}/userprofiles/:profileId/creativeGroups" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/creativeGroups",
  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}}/userprofiles/:profileId/creativeGroups');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/creativeGroups');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/creativeGroups');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/creativeGroups' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/creativeGroups' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/creativeGroups")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/creativeGroups"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/creativeGroups"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/creativeGroups")

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/userprofiles/:profileId/creativeGroups') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/creativeGroups";

    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}}/userprofiles/:profileId/creativeGroups
http GET {{baseUrl}}/userprofiles/:profileId/creativeGroups
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/creativeGroups
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/creativeGroups")! 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 dfareporting.creativeGroups.patch
{{baseUrl}}/userprofiles/:profileId/creativeGroups
QUERY PARAMS

id
profileId
BODY json

{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "groupNumber": 0,
  "id": "",
  "kind": "",
  "name": "",
  "subaccountId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/creativeGroups?id=");

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  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"groupNumber\": 0,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/patch "{{baseUrl}}/userprofiles/:profileId/creativeGroups" {:query-params {:id ""}
                                                                                    :content-type :json
                                                                                    :form-params {:accountId ""
                                                                                                  :advertiserId ""
                                                                                                  :advertiserIdDimensionValue {:dimensionName ""
                                                                                                                               :etag ""
                                                                                                                               :id ""
                                                                                                                               :kind ""
                                                                                                                               :matchType ""
                                                                                                                               :value ""}
                                                                                                  :groupNumber 0
                                                                                                  :id ""
                                                                                                  :kind ""
                                                                                                  :name ""
                                                                                                  :subaccountId ""}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/creativeGroups?id="
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"groupNumber\": 0,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\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}}/userprofiles/:profileId/creativeGroups?id="),
    Content = new StringContent("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"groupNumber\": 0,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\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}}/userprofiles/:profileId/creativeGroups?id=");
var request = new RestRequest("", Method.Patch);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"groupNumber\": 0,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/creativeGroups?id="

	payload := strings.NewReader("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"groupNumber\": 0,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\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/userprofiles/:profileId/creativeGroups?id= HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 272

{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "groupNumber": 0,
  "id": "",
  "kind": "",
  "name": "",
  "subaccountId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/userprofiles/:profileId/creativeGroups?id=")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"groupNumber\": 0,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/creativeGroups?id="))
    .header("content-type", "application/json")
    .method("PATCH", HttpRequest.BodyPublishers.ofString("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"groupNumber\": 0,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\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  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"groupNumber\": 0,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/creativeGroups?id=")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/userprofiles/:profileId/creativeGroups?id=")
  .header("content-type", "application/json")
  .body("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"groupNumber\": 0,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  accountId: '',
  advertiserId: '',
  advertiserIdDimensionValue: {
    dimensionName: '',
    etag: '',
    id: '',
    kind: '',
    matchType: '',
    value: ''
  },
  groupNumber: 0,
  id: '',
  kind: '',
  name: '',
  subaccountId: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PATCH', '{{baseUrl}}/userprofiles/:profileId/creativeGroups?id=');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/userprofiles/:profileId/creativeGroups',
  params: {id: ''},
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    groupNumber: 0,
    id: '',
    kind: '',
    name: '',
    subaccountId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/creativeGroups?id=';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","advertiserId":"","advertiserIdDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"groupNumber":0,"id":"","kind":"","name":"","subaccountId":""}'
};

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}}/userprofiles/:profileId/creativeGroups?id=',
  method: 'PATCH',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "accountId": "",\n  "advertiserId": "",\n  "advertiserIdDimensionValue": {\n    "dimensionName": "",\n    "etag": "",\n    "id": "",\n    "kind": "",\n    "matchType": "",\n    "value": ""\n  },\n  "groupNumber": 0,\n  "id": "",\n  "kind": "",\n  "name": "",\n  "subaccountId": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"groupNumber\": 0,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/creativeGroups?id=")
  .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/userprofiles/:profileId/creativeGroups?id=',
  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({
  accountId: '',
  advertiserId: '',
  advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
  groupNumber: 0,
  id: '',
  kind: '',
  name: '',
  subaccountId: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/userprofiles/:profileId/creativeGroups',
  qs: {id: ''},
  headers: {'content-type': 'application/json'},
  body: {
    accountId: '',
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    groupNumber: 0,
    id: '',
    kind: '',
    name: '',
    subaccountId: ''
  },
  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}}/userprofiles/:profileId/creativeGroups');

req.query({
  id: ''
});

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  accountId: '',
  advertiserId: '',
  advertiserIdDimensionValue: {
    dimensionName: '',
    etag: '',
    id: '',
    kind: '',
    matchType: '',
    value: ''
  },
  groupNumber: 0,
  id: '',
  kind: '',
  name: '',
  subaccountId: ''
});

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}}/userprofiles/:profileId/creativeGroups',
  params: {id: ''},
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    groupNumber: 0,
    id: '',
    kind: '',
    name: '',
    subaccountId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/creativeGroups?id=';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","advertiserId":"","advertiserIdDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"groupNumber":0,"id":"","kind":"","name":"","subaccountId":""}'
};

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 = @{ @"accountId": @"",
                              @"advertiserId": @"",
                              @"advertiserIdDimensionValue": @{ @"dimensionName": @"", @"etag": @"", @"id": @"", @"kind": @"", @"matchType": @"", @"value": @"" },
                              @"groupNumber": @0,
                              @"id": @"",
                              @"kind": @"",
                              @"name": @"",
                              @"subaccountId": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/userprofiles/:profileId/creativeGroups?id="]
                                                       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}}/userprofiles/:profileId/creativeGroups?id=" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"groupNumber\": 0,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}" in

Client.call ~headers ~body `PATCH uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/creativeGroups?id=",
  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([
    'accountId' => '',
    'advertiserId' => '',
    'advertiserIdDimensionValue' => [
        'dimensionName' => '',
        'etag' => '',
        'id' => '',
        'kind' => '',
        'matchType' => '',
        'value' => ''
    ],
    'groupNumber' => 0,
    'id' => '',
    'kind' => '',
    'name' => '',
    'subaccountId' => ''
  ]),
  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}}/userprofiles/:profileId/creativeGroups?id=', [
  'body' => '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "groupNumber": 0,
  "id": "",
  "kind": "",
  "name": "",
  "subaccountId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/creativeGroups');
$request->setMethod(HttpRequest::HTTP_METH_PATCH);

$request->setQueryData([
  'id' => ''
]);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'accountId' => '',
  'advertiserId' => '',
  'advertiserIdDimensionValue' => [
    'dimensionName' => '',
    'etag' => '',
    'id' => '',
    'kind' => '',
    'matchType' => '',
    'value' => ''
  ],
  'groupNumber' => 0,
  'id' => '',
  'kind' => '',
  'name' => '',
  'subaccountId' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'accountId' => '',
  'advertiserId' => '',
  'advertiserIdDimensionValue' => [
    'dimensionName' => '',
    'etag' => '',
    'id' => '',
    'kind' => '',
    'matchType' => '',
    'value' => ''
  ],
  'groupNumber' => 0,
  'id' => '',
  'kind' => '',
  'name' => '',
  'subaccountId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/userprofiles/:profileId/creativeGroups');
$request->setRequestMethod('PATCH');
$request->setBody($body);

$request->setQuery(new http\QueryString([
  'id' => ''
]));

$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}}/userprofiles/:profileId/creativeGroups?id=' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "groupNumber": 0,
  "id": "",
  "kind": "",
  "name": "",
  "subaccountId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/creativeGroups?id=' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "groupNumber": 0,
  "id": "",
  "kind": "",
  "name": "",
  "subaccountId": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"groupNumber\": 0,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("PATCH", "/baseUrl/userprofiles/:profileId/creativeGroups?id=", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/creativeGroups"

querystring = {"id":""}

payload = {
    "accountId": "",
    "advertiserId": "",
    "advertiserIdDimensionValue": {
        "dimensionName": "",
        "etag": "",
        "id": "",
        "kind": "",
        "matchType": "",
        "value": ""
    },
    "groupNumber": 0,
    "id": "",
    "kind": "",
    "name": "",
    "subaccountId": ""
}
headers = {"content-type": "application/json"}

response = requests.patch(url, json=payload, headers=headers, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/creativeGroups"

queryString <- list(id = "")

payload <- "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"groupNumber\": 0,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}"

encode <- "json"

response <- VERB("PATCH", url, body = payload, query = queryString, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/creativeGroups?id=")

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  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"groupNumber\": 0,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\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/userprofiles/:profileId/creativeGroups') do |req|
  req.params['id'] = ''
  req.body = "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"groupNumber\": 0,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\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}}/userprofiles/:profileId/creativeGroups";

    let querystring = [
        ("id", ""),
    ];

    let payload = json!({
        "accountId": "",
        "advertiserId": "",
        "advertiserIdDimensionValue": json!({
            "dimensionName": "",
            "etag": "",
            "id": "",
            "kind": "",
            "matchType": "",
            "value": ""
        }),
        "groupNumber": 0,
        "id": "",
        "kind": "",
        "name": "",
        "subaccountId": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PATCH").unwrap(), url)
        .query(&querystring)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PATCH \
  --url '{{baseUrl}}/userprofiles/:profileId/creativeGroups?id=' \
  --header 'content-type: application/json' \
  --data '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "groupNumber": 0,
  "id": "",
  "kind": "",
  "name": "",
  "subaccountId": ""
}'
echo '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "groupNumber": 0,
  "id": "",
  "kind": "",
  "name": "",
  "subaccountId": ""
}' |  \
  http PATCH '{{baseUrl}}/userprofiles/:profileId/creativeGroups?id=' \
  content-type:application/json
wget --quiet \
  --method PATCH \
  --header 'content-type: application/json' \
  --body-data '{\n  "accountId": "",\n  "advertiserId": "",\n  "advertiserIdDimensionValue": {\n    "dimensionName": "",\n    "etag": "",\n    "id": "",\n    "kind": "",\n    "matchType": "",\n    "value": ""\n  },\n  "groupNumber": 0,\n  "id": "",\n  "kind": "",\n  "name": "",\n  "subaccountId": ""\n}' \
  --output-document \
  - '{{baseUrl}}/userprofiles/:profileId/creativeGroups?id='
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": [
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  ],
  "groupNumber": 0,
  "id": "",
  "kind": "",
  "name": "",
  "subaccountId": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/creativeGroups?id=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PATCH"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
PUT dfareporting.creativeGroups.update
{{baseUrl}}/userprofiles/:profileId/creativeGroups
QUERY PARAMS

profileId
BODY json

{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "groupNumber": 0,
  "id": "",
  "kind": "",
  "name": "",
  "subaccountId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/creativeGroups");

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  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"groupNumber\": 0,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/userprofiles/:profileId/creativeGroups" {:content-type :json
                                                                                  :form-params {:accountId ""
                                                                                                :advertiserId ""
                                                                                                :advertiserIdDimensionValue {:dimensionName ""
                                                                                                                             :etag ""
                                                                                                                             :id ""
                                                                                                                             :kind ""
                                                                                                                             :matchType ""
                                                                                                                             :value ""}
                                                                                                :groupNumber 0
                                                                                                :id ""
                                                                                                :kind ""
                                                                                                :name ""
                                                                                                :subaccountId ""}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/creativeGroups"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"groupNumber\": 0,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/userprofiles/:profileId/creativeGroups"),
    Content = new StringContent("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"groupNumber\": 0,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\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}}/userprofiles/:profileId/creativeGroups");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"groupNumber\": 0,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/creativeGroups"

	payload := strings.NewReader("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"groupNumber\": 0,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/userprofiles/:profileId/creativeGroups HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 272

{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "groupNumber": 0,
  "id": "",
  "kind": "",
  "name": "",
  "subaccountId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/userprofiles/:profileId/creativeGroups")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"groupNumber\": 0,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/creativeGroups"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"groupNumber\": 0,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\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  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"groupNumber\": 0,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/creativeGroups")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/userprofiles/:profileId/creativeGroups")
  .header("content-type", "application/json")
  .body("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"groupNumber\": 0,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  accountId: '',
  advertiserId: '',
  advertiserIdDimensionValue: {
    dimensionName: '',
    etag: '',
    id: '',
    kind: '',
    matchType: '',
    value: ''
  },
  groupNumber: 0,
  id: '',
  kind: '',
  name: '',
  subaccountId: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/userprofiles/:profileId/creativeGroups');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/userprofiles/:profileId/creativeGroups',
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    groupNumber: 0,
    id: '',
    kind: '',
    name: '',
    subaccountId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/creativeGroups';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","advertiserId":"","advertiserIdDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"groupNumber":0,"id":"","kind":"","name":"","subaccountId":""}'
};

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}}/userprofiles/:profileId/creativeGroups',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "accountId": "",\n  "advertiserId": "",\n  "advertiserIdDimensionValue": {\n    "dimensionName": "",\n    "etag": "",\n    "id": "",\n    "kind": "",\n    "matchType": "",\n    "value": ""\n  },\n  "groupNumber": 0,\n  "id": "",\n  "kind": "",\n  "name": "",\n  "subaccountId": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"groupNumber\": 0,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/creativeGroups")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/creativeGroups',
  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({
  accountId: '',
  advertiserId: '',
  advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
  groupNumber: 0,
  id: '',
  kind: '',
  name: '',
  subaccountId: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/userprofiles/:profileId/creativeGroups',
  headers: {'content-type': 'application/json'},
  body: {
    accountId: '',
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    groupNumber: 0,
    id: '',
    kind: '',
    name: '',
    subaccountId: ''
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/userprofiles/:profileId/creativeGroups');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  accountId: '',
  advertiserId: '',
  advertiserIdDimensionValue: {
    dimensionName: '',
    etag: '',
    id: '',
    kind: '',
    matchType: '',
    value: ''
  },
  groupNumber: 0,
  id: '',
  kind: '',
  name: '',
  subaccountId: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/userprofiles/:profileId/creativeGroups',
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    groupNumber: 0,
    id: '',
    kind: '',
    name: '',
    subaccountId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/creativeGroups';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","advertiserId":"","advertiserIdDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"groupNumber":0,"id":"","kind":"","name":"","subaccountId":""}'
};

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 = @{ @"accountId": @"",
                              @"advertiserId": @"",
                              @"advertiserIdDimensionValue": @{ @"dimensionName": @"", @"etag": @"", @"id": @"", @"kind": @"", @"matchType": @"", @"value": @"" },
                              @"groupNumber": @0,
                              @"id": @"",
                              @"kind": @"",
                              @"name": @"",
                              @"subaccountId": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/userprofiles/:profileId/creativeGroups"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/userprofiles/:profileId/creativeGroups" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"groupNumber\": 0,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/creativeGroups",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'accountId' => '',
    'advertiserId' => '',
    'advertiserIdDimensionValue' => [
        'dimensionName' => '',
        'etag' => '',
        'id' => '',
        'kind' => '',
        'matchType' => '',
        'value' => ''
    ],
    'groupNumber' => 0,
    'id' => '',
    'kind' => '',
    'name' => '',
    'subaccountId' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/userprofiles/:profileId/creativeGroups', [
  'body' => '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "groupNumber": 0,
  "id": "",
  "kind": "",
  "name": "",
  "subaccountId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/creativeGroups');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'accountId' => '',
  'advertiserId' => '',
  'advertiserIdDimensionValue' => [
    'dimensionName' => '',
    'etag' => '',
    'id' => '',
    'kind' => '',
    'matchType' => '',
    'value' => ''
  ],
  'groupNumber' => 0,
  'id' => '',
  'kind' => '',
  'name' => '',
  'subaccountId' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'accountId' => '',
  'advertiserId' => '',
  'advertiserIdDimensionValue' => [
    'dimensionName' => '',
    'etag' => '',
    'id' => '',
    'kind' => '',
    'matchType' => '',
    'value' => ''
  ],
  'groupNumber' => 0,
  'id' => '',
  'kind' => '',
  'name' => '',
  'subaccountId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/userprofiles/:profileId/creativeGroups');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/creativeGroups' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "groupNumber": 0,
  "id": "",
  "kind": "",
  "name": "",
  "subaccountId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/creativeGroups' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "groupNumber": 0,
  "id": "",
  "kind": "",
  "name": "",
  "subaccountId": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"groupNumber\": 0,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/userprofiles/:profileId/creativeGroups", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/creativeGroups"

payload = {
    "accountId": "",
    "advertiserId": "",
    "advertiserIdDimensionValue": {
        "dimensionName": "",
        "etag": "",
        "id": "",
        "kind": "",
        "matchType": "",
        "value": ""
    },
    "groupNumber": 0,
    "id": "",
    "kind": "",
    "name": "",
    "subaccountId": ""
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/creativeGroups"

payload <- "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"groupNumber\": 0,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}"

encode <- "json"

response <- VERB("PUT", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/creativeGroups")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"groupNumber\": 0,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.put('/baseUrl/userprofiles/:profileId/creativeGroups') do |req|
  req.body = "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"groupNumber\": 0,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\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}}/userprofiles/:profileId/creativeGroups";

    let payload = json!({
        "accountId": "",
        "advertiserId": "",
        "advertiserIdDimensionValue": json!({
            "dimensionName": "",
            "etag": "",
            "id": "",
            "kind": "",
            "matchType": "",
            "value": ""
        }),
        "groupNumber": 0,
        "id": "",
        "kind": "",
        "name": "",
        "subaccountId": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/userprofiles/:profileId/creativeGroups \
  --header 'content-type: application/json' \
  --data '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "groupNumber": 0,
  "id": "",
  "kind": "",
  "name": "",
  "subaccountId": ""
}'
echo '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "groupNumber": 0,
  "id": "",
  "kind": "",
  "name": "",
  "subaccountId": ""
}' |  \
  http PUT {{baseUrl}}/userprofiles/:profileId/creativeGroups \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "accountId": "",\n  "advertiserId": "",\n  "advertiserIdDimensionValue": {\n    "dimensionName": "",\n    "etag": "",\n    "id": "",\n    "kind": "",\n    "matchType": "",\n    "value": ""\n  },\n  "groupNumber": 0,\n  "id": "",\n  "kind": "",\n  "name": "",\n  "subaccountId": ""\n}' \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/creativeGroups
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": [
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  ],
  "groupNumber": 0,
  "id": "",
  "kind": "",
  "name": "",
  "subaccountId": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/creativeGroups")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET dfareporting.creatives.get
{{baseUrl}}/userprofiles/:profileId/creatives/:id
QUERY PARAMS

profileId
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/creatives/:id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/creatives/:id")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/creatives/:id"

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}}/userprofiles/:profileId/creatives/:id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/creatives/:id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/creatives/:id"

	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/userprofiles/:profileId/creatives/:id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/creatives/:id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/creatives/:id"))
    .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}}/userprofiles/:profileId/creatives/:id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/creatives/:id")
  .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}}/userprofiles/:profileId/creatives/:id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/creatives/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/creatives/:id';
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}}/userprofiles/:profileId/creatives/:id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/creatives/:id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/creatives/:id',
  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}}/userprofiles/:profileId/creatives/:id'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/creatives/:id');

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}}/userprofiles/:profileId/creatives/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/creatives/:id';
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}}/userprofiles/:profileId/creatives/:id"]
                                                       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}}/userprofiles/:profileId/creatives/:id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/creatives/:id",
  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}}/userprofiles/:profileId/creatives/:id');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/creatives/:id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/creatives/:id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/creatives/:id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/creatives/:id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/creatives/:id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/creatives/:id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/creatives/:id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/creatives/:id")

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/userprofiles/:profileId/creatives/:id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/creatives/:id";

    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}}/userprofiles/:profileId/creatives/:id
http GET {{baseUrl}}/userprofiles/:profileId/creatives/:id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/creatives/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/creatives/:id")! 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 dfareporting.creatives.insert
{{baseUrl}}/userprofiles/:profileId/creatives
QUERY PARAMS

profileId
BODY json

{
  "accountId": "",
  "active": false,
  "adParameters": "",
  "adTagKeys": [],
  "additionalSizes": [
    {
      "height": 0,
      "iab": false,
      "id": "",
      "kind": "",
      "width": 0
    }
  ],
  "advertiserId": "",
  "allowScriptAccess": false,
  "archived": false,
  "artworkType": "",
  "authoringSource": "",
  "authoringTool": "",
  "autoAdvanceImages": false,
  "backgroundColor": "",
  "backupImageClickThroughUrl": {
    "computedClickThroughUrl": "",
    "customClickThroughUrl": "",
    "landingPageId": ""
  },
  "backupImageFeatures": [],
  "backupImageReportingLabel": "",
  "backupImageTargetWindow": {
    "customHtml": "",
    "targetWindowOption": ""
  },
  "clickTags": [
    {
      "clickThroughUrl": {},
      "eventName": "",
      "name": ""
    }
  ],
  "commercialId": "",
  "companionCreatives": [],
  "compatibility": [],
  "convertFlashToHtml5": false,
  "counterCustomEvents": [
    {
      "advertiserCustomEventId": "",
      "advertiserCustomEventName": "",
      "advertiserCustomEventType": "",
      "artworkLabel": "",
      "artworkType": "",
      "exitClickThroughUrl": {},
      "id": "",
      "popupWindowProperties": {
        "dimension": {},
        "offset": {
          "left": 0,
          "top": 0
        },
        "positionType": "",
        "showAddressBar": false,
        "showMenuBar": false,
        "showScrollBar": false,
        "showStatusBar": false,
        "showToolBar": false,
        "title": ""
      },
      "targetType": "",
      "videoReportingId": ""
    }
  ],
  "creativeAssetSelection": {
    "defaultAssetId": "",
    "rules": [
      {
        "assetId": "",
        "name": "",
        "targetingTemplateId": ""
      }
    ]
  },
  "creativeAssets": [
    {
      "actionScript3": false,
      "active": false,
      "additionalSizes": [
        {}
      ],
      "alignment": "",
      "artworkType": "",
      "assetIdentifier": {
        "name": "",
        "type": ""
      },
      "audioBitRate": 0,
      "audioSampleRate": 0,
      "backupImageExit": {},
      "bitRate": 0,
      "childAssetType": "",
      "collapsedSize": {},
      "companionCreativeIds": [],
      "customStartTimeValue": 0,
      "detectedFeatures": [],
      "displayType": "",
      "duration": 0,
      "durationType": "",
      "expandedDimension": {},
      "fileSize": "",
      "flashVersion": 0,
      "frameRate": "",
      "hideFlashObjects": false,
      "hideSelectionBoxes": false,
      "horizontallyLocked": false,
      "id": "",
      "idDimensionValue": {
        "dimensionName": "",
        "etag": "",
        "id": "",
        "kind": "",
        "matchType": "",
        "value": ""
      },
      "mediaDuration": "",
      "mimeType": "",
      "offset": {},
      "orientation": "",
      "originalBackup": false,
      "politeLoad": false,
      "position": {},
      "positionLeftUnit": "",
      "positionTopUnit": "",
      "progressiveServingUrl": "",
      "pushdown": false,
      "pushdownDuration": "",
      "role": "",
      "size": {},
      "sslCompliant": false,
      "startTimeType": "",
      "streamingServingUrl": "",
      "transparency": false,
      "verticallyLocked": false,
      "windowMode": "",
      "zIndex": 0,
      "zipFilename": "",
      "zipFilesize": ""
    }
  ],
  "creativeFieldAssignments": [
    {
      "creativeFieldId": "",
      "creativeFieldValueId": ""
    }
  ],
  "customKeyValues": [],
  "dynamicAssetSelection": false,
  "exitCustomEvents": [
    {}
  ],
  "fsCommand": {
    "left": 0,
    "positionOption": "",
    "top": 0,
    "windowHeight": 0,
    "windowWidth": 0
  },
  "htmlCode": "",
  "htmlCodeLocked": false,
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "lastModifiedInfo": {
    "time": ""
  },
  "latestTraffickedCreativeId": "",
  "mediaDescription": "",
  "mediaDuration": "",
  "name": "",
  "obaIcon": {
    "iconClickThroughUrl": "",
    "iconClickTrackingUrl": "",
    "iconViewTrackingUrl": "",
    "program": "",
    "resourceUrl": "",
    "size": {},
    "xPosition": "",
    "yPosition": ""
  },
  "overrideCss": "",
  "progressOffset": {
    "offsetPercentage": 0,
    "offsetSeconds": 0
  },
  "redirectUrl": "",
  "renderingId": "",
  "renderingIdDimensionValue": {},
  "requiredFlashPluginVersion": "",
  "requiredFlashVersion": 0,
  "size": {},
  "skipOffset": {},
  "skippable": false,
  "sslCompliant": false,
  "sslOverride": false,
  "studioAdvertiserId": "",
  "studioCreativeId": "",
  "studioTraffickedCreativeId": "",
  "subaccountId": "",
  "thirdPartyBackupImageImpressionsUrl": "",
  "thirdPartyRichMediaImpressionsUrl": "",
  "thirdPartyUrls": [
    {
      "thirdPartyUrlType": "",
      "url": ""
    }
  ],
  "timerCustomEvents": [
    {}
  ],
  "totalFileSize": "",
  "type": "",
  "universalAdId": {
    "registry": "",
    "value": ""
  },
  "version": 0
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/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  \"accountId\": \"\",\n  \"active\": false,\n  \"adParameters\": \"\",\n  \"adTagKeys\": [],\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"allowScriptAccess\": false,\n  \"archived\": false,\n  \"artworkType\": \"\",\n  \"authoringSource\": \"\",\n  \"authoringTool\": \"\",\n  \"autoAdvanceImages\": false,\n  \"backgroundColor\": \"\",\n  \"backupImageClickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"landingPageId\": \"\"\n  },\n  \"backupImageFeatures\": [],\n  \"backupImageReportingLabel\": \"\",\n  \"backupImageTargetWindow\": {\n    \"customHtml\": \"\",\n    \"targetWindowOption\": \"\"\n  },\n  \"clickTags\": [\n    {\n      \"clickThroughUrl\": {},\n      \"eventName\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"commercialId\": \"\",\n  \"companionCreatives\": [],\n  \"compatibility\": [],\n  \"convertFlashToHtml5\": false,\n  \"counterCustomEvents\": [\n    {\n      \"advertiserCustomEventId\": \"\",\n      \"advertiserCustomEventName\": \"\",\n      \"advertiserCustomEventType\": \"\",\n      \"artworkLabel\": \"\",\n      \"artworkType\": \"\",\n      \"exitClickThroughUrl\": {},\n      \"id\": \"\",\n      \"popupWindowProperties\": {\n        \"dimension\": {},\n        \"offset\": {\n          \"left\": 0,\n          \"top\": 0\n        },\n        \"positionType\": \"\",\n        \"showAddressBar\": false,\n        \"showMenuBar\": false,\n        \"showScrollBar\": false,\n        \"showStatusBar\": false,\n        \"showToolBar\": false,\n        \"title\": \"\"\n      },\n      \"targetType\": \"\",\n      \"videoReportingId\": \"\"\n    }\n  ],\n  \"creativeAssetSelection\": {\n    \"defaultAssetId\": \"\",\n    \"rules\": [\n      {\n        \"assetId\": \"\",\n        \"name\": \"\",\n        \"targetingTemplateId\": \"\"\n      }\n    ]\n  },\n  \"creativeAssets\": [\n    {\n      \"actionScript3\": false,\n      \"active\": false,\n      \"additionalSizes\": [\n        {}\n      ],\n      \"alignment\": \"\",\n      \"artworkType\": \"\",\n      \"assetIdentifier\": {\n        \"name\": \"\",\n        \"type\": \"\"\n      },\n      \"audioBitRate\": 0,\n      \"audioSampleRate\": 0,\n      \"backupImageExit\": {},\n      \"bitRate\": 0,\n      \"childAssetType\": \"\",\n      \"collapsedSize\": {},\n      \"companionCreativeIds\": [],\n      \"customStartTimeValue\": 0,\n      \"detectedFeatures\": [],\n      \"displayType\": \"\",\n      \"duration\": 0,\n      \"durationType\": \"\",\n      \"expandedDimension\": {},\n      \"fileSize\": \"\",\n      \"flashVersion\": 0,\n      \"frameRate\": \"\",\n      \"hideFlashObjects\": false,\n      \"hideSelectionBoxes\": false,\n      \"horizontallyLocked\": false,\n      \"id\": \"\",\n      \"idDimensionValue\": {\n        \"dimensionName\": \"\",\n        \"etag\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"matchType\": \"\",\n        \"value\": \"\"\n      },\n      \"mediaDuration\": \"\",\n      \"mimeType\": \"\",\n      \"offset\": {},\n      \"orientation\": \"\",\n      \"originalBackup\": false,\n      \"politeLoad\": false,\n      \"position\": {},\n      \"positionLeftUnit\": \"\",\n      \"positionTopUnit\": \"\",\n      \"progressiveServingUrl\": \"\",\n      \"pushdown\": false,\n      \"pushdownDuration\": \"\",\n      \"role\": \"\",\n      \"size\": {},\n      \"sslCompliant\": false,\n      \"startTimeType\": \"\",\n      \"streamingServingUrl\": \"\",\n      \"transparency\": false,\n      \"verticallyLocked\": false,\n      \"windowMode\": \"\",\n      \"zIndex\": 0,\n      \"zipFilename\": \"\",\n      \"zipFilesize\": \"\"\n    }\n  ],\n  \"creativeFieldAssignments\": [\n    {\n      \"creativeFieldId\": \"\",\n      \"creativeFieldValueId\": \"\"\n    }\n  ],\n  \"customKeyValues\": [],\n  \"dynamicAssetSelection\": false,\n  \"exitCustomEvents\": [\n    {}\n  ],\n  \"fsCommand\": {\n    \"left\": 0,\n    \"positionOption\": \"\",\n    \"top\": 0,\n    \"windowHeight\": 0,\n    \"windowWidth\": 0\n  },\n  \"htmlCode\": \"\",\n  \"htmlCodeLocked\": false,\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {\n    \"time\": \"\"\n  },\n  \"latestTraffickedCreativeId\": \"\",\n  \"mediaDescription\": \"\",\n  \"mediaDuration\": \"\",\n  \"name\": \"\",\n  \"obaIcon\": {\n    \"iconClickThroughUrl\": \"\",\n    \"iconClickTrackingUrl\": \"\",\n    \"iconViewTrackingUrl\": \"\",\n    \"program\": \"\",\n    \"resourceUrl\": \"\",\n    \"size\": {},\n    \"xPosition\": \"\",\n    \"yPosition\": \"\"\n  },\n  \"overrideCss\": \"\",\n  \"progressOffset\": {\n    \"offsetPercentage\": 0,\n    \"offsetSeconds\": 0\n  },\n  \"redirectUrl\": \"\",\n  \"renderingId\": \"\",\n  \"renderingIdDimensionValue\": {},\n  \"requiredFlashPluginVersion\": \"\",\n  \"requiredFlashVersion\": 0,\n  \"size\": {},\n  \"skipOffset\": {},\n  \"skippable\": false,\n  \"sslCompliant\": false,\n  \"sslOverride\": false,\n  \"studioAdvertiserId\": \"\",\n  \"studioCreativeId\": \"\",\n  \"studioTraffickedCreativeId\": \"\",\n  \"subaccountId\": \"\",\n  \"thirdPartyBackupImageImpressionsUrl\": \"\",\n  \"thirdPartyRichMediaImpressionsUrl\": \"\",\n  \"thirdPartyUrls\": [\n    {\n      \"thirdPartyUrlType\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"timerCustomEvents\": [\n    {}\n  ],\n  \"totalFileSize\": \"\",\n  \"type\": \"\",\n  \"universalAdId\": {\n    \"registry\": \"\",\n    \"value\": \"\"\n  },\n  \"version\": 0\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/userprofiles/:profileId/creatives" {:content-type :json
                                                                              :form-params {:accountId ""
                                                                                            :active false
                                                                                            :adParameters ""
                                                                                            :adTagKeys []
                                                                                            :additionalSizes [{:height 0
                                                                                                               :iab false
                                                                                                               :id ""
                                                                                                               :kind ""
                                                                                                               :width 0}]
                                                                                            :advertiserId ""
                                                                                            :allowScriptAccess false
                                                                                            :archived false
                                                                                            :artworkType ""
                                                                                            :authoringSource ""
                                                                                            :authoringTool ""
                                                                                            :autoAdvanceImages false
                                                                                            :backgroundColor ""
                                                                                            :backupImageClickThroughUrl {:computedClickThroughUrl ""
                                                                                                                         :customClickThroughUrl ""
                                                                                                                         :landingPageId ""}
                                                                                            :backupImageFeatures []
                                                                                            :backupImageReportingLabel ""
                                                                                            :backupImageTargetWindow {:customHtml ""
                                                                                                                      :targetWindowOption ""}
                                                                                            :clickTags [{:clickThroughUrl {}
                                                                                                         :eventName ""
                                                                                                         :name ""}]
                                                                                            :commercialId ""
                                                                                            :companionCreatives []
                                                                                            :compatibility []
                                                                                            :convertFlashToHtml5 false
                                                                                            :counterCustomEvents [{:advertiserCustomEventId ""
                                                                                                                   :advertiserCustomEventName ""
                                                                                                                   :advertiserCustomEventType ""
                                                                                                                   :artworkLabel ""
                                                                                                                   :artworkType ""
                                                                                                                   :exitClickThroughUrl {}
                                                                                                                   :id ""
                                                                                                                   :popupWindowProperties {:dimension {}
                                                                                                                                           :offset {:left 0
                                                                                                                                                    :top 0}
                                                                                                                                           :positionType ""
                                                                                                                                           :showAddressBar false
                                                                                                                                           :showMenuBar false
                                                                                                                                           :showScrollBar false
                                                                                                                                           :showStatusBar false
                                                                                                                                           :showToolBar false
                                                                                                                                           :title ""}
                                                                                                                   :targetType ""
                                                                                                                   :videoReportingId ""}]
                                                                                            :creativeAssetSelection {:defaultAssetId ""
                                                                                                                     :rules [{:assetId ""
                                                                                                                              :name ""
                                                                                                                              :targetingTemplateId ""}]}
                                                                                            :creativeAssets [{:actionScript3 false
                                                                                                              :active false
                                                                                                              :additionalSizes [{}]
                                                                                                              :alignment ""
                                                                                                              :artworkType ""
                                                                                                              :assetIdentifier {:name ""
                                                                                                                                :type ""}
                                                                                                              :audioBitRate 0
                                                                                                              :audioSampleRate 0
                                                                                                              :backupImageExit {}
                                                                                                              :bitRate 0
                                                                                                              :childAssetType ""
                                                                                                              :collapsedSize {}
                                                                                                              :companionCreativeIds []
                                                                                                              :customStartTimeValue 0
                                                                                                              :detectedFeatures []
                                                                                                              :displayType ""
                                                                                                              :duration 0
                                                                                                              :durationType ""
                                                                                                              :expandedDimension {}
                                                                                                              :fileSize ""
                                                                                                              :flashVersion 0
                                                                                                              :frameRate ""
                                                                                                              :hideFlashObjects false
                                                                                                              :hideSelectionBoxes false
                                                                                                              :horizontallyLocked false
                                                                                                              :id ""
                                                                                                              :idDimensionValue {:dimensionName ""
                                                                                                                                 :etag ""
                                                                                                                                 :id ""
                                                                                                                                 :kind ""
                                                                                                                                 :matchType ""
                                                                                                                                 :value ""}
                                                                                                              :mediaDuration ""
                                                                                                              :mimeType ""
                                                                                                              :offset {}
                                                                                                              :orientation ""
                                                                                                              :originalBackup false
                                                                                                              :politeLoad false
                                                                                                              :position {}
                                                                                                              :positionLeftUnit ""
                                                                                                              :positionTopUnit ""
                                                                                                              :progressiveServingUrl ""
                                                                                                              :pushdown false
                                                                                                              :pushdownDuration ""
                                                                                                              :role ""
                                                                                                              :size {}
                                                                                                              :sslCompliant false
                                                                                                              :startTimeType ""
                                                                                                              :streamingServingUrl ""
                                                                                                              :transparency false
                                                                                                              :verticallyLocked false
                                                                                                              :windowMode ""
                                                                                                              :zIndex 0
                                                                                                              :zipFilename ""
                                                                                                              :zipFilesize ""}]
                                                                                            :creativeFieldAssignments [{:creativeFieldId ""
                                                                                                                        :creativeFieldValueId ""}]
                                                                                            :customKeyValues []
                                                                                            :dynamicAssetSelection false
                                                                                            :exitCustomEvents [{}]
                                                                                            :fsCommand {:left 0
                                                                                                        :positionOption ""
                                                                                                        :top 0
                                                                                                        :windowHeight 0
                                                                                                        :windowWidth 0}
                                                                                            :htmlCode ""
                                                                                            :htmlCodeLocked false
                                                                                            :id ""
                                                                                            :idDimensionValue {}
                                                                                            :kind ""
                                                                                            :lastModifiedInfo {:time ""}
                                                                                            :latestTraffickedCreativeId ""
                                                                                            :mediaDescription ""
                                                                                            :mediaDuration ""
                                                                                            :name ""
                                                                                            :obaIcon {:iconClickThroughUrl ""
                                                                                                      :iconClickTrackingUrl ""
                                                                                                      :iconViewTrackingUrl ""
                                                                                                      :program ""
                                                                                                      :resourceUrl ""
                                                                                                      :size {}
                                                                                                      :xPosition ""
                                                                                                      :yPosition ""}
                                                                                            :overrideCss ""
                                                                                            :progressOffset {:offsetPercentage 0
                                                                                                             :offsetSeconds 0}
                                                                                            :redirectUrl ""
                                                                                            :renderingId ""
                                                                                            :renderingIdDimensionValue {}
                                                                                            :requiredFlashPluginVersion ""
                                                                                            :requiredFlashVersion 0
                                                                                            :size {}
                                                                                            :skipOffset {}
                                                                                            :skippable false
                                                                                            :sslCompliant false
                                                                                            :sslOverride false
                                                                                            :studioAdvertiserId ""
                                                                                            :studioCreativeId ""
                                                                                            :studioTraffickedCreativeId ""
                                                                                            :subaccountId ""
                                                                                            :thirdPartyBackupImageImpressionsUrl ""
                                                                                            :thirdPartyRichMediaImpressionsUrl ""
                                                                                            :thirdPartyUrls [{:thirdPartyUrlType ""
                                                                                                              :url ""}]
                                                                                            :timerCustomEvents [{}]
                                                                                            :totalFileSize ""
                                                                                            :type ""
                                                                                            :universalAdId {:registry ""
                                                                                                            :value ""}
                                                                                            :version 0}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/creatives"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"adParameters\": \"\",\n  \"adTagKeys\": [],\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"allowScriptAccess\": false,\n  \"archived\": false,\n  \"artworkType\": \"\",\n  \"authoringSource\": \"\",\n  \"authoringTool\": \"\",\n  \"autoAdvanceImages\": false,\n  \"backgroundColor\": \"\",\n  \"backupImageClickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"landingPageId\": \"\"\n  },\n  \"backupImageFeatures\": [],\n  \"backupImageReportingLabel\": \"\",\n  \"backupImageTargetWindow\": {\n    \"customHtml\": \"\",\n    \"targetWindowOption\": \"\"\n  },\n  \"clickTags\": [\n    {\n      \"clickThroughUrl\": {},\n      \"eventName\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"commercialId\": \"\",\n  \"companionCreatives\": [],\n  \"compatibility\": [],\n  \"convertFlashToHtml5\": false,\n  \"counterCustomEvents\": [\n    {\n      \"advertiserCustomEventId\": \"\",\n      \"advertiserCustomEventName\": \"\",\n      \"advertiserCustomEventType\": \"\",\n      \"artworkLabel\": \"\",\n      \"artworkType\": \"\",\n      \"exitClickThroughUrl\": {},\n      \"id\": \"\",\n      \"popupWindowProperties\": {\n        \"dimension\": {},\n        \"offset\": {\n          \"left\": 0,\n          \"top\": 0\n        },\n        \"positionType\": \"\",\n        \"showAddressBar\": false,\n        \"showMenuBar\": false,\n        \"showScrollBar\": false,\n        \"showStatusBar\": false,\n        \"showToolBar\": false,\n        \"title\": \"\"\n      },\n      \"targetType\": \"\",\n      \"videoReportingId\": \"\"\n    }\n  ],\n  \"creativeAssetSelection\": {\n    \"defaultAssetId\": \"\",\n    \"rules\": [\n      {\n        \"assetId\": \"\",\n        \"name\": \"\",\n        \"targetingTemplateId\": \"\"\n      }\n    ]\n  },\n  \"creativeAssets\": [\n    {\n      \"actionScript3\": false,\n      \"active\": false,\n      \"additionalSizes\": [\n        {}\n      ],\n      \"alignment\": \"\",\n      \"artworkType\": \"\",\n      \"assetIdentifier\": {\n        \"name\": \"\",\n        \"type\": \"\"\n      },\n      \"audioBitRate\": 0,\n      \"audioSampleRate\": 0,\n      \"backupImageExit\": {},\n      \"bitRate\": 0,\n      \"childAssetType\": \"\",\n      \"collapsedSize\": {},\n      \"companionCreativeIds\": [],\n      \"customStartTimeValue\": 0,\n      \"detectedFeatures\": [],\n      \"displayType\": \"\",\n      \"duration\": 0,\n      \"durationType\": \"\",\n      \"expandedDimension\": {},\n      \"fileSize\": \"\",\n      \"flashVersion\": 0,\n      \"frameRate\": \"\",\n      \"hideFlashObjects\": false,\n      \"hideSelectionBoxes\": false,\n      \"horizontallyLocked\": false,\n      \"id\": \"\",\n      \"idDimensionValue\": {\n        \"dimensionName\": \"\",\n        \"etag\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"matchType\": \"\",\n        \"value\": \"\"\n      },\n      \"mediaDuration\": \"\",\n      \"mimeType\": \"\",\n      \"offset\": {},\n      \"orientation\": \"\",\n      \"originalBackup\": false,\n      \"politeLoad\": false,\n      \"position\": {},\n      \"positionLeftUnit\": \"\",\n      \"positionTopUnit\": \"\",\n      \"progressiveServingUrl\": \"\",\n      \"pushdown\": false,\n      \"pushdownDuration\": \"\",\n      \"role\": \"\",\n      \"size\": {},\n      \"sslCompliant\": false,\n      \"startTimeType\": \"\",\n      \"streamingServingUrl\": \"\",\n      \"transparency\": false,\n      \"verticallyLocked\": false,\n      \"windowMode\": \"\",\n      \"zIndex\": 0,\n      \"zipFilename\": \"\",\n      \"zipFilesize\": \"\"\n    }\n  ],\n  \"creativeFieldAssignments\": [\n    {\n      \"creativeFieldId\": \"\",\n      \"creativeFieldValueId\": \"\"\n    }\n  ],\n  \"customKeyValues\": [],\n  \"dynamicAssetSelection\": false,\n  \"exitCustomEvents\": [\n    {}\n  ],\n  \"fsCommand\": {\n    \"left\": 0,\n    \"positionOption\": \"\",\n    \"top\": 0,\n    \"windowHeight\": 0,\n    \"windowWidth\": 0\n  },\n  \"htmlCode\": \"\",\n  \"htmlCodeLocked\": false,\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {\n    \"time\": \"\"\n  },\n  \"latestTraffickedCreativeId\": \"\",\n  \"mediaDescription\": \"\",\n  \"mediaDuration\": \"\",\n  \"name\": \"\",\n  \"obaIcon\": {\n    \"iconClickThroughUrl\": \"\",\n    \"iconClickTrackingUrl\": \"\",\n    \"iconViewTrackingUrl\": \"\",\n    \"program\": \"\",\n    \"resourceUrl\": \"\",\n    \"size\": {},\n    \"xPosition\": \"\",\n    \"yPosition\": \"\"\n  },\n  \"overrideCss\": \"\",\n  \"progressOffset\": {\n    \"offsetPercentage\": 0,\n    \"offsetSeconds\": 0\n  },\n  \"redirectUrl\": \"\",\n  \"renderingId\": \"\",\n  \"renderingIdDimensionValue\": {},\n  \"requiredFlashPluginVersion\": \"\",\n  \"requiredFlashVersion\": 0,\n  \"size\": {},\n  \"skipOffset\": {},\n  \"skippable\": false,\n  \"sslCompliant\": false,\n  \"sslOverride\": false,\n  \"studioAdvertiserId\": \"\",\n  \"studioCreativeId\": \"\",\n  \"studioTraffickedCreativeId\": \"\",\n  \"subaccountId\": \"\",\n  \"thirdPartyBackupImageImpressionsUrl\": \"\",\n  \"thirdPartyRichMediaImpressionsUrl\": \"\",\n  \"thirdPartyUrls\": [\n    {\n      \"thirdPartyUrlType\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"timerCustomEvents\": [\n    {}\n  ],\n  \"totalFileSize\": \"\",\n  \"type\": \"\",\n  \"universalAdId\": {\n    \"registry\": \"\",\n    \"value\": \"\"\n  },\n  \"version\": 0\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}}/userprofiles/:profileId/creatives"),
    Content = new StringContent("{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"adParameters\": \"\",\n  \"adTagKeys\": [],\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"allowScriptAccess\": false,\n  \"archived\": false,\n  \"artworkType\": \"\",\n  \"authoringSource\": \"\",\n  \"authoringTool\": \"\",\n  \"autoAdvanceImages\": false,\n  \"backgroundColor\": \"\",\n  \"backupImageClickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"landingPageId\": \"\"\n  },\n  \"backupImageFeatures\": [],\n  \"backupImageReportingLabel\": \"\",\n  \"backupImageTargetWindow\": {\n    \"customHtml\": \"\",\n    \"targetWindowOption\": \"\"\n  },\n  \"clickTags\": [\n    {\n      \"clickThroughUrl\": {},\n      \"eventName\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"commercialId\": \"\",\n  \"companionCreatives\": [],\n  \"compatibility\": [],\n  \"convertFlashToHtml5\": false,\n  \"counterCustomEvents\": [\n    {\n      \"advertiserCustomEventId\": \"\",\n      \"advertiserCustomEventName\": \"\",\n      \"advertiserCustomEventType\": \"\",\n      \"artworkLabel\": \"\",\n      \"artworkType\": \"\",\n      \"exitClickThroughUrl\": {},\n      \"id\": \"\",\n      \"popupWindowProperties\": {\n        \"dimension\": {},\n        \"offset\": {\n          \"left\": 0,\n          \"top\": 0\n        },\n        \"positionType\": \"\",\n        \"showAddressBar\": false,\n        \"showMenuBar\": false,\n        \"showScrollBar\": false,\n        \"showStatusBar\": false,\n        \"showToolBar\": false,\n        \"title\": \"\"\n      },\n      \"targetType\": \"\",\n      \"videoReportingId\": \"\"\n    }\n  ],\n  \"creativeAssetSelection\": {\n    \"defaultAssetId\": \"\",\n    \"rules\": [\n      {\n        \"assetId\": \"\",\n        \"name\": \"\",\n        \"targetingTemplateId\": \"\"\n      }\n    ]\n  },\n  \"creativeAssets\": [\n    {\n      \"actionScript3\": false,\n      \"active\": false,\n      \"additionalSizes\": [\n        {}\n      ],\n      \"alignment\": \"\",\n      \"artworkType\": \"\",\n      \"assetIdentifier\": {\n        \"name\": \"\",\n        \"type\": \"\"\n      },\n      \"audioBitRate\": 0,\n      \"audioSampleRate\": 0,\n      \"backupImageExit\": {},\n      \"bitRate\": 0,\n      \"childAssetType\": \"\",\n      \"collapsedSize\": {},\n      \"companionCreativeIds\": [],\n      \"customStartTimeValue\": 0,\n      \"detectedFeatures\": [],\n      \"displayType\": \"\",\n      \"duration\": 0,\n      \"durationType\": \"\",\n      \"expandedDimension\": {},\n      \"fileSize\": \"\",\n      \"flashVersion\": 0,\n      \"frameRate\": \"\",\n      \"hideFlashObjects\": false,\n      \"hideSelectionBoxes\": false,\n      \"horizontallyLocked\": false,\n      \"id\": \"\",\n      \"idDimensionValue\": {\n        \"dimensionName\": \"\",\n        \"etag\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"matchType\": \"\",\n        \"value\": \"\"\n      },\n      \"mediaDuration\": \"\",\n      \"mimeType\": \"\",\n      \"offset\": {},\n      \"orientation\": \"\",\n      \"originalBackup\": false,\n      \"politeLoad\": false,\n      \"position\": {},\n      \"positionLeftUnit\": \"\",\n      \"positionTopUnit\": \"\",\n      \"progressiveServingUrl\": \"\",\n      \"pushdown\": false,\n      \"pushdownDuration\": \"\",\n      \"role\": \"\",\n      \"size\": {},\n      \"sslCompliant\": false,\n      \"startTimeType\": \"\",\n      \"streamingServingUrl\": \"\",\n      \"transparency\": false,\n      \"verticallyLocked\": false,\n      \"windowMode\": \"\",\n      \"zIndex\": 0,\n      \"zipFilename\": \"\",\n      \"zipFilesize\": \"\"\n    }\n  ],\n  \"creativeFieldAssignments\": [\n    {\n      \"creativeFieldId\": \"\",\n      \"creativeFieldValueId\": \"\"\n    }\n  ],\n  \"customKeyValues\": [],\n  \"dynamicAssetSelection\": false,\n  \"exitCustomEvents\": [\n    {}\n  ],\n  \"fsCommand\": {\n    \"left\": 0,\n    \"positionOption\": \"\",\n    \"top\": 0,\n    \"windowHeight\": 0,\n    \"windowWidth\": 0\n  },\n  \"htmlCode\": \"\",\n  \"htmlCodeLocked\": false,\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {\n    \"time\": \"\"\n  },\n  \"latestTraffickedCreativeId\": \"\",\n  \"mediaDescription\": \"\",\n  \"mediaDuration\": \"\",\n  \"name\": \"\",\n  \"obaIcon\": {\n    \"iconClickThroughUrl\": \"\",\n    \"iconClickTrackingUrl\": \"\",\n    \"iconViewTrackingUrl\": \"\",\n    \"program\": \"\",\n    \"resourceUrl\": \"\",\n    \"size\": {},\n    \"xPosition\": \"\",\n    \"yPosition\": \"\"\n  },\n  \"overrideCss\": \"\",\n  \"progressOffset\": {\n    \"offsetPercentage\": 0,\n    \"offsetSeconds\": 0\n  },\n  \"redirectUrl\": \"\",\n  \"renderingId\": \"\",\n  \"renderingIdDimensionValue\": {},\n  \"requiredFlashPluginVersion\": \"\",\n  \"requiredFlashVersion\": 0,\n  \"size\": {},\n  \"skipOffset\": {},\n  \"skippable\": false,\n  \"sslCompliant\": false,\n  \"sslOverride\": false,\n  \"studioAdvertiserId\": \"\",\n  \"studioCreativeId\": \"\",\n  \"studioTraffickedCreativeId\": \"\",\n  \"subaccountId\": \"\",\n  \"thirdPartyBackupImageImpressionsUrl\": \"\",\n  \"thirdPartyRichMediaImpressionsUrl\": \"\",\n  \"thirdPartyUrls\": [\n    {\n      \"thirdPartyUrlType\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"timerCustomEvents\": [\n    {}\n  ],\n  \"totalFileSize\": \"\",\n  \"type\": \"\",\n  \"universalAdId\": {\n    \"registry\": \"\",\n    \"value\": \"\"\n  },\n  \"version\": 0\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}}/userprofiles/:profileId/creatives");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"adParameters\": \"\",\n  \"adTagKeys\": [],\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"allowScriptAccess\": false,\n  \"archived\": false,\n  \"artworkType\": \"\",\n  \"authoringSource\": \"\",\n  \"authoringTool\": \"\",\n  \"autoAdvanceImages\": false,\n  \"backgroundColor\": \"\",\n  \"backupImageClickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"landingPageId\": \"\"\n  },\n  \"backupImageFeatures\": [],\n  \"backupImageReportingLabel\": \"\",\n  \"backupImageTargetWindow\": {\n    \"customHtml\": \"\",\n    \"targetWindowOption\": \"\"\n  },\n  \"clickTags\": [\n    {\n      \"clickThroughUrl\": {},\n      \"eventName\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"commercialId\": \"\",\n  \"companionCreatives\": [],\n  \"compatibility\": [],\n  \"convertFlashToHtml5\": false,\n  \"counterCustomEvents\": [\n    {\n      \"advertiserCustomEventId\": \"\",\n      \"advertiserCustomEventName\": \"\",\n      \"advertiserCustomEventType\": \"\",\n      \"artworkLabel\": \"\",\n      \"artworkType\": \"\",\n      \"exitClickThroughUrl\": {},\n      \"id\": \"\",\n      \"popupWindowProperties\": {\n        \"dimension\": {},\n        \"offset\": {\n          \"left\": 0,\n          \"top\": 0\n        },\n        \"positionType\": \"\",\n        \"showAddressBar\": false,\n        \"showMenuBar\": false,\n        \"showScrollBar\": false,\n        \"showStatusBar\": false,\n        \"showToolBar\": false,\n        \"title\": \"\"\n      },\n      \"targetType\": \"\",\n      \"videoReportingId\": \"\"\n    }\n  ],\n  \"creativeAssetSelection\": {\n    \"defaultAssetId\": \"\",\n    \"rules\": [\n      {\n        \"assetId\": \"\",\n        \"name\": \"\",\n        \"targetingTemplateId\": \"\"\n      }\n    ]\n  },\n  \"creativeAssets\": [\n    {\n      \"actionScript3\": false,\n      \"active\": false,\n      \"additionalSizes\": [\n        {}\n      ],\n      \"alignment\": \"\",\n      \"artworkType\": \"\",\n      \"assetIdentifier\": {\n        \"name\": \"\",\n        \"type\": \"\"\n      },\n      \"audioBitRate\": 0,\n      \"audioSampleRate\": 0,\n      \"backupImageExit\": {},\n      \"bitRate\": 0,\n      \"childAssetType\": \"\",\n      \"collapsedSize\": {},\n      \"companionCreativeIds\": [],\n      \"customStartTimeValue\": 0,\n      \"detectedFeatures\": [],\n      \"displayType\": \"\",\n      \"duration\": 0,\n      \"durationType\": \"\",\n      \"expandedDimension\": {},\n      \"fileSize\": \"\",\n      \"flashVersion\": 0,\n      \"frameRate\": \"\",\n      \"hideFlashObjects\": false,\n      \"hideSelectionBoxes\": false,\n      \"horizontallyLocked\": false,\n      \"id\": \"\",\n      \"idDimensionValue\": {\n        \"dimensionName\": \"\",\n        \"etag\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"matchType\": \"\",\n        \"value\": \"\"\n      },\n      \"mediaDuration\": \"\",\n      \"mimeType\": \"\",\n      \"offset\": {},\n      \"orientation\": \"\",\n      \"originalBackup\": false,\n      \"politeLoad\": false,\n      \"position\": {},\n      \"positionLeftUnit\": \"\",\n      \"positionTopUnit\": \"\",\n      \"progressiveServingUrl\": \"\",\n      \"pushdown\": false,\n      \"pushdownDuration\": \"\",\n      \"role\": \"\",\n      \"size\": {},\n      \"sslCompliant\": false,\n      \"startTimeType\": \"\",\n      \"streamingServingUrl\": \"\",\n      \"transparency\": false,\n      \"verticallyLocked\": false,\n      \"windowMode\": \"\",\n      \"zIndex\": 0,\n      \"zipFilename\": \"\",\n      \"zipFilesize\": \"\"\n    }\n  ],\n  \"creativeFieldAssignments\": [\n    {\n      \"creativeFieldId\": \"\",\n      \"creativeFieldValueId\": \"\"\n    }\n  ],\n  \"customKeyValues\": [],\n  \"dynamicAssetSelection\": false,\n  \"exitCustomEvents\": [\n    {}\n  ],\n  \"fsCommand\": {\n    \"left\": 0,\n    \"positionOption\": \"\",\n    \"top\": 0,\n    \"windowHeight\": 0,\n    \"windowWidth\": 0\n  },\n  \"htmlCode\": \"\",\n  \"htmlCodeLocked\": false,\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {\n    \"time\": \"\"\n  },\n  \"latestTraffickedCreativeId\": \"\",\n  \"mediaDescription\": \"\",\n  \"mediaDuration\": \"\",\n  \"name\": \"\",\n  \"obaIcon\": {\n    \"iconClickThroughUrl\": \"\",\n    \"iconClickTrackingUrl\": \"\",\n    \"iconViewTrackingUrl\": \"\",\n    \"program\": \"\",\n    \"resourceUrl\": \"\",\n    \"size\": {},\n    \"xPosition\": \"\",\n    \"yPosition\": \"\"\n  },\n  \"overrideCss\": \"\",\n  \"progressOffset\": {\n    \"offsetPercentage\": 0,\n    \"offsetSeconds\": 0\n  },\n  \"redirectUrl\": \"\",\n  \"renderingId\": \"\",\n  \"renderingIdDimensionValue\": {},\n  \"requiredFlashPluginVersion\": \"\",\n  \"requiredFlashVersion\": 0,\n  \"size\": {},\n  \"skipOffset\": {},\n  \"skippable\": false,\n  \"sslCompliant\": false,\n  \"sslOverride\": false,\n  \"studioAdvertiserId\": \"\",\n  \"studioCreativeId\": \"\",\n  \"studioTraffickedCreativeId\": \"\",\n  \"subaccountId\": \"\",\n  \"thirdPartyBackupImageImpressionsUrl\": \"\",\n  \"thirdPartyRichMediaImpressionsUrl\": \"\",\n  \"thirdPartyUrls\": [\n    {\n      \"thirdPartyUrlType\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"timerCustomEvents\": [\n    {}\n  ],\n  \"totalFileSize\": \"\",\n  \"type\": \"\",\n  \"universalAdId\": {\n    \"registry\": \"\",\n    \"value\": \"\"\n  },\n  \"version\": 0\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/creatives"

	payload := strings.NewReader("{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"adParameters\": \"\",\n  \"adTagKeys\": [],\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"allowScriptAccess\": false,\n  \"archived\": false,\n  \"artworkType\": \"\",\n  \"authoringSource\": \"\",\n  \"authoringTool\": \"\",\n  \"autoAdvanceImages\": false,\n  \"backgroundColor\": \"\",\n  \"backupImageClickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"landingPageId\": \"\"\n  },\n  \"backupImageFeatures\": [],\n  \"backupImageReportingLabel\": \"\",\n  \"backupImageTargetWindow\": {\n    \"customHtml\": \"\",\n    \"targetWindowOption\": \"\"\n  },\n  \"clickTags\": [\n    {\n      \"clickThroughUrl\": {},\n      \"eventName\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"commercialId\": \"\",\n  \"companionCreatives\": [],\n  \"compatibility\": [],\n  \"convertFlashToHtml5\": false,\n  \"counterCustomEvents\": [\n    {\n      \"advertiserCustomEventId\": \"\",\n      \"advertiserCustomEventName\": \"\",\n      \"advertiserCustomEventType\": \"\",\n      \"artworkLabel\": \"\",\n      \"artworkType\": \"\",\n      \"exitClickThroughUrl\": {},\n      \"id\": \"\",\n      \"popupWindowProperties\": {\n        \"dimension\": {},\n        \"offset\": {\n          \"left\": 0,\n          \"top\": 0\n        },\n        \"positionType\": \"\",\n        \"showAddressBar\": false,\n        \"showMenuBar\": false,\n        \"showScrollBar\": false,\n        \"showStatusBar\": false,\n        \"showToolBar\": false,\n        \"title\": \"\"\n      },\n      \"targetType\": \"\",\n      \"videoReportingId\": \"\"\n    }\n  ],\n  \"creativeAssetSelection\": {\n    \"defaultAssetId\": \"\",\n    \"rules\": [\n      {\n        \"assetId\": \"\",\n        \"name\": \"\",\n        \"targetingTemplateId\": \"\"\n      }\n    ]\n  },\n  \"creativeAssets\": [\n    {\n      \"actionScript3\": false,\n      \"active\": false,\n      \"additionalSizes\": [\n        {}\n      ],\n      \"alignment\": \"\",\n      \"artworkType\": \"\",\n      \"assetIdentifier\": {\n        \"name\": \"\",\n        \"type\": \"\"\n      },\n      \"audioBitRate\": 0,\n      \"audioSampleRate\": 0,\n      \"backupImageExit\": {},\n      \"bitRate\": 0,\n      \"childAssetType\": \"\",\n      \"collapsedSize\": {},\n      \"companionCreativeIds\": [],\n      \"customStartTimeValue\": 0,\n      \"detectedFeatures\": [],\n      \"displayType\": \"\",\n      \"duration\": 0,\n      \"durationType\": \"\",\n      \"expandedDimension\": {},\n      \"fileSize\": \"\",\n      \"flashVersion\": 0,\n      \"frameRate\": \"\",\n      \"hideFlashObjects\": false,\n      \"hideSelectionBoxes\": false,\n      \"horizontallyLocked\": false,\n      \"id\": \"\",\n      \"idDimensionValue\": {\n        \"dimensionName\": \"\",\n        \"etag\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"matchType\": \"\",\n        \"value\": \"\"\n      },\n      \"mediaDuration\": \"\",\n      \"mimeType\": \"\",\n      \"offset\": {},\n      \"orientation\": \"\",\n      \"originalBackup\": false,\n      \"politeLoad\": false,\n      \"position\": {},\n      \"positionLeftUnit\": \"\",\n      \"positionTopUnit\": \"\",\n      \"progressiveServingUrl\": \"\",\n      \"pushdown\": false,\n      \"pushdownDuration\": \"\",\n      \"role\": \"\",\n      \"size\": {},\n      \"sslCompliant\": false,\n      \"startTimeType\": \"\",\n      \"streamingServingUrl\": \"\",\n      \"transparency\": false,\n      \"verticallyLocked\": false,\n      \"windowMode\": \"\",\n      \"zIndex\": 0,\n      \"zipFilename\": \"\",\n      \"zipFilesize\": \"\"\n    }\n  ],\n  \"creativeFieldAssignments\": [\n    {\n      \"creativeFieldId\": \"\",\n      \"creativeFieldValueId\": \"\"\n    }\n  ],\n  \"customKeyValues\": [],\n  \"dynamicAssetSelection\": false,\n  \"exitCustomEvents\": [\n    {}\n  ],\n  \"fsCommand\": {\n    \"left\": 0,\n    \"positionOption\": \"\",\n    \"top\": 0,\n    \"windowHeight\": 0,\n    \"windowWidth\": 0\n  },\n  \"htmlCode\": \"\",\n  \"htmlCodeLocked\": false,\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {\n    \"time\": \"\"\n  },\n  \"latestTraffickedCreativeId\": \"\",\n  \"mediaDescription\": \"\",\n  \"mediaDuration\": \"\",\n  \"name\": \"\",\n  \"obaIcon\": {\n    \"iconClickThroughUrl\": \"\",\n    \"iconClickTrackingUrl\": \"\",\n    \"iconViewTrackingUrl\": \"\",\n    \"program\": \"\",\n    \"resourceUrl\": \"\",\n    \"size\": {},\n    \"xPosition\": \"\",\n    \"yPosition\": \"\"\n  },\n  \"overrideCss\": \"\",\n  \"progressOffset\": {\n    \"offsetPercentage\": 0,\n    \"offsetSeconds\": 0\n  },\n  \"redirectUrl\": \"\",\n  \"renderingId\": \"\",\n  \"renderingIdDimensionValue\": {},\n  \"requiredFlashPluginVersion\": \"\",\n  \"requiredFlashVersion\": 0,\n  \"size\": {},\n  \"skipOffset\": {},\n  \"skippable\": false,\n  \"sslCompliant\": false,\n  \"sslOverride\": false,\n  \"studioAdvertiserId\": \"\",\n  \"studioCreativeId\": \"\",\n  \"studioTraffickedCreativeId\": \"\",\n  \"subaccountId\": \"\",\n  \"thirdPartyBackupImageImpressionsUrl\": \"\",\n  \"thirdPartyRichMediaImpressionsUrl\": \"\",\n  \"thirdPartyUrls\": [\n    {\n      \"thirdPartyUrlType\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"timerCustomEvents\": [\n    {}\n  ],\n  \"totalFileSize\": \"\",\n  \"type\": \"\",\n  \"universalAdId\": {\n    \"registry\": \"\",\n    \"value\": \"\"\n  },\n  \"version\": 0\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/userprofiles/:profileId/creatives HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 4870

{
  "accountId": "",
  "active": false,
  "adParameters": "",
  "adTagKeys": [],
  "additionalSizes": [
    {
      "height": 0,
      "iab": false,
      "id": "",
      "kind": "",
      "width": 0
    }
  ],
  "advertiserId": "",
  "allowScriptAccess": false,
  "archived": false,
  "artworkType": "",
  "authoringSource": "",
  "authoringTool": "",
  "autoAdvanceImages": false,
  "backgroundColor": "",
  "backupImageClickThroughUrl": {
    "computedClickThroughUrl": "",
    "customClickThroughUrl": "",
    "landingPageId": ""
  },
  "backupImageFeatures": [],
  "backupImageReportingLabel": "",
  "backupImageTargetWindow": {
    "customHtml": "",
    "targetWindowOption": ""
  },
  "clickTags": [
    {
      "clickThroughUrl": {},
      "eventName": "",
      "name": ""
    }
  ],
  "commercialId": "",
  "companionCreatives": [],
  "compatibility": [],
  "convertFlashToHtml5": false,
  "counterCustomEvents": [
    {
      "advertiserCustomEventId": "",
      "advertiserCustomEventName": "",
      "advertiserCustomEventType": "",
      "artworkLabel": "",
      "artworkType": "",
      "exitClickThroughUrl": {},
      "id": "",
      "popupWindowProperties": {
        "dimension": {},
        "offset": {
          "left": 0,
          "top": 0
        },
        "positionType": "",
        "showAddressBar": false,
        "showMenuBar": false,
        "showScrollBar": false,
        "showStatusBar": false,
        "showToolBar": false,
        "title": ""
      },
      "targetType": "",
      "videoReportingId": ""
    }
  ],
  "creativeAssetSelection": {
    "defaultAssetId": "",
    "rules": [
      {
        "assetId": "",
        "name": "",
        "targetingTemplateId": ""
      }
    ]
  },
  "creativeAssets": [
    {
      "actionScript3": false,
      "active": false,
      "additionalSizes": [
        {}
      ],
      "alignment": "",
      "artworkType": "",
      "assetIdentifier": {
        "name": "",
        "type": ""
      },
      "audioBitRate": 0,
      "audioSampleRate": 0,
      "backupImageExit": {},
      "bitRate": 0,
      "childAssetType": "",
      "collapsedSize": {},
      "companionCreativeIds": [],
      "customStartTimeValue": 0,
      "detectedFeatures": [],
      "displayType": "",
      "duration": 0,
      "durationType": "",
      "expandedDimension": {},
      "fileSize": "",
      "flashVersion": 0,
      "frameRate": "",
      "hideFlashObjects": false,
      "hideSelectionBoxes": false,
      "horizontallyLocked": false,
      "id": "",
      "idDimensionValue": {
        "dimensionName": "",
        "etag": "",
        "id": "",
        "kind": "",
        "matchType": "",
        "value": ""
      },
      "mediaDuration": "",
      "mimeType": "",
      "offset": {},
      "orientation": "",
      "originalBackup": false,
      "politeLoad": false,
      "position": {},
      "positionLeftUnit": "",
      "positionTopUnit": "",
      "progressiveServingUrl": "",
      "pushdown": false,
      "pushdownDuration": "",
      "role": "",
      "size": {},
      "sslCompliant": false,
      "startTimeType": "",
      "streamingServingUrl": "",
      "transparency": false,
      "verticallyLocked": false,
      "windowMode": "",
      "zIndex": 0,
      "zipFilename": "",
      "zipFilesize": ""
    }
  ],
  "creativeFieldAssignments": [
    {
      "creativeFieldId": "",
      "creativeFieldValueId": ""
    }
  ],
  "customKeyValues": [],
  "dynamicAssetSelection": false,
  "exitCustomEvents": [
    {}
  ],
  "fsCommand": {
    "left": 0,
    "positionOption": "",
    "top": 0,
    "windowHeight": 0,
    "windowWidth": 0
  },
  "htmlCode": "",
  "htmlCodeLocked": false,
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "lastModifiedInfo": {
    "time": ""
  },
  "latestTraffickedCreativeId": "",
  "mediaDescription": "",
  "mediaDuration": "",
  "name": "",
  "obaIcon": {
    "iconClickThroughUrl": "",
    "iconClickTrackingUrl": "",
    "iconViewTrackingUrl": "",
    "program": "",
    "resourceUrl": "",
    "size": {},
    "xPosition": "",
    "yPosition": ""
  },
  "overrideCss": "",
  "progressOffset": {
    "offsetPercentage": 0,
    "offsetSeconds": 0
  },
  "redirectUrl": "",
  "renderingId": "",
  "renderingIdDimensionValue": {},
  "requiredFlashPluginVersion": "",
  "requiredFlashVersion": 0,
  "size": {},
  "skipOffset": {},
  "skippable": false,
  "sslCompliant": false,
  "sslOverride": false,
  "studioAdvertiserId": "",
  "studioCreativeId": "",
  "studioTraffickedCreativeId": "",
  "subaccountId": "",
  "thirdPartyBackupImageImpressionsUrl": "",
  "thirdPartyRichMediaImpressionsUrl": "",
  "thirdPartyUrls": [
    {
      "thirdPartyUrlType": "",
      "url": ""
    }
  ],
  "timerCustomEvents": [
    {}
  ],
  "totalFileSize": "",
  "type": "",
  "universalAdId": {
    "registry": "",
    "value": ""
  },
  "version": 0
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/userprofiles/:profileId/creatives")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"adParameters\": \"\",\n  \"adTagKeys\": [],\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"allowScriptAccess\": false,\n  \"archived\": false,\n  \"artworkType\": \"\",\n  \"authoringSource\": \"\",\n  \"authoringTool\": \"\",\n  \"autoAdvanceImages\": false,\n  \"backgroundColor\": \"\",\n  \"backupImageClickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"landingPageId\": \"\"\n  },\n  \"backupImageFeatures\": [],\n  \"backupImageReportingLabel\": \"\",\n  \"backupImageTargetWindow\": {\n    \"customHtml\": \"\",\n    \"targetWindowOption\": \"\"\n  },\n  \"clickTags\": [\n    {\n      \"clickThroughUrl\": {},\n      \"eventName\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"commercialId\": \"\",\n  \"companionCreatives\": [],\n  \"compatibility\": [],\n  \"convertFlashToHtml5\": false,\n  \"counterCustomEvents\": [\n    {\n      \"advertiserCustomEventId\": \"\",\n      \"advertiserCustomEventName\": \"\",\n      \"advertiserCustomEventType\": \"\",\n      \"artworkLabel\": \"\",\n      \"artworkType\": \"\",\n      \"exitClickThroughUrl\": {},\n      \"id\": \"\",\n      \"popupWindowProperties\": {\n        \"dimension\": {},\n        \"offset\": {\n          \"left\": 0,\n          \"top\": 0\n        },\n        \"positionType\": \"\",\n        \"showAddressBar\": false,\n        \"showMenuBar\": false,\n        \"showScrollBar\": false,\n        \"showStatusBar\": false,\n        \"showToolBar\": false,\n        \"title\": \"\"\n      },\n      \"targetType\": \"\",\n      \"videoReportingId\": \"\"\n    }\n  ],\n  \"creativeAssetSelection\": {\n    \"defaultAssetId\": \"\",\n    \"rules\": [\n      {\n        \"assetId\": \"\",\n        \"name\": \"\",\n        \"targetingTemplateId\": \"\"\n      }\n    ]\n  },\n  \"creativeAssets\": [\n    {\n      \"actionScript3\": false,\n      \"active\": false,\n      \"additionalSizes\": [\n        {}\n      ],\n      \"alignment\": \"\",\n      \"artworkType\": \"\",\n      \"assetIdentifier\": {\n        \"name\": \"\",\n        \"type\": \"\"\n      },\n      \"audioBitRate\": 0,\n      \"audioSampleRate\": 0,\n      \"backupImageExit\": {},\n      \"bitRate\": 0,\n      \"childAssetType\": \"\",\n      \"collapsedSize\": {},\n      \"companionCreativeIds\": [],\n      \"customStartTimeValue\": 0,\n      \"detectedFeatures\": [],\n      \"displayType\": \"\",\n      \"duration\": 0,\n      \"durationType\": \"\",\n      \"expandedDimension\": {},\n      \"fileSize\": \"\",\n      \"flashVersion\": 0,\n      \"frameRate\": \"\",\n      \"hideFlashObjects\": false,\n      \"hideSelectionBoxes\": false,\n      \"horizontallyLocked\": false,\n      \"id\": \"\",\n      \"idDimensionValue\": {\n        \"dimensionName\": \"\",\n        \"etag\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"matchType\": \"\",\n        \"value\": \"\"\n      },\n      \"mediaDuration\": \"\",\n      \"mimeType\": \"\",\n      \"offset\": {},\n      \"orientation\": \"\",\n      \"originalBackup\": false,\n      \"politeLoad\": false,\n      \"position\": {},\n      \"positionLeftUnit\": \"\",\n      \"positionTopUnit\": \"\",\n      \"progressiveServingUrl\": \"\",\n      \"pushdown\": false,\n      \"pushdownDuration\": \"\",\n      \"role\": \"\",\n      \"size\": {},\n      \"sslCompliant\": false,\n      \"startTimeType\": \"\",\n      \"streamingServingUrl\": \"\",\n      \"transparency\": false,\n      \"verticallyLocked\": false,\n      \"windowMode\": \"\",\n      \"zIndex\": 0,\n      \"zipFilename\": \"\",\n      \"zipFilesize\": \"\"\n    }\n  ],\n  \"creativeFieldAssignments\": [\n    {\n      \"creativeFieldId\": \"\",\n      \"creativeFieldValueId\": \"\"\n    }\n  ],\n  \"customKeyValues\": [],\n  \"dynamicAssetSelection\": false,\n  \"exitCustomEvents\": [\n    {}\n  ],\n  \"fsCommand\": {\n    \"left\": 0,\n    \"positionOption\": \"\",\n    \"top\": 0,\n    \"windowHeight\": 0,\n    \"windowWidth\": 0\n  },\n  \"htmlCode\": \"\",\n  \"htmlCodeLocked\": false,\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {\n    \"time\": \"\"\n  },\n  \"latestTraffickedCreativeId\": \"\",\n  \"mediaDescription\": \"\",\n  \"mediaDuration\": \"\",\n  \"name\": \"\",\n  \"obaIcon\": {\n    \"iconClickThroughUrl\": \"\",\n    \"iconClickTrackingUrl\": \"\",\n    \"iconViewTrackingUrl\": \"\",\n    \"program\": \"\",\n    \"resourceUrl\": \"\",\n    \"size\": {},\n    \"xPosition\": \"\",\n    \"yPosition\": \"\"\n  },\n  \"overrideCss\": \"\",\n  \"progressOffset\": {\n    \"offsetPercentage\": 0,\n    \"offsetSeconds\": 0\n  },\n  \"redirectUrl\": \"\",\n  \"renderingId\": \"\",\n  \"renderingIdDimensionValue\": {},\n  \"requiredFlashPluginVersion\": \"\",\n  \"requiredFlashVersion\": 0,\n  \"size\": {},\n  \"skipOffset\": {},\n  \"skippable\": false,\n  \"sslCompliant\": false,\n  \"sslOverride\": false,\n  \"studioAdvertiserId\": \"\",\n  \"studioCreativeId\": \"\",\n  \"studioTraffickedCreativeId\": \"\",\n  \"subaccountId\": \"\",\n  \"thirdPartyBackupImageImpressionsUrl\": \"\",\n  \"thirdPartyRichMediaImpressionsUrl\": \"\",\n  \"thirdPartyUrls\": [\n    {\n      \"thirdPartyUrlType\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"timerCustomEvents\": [\n    {}\n  ],\n  \"totalFileSize\": \"\",\n  \"type\": \"\",\n  \"universalAdId\": {\n    \"registry\": \"\",\n    \"value\": \"\"\n  },\n  \"version\": 0\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/creatives"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"adParameters\": \"\",\n  \"adTagKeys\": [],\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"allowScriptAccess\": false,\n  \"archived\": false,\n  \"artworkType\": \"\",\n  \"authoringSource\": \"\",\n  \"authoringTool\": \"\",\n  \"autoAdvanceImages\": false,\n  \"backgroundColor\": \"\",\n  \"backupImageClickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"landingPageId\": \"\"\n  },\n  \"backupImageFeatures\": [],\n  \"backupImageReportingLabel\": \"\",\n  \"backupImageTargetWindow\": {\n    \"customHtml\": \"\",\n    \"targetWindowOption\": \"\"\n  },\n  \"clickTags\": [\n    {\n      \"clickThroughUrl\": {},\n      \"eventName\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"commercialId\": \"\",\n  \"companionCreatives\": [],\n  \"compatibility\": [],\n  \"convertFlashToHtml5\": false,\n  \"counterCustomEvents\": [\n    {\n      \"advertiserCustomEventId\": \"\",\n      \"advertiserCustomEventName\": \"\",\n      \"advertiserCustomEventType\": \"\",\n      \"artworkLabel\": \"\",\n      \"artworkType\": \"\",\n      \"exitClickThroughUrl\": {},\n      \"id\": \"\",\n      \"popupWindowProperties\": {\n        \"dimension\": {},\n        \"offset\": {\n          \"left\": 0,\n          \"top\": 0\n        },\n        \"positionType\": \"\",\n        \"showAddressBar\": false,\n        \"showMenuBar\": false,\n        \"showScrollBar\": false,\n        \"showStatusBar\": false,\n        \"showToolBar\": false,\n        \"title\": \"\"\n      },\n      \"targetType\": \"\",\n      \"videoReportingId\": \"\"\n    }\n  ],\n  \"creativeAssetSelection\": {\n    \"defaultAssetId\": \"\",\n    \"rules\": [\n      {\n        \"assetId\": \"\",\n        \"name\": \"\",\n        \"targetingTemplateId\": \"\"\n      }\n    ]\n  },\n  \"creativeAssets\": [\n    {\n      \"actionScript3\": false,\n      \"active\": false,\n      \"additionalSizes\": [\n        {}\n      ],\n      \"alignment\": \"\",\n      \"artworkType\": \"\",\n      \"assetIdentifier\": {\n        \"name\": \"\",\n        \"type\": \"\"\n      },\n      \"audioBitRate\": 0,\n      \"audioSampleRate\": 0,\n      \"backupImageExit\": {},\n      \"bitRate\": 0,\n      \"childAssetType\": \"\",\n      \"collapsedSize\": {},\n      \"companionCreativeIds\": [],\n      \"customStartTimeValue\": 0,\n      \"detectedFeatures\": [],\n      \"displayType\": \"\",\n      \"duration\": 0,\n      \"durationType\": \"\",\n      \"expandedDimension\": {},\n      \"fileSize\": \"\",\n      \"flashVersion\": 0,\n      \"frameRate\": \"\",\n      \"hideFlashObjects\": false,\n      \"hideSelectionBoxes\": false,\n      \"horizontallyLocked\": false,\n      \"id\": \"\",\n      \"idDimensionValue\": {\n        \"dimensionName\": \"\",\n        \"etag\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"matchType\": \"\",\n        \"value\": \"\"\n      },\n      \"mediaDuration\": \"\",\n      \"mimeType\": \"\",\n      \"offset\": {},\n      \"orientation\": \"\",\n      \"originalBackup\": false,\n      \"politeLoad\": false,\n      \"position\": {},\n      \"positionLeftUnit\": \"\",\n      \"positionTopUnit\": \"\",\n      \"progressiveServingUrl\": \"\",\n      \"pushdown\": false,\n      \"pushdownDuration\": \"\",\n      \"role\": \"\",\n      \"size\": {},\n      \"sslCompliant\": false,\n      \"startTimeType\": \"\",\n      \"streamingServingUrl\": \"\",\n      \"transparency\": false,\n      \"verticallyLocked\": false,\n      \"windowMode\": \"\",\n      \"zIndex\": 0,\n      \"zipFilename\": \"\",\n      \"zipFilesize\": \"\"\n    }\n  ],\n  \"creativeFieldAssignments\": [\n    {\n      \"creativeFieldId\": \"\",\n      \"creativeFieldValueId\": \"\"\n    }\n  ],\n  \"customKeyValues\": [],\n  \"dynamicAssetSelection\": false,\n  \"exitCustomEvents\": [\n    {}\n  ],\n  \"fsCommand\": {\n    \"left\": 0,\n    \"positionOption\": \"\",\n    \"top\": 0,\n    \"windowHeight\": 0,\n    \"windowWidth\": 0\n  },\n  \"htmlCode\": \"\",\n  \"htmlCodeLocked\": false,\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {\n    \"time\": \"\"\n  },\n  \"latestTraffickedCreativeId\": \"\",\n  \"mediaDescription\": \"\",\n  \"mediaDuration\": \"\",\n  \"name\": \"\",\n  \"obaIcon\": {\n    \"iconClickThroughUrl\": \"\",\n    \"iconClickTrackingUrl\": \"\",\n    \"iconViewTrackingUrl\": \"\",\n    \"program\": \"\",\n    \"resourceUrl\": \"\",\n    \"size\": {},\n    \"xPosition\": \"\",\n    \"yPosition\": \"\"\n  },\n  \"overrideCss\": \"\",\n  \"progressOffset\": {\n    \"offsetPercentage\": 0,\n    \"offsetSeconds\": 0\n  },\n  \"redirectUrl\": \"\",\n  \"renderingId\": \"\",\n  \"renderingIdDimensionValue\": {},\n  \"requiredFlashPluginVersion\": \"\",\n  \"requiredFlashVersion\": 0,\n  \"size\": {},\n  \"skipOffset\": {},\n  \"skippable\": false,\n  \"sslCompliant\": false,\n  \"sslOverride\": false,\n  \"studioAdvertiserId\": \"\",\n  \"studioCreativeId\": \"\",\n  \"studioTraffickedCreativeId\": \"\",\n  \"subaccountId\": \"\",\n  \"thirdPartyBackupImageImpressionsUrl\": \"\",\n  \"thirdPartyRichMediaImpressionsUrl\": \"\",\n  \"thirdPartyUrls\": [\n    {\n      \"thirdPartyUrlType\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"timerCustomEvents\": [\n    {}\n  ],\n  \"totalFileSize\": \"\",\n  \"type\": \"\",\n  \"universalAdId\": {\n    \"registry\": \"\",\n    \"value\": \"\"\n  },\n  \"version\": 0\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  \"accountId\": \"\",\n  \"active\": false,\n  \"adParameters\": \"\",\n  \"adTagKeys\": [],\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"allowScriptAccess\": false,\n  \"archived\": false,\n  \"artworkType\": \"\",\n  \"authoringSource\": \"\",\n  \"authoringTool\": \"\",\n  \"autoAdvanceImages\": false,\n  \"backgroundColor\": \"\",\n  \"backupImageClickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"landingPageId\": \"\"\n  },\n  \"backupImageFeatures\": [],\n  \"backupImageReportingLabel\": \"\",\n  \"backupImageTargetWindow\": {\n    \"customHtml\": \"\",\n    \"targetWindowOption\": \"\"\n  },\n  \"clickTags\": [\n    {\n      \"clickThroughUrl\": {},\n      \"eventName\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"commercialId\": \"\",\n  \"companionCreatives\": [],\n  \"compatibility\": [],\n  \"convertFlashToHtml5\": false,\n  \"counterCustomEvents\": [\n    {\n      \"advertiserCustomEventId\": \"\",\n      \"advertiserCustomEventName\": \"\",\n      \"advertiserCustomEventType\": \"\",\n      \"artworkLabel\": \"\",\n      \"artworkType\": \"\",\n      \"exitClickThroughUrl\": {},\n      \"id\": \"\",\n      \"popupWindowProperties\": {\n        \"dimension\": {},\n        \"offset\": {\n          \"left\": 0,\n          \"top\": 0\n        },\n        \"positionType\": \"\",\n        \"showAddressBar\": false,\n        \"showMenuBar\": false,\n        \"showScrollBar\": false,\n        \"showStatusBar\": false,\n        \"showToolBar\": false,\n        \"title\": \"\"\n      },\n      \"targetType\": \"\",\n      \"videoReportingId\": \"\"\n    }\n  ],\n  \"creativeAssetSelection\": {\n    \"defaultAssetId\": \"\",\n    \"rules\": [\n      {\n        \"assetId\": \"\",\n        \"name\": \"\",\n        \"targetingTemplateId\": \"\"\n      }\n    ]\n  },\n  \"creativeAssets\": [\n    {\n      \"actionScript3\": false,\n      \"active\": false,\n      \"additionalSizes\": [\n        {}\n      ],\n      \"alignment\": \"\",\n      \"artworkType\": \"\",\n      \"assetIdentifier\": {\n        \"name\": \"\",\n        \"type\": \"\"\n      },\n      \"audioBitRate\": 0,\n      \"audioSampleRate\": 0,\n      \"backupImageExit\": {},\n      \"bitRate\": 0,\n      \"childAssetType\": \"\",\n      \"collapsedSize\": {},\n      \"companionCreativeIds\": [],\n      \"customStartTimeValue\": 0,\n      \"detectedFeatures\": [],\n      \"displayType\": \"\",\n      \"duration\": 0,\n      \"durationType\": \"\",\n      \"expandedDimension\": {},\n      \"fileSize\": \"\",\n      \"flashVersion\": 0,\n      \"frameRate\": \"\",\n      \"hideFlashObjects\": false,\n      \"hideSelectionBoxes\": false,\n      \"horizontallyLocked\": false,\n      \"id\": \"\",\n      \"idDimensionValue\": {\n        \"dimensionName\": \"\",\n        \"etag\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"matchType\": \"\",\n        \"value\": \"\"\n      },\n      \"mediaDuration\": \"\",\n      \"mimeType\": \"\",\n      \"offset\": {},\n      \"orientation\": \"\",\n      \"originalBackup\": false,\n      \"politeLoad\": false,\n      \"position\": {},\n      \"positionLeftUnit\": \"\",\n      \"positionTopUnit\": \"\",\n      \"progressiveServingUrl\": \"\",\n      \"pushdown\": false,\n      \"pushdownDuration\": \"\",\n      \"role\": \"\",\n      \"size\": {},\n      \"sslCompliant\": false,\n      \"startTimeType\": \"\",\n      \"streamingServingUrl\": \"\",\n      \"transparency\": false,\n      \"verticallyLocked\": false,\n      \"windowMode\": \"\",\n      \"zIndex\": 0,\n      \"zipFilename\": \"\",\n      \"zipFilesize\": \"\"\n    }\n  ],\n  \"creativeFieldAssignments\": [\n    {\n      \"creativeFieldId\": \"\",\n      \"creativeFieldValueId\": \"\"\n    }\n  ],\n  \"customKeyValues\": [],\n  \"dynamicAssetSelection\": false,\n  \"exitCustomEvents\": [\n    {}\n  ],\n  \"fsCommand\": {\n    \"left\": 0,\n    \"positionOption\": \"\",\n    \"top\": 0,\n    \"windowHeight\": 0,\n    \"windowWidth\": 0\n  },\n  \"htmlCode\": \"\",\n  \"htmlCodeLocked\": false,\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {\n    \"time\": \"\"\n  },\n  \"latestTraffickedCreativeId\": \"\",\n  \"mediaDescription\": \"\",\n  \"mediaDuration\": \"\",\n  \"name\": \"\",\n  \"obaIcon\": {\n    \"iconClickThroughUrl\": \"\",\n    \"iconClickTrackingUrl\": \"\",\n    \"iconViewTrackingUrl\": \"\",\n    \"program\": \"\",\n    \"resourceUrl\": \"\",\n    \"size\": {},\n    \"xPosition\": \"\",\n    \"yPosition\": \"\"\n  },\n  \"overrideCss\": \"\",\n  \"progressOffset\": {\n    \"offsetPercentage\": 0,\n    \"offsetSeconds\": 0\n  },\n  \"redirectUrl\": \"\",\n  \"renderingId\": \"\",\n  \"renderingIdDimensionValue\": {},\n  \"requiredFlashPluginVersion\": \"\",\n  \"requiredFlashVersion\": 0,\n  \"size\": {},\n  \"skipOffset\": {},\n  \"skippable\": false,\n  \"sslCompliant\": false,\n  \"sslOverride\": false,\n  \"studioAdvertiserId\": \"\",\n  \"studioCreativeId\": \"\",\n  \"studioTraffickedCreativeId\": \"\",\n  \"subaccountId\": \"\",\n  \"thirdPartyBackupImageImpressionsUrl\": \"\",\n  \"thirdPartyRichMediaImpressionsUrl\": \"\",\n  \"thirdPartyUrls\": [\n    {\n      \"thirdPartyUrlType\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"timerCustomEvents\": [\n    {}\n  ],\n  \"totalFileSize\": \"\",\n  \"type\": \"\",\n  \"universalAdId\": {\n    \"registry\": \"\",\n    \"value\": \"\"\n  },\n  \"version\": 0\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/creatives")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/userprofiles/:profileId/creatives")
  .header("content-type", "application/json")
  .body("{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"adParameters\": \"\",\n  \"adTagKeys\": [],\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"allowScriptAccess\": false,\n  \"archived\": false,\n  \"artworkType\": \"\",\n  \"authoringSource\": \"\",\n  \"authoringTool\": \"\",\n  \"autoAdvanceImages\": false,\n  \"backgroundColor\": \"\",\n  \"backupImageClickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"landingPageId\": \"\"\n  },\n  \"backupImageFeatures\": [],\n  \"backupImageReportingLabel\": \"\",\n  \"backupImageTargetWindow\": {\n    \"customHtml\": \"\",\n    \"targetWindowOption\": \"\"\n  },\n  \"clickTags\": [\n    {\n      \"clickThroughUrl\": {},\n      \"eventName\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"commercialId\": \"\",\n  \"companionCreatives\": [],\n  \"compatibility\": [],\n  \"convertFlashToHtml5\": false,\n  \"counterCustomEvents\": [\n    {\n      \"advertiserCustomEventId\": \"\",\n      \"advertiserCustomEventName\": \"\",\n      \"advertiserCustomEventType\": \"\",\n      \"artworkLabel\": \"\",\n      \"artworkType\": \"\",\n      \"exitClickThroughUrl\": {},\n      \"id\": \"\",\n      \"popupWindowProperties\": {\n        \"dimension\": {},\n        \"offset\": {\n          \"left\": 0,\n          \"top\": 0\n        },\n        \"positionType\": \"\",\n        \"showAddressBar\": false,\n        \"showMenuBar\": false,\n        \"showScrollBar\": false,\n        \"showStatusBar\": false,\n        \"showToolBar\": false,\n        \"title\": \"\"\n      },\n      \"targetType\": \"\",\n      \"videoReportingId\": \"\"\n    }\n  ],\n  \"creativeAssetSelection\": {\n    \"defaultAssetId\": \"\",\n    \"rules\": [\n      {\n        \"assetId\": \"\",\n        \"name\": \"\",\n        \"targetingTemplateId\": \"\"\n      }\n    ]\n  },\n  \"creativeAssets\": [\n    {\n      \"actionScript3\": false,\n      \"active\": false,\n      \"additionalSizes\": [\n        {}\n      ],\n      \"alignment\": \"\",\n      \"artworkType\": \"\",\n      \"assetIdentifier\": {\n        \"name\": \"\",\n        \"type\": \"\"\n      },\n      \"audioBitRate\": 0,\n      \"audioSampleRate\": 0,\n      \"backupImageExit\": {},\n      \"bitRate\": 0,\n      \"childAssetType\": \"\",\n      \"collapsedSize\": {},\n      \"companionCreativeIds\": [],\n      \"customStartTimeValue\": 0,\n      \"detectedFeatures\": [],\n      \"displayType\": \"\",\n      \"duration\": 0,\n      \"durationType\": \"\",\n      \"expandedDimension\": {},\n      \"fileSize\": \"\",\n      \"flashVersion\": 0,\n      \"frameRate\": \"\",\n      \"hideFlashObjects\": false,\n      \"hideSelectionBoxes\": false,\n      \"horizontallyLocked\": false,\n      \"id\": \"\",\n      \"idDimensionValue\": {\n        \"dimensionName\": \"\",\n        \"etag\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"matchType\": \"\",\n        \"value\": \"\"\n      },\n      \"mediaDuration\": \"\",\n      \"mimeType\": \"\",\n      \"offset\": {},\n      \"orientation\": \"\",\n      \"originalBackup\": false,\n      \"politeLoad\": false,\n      \"position\": {},\n      \"positionLeftUnit\": \"\",\n      \"positionTopUnit\": \"\",\n      \"progressiveServingUrl\": \"\",\n      \"pushdown\": false,\n      \"pushdownDuration\": \"\",\n      \"role\": \"\",\n      \"size\": {},\n      \"sslCompliant\": false,\n      \"startTimeType\": \"\",\n      \"streamingServingUrl\": \"\",\n      \"transparency\": false,\n      \"verticallyLocked\": false,\n      \"windowMode\": \"\",\n      \"zIndex\": 0,\n      \"zipFilename\": \"\",\n      \"zipFilesize\": \"\"\n    }\n  ],\n  \"creativeFieldAssignments\": [\n    {\n      \"creativeFieldId\": \"\",\n      \"creativeFieldValueId\": \"\"\n    }\n  ],\n  \"customKeyValues\": [],\n  \"dynamicAssetSelection\": false,\n  \"exitCustomEvents\": [\n    {}\n  ],\n  \"fsCommand\": {\n    \"left\": 0,\n    \"positionOption\": \"\",\n    \"top\": 0,\n    \"windowHeight\": 0,\n    \"windowWidth\": 0\n  },\n  \"htmlCode\": \"\",\n  \"htmlCodeLocked\": false,\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {\n    \"time\": \"\"\n  },\n  \"latestTraffickedCreativeId\": \"\",\n  \"mediaDescription\": \"\",\n  \"mediaDuration\": \"\",\n  \"name\": \"\",\n  \"obaIcon\": {\n    \"iconClickThroughUrl\": \"\",\n    \"iconClickTrackingUrl\": \"\",\n    \"iconViewTrackingUrl\": \"\",\n    \"program\": \"\",\n    \"resourceUrl\": \"\",\n    \"size\": {},\n    \"xPosition\": \"\",\n    \"yPosition\": \"\"\n  },\n  \"overrideCss\": \"\",\n  \"progressOffset\": {\n    \"offsetPercentage\": 0,\n    \"offsetSeconds\": 0\n  },\n  \"redirectUrl\": \"\",\n  \"renderingId\": \"\",\n  \"renderingIdDimensionValue\": {},\n  \"requiredFlashPluginVersion\": \"\",\n  \"requiredFlashVersion\": 0,\n  \"size\": {},\n  \"skipOffset\": {},\n  \"skippable\": false,\n  \"sslCompliant\": false,\n  \"sslOverride\": false,\n  \"studioAdvertiserId\": \"\",\n  \"studioCreativeId\": \"\",\n  \"studioTraffickedCreativeId\": \"\",\n  \"subaccountId\": \"\",\n  \"thirdPartyBackupImageImpressionsUrl\": \"\",\n  \"thirdPartyRichMediaImpressionsUrl\": \"\",\n  \"thirdPartyUrls\": [\n    {\n      \"thirdPartyUrlType\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"timerCustomEvents\": [\n    {}\n  ],\n  \"totalFileSize\": \"\",\n  \"type\": \"\",\n  \"universalAdId\": {\n    \"registry\": \"\",\n    \"value\": \"\"\n  },\n  \"version\": 0\n}")
  .asString();
const data = JSON.stringify({
  accountId: '',
  active: false,
  adParameters: '',
  adTagKeys: [],
  additionalSizes: [
    {
      height: 0,
      iab: false,
      id: '',
      kind: '',
      width: 0
    }
  ],
  advertiserId: '',
  allowScriptAccess: false,
  archived: false,
  artworkType: '',
  authoringSource: '',
  authoringTool: '',
  autoAdvanceImages: false,
  backgroundColor: '',
  backupImageClickThroughUrl: {
    computedClickThroughUrl: '',
    customClickThroughUrl: '',
    landingPageId: ''
  },
  backupImageFeatures: [],
  backupImageReportingLabel: '',
  backupImageTargetWindow: {
    customHtml: '',
    targetWindowOption: ''
  },
  clickTags: [
    {
      clickThroughUrl: {},
      eventName: '',
      name: ''
    }
  ],
  commercialId: '',
  companionCreatives: [],
  compatibility: [],
  convertFlashToHtml5: false,
  counterCustomEvents: [
    {
      advertiserCustomEventId: '',
      advertiserCustomEventName: '',
      advertiserCustomEventType: '',
      artworkLabel: '',
      artworkType: '',
      exitClickThroughUrl: {},
      id: '',
      popupWindowProperties: {
        dimension: {},
        offset: {
          left: 0,
          top: 0
        },
        positionType: '',
        showAddressBar: false,
        showMenuBar: false,
        showScrollBar: false,
        showStatusBar: false,
        showToolBar: false,
        title: ''
      },
      targetType: '',
      videoReportingId: ''
    }
  ],
  creativeAssetSelection: {
    defaultAssetId: '',
    rules: [
      {
        assetId: '',
        name: '',
        targetingTemplateId: ''
      }
    ]
  },
  creativeAssets: [
    {
      actionScript3: false,
      active: false,
      additionalSizes: [
        {}
      ],
      alignment: '',
      artworkType: '',
      assetIdentifier: {
        name: '',
        type: ''
      },
      audioBitRate: 0,
      audioSampleRate: 0,
      backupImageExit: {},
      bitRate: 0,
      childAssetType: '',
      collapsedSize: {},
      companionCreativeIds: [],
      customStartTimeValue: 0,
      detectedFeatures: [],
      displayType: '',
      duration: 0,
      durationType: '',
      expandedDimension: {},
      fileSize: '',
      flashVersion: 0,
      frameRate: '',
      hideFlashObjects: false,
      hideSelectionBoxes: false,
      horizontallyLocked: false,
      id: '',
      idDimensionValue: {
        dimensionName: '',
        etag: '',
        id: '',
        kind: '',
        matchType: '',
        value: ''
      },
      mediaDuration: '',
      mimeType: '',
      offset: {},
      orientation: '',
      originalBackup: false,
      politeLoad: false,
      position: {},
      positionLeftUnit: '',
      positionTopUnit: '',
      progressiveServingUrl: '',
      pushdown: false,
      pushdownDuration: '',
      role: '',
      size: {},
      sslCompliant: false,
      startTimeType: '',
      streamingServingUrl: '',
      transparency: false,
      verticallyLocked: false,
      windowMode: '',
      zIndex: 0,
      zipFilename: '',
      zipFilesize: ''
    }
  ],
  creativeFieldAssignments: [
    {
      creativeFieldId: '',
      creativeFieldValueId: ''
    }
  ],
  customKeyValues: [],
  dynamicAssetSelection: false,
  exitCustomEvents: [
    {}
  ],
  fsCommand: {
    left: 0,
    positionOption: '',
    top: 0,
    windowHeight: 0,
    windowWidth: 0
  },
  htmlCode: '',
  htmlCodeLocked: false,
  id: '',
  idDimensionValue: {},
  kind: '',
  lastModifiedInfo: {
    time: ''
  },
  latestTraffickedCreativeId: '',
  mediaDescription: '',
  mediaDuration: '',
  name: '',
  obaIcon: {
    iconClickThroughUrl: '',
    iconClickTrackingUrl: '',
    iconViewTrackingUrl: '',
    program: '',
    resourceUrl: '',
    size: {},
    xPosition: '',
    yPosition: ''
  },
  overrideCss: '',
  progressOffset: {
    offsetPercentage: 0,
    offsetSeconds: 0
  },
  redirectUrl: '',
  renderingId: '',
  renderingIdDimensionValue: {},
  requiredFlashPluginVersion: '',
  requiredFlashVersion: 0,
  size: {},
  skipOffset: {},
  skippable: false,
  sslCompliant: false,
  sslOverride: false,
  studioAdvertiserId: '',
  studioCreativeId: '',
  studioTraffickedCreativeId: '',
  subaccountId: '',
  thirdPartyBackupImageImpressionsUrl: '',
  thirdPartyRichMediaImpressionsUrl: '',
  thirdPartyUrls: [
    {
      thirdPartyUrlType: '',
      url: ''
    }
  ],
  timerCustomEvents: [
    {}
  ],
  totalFileSize: '',
  type: '',
  universalAdId: {
    registry: '',
    value: ''
  },
  version: 0
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/userprofiles/:profileId/creatives');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/userprofiles/:profileId/creatives',
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    active: false,
    adParameters: '',
    adTagKeys: [],
    additionalSizes: [{height: 0, iab: false, id: '', kind: '', width: 0}],
    advertiserId: '',
    allowScriptAccess: false,
    archived: false,
    artworkType: '',
    authoringSource: '',
    authoringTool: '',
    autoAdvanceImages: false,
    backgroundColor: '',
    backupImageClickThroughUrl: {computedClickThroughUrl: '', customClickThroughUrl: '', landingPageId: ''},
    backupImageFeatures: [],
    backupImageReportingLabel: '',
    backupImageTargetWindow: {customHtml: '', targetWindowOption: ''},
    clickTags: [{clickThroughUrl: {}, eventName: '', name: ''}],
    commercialId: '',
    companionCreatives: [],
    compatibility: [],
    convertFlashToHtml5: false,
    counterCustomEvents: [
      {
        advertiserCustomEventId: '',
        advertiserCustomEventName: '',
        advertiserCustomEventType: '',
        artworkLabel: '',
        artworkType: '',
        exitClickThroughUrl: {},
        id: '',
        popupWindowProperties: {
          dimension: {},
          offset: {left: 0, top: 0},
          positionType: '',
          showAddressBar: false,
          showMenuBar: false,
          showScrollBar: false,
          showStatusBar: false,
          showToolBar: false,
          title: ''
        },
        targetType: '',
        videoReportingId: ''
      }
    ],
    creativeAssetSelection: {defaultAssetId: '', rules: [{assetId: '', name: '', targetingTemplateId: ''}]},
    creativeAssets: [
      {
        actionScript3: false,
        active: false,
        additionalSizes: [{}],
        alignment: '',
        artworkType: '',
        assetIdentifier: {name: '', type: ''},
        audioBitRate: 0,
        audioSampleRate: 0,
        backupImageExit: {},
        bitRate: 0,
        childAssetType: '',
        collapsedSize: {},
        companionCreativeIds: [],
        customStartTimeValue: 0,
        detectedFeatures: [],
        displayType: '',
        duration: 0,
        durationType: '',
        expandedDimension: {},
        fileSize: '',
        flashVersion: 0,
        frameRate: '',
        hideFlashObjects: false,
        hideSelectionBoxes: false,
        horizontallyLocked: false,
        id: '',
        idDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
        mediaDuration: '',
        mimeType: '',
        offset: {},
        orientation: '',
        originalBackup: false,
        politeLoad: false,
        position: {},
        positionLeftUnit: '',
        positionTopUnit: '',
        progressiveServingUrl: '',
        pushdown: false,
        pushdownDuration: '',
        role: '',
        size: {},
        sslCompliant: false,
        startTimeType: '',
        streamingServingUrl: '',
        transparency: false,
        verticallyLocked: false,
        windowMode: '',
        zIndex: 0,
        zipFilename: '',
        zipFilesize: ''
      }
    ],
    creativeFieldAssignments: [{creativeFieldId: '', creativeFieldValueId: ''}],
    customKeyValues: [],
    dynamicAssetSelection: false,
    exitCustomEvents: [{}],
    fsCommand: {left: 0, positionOption: '', top: 0, windowHeight: 0, windowWidth: 0},
    htmlCode: '',
    htmlCodeLocked: false,
    id: '',
    idDimensionValue: {},
    kind: '',
    lastModifiedInfo: {time: ''},
    latestTraffickedCreativeId: '',
    mediaDescription: '',
    mediaDuration: '',
    name: '',
    obaIcon: {
      iconClickThroughUrl: '',
      iconClickTrackingUrl: '',
      iconViewTrackingUrl: '',
      program: '',
      resourceUrl: '',
      size: {},
      xPosition: '',
      yPosition: ''
    },
    overrideCss: '',
    progressOffset: {offsetPercentage: 0, offsetSeconds: 0},
    redirectUrl: '',
    renderingId: '',
    renderingIdDimensionValue: {},
    requiredFlashPluginVersion: '',
    requiredFlashVersion: 0,
    size: {},
    skipOffset: {},
    skippable: false,
    sslCompliant: false,
    sslOverride: false,
    studioAdvertiserId: '',
    studioCreativeId: '',
    studioTraffickedCreativeId: '',
    subaccountId: '',
    thirdPartyBackupImageImpressionsUrl: '',
    thirdPartyRichMediaImpressionsUrl: '',
    thirdPartyUrls: [{thirdPartyUrlType: '', url: ''}],
    timerCustomEvents: [{}],
    totalFileSize: '',
    type: '',
    universalAdId: {registry: '', value: ''},
    version: 0
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/creatives';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","active":false,"adParameters":"","adTagKeys":[],"additionalSizes":[{"height":0,"iab":false,"id":"","kind":"","width":0}],"advertiserId":"","allowScriptAccess":false,"archived":false,"artworkType":"","authoringSource":"","authoringTool":"","autoAdvanceImages":false,"backgroundColor":"","backupImageClickThroughUrl":{"computedClickThroughUrl":"","customClickThroughUrl":"","landingPageId":""},"backupImageFeatures":[],"backupImageReportingLabel":"","backupImageTargetWindow":{"customHtml":"","targetWindowOption":""},"clickTags":[{"clickThroughUrl":{},"eventName":"","name":""}],"commercialId":"","companionCreatives":[],"compatibility":[],"convertFlashToHtml5":false,"counterCustomEvents":[{"advertiserCustomEventId":"","advertiserCustomEventName":"","advertiserCustomEventType":"","artworkLabel":"","artworkType":"","exitClickThroughUrl":{},"id":"","popupWindowProperties":{"dimension":{},"offset":{"left":0,"top":0},"positionType":"","showAddressBar":false,"showMenuBar":false,"showScrollBar":false,"showStatusBar":false,"showToolBar":false,"title":""},"targetType":"","videoReportingId":""}],"creativeAssetSelection":{"defaultAssetId":"","rules":[{"assetId":"","name":"","targetingTemplateId":""}]},"creativeAssets":[{"actionScript3":false,"active":false,"additionalSizes":[{}],"alignment":"","artworkType":"","assetIdentifier":{"name":"","type":""},"audioBitRate":0,"audioSampleRate":0,"backupImageExit":{},"bitRate":0,"childAssetType":"","collapsedSize":{},"companionCreativeIds":[],"customStartTimeValue":0,"detectedFeatures":[],"displayType":"","duration":0,"durationType":"","expandedDimension":{},"fileSize":"","flashVersion":0,"frameRate":"","hideFlashObjects":false,"hideSelectionBoxes":false,"horizontallyLocked":false,"id":"","idDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"mediaDuration":"","mimeType":"","offset":{},"orientation":"","originalBackup":false,"politeLoad":false,"position":{},"positionLeftUnit":"","positionTopUnit":"","progressiveServingUrl":"","pushdown":false,"pushdownDuration":"","role":"","size":{},"sslCompliant":false,"startTimeType":"","streamingServingUrl":"","transparency":false,"verticallyLocked":false,"windowMode":"","zIndex":0,"zipFilename":"","zipFilesize":""}],"creativeFieldAssignments":[{"creativeFieldId":"","creativeFieldValueId":""}],"customKeyValues":[],"dynamicAssetSelection":false,"exitCustomEvents":[{}],"fsCommand":{"left":0,"positionOption":"","top":0,"windowHeight":0,"windowWidth":0},"htmlCode":"","htmlCodeLocked":false,"id":"","idDimensionValue":{},"kind":"","lastModifiedInfo":{"time":""},"latestTraffickedCreativeId":"","mediaDescription":"","mediaDuration":"","name":"","obaIcon":{"iconClickThroughUrl":"","iconClickTrackingUrl":"","iconViewTrackingUrl":"","program":"","resourceUrl":"","size":{},"xPosition":"","yPosition":""},"overrideCss":"","progressOffset":{"offsetPercentage":0,"offsetSeconds":0},"redirectUrl":"","renderingId":"","renderingIdDimensionValue":{},"requiredFlashPluginVersion":"","requiredFlashVersion":0,"size":{},"skipOffset":{},"skippable":false,"sslCompliant":false,"sslOverride":false,"studioAdvertiserId":"","studioCreativeId":"","studioTraffickedCreativeId":"","subaccountId":"","thirdPartyBackupImageImpressionsUrl":"","thirdPartyRichMediaImpressionsUrl":"","thirdPartyUrls":[{"thirdPartyUrlType":"","url":""}],"timerCustomEvents":[{}],"totalFileSize":"","type":"","universalAdId":{"registry":"","value":""},"version":0}'
};

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}}/userprofiles/:profileId/creatives',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "accountId": "",\n  "active": false,\n  "adParameters": "",\n  "adTagKeys": [],\n  "additionalSizes": [\n    {\n      "height": 0,\n      "iab": false,\n      "id": "",\n      "kind": "",\n      "width": 0\n    }\n  ],\n  "advertiserId": "",\n  "allowScriptAccess": false,\n  "archived": false,\n  "artworkType": "",\n  "authoringSource": "",\n  "authoringTool": "",\n  "autoAdvanceImages": false,\n  "backgroundColor": "",\n  "backupImageClickThroughUrl": {\n    "computedClickThroughUrl": "",\n    "customClickThroughUrl": "",\n    "landingPageId": ""\n  },\n  "backupImageFeatures": [],\n  "backupImageReportingLabel": "",\n  "backupImageTargetWindow": {\n    "customHtml": "",\n    "targetWindowOption": ""\n  },\n  "clickTags": [\n    {\n      "clickThroughUrl": {},\n      "eventName": "",\n      "name": ""\n    }\n  ],\n  "commercialId": "",\n  "companionCreatives": [],\n  "compatibility": [],\n  "convertFlashToHtml5": false,\n  "counterCustomEvents": [\n    {\n      "advertiserCustomEventId": "",\n      "advertiserCustomEventName": "",\n      "advertiserCustomEventType": "",\n      "artworkLabel": "",\n      "artworkType": "",\n      "exitClickThroughUrl": {},\n      "id": "",\n      "popupWindowProperties": {\n        "dimension": {},\n        "offset": {\n          "left": 0,\n          "top": 0\n        },\n        "positionType": "",\n        "showAddressBar": false,\n        "showMenuBar": false,\n        "showScrollBar": false,\n        "showStatusBar": false,\n        "showToolBar": false,\n        "title": ""\n      },\n      "targetType": "",\n      "videoReportingId": ""\n    }\n  ],\n  "creativeAssetSelection": {\n    "defaultAssetId": "",\n    "rules": [\n      {\n        "assetId": "",\n        "name": "",\n        "targetingTemplateId": ""\n      }\n    ]\n  },\n  "creativeAssets": [\n    {\n      "actionScript3": false,\n      "active": false,\n      "additionalSizes": [\n        {}\n      ],\n      "alignment": "",\n      "artworkType": "",\n      "assetIdentifier": {\n        "name": "",\n        "type": ""\n      },\n      "audioBitRate": 0,\n      "audioSampleRate": 0,\n      "backupImageExit": {},\n      "bitRate": 0,\n      "childAssetType": "",\n      "collapsedSize": {},\n      "companionCreativeIds": [],\n      "customStartTimeValue": 0,\n      "detectedFeatures": [],\n      "displayType": "",\n      "duration": 0,\n      "durationType": "",\n      "expandedDimension": {},\n      "fileSize": "",\n      "flashVersion": 0,\n      "frameRate": "",\n      "hideFlashObjects": false,\n      "hideSelectionBoxes": false,\n      "horizontallyLocked": false,\n      "id": "",\n      "idDimensionValue": {\n        "dimensionName": "",\n        "etag": "",\n        "id": "",\n        "kind": "",\n        "matchType": "",\n        "value": ""\n      },\n      "mediaDuration": "",\n      "mimeType": "",\n      "offset": {},\n      "orientation": "",\n      "originalBackup": false,\n      "politeLoad": false,\n      "position": {},\n      "positionLeftUnit": "",\n      "positionTopUnit": "",\n      "progressiveServingUrl": "",\n      "pushdown": false,\n      "pushdownDuration": "",\n      "role": "",\n      "size": {},\n      "sslCompliant": false,\n      "startTimeType": "",\n      "streamingServingUrl": "",\n      "transparency": false,\n      "verticallyLocked": false,\n      "windowMode": "",\n      "zIndex": 0,\n      "zipFilename": "",\n      "zipFilesize": ""\n    }\n  ],\n  "creativeFieldAssignments": [\n    {\n      "creativeFieldId": "",\n      "creativeFieldValueId": ""\n    }\n  ],\n  "customKeyValues": [],\n  "dynamicAssetSelection": false,\n  "exitCustomEvents": [\n    {}\n  ],\n  "fsCommand": {\n    "left": 0,\n    "positionOption": "",\n    "top": 0,\n    "windowHeight": 0,\n    "windowWidth": 0\n  },\n  "htmlCode": "",\n  "htmlCodeLocked": false,\n  "id": "",\n  "idDimensionValue": {},\n  "kind": "",\n  "lastModifiedInfo": {\n    "time": ""\n  },\n  "latestTraffickedCreativeId": "",\n  "mediaDescription": "",\n  "mediaDuration": "",\n  "name": "",\n  "obaIcon": {\n    "iconClickThroughUrl": "",\n    "iconClickTrackingUrl": "",\n    "iconViewTrackingUrl": "",\n    "program": "",\n    "resourceUrl": "",\n    "size": {},\n    "xPosition": "",\n    "yPosition": ""\n  },\n  "overrideCss": "",\n  "progressOffset": {\n    "offsetPercentage": 0,\n    "offsetSeconds": 0\n  },\n  "redirectUrl": "",\n  "renderingId": "",\n  "renderingIdDimensionValue": {},\n  "requiredFlashPluginVersion": "",\n  "requiredFlashVersion": 0,\n  "size": {},\n  "skipOffset": {},\n  "skippable": false,\n  "sslCompliant": false,\n  "sslOverride": false,\n  "studioAdvertiserId": "",\n  "studioCreativeId": "",\n  "studioTraffickedCreativeId": "",\n  "subaccountId": "",\n  "thirdPartyBackupImageImpressionsUrl": "",\n  "thirdPartyRichMediaImpressionsUrl": "",\n  "thirdPartyUrls": [\n    {\n      "thirdPartyUrlType": "",\n      "url": ""\n    }\n  ],\n  "timerCustomEvents": [\n    {}\n  ],\n  "totalFileSize": "",\n  "type": "",\n  "universalAdId": {\n    "registry": "",\n    "value": ""\n  },\n  "version": 0\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"adParameters\": \"\",\n  \"adTagKeys\": [],\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"allowScriptAccess\": false,\n  \"archived\": false,\n  \"artworkType\": \"\",\n  \"authoringSource\": \"\",\n  \"authoringTool\": \"\",\n  \"autoAdvanceImages\": false,\n  \"backgroundColor\": \"\",\n  \"backupImageClickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"landingPageId\": \"\"\n  },\n  \"backupImageFeatures\": [],\n  \"backupImageReportingLabel\": \"\",\n  \"backupImageTargetWindow\": {\n    \"customHtml\": \"\",\n    \"targetWindowOption\": \"\"\n  },\n  \"clickTags\": [\n    {\n      \"clickThroughUrl\": {},\n      \"eventName\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"commercialId\": \"\",\n  \"companionCreatives\": [],\n  \"compatibility\": [],\n  \"convertFlashToHtml5\": false,\n  \"counterCustomEvents\": [\n    {\n      \"advertiserCustomEventId\": \"\",\n      \"advertiserCustomEventName\": \"\",\n      \"advertiserCustomEventType\": \"\",\n      \"artworkLabel\": \"\",\n      \"artworkType\": \"\",\n      \"exitClickThroughUrl\": {},\n      \"id\": \"\",\n      \"popupWindowProperties\": {\n        \"dimension\": {},\n        \"offset\": {\n          \"left\": 0,\n          \"top\": 0\n        },\n        \"positionType\": \"\",\n        \"showAddressBar\": false,\n        \"showMenuBar\": false,\n        \"showScrollBar\": false,\n        \"showStatusBar\": false,\n        \"showToolBar\": false,\n        \"title\": \"\"\n      },\n      \"targetType\": \"\",\n      \"videoReportingId\": \"\"\n    }\n  ],\n  \"creativeAssetSelection\": {\n    \"defaultAssetId\": \"\",\n    \"rules\": [\n      {\n        \"assetId\": \"\",\n        \"name\": \"\",\n        \"targetingTemplateId\": \"\"\n      }\n    ]\n  },\n  \"creativeAssets\": [\n    {\n      \"actionScript3\": false,\n      \"active\": false,\n      \"additionalSizes\": [\n        {}\n      ],\n      \"alignment\": \"\",\n      \"artworkType\": \"\",\n      \"assetIdentifier\": {\n        \"name\": \"\",\n        \"type\": \"\"\n      },\n      \"audioBitRate\": 0,\n      \"audioSampleRate\": 0,\n      \"backupImageExit\": {},\n      \"bitRate\": 0,\n      \"childAssetType\": \"\",\n      \"collapsedSize\": {},\n      \"companionCreativeIds\": [],\n      \"customStartTimeValue\": 0,\n      \"detectedFeatures\": [],\n      \"displayType\": \"\",\n      \"duration\": 0,\n      \"durationType\": \"\",\n      \"expandedDimension\": {},\n      \"fileSize\": \"\",\n      \"flashVersion\": 0,\n      \"frameRate\": \"\",\n      \"hideFlashObjects\": false,\n      \"hideSelectionBoxes\": false,\n      \"horizontallyLocked\": false,\n      \"id\": \"\",\n      \"idDimensionValue\": {\n        \"dimensionName\": \"\",\n        \"etag\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"matchType\": \"\",\n        \"value\": \"\"\n      },\n      \"mediaDuration\": \"\",\n      \"mimeType\": \"\",\n      \"offset\": {},\n      \"orientation\": \"\",\n      \"originalBackup\": false,\n      \"politeLoad\": false,\n      \"position\": {},\n      \"positionLeftUnit\": \"\",\n      \"positionTopUnit\": \"\",\n      \"progressiveServingUrl\": \"\",\n      \"pushdown\": false,\n      \"pushdownDuration\": \"\",\n      \"role\": \"\",\n      \"size\": {},\n      \"sslCompliant\": false,\n      \"startTimeType\": \"\",\n      \"streamingServingUrl\": \"\",\n      \"transparency\": false,\n      \"verticallyLocked\": false,\n      \"windowMode\": \"\",\n      \"zIndex\": 0,\n      \"zipFilename\": \"\",\n      \"zipFilesize\": \"\"\n    }\n  ],\n  \"creativeFieldAssignments\": [\n    {\n      \"creativeFieldId\": \"\",\n      \"creativeFieldValueId\": \"\"\n    }\n  ],\n  \"customKeyValues\": [],\n  \"dynamicAssetSelection\": false,\n  \"exitCustomEvents\": [\n    {}\n  ],\n  \"fsCommand\": {\n    \"left\": 0,\n    \"positionOption\": \"\",\n    \"top\": 0,\n    \"windowHeight\": 0,\n    \"windowWidth\": 0\n  },\n  \"htmlCode\": \"\",\n  \"htmlCodeLocked\": false,\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {\n    \"time\": \"\"\n  },\n  \"latestTraffickedCreativeId\": \"\",\n  \"mediaDescription\": \"\",\n  \"mediaDuration\": \"\",\n  \"name\": \"\",\n  \"obaIcon\": {\n    \"iconClickThroughUrl\": \"\",\n    \"iconClickTrackingUrl\": \"\",\n    \"iconViewTrackingUrl\": \"\",\n    \"program\": \"\",\n    \"resourceUrl\": \"\",\n    \"size\": {},\n    \"xPosition\": \"\",\n    \"yPosition\": \"\"\n  },\n  \"overrideCss\": \"\",\n  \"progressOffset\": {\n    \"offsetPercentage\": 0,\n    \"offsetSeconds\": 0\n  },\n  \"redirectUrl\": \"\",\n  \"renderingId\": \"\",\n  \"renderingIdDimensionValue\": {},\n  \"requiredFlashPluginVersion\": \"\",\n  \"requiredFlashVersion\": 0,\n  \"size\": {},\n  \"skipOffset\": {},\n  \"skippable\": false,\n  \"sslCompliant\": false,\n  \"sslOverride\": false,\n  \"studioAdvertiserId\": \"\",\n  \"studioCreativeId\": \"\",\n  \"studioTraffickedCreativeId\": \"\",\n  \"subaccountId\": \"\",\n  \"thirdPartyBackupImageImpressionsUrl\": \"\",\n  \"thirdPartyRichMediaImpressionsUrl\": \"\",\n  \"thirdPartyUrls\": [\n    {\n      \"thirdPartyUrlType\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"timerCustomEvents\": [\n    {}\n  ],\n  \"totalFileSize\": \"\",\n  \"type\": \"\",\n  \"universalAdId\": {\n    \"registry\": \"\",\n    \"value\": \"\"\n  },\n  \"version\": 0\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/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/userprofiles/:profileId/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({
  accountId: '',
  active: false,
  adParameters: '',
  adTagKeys: [],
  additionalSizes: [{height: 0, iab: false, id: '', kind: '', width: 0}],
  advertiserId: '',
  allowScriptAccess: false,
  archived: false,
  artworkType: '',
  authoringSource: '',
  authoringTool: '',
  autoAdvanceImages: false,
  backgroundColor: '',
  backupImageClickThroughUrl: {computedClickThroughUrl: '', customClickThroughUrl: '', landingPageId: ''},
  backupImageFeatures: [],
  backupImageReportingLabel: '',
  backupImageTargetWindow: {customHtml: '', targetWindowOption: ''},
  clickTags: [{clickThroughUrl: {}, eventName: '', name: ''}],
  commercialId: '',
  companionCreatives: [],
  compatibility: [],
  convertFlashToHtml5: false,
  counterCustomEvents: [
    {
      advertiserCustomEventId: '',
      advertiserCustomEventName: '',
      advertiserCustomEventType: '',
      artworkLabel: '',
      artworkType: '',
      exitClickThroughUrl: {},
      id: '',
      popupWindowProperties: {
        dimension: {},
        offset: {left: 0, top: 0},
        positionType: '',
        showAddressBar: false,
        showMenuBar: false,
        showScrollBar: false,
        showStatusBar: false,
        showToolBar: false,
        title: ''
      },
      targetType: '',
      videoReportingId: ''
    }
  ],
  creativeAssetSelection: {defaultAssetId: '', rules: [{assetId: '', name: '', targetingTemplateId: ''}]},
  creativeAssets: [
    {
      actionScript3: false,
      active: false,
      additionalSizes: [{}],
      alignment: '',
      artworkType: '',
      assetIdentifier: {name: '', type: ''},
      audioBitRate: 0,
      audioSampleRate: 0,
      backupImageExit: {},
      bitRate: 0,
      childAssetType: '',
      collapsedSize: {},
      companionCreativeIds: [],
      customStartTimeValue: 0,
      detectedFeatures: [],
      displayType: '',
      duration: 0,
      durationType: '',
      expandedDimension: {},
      fileSize: '',
      flashVersion: 0,
      frameRate: '',
      hideFlashObjects: false,
      hideSelectionBoxes: false,
      horizontallyLocked: false,
      id: '',
      idDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
      mediaDuration: '',
      mimeType: '',
      offset: {},
      orientation: '',
      originalBackup: false,
      politeLoad: false,
      position: {},
      positionLeftUnit: '',
      positionTopUnit: '',
      progressiveServingUrl: '',
      pushdown: false,
      pushdownDuration: '',
      role: '',
      size: {},
      sslCompliant: false,
      startTimeType: '',
      streamingServingUrl: '',
      transparency: false,
      verticallyLocked: false,
      windowMode: '',
      zIndex: 0,
      zipFilename: '',
      zipFilesize: ''
    }
  ],
  creativeFieldAssignments: [{creativeFieldId: '', creativeFieldValueId: ''}],
  customKeyValues: [],
  dynamicAssetSelection: false,
  exitCustomEvents: [{}],
  fsCommand: {left: 0, positionOption: '', top: 0, windowHeight: 0, windowWidth: 0},
  htmlCode: '',
  htmlCodeLocked: false,
  id: '',
  idDimensionValue: {},
  kind: '',
  lastModifiedInfo: {time: ''},
  latestTraffickedCreativeId: '',
  mediaDescription: '',
  mediaDuration: '',
  name: '',
  obaIcon: {
    iconClickThroughUrl: '',
    iconClickTrackingUrl: '',
    iconViewTrackingUrl: '',
    program: '',
    resourceUrl: '',
    size: {},
    xPosition: '',
    yPosition: ''
  },
  overrideCss: '',
  progressOffset: {offsetPercentage: 0, offsetSeconds: 0},
  redirectUrl: '',
  renderingId: '',
  renderingIdDimensionValue: {},
  requiredFlashPluginVersion: '',
  requiredFlashVersion: 0,
  size: {},
  skipOffset: {},
  skippable: false,
  sslCompliant: false,
  sslOverride: false,
  studioAdvertiserId: '',
  studioCreativeId: '',
  studioTraffickedCreativeId: '',
  subaccountId: '',
  thirdPartyBackupImageImpressionsUrl: '',
  thirdPartyRichMediaImpressionsUrl: '',
  thirdPartyUrls: [{thirdPartyUrlType: '', url: ''}],
  timerCustomEvents: [{}],
  totalFileSize: '',
  type: '',
  universalAdId: {registry: '', value: ''},
  version: 0
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/userprofiles/:profileId/creatives',
  headers: {'content-type': 'application/json'},
  body: {
    accountId: '',
    active: false,
    adParameters: '',
    adTagKeys: [],
    additionalSizes: [{height: 0, iab: false, id: '', kind: '', width: 0}],
    advertiserId: '',
    allowScriptAccess: false,
    archived: false,
    artworkType: '',
    authoringSource: '',
    authoringTool: '',
    autoAdvanceImages: false,
    backgroundColor: '',
    backupImageClickThroughUrl: {computedClickThroughUrl: '', customClickThroughUrl: '', landingPageId: ''},
    backupImageFeatures: [],
    backupImageReportingLabel: '',
    backupImageTargetWindow: {customHtml: '', targetWindowOption: ''},
    clickTags: [{clickThroughUrl: {}, eventName: '', name: ''}],
    commercialId: '',
    companionCreatives: [],
    compatibility: [],
    convertFlashToHtml5: false,
    counterCustomEvents: [
      {
        advertiserCustomEventId: '',
        advertiserCustomEventName: '',
        advertiserCustomEventType: '',
        artworkLabel: '',
        artworkType: '',
        exitClickThroughUrl: {},
        id: '',
        popupWindowProperties: {
          dimension: {},
          offset: {left: 0, top: 0},
          positionType: '',
          showAddressBar: false,
          showMenuBar: false,
          showScrollBar: false,
          showStatusBar: false,
          showToolBar: false,
          title: ''
        },
        targetType: '',
        videoReportingId: ''
      }
    ],
    creativeAssetSelection: {defaultAssetId: '', rules: [{assetId: '', name: '', targetingTemplateId: ''}]},
    creativeAssets: [
      {
        actionScript3: false,
        active: false,
        additionalSizes: [{}],
        alignment: '',
        artworkType: '',
        assetIdentifier: {name: '', type: ''},
        audioBitRate: 0,
        audioSampleRate: 0,
        backupImageExit: {},
        bitRate: 0,
        childAssetType: '',
        collapsedSize: {},
        companionCreativeIds: [],
        customStartTimeValue: 0,
        detectedFeatures: [],
        displayType: '',
        duration: 0,
        durationType: '',
        expandedDimension: {},
        fileSize: '',
        flashVersion: 0,
        frameRate: '',
        hideFlashObjects: false,
        hideSelectionBoxes: false,
        horizontallyLocked: false,
        id: '',
        idDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
        mediaDuration: '',
        mimeType: '',
        offset: {},
        orientation: '',
        originalBackup: false,
        politeLoad: false,
        position: {},
        positionLeftUnit: '',
        positionTopUnit: '',
        progressiveServingUrl: '',
        pushdown: false,
        pushdownDuration: '',
        role: '',
        size: {},
        sslCompliant: false,
        startTimeType: '',
        streamingServingUrl: '',
        transparency: false,
        verticallyLocked: false,
        windowMode: '',
        zIndex: 0,
        zipFilename: '',
        zipFilesize: ''
      }
    ],
    creativeFieldAssignments: [{creativeFieldId: '', creativeFieldValueId: ''}],
    customKeyValues: [],
    dynamicAssetSelection: false,
    exitCustomEvents: [{}],
    fsCommand: {left: 0, positionOption: '', top: 0, windowHeight: 0, windowWidth: 0},
    htmlCode: '',
    htmlCodeLocked: false,
    id: '',
    idDimensionValue: {},
    kind: '',
    lastModifiedInfo: {time: ''},
    latestTraffickedCreativeId: '',
    mediaDescription: '',
    mediaDuration: '',
    name: '',
    obaIcon: {
      iconClickThroughUrl: '',
      iconClickTrackingUrl: '',
      iconViewTrackingUrl: '',
      program: '',
      resourceUrl: '',
      size: {},
      xPosition: '',
      yPosition: ''
    },
    overrideCss: '',
    progressOffset: {offsetPercentage: 0, offsetSeconds: 0},
    redirectUrl: '',
    renderingId: '',
    renderingIdDimensionValue: {},
    requiredFlashPluginVersion: '',
    requiredFlashVersion: 0,
    size: {},
    skipOffset: {},
    skippable: false,
    sslCompliant: false,
    sslOverride: false,
    studioAdvertiserId: '',
    studioCreativeId: '',
    studioTraffickedCreativeId: '',
    subaccountId: '',
    thirdPartyBackupImageImpressionsUrl: '',
    thirdPartyRichMediaImpressionsUrl: '',
    thirdPartyUrls: [{thirdPartyUrlType: '', url: ''}],
    timerCustomEvents: [{}],
    totalFileSize: '',
    type: '',
    universalAdId: {registry: '', value: ''},
    version: 0
  },
  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}}/userprofiles/:profileId/creatives');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  accountId: '',
  active: false,
  adParameters: '',
  adTagKeys: [],
  additionalSizes: [
    {
      height: 0,
      iab: false,
      id: '',
      kind: '',
      width: 0
    }
  ],
  advertiserId: '',
  allowScriptAccess: false,
  archived: false,
  artworkType: '',
  authoringSource: '',
  authoringTool: '',
  autoAdvanceImages: false,
  backgroundColor: '',
  backupImageClickThroughUrl: {
    computedClickThroughUrl: '',
    customClickThroughUrl: '',
    landingPageId: ''
  },
  backupImageFeatures: [],
  backupImageReportingLabel: '',
  backupImageTargetWindow: {
    customHtml: '',
    targetWindowOption: ''
  },
  clickTags: [
    {
      clickThroughUrl: {},
      eventName: '',
      name: ''
    }
  ],
  commercialId: '',
  companionCreatives: [],
  compatibility: [],
  convertFlashToHtml5: false,
  counterCustomEvents: [
    {
      advertiserCustomEventId: '',
      advertiserCustomEventName: '',
      advertiserCustomEventType: '',
      artworkLabel: '',
      artworkType: '',
      exitClickThroughUrl: {},
      id: '',
      popupWindowProperties: {
        dimension: {},
        offset: {
          left: 0,
          top: 0
        },
        positionType: '',
        showAddressBar: false,
        showMenuBar: false,
        showScrollBar: false,
        showStatusBar: false,
        showToolBar: false,
        title: ''
      },
      targetType: '',
      videoReportingId: ''
    }
  ],
  creativeAssetSelection: {
    defaultAssetId: '',
    rules: [
      {
        assetId: '',
        name: '',
        targetingTemplateId: ''
      }
    ]
  },
  creativeAssets: [
    {
      actionScript3: false,
      active: false,
      additionalSizes: [
        {}
      ],
      alignment: '',
      artworkType: '',
      assetIdentifier: {
        name: '',
        type: ''
      },
      audioBitRate: 0,
      audioSampleRate: 0,
      backupImageExit: {},
      bitRate: 0,
      childAssetType: '',
      collapsedSize: {},
      companionCreativeIds: [],
      customStartTimeValue: 0,
      detectedFeatures: [],
      displayType: '',
      duration: 0,
      durationType: '',
      expandedDimension: {},
      fileSize: '',
      flashVersion: 0,
      frameRate: '',
      hideFlashObjects: false,
      hideSelectionBoxes: false,
      horizontallyLocked: false,
      id: '',
      idDimensionValue: {
        dimensionName: '',
        etag: '',
        id: '',
        kind: '',
        matchType: '',
        value: ''
      },
      mediaDuration: '',
      mimeType: '',
      offset: {},
      orientation: '',
      originalBackup: false,
      politeLoad: false,
      position: {},
      positionLeftUnit: '',
      positionTopUnit: '',
      progressiveServingUrl: '',
      pushdown: false,
      pushdownDuration: '',
      role: '',
      size: {},
      sslCompliant: false,
      startTimeType: '',
      streamingServingUrl: '',
      transparency: false,
      verticallyLocked: false,
      windowMode: '',
      zIndex: 0,
      zipFilename: '',
      zipFilesize: ''
    }
  ],
  creativeFieldAssignments: [
    {
      creativeFieldId: '',
      creativeFieldValueId: ''
    }
  ],
  customKeyValues: [],
  dynamicAssetSelection: false,
  exitCustomEvents: [
    {}
  ],
  fsCommand: {
    left: 0,
    positionOption: '',
    top: 0,
    windowHeight: 0,
    windowWidth: 0
  },
  htmlCode: '',
  htmlCodeLocked: false,
  id: '',
  idDimensionValue: {},
  kind: '',
  lastModifiedInfo: {
    time: ''
  },
  latestTraffickedCreativeId: '',
  mediaDescription: '',
  mediaDuration: '',
  name: '',
  obaIcon: {
    iconClickThroughUrl: '',
    iconClickTrackingUrl: '',
    iconViewTrackingUrl: '',
    program: '',
    resourceUrl: '',
    size: {},
    xPosition: '',
    yPosition: ''
  },
  overrideCss: '',
  progressOffset: {
    offsetPercentage: 0,
    offsetSeconds: 0
  },
  redirectUrl: '',
  renderingId: '',
  renderingIdDimensionValue: {},
  requiredFlashPluginVersion: '',
  requiredFlashVersion: 0,
  size: {},
  skipOffset: {},
  skippable: false,
  sslCompliant: false,
  sslOverride: false,
  studioAdvertiserId: '',
  studioCreativeId: '',
  studioTraffickedCreativeId: '',
  subaccountId: '',
  thirdPartyBackupImageImpressionsUrl: '',
  thirdPartyRichMediaImpressionsUrl: '',
  thirdPartyUrls: [
    {
      thirdPartyUrlType: '',
      url: ''
    }
  ],
  timerCustomEvents: [
    {}
  ],
  totalFileSize: '',
  type: '',
  universalAdId: {
    registry: '',
    value: ''
  },
  version: 0
});

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}}/userprofiles/:profileId/creatives',
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    active: false,
    adParameters: '',
    adTagKeys: [],
    additionalSizes: [{height: 0, iab: false, id: '', kind: '', width: 0}],
    advertiserId: '',
    allowScriptAccess: false,
    archived: false,
    artworkType: '',
    authoringSource: '',
    authoringTool: '',
    autoAdvanceImages: false,
    backgroundColor: '',
    backupImageClickThroughUrl: {computedClickThroughUrl: '', customClickThroughUrl: '', landingPageId: ''},
    backupImageFeatures: [],
    backupImageReportingLabel: '',
    backupImageTargetWindow: {customHtml: '', targetWindowOption: ''},
    clickTags: [{clickThroughUrl: {}, eventName: '', name: ''}],
    commercialId: '',
    companionCreatives: [],
    compatibility: [],
    convertFlashToHtml5: false,
    counterCustomEvents: [
      {
        advertiserCustomEventId: '',
        advertiserCustomEventName: '',
        advertiserCustomEventType: '',
        artworkLabel: '',
        artworkType: '',
        exitClickThroughUrl: {},
        id: '',
        popupWindowProperties: {
          dimension: {},
          offset: {left: 0, top: 0},
          positionType: '',
          showAddressBar: false,
          showMenuBar: false,
          showScrollBar: false,
          showStatusBar: false,
          showToolBar: false,
          title: ''
        },
        targetType: '',
        videoReportingId: ''
      }
    ],
    creativeAssetSelection: {defaultAssetId: '', rules: [{assetId: '', name: '', targetingTemplateId: ''}]},
    creativeAssets: [
      {
        actionScript3: false,
        active: false,
        additionalSizes: [{}],
        alignment: '',
        artworkType: '',
        assetIdentifier: {name: '', type: ''},
        audioBitRate: 0,
        audioSampleRate: 0,
        backupImageExit: {},
        bitRate: 0,
        childAssetType: '',
        collapsedSize: {},
        companionCreativeIds: [],
        customStartTimeValue: 0,
        detectedFeatures: [],
        displayType: '',
        duration: 0,
        durationType: '',
        expandedDimension: {},
        fileSize: '',
        flashVersion: 0,
        frameRate: '',
        hideFlashObjects: false,
        hideSelectionBoxes: false,
        horizontallyLocked: false,
        id: '',
        idDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
        mediaDuration: '',
        mimeType: '',
        offset: {},
        orientation: '',
        originalBackup: false,
        politeLoad: false,
        position: {},
        positionLeftUnit: '',
        positionTopUnit: '',
        progressiveServingUrl: '',
        pushdown: false,
        pushdownDuration: '',
        role: '',
        size: {},
        sslCompliant: false,
        startTimeType: '',
        streamingServingUrl: '',
        transparency: false,
        verticallyLocked: false,
        windowMode: '',
        zIndex: 0,
        zipFilename: '',
        zipFilesize: ''
      }
    ],
    creativeFieldAssignments: [{creativeFieldId: '', creativeFieldValueId: ''}],
    customKeyValues: [],
    dynamicAssetSelection: false,
    exitCustomEvents: [{}],
    fsCommand: {left: 0, positionOption: '', top: 0, windowHeight: 0, windowWidth: 0},
    htmlCode: '',
    htmlCodeLocked: false,
    id: '',
    idDimensionValue: {},
    kind: '',
    lastModifiedInfo: {time: ''},
    latestTraffickedCreativeId: '',
    mediaDescription: '',
    mediaDuration: '',
    name: '',
    obaIcon: {
      iconClickThroughUrl: '',
      iconClickTrackingUrl: '',
      iconViewTrackingUrl: '',
      program: '',
      resourceUrl: '',
      size: {},
      xPosition: '',
      yPosition: ''
    },
    overrideCss: '',
    progressOffset: {offsetPercentage: 0, offsetSeconds: 0},
    redirectUrl: '',
    renderingId: '',
    renderingIdDimensionValue: {},
    requiredFlashPluginVersion: '',
    requiredFlashVersion: 0,
    size: {},
    skipOffset: {},
    skippable: false,
    sslCompliant: false,
    sslOverride: false,
    studioAdvertiserId: '',
    studioCreativeId: '',
    studioTraffickedCreativeId: '',
    subaccountId: '',
    thirdPartyBackupImageImpressionsUrl: '',
    thirdPartyRichMediaImpressionsUrl: '',
    thirdPartyUrls: [{thirdPartyUrlType: '', url: ''}],
    timerCustomEvents: [{}],
    totalFileSize: '',
    type: '',
    universalAdId: {registry: '', value: ''},
    version: 0
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/creatives';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","active":false,"adParameters":"","adTagKeys":[],"additionalSizes":[{"height":0,"iab":false,"id":"","kind":"","width":0}],"advertiserId":"","allowScriptAccess":false,"archived":false,"artworkType":"","authoringSource":"","authoringTool":"","autoAdvanceImages":false,"backgroundColor":"","backupImageClickThroughUrl":{"computedClickThroughUrl":"","customClickThroughUrl":"","landingPageId":""},"backupImageFeatures":[],"backupImageReportingLabel":"","backupImageTargetWindow":{"customHtml":"","targetWindowOption":""},"clickTags":[{"clickThroughUrl":{},"eventName":"","name":""}],"commercialId":"","companionCreatives":[],"compatibility":[],"convertFlashToHtml5":false,"counterCustomEvents":[{"advertiserCustomEventId":"","advertiserCustomEventName":"","advertiserCustomEventType":"","artworkLabel":"","artworkType":"","exitClickThroughUrl":{},"id":"","popupWindowProperties":{"dimension":{},"offset":{"left":0,"top":0},"positionType":"","showAddressBar":false,"showMenuBar":false,"showScrollBar":false,"showStatusBar":false,"showToolBar":false,"title":""},"targetType":"","videoReportingId":""}],"creativeAssetSelection":{"defaultAssetId":"","rules":[{"assetId":"","name":"","targetingTemplateId":""}]},"creativeAssets":[{"actionScript3":false,"active":false,"additionalSizes":[{}],"alignment":"","artworkType":"","assetIdentifier":{"name":"","type":""},"audioBitRate":0,"audioSampleRate":0,"backupImageExit":{},"bitRate":0,"childAssetType":"","collapsedSize":{},"companionCreativeIds":[],"customStartTimeValue":0,"detectedFeatures":[],"displayType":"","duration":0,"durationType":"","expandedDimension":{},"fileSize":"","flashVersion":0,"frameRate":"","hideFlashObjects":false,"hideSelectionBoxes":false,"horizontallyLocked":false,"id":"","idDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"mediaDuration":"","mimeType":"","offset":{},"orientation":"","originalBackup":false,"politeLoad":false,"position":{},"positionLeftUnit":"","positionTopUnit":"","progressiveServingUrl":"","pushdown":false,"pushdownDuration":"","role":"","size":{},"sslCompliant":false,"startTimeType":"","streamingServingUrl":"","transparency":false,"verticallyLocked":false,"windowMode":"","zIndex":0,"zipFilename":"","zipFilesize":""}],"creativeFieldAssignments":[{"creativeFieldId":"","creativeFieldValueId":""}],"customKeyValues":[],"dynamicAssetSelection":false,"exitCustomEvents":[{}],"fsCommand":{"left":0,"positionOption":"","top":0,"windowHeight":0,"windowWidth":0},"htmlCode":"","htmlCodeLocked":false,"id":"","idDimensionValue":{},"kind":"","lastModifiedInfo":{"time":""},"latestTraffickedCreativeId":"","mediaDescription":"","mediaDuration":"","name":"","obaIcon":{"iconClickThroughUrl":"","iconClickTrackingUrl":"","iconViewTrackingUrl":"","program":"","resourceUrl":"","size":{},"xPosition":"","yPosition":""},"overrideCss":"","progressOffset":{"offsetPercentage":0,"offsetSeconds":0},"redirectUrl":"","renderingId":"","renderingIdDimensionValue":{},"requiredFlashPluginVersion":"","requiredFlashVersion":0,"size":{},"skipOffset":{},"skippable":false,"sslCompliant":false,"sslOverride":false,"studioAdvertiserId":"","studioCreativeId":"","studioTraffickedCreativeId":"","subaccountId":"","thirdPartyBackupImageImpressionsUrl":"","thirdPartyRichMediaImpressionsUrl":"","thirdPartyUrls":[{"thirdPartyUrlType":"","url":""}],"timerCustomEvents":[{}],"totalFileSize":"","type":"","universalAdId":{"registry":"","value":""},"version":0}'
};

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 = @{ @"accountId": @"",
                              @"active": @NO,
                              @"adParameters": @"",
                              @"adTagKeys": @[  ],
                              @"additionalSizes": @[ @{ @"height": @0, @"iab": @NO, @"id": @"", @"kind": @"", @"width": @0 } ],
                              @"advertiserId": @"",
                              @"allowScriptAccess": @NO,
                              @"archived": @NO,
                              @"artworkType": @"",
                              @"authoringSource": @"",
                              @"authoringTool": @"",
                              @"autoAdvanceImages": @NO,
                              @"backgroundColor": @"",
                              @"backupImageClickThroughUrl": @{ @"computedClickThroughUrl": @"", @"customClickThroughUrl": @"", @"landingPageId": @"" },
                              @"backupImageFeatures": @[  ],
                              @"backupImageReportingLabel": @"",
                              @"backupImageTargetWindow": @{ @"customHtml": @"", @"targetWindowOption": @"" },
                              @"clickTags": @[ @{ @"clickThroughUrl": @{  }, @"eventName": @"", @"name": @"" } ],
                              @"commercialId": @"",
                              @"companionCreatives": @[  ],
                              @"compatibility": @[  ],
                              @"convertFlashToHtml5": @NO,
                              @"counterCustomEvents": @[ @{ @"advertiserCustomEventId": @"", @"advertiserCustomEventName": @"", @"advertiserCustomEventType": @"", @"artworkLabel": @"", @"artworkType": @"", @"exitClickThroughUrl": @{  }, @"id": @"", @"popupWindowProperties": @{ @"dimension": @{  }, @"offset": @{ @"left": @0, @"top": @0 }, @"positionType": @"", @"showAddressBar": @NO, @"showMenuBar": @NO, @"showScrollBar": @NO, @"showStatusBar": @NO, @"showToolBar": @NO, @"title": @"" }, @"targetType": @"", @"videoReportingId": @"" } ],
                              @"creativeAssetSelection": @{ @"defaultAssetId": @"", @"rules": @[ @{ @"assetId": @"", @"name": @"", @"targetingTemplateId": @"" } ] },
                              @"creativeAssets": @[ @{ @"actionScript3": @NO, @"active": @NO, @"additionalSizes": @[ @{  } ], @"alignment": @"", @"artworkType": @"", @"assetIdentifier": @{ @"name": @"", @"type": @"" }, @"audioBitRate": @0, @"audioSampleRate": @0, @"backupImageExit": @{  }, @"bitRate": @0, @"childAssetType": @"", @"collapsedSize": @{  }, @"companionCreativeIds": @[  ], @"customStartTimeValue": @0, @"detectedFeatures": @[  ], @"displayType": @"", @"duration": @0, @"durationType": @"", @"expandedDimension": @{  }, @"fileSize": @"", @"flashVersion": @0, @"frameRate": @"", @"hideFlashObjects": @NO, @"hideSelectionBoxes": @NO, @"horizontallyLocked": @NO, @"id": @"", @"idDimensionValue": @{ @"dimensionName": @"", @"etag": @"", @"id": @"", @"kind": @"", @"matchType": @"", @"value": @"" }, @"mediaDuration": @"", @"mimeType": @"", @"offset": @{  }, @"orientation": @"", @"originalBackup": @NO, @"politeLoad": @NO, @"position": @{  }, @"positionLeftUnit": @"", @"positionTopUnit": @"", @"progressiveServingUrl": @"", @"pushdown": @NO, @"pushdownDuration": @"", @"role": @"", @"size": @{  }, @"sslCompliant": @NO, @"startTimeType": @"", @"streamingServingUrl": @"", @"transparency": @NO, @"verticallyLocked": @NO, @"windowMode": @"", @"zIndex": @0, @"zipFilename": @"", @"zipFilesize": @"" } ],
                              @"creativeFieldAssignments": @[ @{ @"creativeFieldId": @"", @"creativeFieldValueId": @"" } ],
                              @"customKeyValues": @[  ],
                              @"dynamicAssetSelection": @NO,
                              @"exitCustomEvents": @[ @{  } ],
                              @"fsCommand": @{ @"left": @0, @"positionOption": @"", @"top": @0, @"windowHeight": @0, @"windowWidth": @0 },
                              @"htmlCode": @"",
                              @"htmlCodeLocked": @NO,
                              @"id": @"",
                              @"idDimensionValue": @{  },
                              @"kind": @"",
                              @"lastModifiedInfo": @{ @"time": @"" },
                              @"latestTraffickedCreativeId": @"",
                              @"mediaDescription": @"",
                              @"mediaDuration": @"",
                              @"name": @"",
                              @"obaIcon": @{ @"iconClickThroughUrl": @"", @"iconClickTrackingUrl": @"", @"iconViewTrackingUrl": @"", @"program": @"", @"resourceUrl": @"", @"size": @{  }, @"xPosition": @"", @"yPosition": @"" },
                              @"overrideCss": @"",
                              @"progressOffset": @{ @"offsetPercentage": @0, @"offsetSeconds": @0 },
                              @"redirectUrl": @"",
                              @"renderingId": @"",
                              @"renderingIdDimensionValue": @{  },
                              @"requiredFlashPluginVersion": @"",
                              @"requiredFlashVersion": @0,
                              @"size": @{  },
                              @"skipOffset": @{  },
                              @"skippable": @NO,
                              @"sslCompliant": @NO,
                              @"sslOverride": @NO,
                              @"studioAdvertiserId": @"",
                              @"studioCreativeId": @"",
                              @"studioTraffickedCreativeId": @"",
                              @"subaccountId": @"",
                              @"thirdPartyBackupImageImpressionsUrl": @"",
                              @"thirdPartyRichMediaImpressionsUrl": @"",
                              @"thirdPartyUrls": @[ @{ @"thirdPartyUrlType": @"", @"url": @"" } ],
                              @"timerCustomEvents": @[ @{  } ],
                              @"totalFileSize": @"",
                              @"type": @"",
                              @"universalAdId": @{ @"registry": @"", @"value": @"" },
                              @"version": @0 };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/userprofiles/:profileId/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}}/userprofiles/:profileId/creatives" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"adParameters\": \"\",\n  \"adTagKeys\": [],\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"allowScriptAccess\": false,\n  \"archived\": false,\n  \"artworkType\": \"\",\n  \"authoringSource\": \"\",\n  \"authoringTool\": \"\",\n  \"autoAdvanceImages\": false,\n  \"backgroundColor\": \"\",\n  \"backupImageClickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"landingPageId\": \"\"\n  },\n  \"backupImageFeatures\": [],\n  \"backupImageReportingLabel\": \"\",\n  \"backupImageTargetWindow\": {\n    \"customHtml\": \"\",\n    \"targetWindowOption\": \"\"\n  },\n  \"clickTags\": [\n    {\n      \"clickThroughUrl\": {},\n      \"eventName\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"commercialId\": \"\",\n  \"companionCreatives\": [],\n  \"compatibility\": [],\n  \"convertFlashToHtml5\": false,\n  \"counterCustomEvents\": [\n    {\n      \"advertiserCustomEventId\": \"\",\n      \"advertiserCustomEventName\": \"\",\n      \"advertiserCustomEventType\": \"\",\n      \"artworkLabel\": \"\",\n      \"artworkType\": \"\",\n      \"exitClickThroughUrl\": {},\n      \"id\": \"\",\n      \"popupWindowProperties\": {\n        \"dimension\": {},\n        \"offset\": {\n          \"left\": 0,\n          \"top\": 0\n        },\n        \"positionType\": \"\",\n        \"showAddressBar\": false,\n        \"showMenuBar\": false,\n        \"showScrollBar\": false,\n        \"showStatusBar\": false,\n        \"showToolBar\": false,\n        \"title\": \"\"\n      },\n      \"targetType\": \"\",\n      \"videoReportingId\": \"\"\n    }\n  ],\n  \"creativeAssetSelection\": {\n    \"defaultAssetId\": \"\",\n    \"rules\": [\n      {\n        \"assetId\": \"\",\n        \"name\": \"\",\n        \"targetingTemplateId\": \"\"\n      }\n    ]\n  },\n  \"creativeAssets\": [\n    {\n      \"actionScript3\": false,\n      \"active\": false,\n      \"additionalSizes\": [\n        {}\n      ],\n      \"alignment\": \"\",\n      \"artworkType\": \"\",\n      \"assetIdentifier\": {\n        \"name\": \"\",\n        \"type\": \"\"\n      },\n      \"audioBitRate\": 0,\n      \"audioSampleRate\": 0,\n      \"backupImageExit\": {},\n      \"bitRate\": 0,\n      \"childAssetType\": \"\",\n      \"collapsedSize\": {},\n      \"companionCreativeIds\": [],\n      \"customStartTimeValue\": 0,\n      \"detectedFeatures\": [],\n      \"displayType\": \"\",\n      \"duration\": 0,\n      \"durationType\": \"\",\n      \"expandedDimension\": {},\n      \"fileSize\": \"\",\n      \"flashVersion\": 0,\n      \"frameRate\": \"\",\n      \"hideFlashObjects\": false,\n      \"hideSelectionBoxes\": false,\n      \"horizontallyLocked\": false,\n      \"id\": \"\",\n      \"idDimensionValue\": {\n        \"dimensionName\": \"\",\n        \"etag\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"matchType\": \"\",\n        \"value\": \"\"\n      },\n      \"mediaDuration\": \"\",\n      \"mimeType\": \"\",\n      \"offset\": {},\n      \"orientation\": \"\",\n      \"originalBackup\": false,\n      \"politeLoad\": false,\n      \"position\": {},\n      \"positionLeftUnit\": \"\",\n      \"positionTopUnit\": \"\",\n      \"progressiveServingUrl\": \"\",\n      \"pushdown\": false,\n      \"pushdownDuration\": \"\",\n      \"role\": \"\",\n      \"size\": {},\n      \"sslCompliant\": false,\n      \"startTimeType\": \"\",\n      \"streamingServingUrl\": \"\",\n      \"transparency\": false,\n      \"verticallyLocked\": false,\n      \"windowMode\": \"\",\n      \"zIndex\": 0,\n      \"zipFilename\": \"\",\n      \"zipFilesize\": \"\"\n    }\n  ],\n  \"creativeFieldAssignments\": [\n    {\n      \"creativeFieldId\": \"\",\n      \"creativeFieldValueId\": \"\"\n    }\n  ],\n  \"customKeyValues\": [],\n  \"dynamicAssetSelection\": false,\n  \"exitCustomEvents\": [\n    {}\n  ],\n  \"fsCommand\": {\n    \"left\": 0,\n    \"positionOption\": \"\",\n    \"top\": 0,\n    \"windowHeight\": 0,\n    \"windowWidth\": 0\n  },\n  \"htmlCode\": \"\",\n  \"htmlCodeLocked\": false,\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {\n    \"time\": \"\"\n  },\n  \"latestTraffickedCreativeId\": \"\",\n  \"mediaDescription\": \"\",\n  \"mediaDuration\": \"\",\n  \"name\": \"\",\n  \"obaIcon\": {\n    \"iconClickThroughUrl\": \"\",\n    \"iconClickTrackingUrl\": \"\",\n    \"iconViewTrackingUrl\": \"\",\n    \"program\": \"\",\n    \"resourceUrl\": \"\",\n    \"size\": {},\n    \"xPosition\": \"\",\n    \"yPosition\": \"\"\n  },\n  \"overrideCss\": \"\",\n  \"progressOffset\": {\n    \"offsetPercentage\": 0,\n    \"offsetSeconds\": 0\n  },\n  \"redirectUrl\": \"\",\n  \"renderingId\": \"\",\n  \"renderingIdDimensionValue\": {},\n  \"requiredFlashPluginVersion\": \"\",\n  \"requiredFlashVersion\": 0,\n  \"size\": {},\n  \"skipOffset\": {},\n  \"skippable\": false,\n  \"sslCompliant\": false,\n  \"sslOverride\": false,\n  \"studioAdvertiserId\": \"\",\n  \"studioCreativeId\": \"\",\n  \"studioTraffickedCreativeId\": \"\",\n  \"subaccountId\": \"\",\n  \"thirdPartyBackupImageImpressionsUrl\": \"\",\n  \"thirdPartyRichMediaImpressionsUrl\": \"\",\n  \"thirdPartyUrls\": [\n    {\n      \"thirdPartyUrlType\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"timerCustomEvents\": [\n    {}\n  ],\n  \"totalFileSize\": \"\",\n  \"type\": \"\",\n  \"universalAdId\": {\n    \"registry\": \"\",\n    \"value\": \"\"\n  },\n  \"version\": 0\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/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([
    'accountId' => '',
    'active' => null,
    'adParameters' => '',
    'adTagKeys' => [
        
    ],
    'additionalSizes' => [
        [
                'height' => 0,
                'iab' => null,
                'id' => '',
                'kind' => '',
                'width' => 0
        ]
    ],
    'advertiserId' => '',
    'allowScriptAccess' => null,
    'archived' => null,
    'artworkType' => '',
    'authoringSource' => '',
    'authoringTool' => '',
    'autoAdvanceImages' => null,
    'backgroundColor' => '',
    'backupImageClickThroughUrl' => [
        'computedClickThroughUrl' => '',
        'customClickThroughUrl' => '',
        'landingPageId' => ''
    ],
    'backupImageFeatures' => [
        
    ],
    'backupImageReportingLabel' => '',
    'backupImageTargetWindow' => [
        'customHtml' => '',
        'targetWindowOption' => ''
    ],
    'clickTags' => [
        [
                'clickThroughUrl' => [
                                
                ],
                'eventName' => '',
                'name' => ''
        ]
    ],
    'commercialId' => '',
    'companionCreatives' => [
        
    ],
    'compatibility' => [
        
    ],
    'convertFlashToHtml5' => null,
    'counterCustomEvents' => [
        [
                'advertiserCustomEventId' => '',
                'advertiserCustomEventName' => '',
                'advertiserCustomEventType' => '',
                'artworkLabel' => '',
                'artworkType' => '',
                'exitClickThroughUrl' => [
                                
                ],
                'id' => '',
                'popupWindowProperties' => [
                                'dimension' => [
                                                                
                                ],
                                'offset' => [
                                                                'left' => 0,
                                                                'top' => 0
                                ],
                                'positionType' => '',
                                'showAddressBar' => null,
                                'showMenuBar' => null,
                                'showScrollBar' => null,
                                'showStatusBar' => null,
                                'showToolBar' => null,
                                'title' => ''
                ],
                'targetType' => '',
                'videoReportingId' => ''
        ]
    ],
    'creativeAssetSelection' => [
        'defaultAssetId' => '',
        'rules' => [
                [
                                'assetId' => '',
                                'name' => '',
                                'targetingTemplateId' => ''
                ]
        ]
    ],
    'creativeAssets' => [
        [
                'actionScript3' => null,
                'active' => null,
                'additionalSizes' => [
                                [
                                                                
                                ]
                ],
                'alignment' => '',
                'artworkType' => '',
                'assetIdentifier' => [
                                'name' => '',
                                'type' => ''
                ],
                'audioBitRate' => 0,
                'audioSampleRate' => 0,
                'backupImageExit' => [
                                
                ],
                'bitRate' => 0,
                'childAssetType' => '',
                'collapsedSize' => [
                                
                ],
                'companionCreativeIds' => [
                                
                ],
                'customStartTimeValue' => 0,
                'detectedFeatures' => [
                                
                ],
                'displayType' => '',
                'duration' => 0,
                'durationType' => '',
                'expandedDimension' => [
                                
                ],
                'fileSize' => '',
                'flashVersion' => 0,
                'frameRate' => '',
                'hideFlashObjects' => null,
                'hideSelectionBoxes' => null,
                'horizontallyLocked' => null,
                'id' => '',
                'idDimensionValue' => [
                                'dimensionName' => '',
                                'etag' => '',
                                'id' => '',
                                'kind' => '',
                                'matchType' => '',
                                'value' => ''
                ],
                'mediaDuration' => '',
                'mimeType' => '',
                'offset' => [
                                
                ],
                'orientation' => '',
                'originalBackup' => null,
                'politeLoad' => null,
                'position' => [
                                
                ],
                'positionLeftUnit' => '',
                'positionTopUnit' => '',
                'progressiveServingUrl' => '',
                'pushdown' => null,
                'pushdownDuration' => '',
                'role' => '',
                'size' => [
                                
                ],
                'sslCompliant' => null,
                'startTimeType' => '',
                'streamingServingUrl' => '',
                'transparency' => null,
                'verticallyLocked' => null,
                'windowMode' => '',
                'zIndex' => 0,
                'zipFilename' => '',
                'zipFilesize' => ''
        ]
    ],
    'creativeFieldAssignments' => [
        [
                'creativeFieldId' => '',
                'creativeFieldValueId' => ''
        ]
    ],
    'customKeyValues' => [
        
    ],
    'dynamicAssetSelection' => null,
    'exitCustomEvents' => [
        [
                
        ]
    ],
    'fsCommand' => [
        'left' => 0,
        'positionOption' => '',
        'top' => 0,
        'windowHeight' => 0,
        'windowWidth' => 0
    ],
    'htmlCode' => '',
    'htmlCodeLocked' => null,
    'id' => '',
    'idDimensionValue' => [
        
    ],
    'kind' => '',
    'lastModifiedInfo' => [
        'time' => ''
    ],
    'latestTraffickedCreativeId' => '',
    'mediaDescription' => '',
    'mediaDuration' => '',
    'name' => '',
    'obaIcon' => [
        'iconClickThroughUrl' => '',
        'iconClickTrackingUrl' => '',
        'iconViewTrackingUrl' => '',
        'program' => '',
        'resourceUrl' => '',
        'size' => [
                
        ],
        'xPosition' => '',
        'yPosition' => ''
    ],
    'overrideCss' => '',
    'progressOffset' => [
        'offsetPercentage' => 0,
        'offsetSeconds' => 0
    ],
    'redirectUrl' => '',
    'renderingId' => '',
    'renderingIdDimensionValue' => [
        
    ],
    'requiredFlashPluginVersion' => '',
    'requiredFlashVersion' => 0,
    'size' => [
        
    ],
    'skipOffset' => [
        
    ],
    'skippable' => null,
    'sslCompliant' => null,
    'sslOverride' => null,
    'studioAdvertiserId' => '',
    'studioCreativeId' => '',
    'studioTraffickedCreativeId' => '',
    'subaccountId' => '',
    'thirdPartyBackupImageImpressionsUrl' => '',
    'thirdPartyRichMediaImpressionsUrl' => '',
    'thirdPartyUrls' => [
        [
                'thirdPartyUrlType' => '',
                'url' => ''
        ]
    ],
    'timerCustomEvents' => [
        [
                
        ]
    ],
    'totalFileSize' => '',
    'type' => '',
    'universalAdId' => [
        'registry' => '',
        'value' => ''
    ],
    'version' => 0
  ]),
  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}}/userprofiles/:profileId/creatives', [
  'body' => '{
  "accountId": "",
  "active": false,
  "adParameters": "",
  "adTagKeys": [],
  "additionalSizes": [
    {
      "height": 0,
      "iab": false,
      "id": "",
      "kind": "",
      "width": 0
    }
  ],
  "advertiserId": "",
  "allowScriptAccess": false,
  "archived": false,
  "artworkType": "",
  "authoringSource": "",
  "authoringTool": "",
  "autoAdvanceImages": false,
  "backgroundColor": "",
  "backupImageClickThroughUrl": {
    "computedClickThroughUrl": "",
    "customClickThroughUrl": "",
    "landingPageId": ""
  },
  "backupImageFeatures": [],
  "backupImageReportingLabel": "",
  "backupImageTargetWindow": {
    "customHtml": "",
    "targetWindowOption": ""
  },
  "clickTags": [
    {
      "clickThroughUrl": {},
      "eventName": "",
      "name": ""
    }
  ],
  "commercialId": "",
  "companionCreatives": [],
  "compatibility": [],
  "convertFlashToHtml5": false,
  "counterCustomEvents": [
    {
      "advertiserCustomEventId": "",
      "advertiserCustomEventName": "",
      "advertiserCustomEventType": "",
      "artworkLabel": "",
      "artworkType": "",
      "exitClickThroughUrl": {},
      "id": "",
      "popupWindowProperties": {
        "dimension": {},
        "offset": {
          "left": 0,
          "top": 0
        },
        "positionType": "",
        "showAddressBar": false,
        "showMenuBar": false,
        "showScrollBar": false,
        "showStatusBar": false,
        "showToolBar": false,
        "title": ""
      },
      "targetType": "",
      "videoReportingId": ""
    }
  ],
  "creativeAssetSelection": {
    "defaultAssetId": "",
    "rules": [
      {
        "assetId": "",
        "name": "",
        "targetingTemplateId": ""
      }
    ]
  },
  "creativeAssets": [
    {
      "actionScript3": false,
      "active": false,
      "additionalSizes": [
        {}
      ],
      "alignment": "",
      "artworkType": "",
      "assetIdentifier": {
        "name": "",
        "type": ""
      },
      "audioBitRate": 0,
      "audioSampleRate": 0,
      "backupImageExit": {},
      "bitRate": 0,
      "childAssetType": "",
      "collapsedSize": {},
      "companionCreativeIds": [],
      "customStartTimeValue": 0,
      "detectedFeatures": [],
      "displayType": "",
      "duration": 0,
      "durationType": "",
      "expandedDimension": {},
      "fileSize": "",
      "flashVersion": 0,
      "frameRate": "",
      "hideFlashObjects": false,
      "hideSelectionBoxes": false,
      "horizontallyLocked": false,
      "id": "",
      "idDimensionValue": {
        "dimensionName": "",
        "etag": "",
        "id": "",
        "kind": "",
        "matchType": "",
        "value": ""
      },
      "mediaDuration": "",
      "mimeType": "",
      "offset": {},
      "orientation": "",
      "originalBackup": false,
      "politeLoad": false,
      "position": {},
      "positionLeftUnit": "",
      "positionTopUnit": "",
      "progressiveServingUrl": "",
      "pushdown": false,
      "pushdownDuration": "",
      "role": "",
      "size": {},
      "sslCompliant": false,
      "startTimeType": "",
      "streamingServingUrl": "",
      "transparency": false,
      "verticallyLocked": false,
      "windowMode": "",
      "zIndex": 0,
      "zipFilename": "",
      "zipFilesize": ""
    }
  ],
  "creativeFieldAssignments": [
    {
      "creativeFieldId": "",
      "creativeFieldValueId": ""
    }
  ],
  "customKeyValues": [],
  "dynamicAssetSelection": false,
  "exitCustomEvents": [
    {}
  ],
  "fsCommand": {
    "left": 0,
    "positionOption": "",
    "top": 0,
    "windowHeight": 0,
    "windowWidth": 0
  },
  "htmlCode": "",
  "htmlCodeLocked": false,
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "lastModifiedInfo": {
    "time": ""
  },
  "latestTraffickedCreativeId": "",
  "mediaDescription": "",
  "mediaDuration": "",
  "name": "",
  "obaIcon": {
    "iconClickThroughUrl": "",
    "iconClickTrackingUrl": "",
    "iconViewTrackingUrl": "",
    "program": "",
    "resourceUrl": "",
    "size": {},
    "xPosition": "",
    "yPosition": ""
  },
  "overrideCss": "",
  "progressOffset": {
    "offsetPercentage": 0,
    "offsetSeconds": 0
  },
  "redirectUrl": "",
  "renderingId": "",
  "renderingIdDimensionValue": {},
  "requiredFlashPluginVersion": "",
  "requiredFlashVersion": 0,
  "size": {},
  "skipOffset": {},
  "skippable": false,
  "sslCompliant": false,
  "sslOverride": false,
  "studioAdvertiserId": "",
  "studioCreativeId": "",
  "studioTraffickedCreativeId": "",
  "subaccountId": "",
  "thirdPartyBackupImageImpressionsUrl": "",
  "thirdPartyRichMediaImpressionsUrl": "",
  "thirdPartyUrls": [
    {
      "thirdPartyUrlType": "",
      "url": ""
    }
  ],
  "timerCustomEvents": [
    {}
  ],
  "totalFileSize": "",
  "type": "",
  "universalAdId": {
    "registry": "",
    "value": ""
  },
  "version": 0
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/creatives');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'accountId' => '',
  'active' => null,
  'adParameters' => '',
  'adTagKeys' => [
    
  ],
  'additionalSizes' => [
    [
        'height' => 0,
        'iab' => null,
        'id' => '',
        'kind' => '',
        'width' => 0
    ]
  ],
  'advertiserId' => '',
  'allowScriptAccess' => null,
  'archived' => null,
  'artworkType' => '',
  'authoringSource' => '',
  'authoringTool' => '',
  'autoAdvanceImages' => null,
  'backgroundColor' => '',
  'backupImageClickThroughUrl' => [
    'computedClickThroughUrl' => '',
    'customClickThroughUrl' => '',
    'landingPageId' => ''
  ],
  'backupImageFeatures' => [
    
  ],
  'backupImageReportingLabel' => '',
  'backupImageTargetWindow' => [
    'customHtml' => '',
    'targetWindowOption' => ''
  ],
  'clickTags' => [
    [
        'clickThroughUrl' => [
                
        ],
        'eventName' => '',
        'name' => ''
    ]
  ],
  'commercialId' => '',
  'companionCreatives' => [
    
  ],
  'compatibility' => [
    
  ],
  'convertFlashToHtml5' => null,
  'counterCustomEvents' => [
    [
        'advertiserCustomEventId' => '',
        'advertiserCustomEventName' => '',
        'advertiserCustomEventType' => '',
        'artworkLabel' => '',
        'artworkType' => '',
        'exitClickThroughUrl' => [
                
        ],
        'id' => '',
        'popupWindowProperties' => [
                'dimension' => [
                                
                ],
                'offset' => [
                                'left' => 0,
                                'top' => 0
                ],
                'positionType' => '',
                'showAddressBar' => null,
                'showMenuBar' => null,
                'showScrollBar' => null,
                'showStatusBar' => null,
                'showToolBar' => null,
                'title' => ''
        ],
        'targetType' => '',
        'videoReportingId' => ''
    ]
  ],
  'creativeAssetSelection' => [
    'defaultAssetId' => '',
    'rules' => [
        [
                'assetId' => '',
                'name' => '',
                'targetingTemplateId' => ''
        ]
    ]
  ],
  'creativeAssets' => [
    [
        'actionScript3' => null,
        'active' => null,
        'additionalSizes' => [
                [
                                
                ]
        ],
        'alignment' => '',
        'artworkType' => '',
        'assetIdentifier' => [
                'name' => '',
                'type' => ''
        ],
        'audioBitRate' => 0,
        'audioSampleRate' => 0,
        'backupImageExit' => [
                
        ],
        'bitRate' => 0,
        'childAssetType' => '',
        'collapsedSize' => [
                
        ],
        'companionCreativeIds' => [
                
        ],
        'customStartTimeValue' => 0,
        'detectedFeatures' => [
                
        ],
        'displayType' => '',
        'duration' => 0,
        'durationType' => '',
        'expandedDimension' => [
                
        ],
        'fileSize' => '',
        'flashVersion' => 0,
        'frameRate' => '',
        'hideFlashObjects' => null,
        'hideSelectionBoxes' => null,
        'horizontallyLocked' => null,
        'id' => '',
        'idDimensionValue' => [
                'dimensionName' => '',
                'etag' => '',
                'id' => '',
                'kind' => '',
                'matchType' => '',
                'value' => ''
        ],
        'mediaDuration' => '',
        'mimeType' => '',
        'offset' => [
                
        ],
        'orientation' => '',
        'originalBackup' => null,
        'politeLoad' => null,
        'position' => [
                
        ],
        'positionLeftUnit' => '',
        'positionTopUnit' => '',
        'progressiveServingUrl' => '',
        'pushdown' => null,
        'pushdownDuration' => '',
        'role' => '',
        'size' => [
                
        ],
        'sslCompliant' => null,
        'startTimeType' => '',
        'streamingServingUrl' => '',
        'transparency' => null,
        'verticallyLocked' => null,
        'windowMode' => '',
        'zIndex' => 0,
        'zipFilename' => '',
        'zipFilesize' => ''
    ]
  ],
  'creativeFieldAssignments' => [
    [
        'creativeFieldId' => '',
        'creativeFieldValueId' => ''
    ]
  ],
  'customKeyValues' => [
    
  ],
  'dynamicAssetSelection' => null,
  'exitCustomEvents' => [
    [
        
    ]
  ],
  'fsCommand' => [
    'left' => 0,
    'positionOption' => '',
    'top' => 0,
    'windowHeight' => 0,
    'windowWidth' => 0
  ],
  'htmlCode' => '',
  'htmlCodeLocked' => null,
  'id' => '',
  'idDimensionValue' => [
    
  ],
  'kind' => '',
  'lastModifiedInfo' => [
    'time' => ''
  ],
  'latestTraffickedCreativeId' => '',
  'mediaDescription' => '',
  'mediaDuration' => '',
  'name' => '',
  'obaIcon' => [
    'iconClickThroughUrl' => '',
    'iconClickTrackingUrl' => '',
    'iconViewTrackingUrl' => '',
    'program' => '',
    'resourceUrl' => '',
    'size' => [
        
    ],
    'xPosition' => '',
    'yPosition' => ''
  ],
  'overrideCss' => '',
  'progressOffset' => [
    'offsetPercentage' => 0,
    'offsetSeconds' => 0
  ],
  'redirectUrl' => '',
  'renderingId' => '',
  'renderingIdDimensionValue' => [
    
  ],
  'requiredFlashPluginVersion' => '',
  'requiredFlashVersion' => 0,
  'size' => [
    
  ],
  'skipOffset' => [
    
  ],
  'skippable' => null,
  'sslCompliant' => null,
  'sslOverride' => null,
  'studioAdvertiserId' => '',
  'studioCreativeId' => '',
  'studioTraffickedCreativeId' => '',
  'subaccountId' => '',
  'thirdPartyBackupImageImpressionsUrl' => '',
  'thirdPartyRichMediaImpressionsUrl' => '',
  'thirdPartyUrls' => [
    [
        'thirdPartyUrlType' => '',
        'url' => ''
    ]
  ],
  'timerCustomEvents' => [
    [
        
    ]
  ],
  'totalFileSize' => '',
  'type' => '',
  'universalAdId' => [
    'registry' => '',
    'value' => ''
  ],
  'version' => 0
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'accountId' => '',
  'active' => null,
  'adParameters' => '',
  'adTagKeys' => [
    
  ],
  'additionalSizes' => [
    [
        'height' => 0,
        'iab' => null,
        'id' => '',
        'kind' => '',
        'width' => 0
    ]
  ],
  'advertiserId' => '',
  'allowScriptAccess' => null,
  'archived' => null,
  'artworkType' => '',
  'authoringSource' => '',
  'authoringTool' => '',
  'autoAdvanceImages' => null,
  'backgroundColor' => '',
  'backupImageClickThroughUrl' => [
    'computedClickThroughUrl' => '',
    'customClickThroughUrl' => '',
    'landingPageId' => ''
  ],
  'backupImageFeatures' => [
    
  ],
  'backupImageReportingLabel' => '',
  'backupImageTargetWindow' => [
    'customHtml' => '',
    'targetWindowOption' => ''
  ],
  'clickTags' => [
    [
        'clickThroughUrl' => [
                
        ],
        'eventName' => '',
        'name' => ''
    ]
  ],
  'commercialId' => '',
  'companionCreatives' => [
    
  ],
  'compatibility' => [
    
  ],
  'convertFlashToHtml5' => null,
  'counterCustomEvents' => [
    [
        'advertiserCustomEventId' => '',
        'advertiserCustomEventName' => '',
        'advertiserCustomEventType' => '',
        'artworkLabel' => '',
        'artworkType' => '',
        'exitClickThroughUrl' => [
                
        ],
        'id' => '',
        'popupWindowProperties' => [
                'dimension' => [
                                
                ],
                'offset' => [
                                'left' => 0,
                                'top' => 0
                ],
                'positionType' => '',
                'showAddressBar' => null,
                'showMenuBar' => null,
                'showScrollBar' => null,
                'showStatusBar' => null,
                'showToolBar' => null,
                'title' => ''
        ],
        'targetType' => '',
        'videoReportingId' => ''
    ]
  ],
  'creativeAssetSelection' => [
    'defaultAssetId' => '',
    'rules' => [
        [
                'assetId' => '',
                'name' => '',
                'targetingTemplateId' => ''
        ]
    ]
  ],
  'creativeAssets' => [
    [
        'actionScript3' => null,
        'active' => null,
        'additionalSizes' => [
                [
                                
                ]
        ],
        'alignment' => '',
        'artworkType' => '',
        'assetIdentifier' => [
                'name' => '',
                'type' => ''
        ],
        'audioBitRate' => 0,
        'audioSampleRate' => 0,
        'backupImageExit' => [
                
        ],
        'bitRate' => 0,
        'childAssetType' => '',
        'collapsedSize' => [
                
        ],
        'companionCreativeIds' => [
                
        ],
        'customStartTimeValue' => 0,
        'detectedFeatures' => [
                
        ],
        'displayType' => '',
        'duration' => 0,
        'durationType' => '',
        'expandedDimension' => [
                
        ],
        'fileSize' => '',
        'flashVersion' => 0,
        'frameRate' => '',
        'hideFlashObjects' => null,
        'hideSelectionBoxes' => null,
        'horizontallyLocked' => null,
        'id' => '',
        'idDimensionValue' => [
                'dimensionName' => '',
                'etag' => '',
                'id' => '',
                'kind' => '',
                'matchType' => '',
                'value' => ''
        ],
        'mediaDuration' => '',
        'mimeType' => '',
        'offset' => [
                
        ],
        'orientation' => '',
        'originalBackup' => null,
        'politeLoad' => null,
        'position' => [
                
        ],
        'positionLeftUnit' => '',
        'positionTopUnit' => '',
        'progressiveServingUrl' => '',
        'pushdown' => null,
        'pushdownDuration' => '',
        'role' => '',
        'size' => [
                
        ],
        'sslCompliant' => null,
        'startTimeType' => '',
        'streamingServingUrl' => '',
        'transparency' => null,
        'verticallyLocked' => null,
        'windowMode' => '',
        'zIndex' => 0,
        'zipFilename' => '',
        'zipFilesize' => ''
    ]
  ],
  'creativeFieldAssignments' => [
    [
        'creativeFieldId' => '',
        'creativeFieldValueId' => ''
    ]
  ],
  'customKeyValues' => [
    
  ],
  'dynamicAssetSelection' => null,
  'exitCustomEvents' => [
    [
        
    ]
  ],
  'fsCommand' => [
    'left' => 0,
    'positionOption' => '',
    'top' => 0,
    'windowHeight' => 0,
    'windowWidth' => 0
  ],
  'htmlCode' => '',
  'htmlCodeLocked' => null,
  'id' => '',
  'idDimensionValue' => [
    
  ],
  'kind' => '',
  'lastModifiedInfo' => [
    'time' => ''
  ],
  'latestTraffickedCreativeId' => '',
  'mediaDescription' => '',
  'mediaDuration' => '',
  'name' => '',
  'obaIcon' => [
    'iconClickThroughUrl' => '',
    'iconClickTrackingUrl' => '',
    'iconViewTrackingUrl' => '',
    'program' => '',
    'resourceUrl' => '',
    'size' => [
        
    ],
    'xPosition' => '',
    'yPosition' => ''
  ],
  'overrideCss' => '',
  'progressOffset' => [
    'offsetPercentage' => 0,
    'offsetSeconds' => 0
  ],
  'redirectUrl' => '',
  'renderingId' => '',
  'renderingIdDimensionValue' => [
    
  ],
  'requiredFlashPluginVersion' => '',
  'requiredFlashVersion' => 0,
  'size' => [
    
  ],
  'skipOffset' => [
    
  ],
  'skippable' => null,
  'sslCompliant' => null,
  'sslOverride' => null,
  'studioAdvertiserId' => '',
  'studioCreativeId' => '',
  'studioTraffickedCreativeId' => '',
  'subaccountId' => '',
  'thirdPartyBackupImageImpressionsUrl' => '',
  'thirdPartyRichMediaImpressionsUrl' => '',
  'thirdPartyUrls' => [
    [
        'thirdPartyUrlType' => '',
        'url' => ''
    ]
  ],
  'timerCustomEvents' => [
    [
        
    ]
  ],
  'totalFileSize' => '',
  'type' => '',
  'universalAdId' => [
    'registry' => '',
    'value' => ''
  ],
  'version' => 0
]));
$request->setRequestUrl('{{baseUrl}}/userprofiles/:profileId/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}}/userprofiles/:profileId/creatives' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "active": false,
  "adParameters": "",
  "adTagKeys": [],
  "additionalSizes": [
    {
      "height": 0,
      "iab": false,
      "id": "",
      "kind": "",
      "width": 0
    }
  ],
  "advertiserId": "",
  "allowScriptAccess": false,
  "archived": false,
  "artworkType": "",
  "authoringSource": "",
  "authoringTool": "",
  "autoAdvanceImages": false,
  "backgroundColor": "",
  "backupImageClickThroughUrl": {
    "computedClickThroughUrl": "",
    "customClickThroughUrl": "",
    "landingPageId": ""
  },
  "backupImageFeatures": [],
  "backupImageReportingLabel": "",
  "backupImageTargetWindow": {
    "customHtml": "",
    "targetWindowOption": ""
  },
  "clickTags": [
    {
      "clickThroughUrl": {},
      "eventName": "",
      "name": ""
    }
  ],
  "commercialId": "",
  "companionCreatives": [],
  "compatibility": [],
  "convertFlashToHtml5": false,
  "counterCustomEvents": [
    {
      "advertiserCustomEventId": "",
      "advertiserCustomEventName": "",
      "advertiserCustomEventType": "",
      "artworkLabel": "",
      "artworkType": "",
      "exitClickThroughUrl": {},
      "id": "",
      "popupWindowProperties": {
        "dimension": {},
        "offset": {
          "left": 0,
          "top": 0
        },
        "positionType": "",
        "showAddressBar": false,
        "showMenuBar": false,
        "showScrollBar": false,
        "showStatusBar": false,
        "showToolBar": false,
        "title": ""
      },
      "targetType": "",
      "videoReportingId": ""
    }
  ],
  "creativeAssetSelection": {
    "defaultAssetId": "",
    "rules": [
      {
        "assetId": "",
        "name": "",
        "targetingTemplateId": ""
      }
    ]
  },
  "creativeAssets": [
    {
      "actionScript3": false,
      "active": false,
      "additionalSizes": [
        {}
      ],
      "alignment": "",
      "artworkType": "",
      "assetIdentifier": {
        "name": "",
        "type": ""
      },
      "audioBitRate": 0,
      "audioSampleRate": 0,
      "backupImageExit": {},
      "bitRate": 0,
      "childAssetType": "",
      "collapsedSize": {},
      "companionCreativeIds": [],
      "customStartTimeValue": 0,
      "detectedFeatures": [],
      "displayType": "",
      "duration": 0,
      "durationType": "",
      "expandedDimension": {},
      "fileSize": "",
      "flashVersion": 0,
      "frameRate": "",
      "hideFlashObjects": false,
      "hideSelectionBoxes": false,
      "horizontallyLocked": false,
      "id": "",
      "idDimensionValue": {
        "dimensionName": "",
        "etag": "",
        "id": "",
        "kind": "",
        "matchType": "",
        "value": ""
      },
      "mediaDuration": "",
      "mimeType": "",
      "offset": {},
      "orientation": "",
      "originalBackup": false,
      "politeLoad": false,
      "position": {},
      "positionLeftUnit": "",
      "positionTopUnit": "",
      "progressiveServingUrl": "",
      "pushdown": false,
      "pushdownDuration": "",
      "role": "",
      "size": {},
      "sslCompliant": false,
      "startTimeType": "",
      "streamingServingUrl": "",
      "transparency": false,
      "verticallyLocked": false,
      "windowMode": "",
      "zIndex": 0,
      "zipFilename": "",
      "zipFilesize": ""
    }
  ],
  "creativeFieldAssignments": [
    {
      "creativeFieldId": "",
      "creativeFieldValueId": ""
    }
  ],
  "customKeyValues": [],
  "dynamicAssetSelection": false,
  "exitCustomEvents": [
    {}
  ],
  "fsCommand": {
    "left": 0,
    "positionOption": "",
    "top": 0,
    "windowHeight": 0,
    "windowWidth": 0
  },
  "htmlCode": "",
  "htmlCodeLocked": false,
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "lastModifiedInfo": {
    "time": ""
  },
  "latestTraffickedCreativeId": "",
  "mediaDescription": "",
  "mediaDuration": "",
  "name": "",
  "obaIcon": {
    "iconClickThroughUrl": "",
    "iconClickTrackingUrl": "",
    "iconViewTrackingUrl": "",
    "program": "",
    "resourceUrl": "",
    "size": {},
    "xPosition": "",
    "yPosition": ""
  },
  "overrideCss": "",
  "progressOffset": {
    "offsetPercentage": 0,
    "offsetSeconds": 0
  },
  "redirectUrl": "",
  "renderingId": "",
  "renderingIdDimensionValue": {},
  "requiredFlashPluginVersion": "",
  "requiredFlashVersion": 0,
  "size": {},
  "skipOffset": {},
  "skippable": false,
  "sslCompliant": false,
  "sslOverride": false,
  "studioAdvertiserId": "",
  "studioCreativeId": "",
  "studioTraffickedCreativeId": "",
  "subaccountId": "",
  "thirdPartyBackupImageImpressionsUrl": "",
  "thirdPartyRichMediaImpressionsUrl": "",
  "thirdPartyUrls": [
    {
      "thirdPartyUrlType": "",
      "url": ""
    }
  ],
  "timerCustomEvents": [
    {}
  ],
  "totalFileSize": "",
  "type": "",
  "universalAdId": {
    "registry": "",
    "value": ""
  },
  "version": 0
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/creatives' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "active": false,
  "adParameters": "",
  "adTagKeys": [],
  "additionalSizes": [
    {
      "height": 0,
      "iab": false,
      "id": "",
      "kind": "",
      "width": 0
    }
  ],
  "advertiserId": "",
  "allowScriptAccess": false,
  "archived": false,
  "artworkType": "",
  "authoringSource": "",
  "authoringTool": "",
  "autoAdvanceImages": false,
  "backgroundColor": "",
  "backupImageClickThroughUrl": {
    "computedClickThroughUrl": "",
    "customClickThroughUrl": "",
    "landingPageId": ""
  },
  "backupImageFeatures": [],
  "backupImageReportingLabel": "",
  "backupImageTargetWindow": {
    "customHtml": "",
    "targetWindowOption": ""
  },
  "clickTags": [
    {
      "clickThroughUrl": {},
      "eventName": "",
      "name": ""
    }
  ],
  "commercialId": "",
  "companionCreatives": [],
  "compatibility": [],
  "convertFlashToHtml5": false,
  "counterCustomEvents": [
    {
      "advertiserCustomEventId": "",
      "advertiserCustomEventName": "",
      "advertiserCustomEventType": "",
      "artworkLabel": "",
      "artworkType": "",
      "exitClickThroughUrl": {},
      "id": "",
      "popupWindowProperties": {
        "dimension": {},
        "offset": {
          "left": 0,
          "top": 0
        },
        "positionType": "",
        "showAddressBar": false,
        "showMenuBar": false,
        "showScrollBar": false,
        "showStatusBar": false,
        "showToolBar": false,
        "title": ""
      },
      "targetType": "",
      "videoReportingId": ""
    }
  ],
  "creativeAssetSelection": {
    "defaultAssetId": "",
    "rules": [
      {
        "assetId": "",
        "name": "",
        "targetingTemplateId": ""
      }
    ]
  },
  "creativeAssets": [
    {
      "actionScript3": false,
      "active": false,
      "additionalSizes": [
        {}
      ],
      "alignment": "",
      "artworkType": "",
      "assetIdentifier": {
        "name": "",
        "type": ""
      },
      "audioBitRate": 0,
      "audioSampleRate": 0,
      "backupImageExit": {},
      "bitRate": 0,
      "childAssetType": "",
      "collapsedSize": {},
      "companionCreativeIds": [],
      "customStartTimeValue": 0,
      "detectedFeatures": [],
      "displayType": "",
      "duration": 0,
      "durationType": "",
      "expandedDimension": {},
      "fileSize": "",
      "flashVersion": 0,
      "frameRate": "",
      "hideFlashObjects": false,
      "hideSelectionBoxes": false,
      "horizontallyLocked": false,
      "id": "",
      "idDimensionValue": {
        "dimensionName": "",
        "etag": "",
        "id": "",
        "kind": "",
        "matchType": "",
        "value": ""
      },
      "mediaDuration": "",
      "mimeType": "",
      "offset": {},
      "orientation": "",
      "originalBackup": false,
      "politeLoad": false,
      "position": {},
      "positionLeftUnit": "",
      "positionTopUnit": "",
      "progressiveServingUrl": "",
      "pushdown": false,
      "pushdownDuration": "",
      "role": "",
      "size": {},
      "sslCompliant": false,
      "startTimeType": "",
      "streamingServingUrl": "",
      "transparency": false,
      "verticallyLocked": false,
      "windowMode": "",
      "zIndex": 0,
      "zipFilename": "",
      "zipFilesize": ""
    }
  ],
  "creativeFieldAssignments": [
    {
      "creativeFieldId": "",
      "creativeFieldValueId": ""
    }
  ],
  "customKeyValues": [],
  "dynamicAssetSelection": false,
  "exitCustomEvents": [
    {}
  ],
  "fsCommand": {
    "left": 0,
    "positionOption": "",
    "top": 0,
    "windowHeight": 0,
    "windowWidth": 0
  },
  "htmlCode": "",
  "htmlCodeLocked": false,
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "lastModifiedInfo": {
    "time": ""
  },
  "latestTraffickedCreativeId": "",
  "mediaDescription": "",
  "mediaDuration": "",
  "name": "",
  "obaIcon": {
    "iconClickThroughUrl": "",
    "iconClickTrackingUrl": "",
    "iconViewTrackingUrl": "",
    "program": "",
    "resourceUrl": "",
    "size": {},
    "xPosition": "",
    "yPosition": ""
  },
  "overrideCss": "",
  "progressOffset": {
    "offsetPercentage": 0,
    "offsetSeconds": 0
  },
  "redirectUrl": "",
  "renderingId": "",
  "renderingIdDimensionValue": {},
  "requiredFlashPluginVersion": "",
  "requiredFlashVersion": 0,
  "size": {},
  "skipOffset": {},
  "skippable": false,
  "sslCompliant": false,
  "sslOverride": false,
  "studioAdvertiserId": "",
  "studioCreativeId": "",
  "studioTraffickedCreativeId": "",
  "subaccountId": "",
  "thirdPartyBackupImageImpressionsUrl": "",
  "thirdPartyRichMediaImpressionsUrl": "",
  "thirdPartyUrls": [
    {
      "thirdPartyUrlType": "",
      "url": ""
    }
  ],
  "timerCustomEvents": [
    {}
  ],
  "totalFileSize": "",
  "type": "",
  "universalAdId": {
    "registry": "",
    "value": ""
  },
  "version": 0
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"adParameters\": \"\",\n  \"adTagKeys\": [],\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"allowScriptAccess\": false,\n  \"archived\": false,\n  \"artworkType\": \"\",\n  \"authoringSource\": \"\",\n  \"authoringTool\": \"\",\n  \"autoAdvanceImages\": false,\n  \"backgroundColor\": \"\",\n  \"backupImageClickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"landingPageId\": \"\"\n  },\n  \"backupImageFeatures\": [],\n  \"backupImageReportingLabel\": \"\",\n  \"backupImageTargetWindow\": {\n    \"customHtml\": \"\",\n    \"targetWindowOption\": \"\"\n  },\n  \"clickTags\": [\n    {\n      \"clickThroughUrl\": {},\n      \"eventName\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"commercialId\": \"\",\n  \"companionCreatives\": [],\n  \"compatibility\": [],\n  \"convertFlashToHtml5\": false,\n  \"counterCustomEvents\": [\n    {\n      \"advertiserCustomEventId\": \"\",\n      \"advertiserCustomEventName\": \"\",\n      \"advertiserCustomEventType\": \"\",\n      \"artworkLabel\": \"\",\n      \"artworkType\": \"\",\n      \"exitClickThroughUrl\": {},\n      \"id\": \"\",\n      \"popupWindowProperties\": {\n        \"dimension\": {},\n        \"offset\": {\n          \"left\": 0,\n          \"top\": 0\n        },\n        \"positionType\": \"\",\n        \"showAddressBar\": false,\n        \"showMenuBar\": false,\n        \"showScrollBar\": false,\n        \"showStatusBar\": false,\n        \"showToolBar\": false,\n        \"title\": \"\"\n      },\n      \"targetType\": \"\",\n      \"videoReportingId\": \"\"\n    }\n  ],\n  \"creativeAssetSelection\": {\n    \"defaultAssetId\": \"\",\n    \"rules\": [\n      {\n        \"assetId\": \"\",\n        \"name\": \"\",\n        \"targetingTemplateId\": \"\"\n      }\n    ]\n  },\n  \"creativeAssets\": [\n    {\n      \"actionScript3\": false,\n      \"active\": false,\n      \"additionalSizes\": [\n        {}\n      ],\n      \"alignment\": \"\",\n      \"artworkType\": \"\",\n      \"assetIdentifier\": {\n        \"name\": \"\",\n        \"type\": \"\"\n      },\n      \"audioBitRate\": 0,\n      \"audioSampleRate\": 0,\n      \"backupImageExit\": {},\n      \"bitRate\": 0,\n      \"childAssetType\": \"\",\n      \"collapsedSize\": {},\n      \"companionCreativeIds\": [],\n      \"customStartTimeValue\": 0,\n      \"detectedFeatures\": [],\n      \"displayType\": \"\",\n      \"duration\": 0,\n      \"durationType\": \"\",\n      \"expandedDimension\": {},\n      \"fileSize\": \"\",\n      \"flashVersion\": 0,\n      \"frameRate\": \"\",\n      \"hideFlashObjects\": false,\n      \"hideSelectionBoxes\": false,\n      \"horizontallyLocked\": false,\n      \"id\": \"\",\n      \"idDimensionValue\": {\n        \"dimensionName\": \"\",\n        \"etag\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"matchType\": \"\",\n        \"value\": \"\"\n      },\n      \"mediaDuration\": \"\",\n      \"mimeType\": \"\",\n      \"offset\": {},\n      \"orientation\": \"\",\n      \"originalBackup\": false,\n      \"politeLoad\": false,\n      \"position\": {},\n      \"positionLeftUnit\": \"\",\n      \"positionTopUnit\": \"\",\n      \"progressiveServingUrl\": \"\",\n      \"pushdown\": false,\n      \"pushdownDuration\": \"\",\n      \"role\": \"\",\n      \"size\": {},\n      \"sslCompliant\": false,\n      \"startTimeType\": \"\",\n      \"streamingServingUrl\": \"\",\n      \"transparency\": false,\n      \"verticallyLocked\": false,\n      \"windowMode\": \"\",\n      \"zIndex\": 0,\n      \"zipFilename\": \"\",\n      \"zipFilesize\": \"\"\n    }\n  ],\n  \"creativeFieldAssignments\": [\n    {\n      \"creativeFieldId\": \"\",\n      \"creativeFieldValueId\": \"\"\n    }\n  ],\n  \"customKeyValues\": [],\n  \"dynamicAssetSelection\": false,\n  \"exitCustomEvents\": [\n    {}\n  ],\n  \"fsCommand\": {\n    \"left\": 0,\n    \"positionOption\": \"\",\n    \"top\": 0,\n    \"windowHeight\": 0,\n    \"windowWidth\": 0\n  },\n  \"htmlCode\": \"\",\n  \"htmlCodeLocked\": false,\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {\n    \"time\": \"\"\n  },\n  \"latestTraffickedCreativeId\": \"\",\n  \"mediaDescription\": \"\",\n  \"mediaDuration\": \"\",\n  \"name\": \"\",\n  \"obaIcon\": {\n    \"iconClickThroughUrl\": \"\",\n    \"iconClickTrackingUrl\": \"\",\n    \"iconViewTrackingUrl\": \"\",\n    \"program\": \"\",\n    \"resourceUrl\": \"\",\n    \"size\": {},\n    \"xPosition\": \"\",\n    \"yPosition\": \"\"\n  },\n  \"overrideCss\": \"\",\n  \"progressOffset\": {\n    \"offsetPercentage\": 0,\n    \"offsetSeconds\": 0\n  },\n  \"redirectUrl\": \"\",\n  \"renderingId\": \"\",\n  \"renderingIdDimensionValue\": {},\n  \"requiredFlashPluginVersion\": \"\",\n  \"requiredFlashVersion\": 0,\n  \"size\": {},\n  \"skipOffset\": {},\n  \"skippable\": false,\n  \"sslCompliant\": false,\n  \"sslOverride\": false,\n  \"studioAdvertiserId\": \"\",\n  \"studioCreativeId\": \"\",\n  \"studioTraffickedCreativeId\": \"\",\n  \"subaccountId\": \"\",\n  \"thirdPartyBackupImageImpressionsUrl\": \"\",\n  \"thirdPartyRichMediaImpressionsUrl\": \"\",\n  \"thirdPartyUrls\": [\n    {\n      \"thirdPartyUrlType\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"timerCustomEvents\": [\n    {}\n  ],\n  \"totalFileSize\": \"\",\n  \"type\": \"\",\n  \"universalAdId\": {\n    \"registry\": \"\",\n    \"value\": \"\"\n  },\n  \"version\": 0\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/userprofiles/:profileId/creatives", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/creatives"

payload = {
    "accountId": "",
    "active": False,
    "adParameters": "",
    "adTagKeys": [],
    "additionalSizes": [
        {
            "height": 0,
            "iab": False,
            "id": "",
            "kind": "",
            "width": 0
        }
    ],
    "advertiserId": "",
    "allowScriptAccess": False,
    "archived": False,
    "artworkType": "",
    "authoringSource": "",
    "authoringTool": "",
    "autoAdvanceImages": False,
    "backgroundColor": "",
    "backupImageClickThroughUrl": {
        "computedClickThroughUrl": "",
        "customClickThroughUrl": "",
        "landingPageId": ""
    },
    "backupImageFeatures": [],
    "backupImageReportingLabel": "",
    "backupImageTargetWindow": {
        "customHtml": "",
        "targetWindowOption": ""
    },
    "clickTags": [
        {
            "clickThroughUrl": {},
            "eventName": "",
            "name": ""
        }
    ],
    "commercialId": "",
    "companionCreatives": [],
    "compatibility": [],
    "convertFlashToHtml5": False,
    "counterCustomEvents": [
        {
            "advertiserCustomEventId": "",
            "advertiserCustomEventName": "",
            "advertiserCustomEventType": "",
            "artworkLabel": "",
            "artworkType": "",
            "exitClickThroughUrl": {},
            "id": "",
            "popupWindowProperties": {
                "dimension": {},
                "offset": {
                    "left": 0,
                    "top": 0
                },
                "positionType": "",
                "showAddressBar": False,
                "showMenuBar": False,
                "showScrollBar": False,
                "showStatusBar": False,
                "showToolBar": False,
                "title": ""
            },
            "targetType": "",
            "videoReportingId": ""
        }
    ],
    "creativeAssetSelection": {
        "defaultAssetId": "",
        "rules": [
            {
                "assetId": "",
                "name": "",
                "targetingTemplateId": ""
            }
        ]
    },
    "creativeAssets": [
        {
            "actionScript3": False,
            "active": False,
            "additionalSizes": [{}],
            "alignment": "",
            "artworkType": "",
            "assetIdentifier": {
                "name": "",
                "type": ""
            },
            "audioBitRate": 0,
            "audioSampleRate": 0,
            "backupImageExit": {},
            "bitRate": 0,
            "childAssetType": "",
            "collapsedSize": {},
            "companionCreativeIds": [],
            "customStartTimeValue": 0,
            "detectedFeatures": [],
            "displayType": "",
            "duration": 0,
            "durationType": "",
            "expandedDimension": {},
            "fileSize": "",
            "flashVersion": 0,
            "frameRate": "",
            "hideFlashObjects": False,
            "hideSelectionBoxes": False,
            "horizontallyLocked": False,
            "id": "",
            "idDimensionValue": {
                "dimensionName": "",
                "etag": "",
                "id": "",
                "kind": "",
                "matchType": "",
                "value": ""
            },
            "mediaDuration": "",
            "mimeType": "",
            "offset": {},
            "orientation": "",
            "originalBackup": False,
            "politeLoad": False,
            "position": {},
            "positionLeftUnit": "",
            "positionTopUnit": "",
            "progressiveServingUrl": "",
            "pushdown": False,
            "pushdownDuration": "",
            "role": "",
            "size": {},
            "sslCompliant": False,
            "startTimeType": "",
            "streamingServingUrl": "",
            "transparency": False,
            "verticallyLocked": False,
            "windowMode": "",
            "zIndex": 0,
            "zipFilename": "",
            "zipFilesize": ""
        }
    ],
    "creativeFieldAssignments": [
        {
            "creativeFieldId": "",
            "creativeFieldValueId": ""
        }
    ],
    "customKeyValues": [],
    "dynamicAssetSelection": False,
    "exitCustomEvents": [{}],
    "fsCommand": {
        "left": 0,
        "positionOption": "",
        "top": 0,
        "windowHeight": 0,
        "windowWidth": 0
    },
    "htmlCode": "",
    "htmlCodeLocked": False,
    "id": "",
    "idDimensionValue": {},
    "kind": "",
    "lastModifiedInfo": { "time": "" },
    "latestTraffickedCreativeId": "",
    "mediaDescription": "",
    "mediaDuration": "",
    "name": "",
    "obaIcon": {
        "iconClickThroughUrl": "",
        "iconClickTrackingUrl": "",
        "iconViewTrackingUrl": "",
        "program": "",
        "resourceUrl": "",
        "size": {},
        "xPosition": "",
        "yPosition": ""
    },
    "overrideCss": "",
    "progressOffset": {
        "offsetPercentage": 0,
        "offsetSeconds": 0
    },
    "redirectUrl": "",
    "renderingId": "",
    "renderingIdDimensionValue": {},
    "requiredFlashPluginVersion": "",
    "requiredFlashVersion": 0,
    "size": {},
    "skipOffset": {},
    "skippable": False,
    "sslCompliant": False,
    "sslOverride": False,
    "studioAdvertiserId": "",
    "studioCreativeId": "",
    "studioTraffickedCreativeId": "",
    "subaccountId": "",
    "thirdPartyBackupImageImpressionsUrl": "",
    "thirdPartyRichMediaImpressionsUrl": "",
    "thirdPartyUrls": [
        {
            "thirdPartyUrlType": "",
            "url": ""
        }
    ],
    "timerCustomEvents": [{}],
    "totalFileSize": "",
    "type": "",
    "universalAdId": {
        "registry": "",
        "value": ""
    },
    "version": 0
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/creatives"

payload <- "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"adParameters\": \"\",\n  \"adTagKeys\": [],\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"allowScriptAccess\": false,\n  \"archived\": false,\n  \"artworkType\": \"\",\n  \"authoringSource\": \"\",\n  \"authoringTool\": \"\",\n  \"autoAdvanceImages\": false,\n  \"backgroundColor\": \"\",\n  \"backupImageClickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"landingPageId\": \"\"\n  },\n  \"backupImageFeatures\": [],\n  \"backupImageReportingLabel\": \"\",\n  \"backupImageTargetWindow\": {\n    \"customHtml\": \"\",\n    \"targetWindowOption\": \"\"\n  },\n  \"clickTags\": [\n    {\n      \"clickThroughUrl\": {},\n      \"eventName\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"commercialId\": \"\",\n  \"companionCreatives\": [],\n  \"compatibility\": [],\n  \"convertFlashToHtml5\": false,\n  \"counterCustomEvents\": [\n    {\n      \"advertiserCustomEventId\": \"\",\n      \"advertiserCustomEventName\": \"\",\n      \"advertiserCustomEventType\": \"\",\n      \"artworkLabel\": \"\",\n      \"artworkType\": \"\",\n      \"exitClickThroughUrl\": {},\n      \"id\": \"\",\n      \"popupWindowProperties\": {\n        \"dimension\": {},\n        \"offset\": {\n          \"left\": 0,\n          \"top\": 0\n        },\n        \"positionType\": \"\",\n        \"showAddressBar\": false,\n        \"showMenuBar\": false,\n        \"showScrollBar\": false,\n        \"showStatusBar\": false,\n        \"showToolBar\": false,\n        \"title\": \"\"\n      },\n      \"targetType\": \"\",\n      \"videoReportingId\": \"\"\n    }\n  ],\n  \"creativeAssetSelection\": {\n    \"defaultAssetId\": \"\",\n    \"rules\": [\n      {\n        \"assetId\": \"\",\n        \"name\": \"\",\n        \"targetingTemplateId\": \"\"\n      }\n    ]\n  },\n  \"creativeAssets\": [\n    {\n      \"actionScript3\": false,\n      \"active\": false,\n      \"additionalSizes\": [\n        {}\n      ],\n      \"alignment\": \"\",\n      \"artworkType\": \"\",\n      \"assetIdentifier\": {\n        \"name\": \"\",\n        \"type\": \"\"\n      },\n      \"audioBitRate\": 0,\n      \"audioSampleRate\": 0,\n      \"backupImageExit\": {},\n      \"bitRate\": 0,\n      \"childAssetType\": \"\",\n      \"collapsedSize\": {},\n      \"companionCreativeIds\": [],\n      \"customStartTimeValue\": 0,\n      \"detectedFeatures\": [],\n      \"displayType\": \"\",\n      \"duration\": 0,\n      \"durationType\": \"\",\n      \"expandedDimension\": {},\n      \"fileSize\": \"\",\n      \"flashVersion\": 0,\n      \"frameRate\": \"\",\n      \"hideFlashObjects\": false,\n      \"hideSelectionBoxes\": false,\n      \"horizontallyLocked\": false,\n      \"id\": \"\",\n      \"idDimensionValue\": {\n        \"dimensionName\": \"\",\n        \"etag\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"matchType\": \"\",\n        \"value\": \"\"\n      },\n      \"mediaDuration\": \"\",\n      \"mimeType\": \"\",\n      \"offset\": {},\n      \"orientation\": \"\",\n      \"originalBackup\": false,\n      \"politeLoad\": false,\n      \"position\": {},\n      \"positionLeftUnit\": \"\",\n      \"positionTopUnit\": \"\",\n      \"progressiveServingUrl\": \"\",\n      \"pushdown\": false,\n      \"pushdownDuration\": \"\",\n      \"role\": \"\",\n      \"size\": {},\n      \"sslCompliant\": false,\n      \"startTimeType\": \"\",\n      \"streamingServingUrl\": \"\",\n      \"transparency\": false,\n      \"verticallyLocked\": false,\n      \"windowMode\": \"\",\n      \"zIndex\": 0,\n      \"zipFilename\": \"\",\n      \"zipFilesize\": \"\"\n    }\n  ],\n  \"creativeFieldAssignments\": [\n    {\n      \"creativeFieldId\": \"\",\n      \"creativeFieldValueId\": \"\"\n    }\n  ],\n  \"customKeyValues\": [],\n  \"dynamicAssetSelection\": false,\n  \"exitCustomEvents\": [\n    {}\n  ],\n  \"fsCommand\": {\n    \"left\": 0,\n    \"positionOption\": \"\",\n    \"top\": 0,\n    \"windowHeight\": 0,\n    \"windowWidth\": 0\n  },\n  \"htmlCode\": \"\",\n  \"htmlCodeLocked\": false,\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {\n    \"time\": \"\"\n  },\n  \"latestTraffickedCreativeId\": \"\",\n  \"mediaDescription\": \"\",\n  \"mediaDuration\": \"\",\n  \"name\": \"\",\n  \"obaIcon\": {\n    \"iconClickThroughUrl\": \"\",\n    \"iconClickTrackingUrl\": \"\",\n    \"iconViewTrackingUrl\": \"\",\n    \"program\": \"\",\n    \"resourceUrl\": \"\",\n    \"size\": {},\n    \"xPosition\": \"\",\n    \"yPosition\": \"\"\n  },\n  \"overrideCss\": \"\",\n  \"progressOffset\": {\n    \"offsetPercentage\": 0,\n    \"offsetSeconds\": 0\n  },\n  \"redirectUrl\": \"\",\n  \"renderingId\": \"\",\n  \"renderingIdDimensionValue\": {},\n  \"requiredFlashPluginVersion\": \"\",\n  \"requiredFlashVersion\": 0,\n  \"size\": {},\n  \"skipOffset\": {},\n  \"skippable\": false,\n  \"sslCompliant\": false,\n  \"sslOverride\": false,\n  \"studioAdvertiserId\": \"\",\n  \"studioCreativeId\": \"\",\n  \"studioTraffickedCreativeId\": \"\",\n  \"subaccountId\": \"\",\n  \"thirdPartyBackupImageImpressionsUrl\": \"\",\n  \"thirdPartyRichMediaImpressionsUrl\": \"\",\n  \"thirdPartyUrls\": [\n    {\n      \"thirdPartyUrlType\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"timerCustomEvents\": [\n    {}\n  ],\n  \"totalFileSize\": \"\",\n  \"type\": \"\",\n  \"universalAdId\": {\n    \"registry\": \"\",\n    \"value\": \"\"\n  },\n  \"version\": 0\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}}/userprofiles/:profileId/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  \"accountId\": \"\",\n  \"active\": false,\n  \"adParameters\": \"\",\n  \"adTagKeys\": [],\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"allowScriptAccess\": false,\n  \"archived\": false,\n  \"artworkType\": \"\",\n  \"authoringSource\": \"\",\n  \"authoringTool\": \"\",\n  \"autoAdvanceImages\": false,\n  \"backgroundColor\": \"\",\n  \"backupImageClickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"landingPageId\": \"\"\n  },\n  \"backupImageFeatures\": [],\n  \"backupImageReportingLabel\": \"\",\n  \"backupImageTargetWindow\": {\n    \"customHtml\": \"\",\n    \"targetWindowOption\": \"\"\n  },\n  \"clickTags\": [\n    {\n      \"clickThroughUrl\": {},\n      \"eventName\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"commercialId\": \"\",\n  \"companionCreatives\": [],\n  \"compatibility\": [],\n  \"convertFlashToHtml5\": false,\n  \"counterCustomEvents\": [\n    {\n      \"advertiserCustomEventId\": \"\",\n      \"advertiserCustomEventName\": \"\",\n      \"advertiserCustomEventType\": \"\",\n      \"artworkLabel\": \"\",\n      \"artworkType\": \"\",\n      \"exitClickThroughUrl\": {},\n      \"id\": \"\",\n      \"popupWindowProperties\": {\n        \"dimension\": {},\n        \"offset\": {\n          \"left\": 0,\n          \"top\": 0\n        },\n        \"positionType\": \"\",\n        \"showAddressBar\": false,\n        \"showMenuBar\": false,\n        \"showScrollBar\": false,\n        \"showStatusBar\": false,\n        \"showToolBar\": false,\n        \"title\": \"\"\n      },\n      \"targetType\": \"\",\n      \"videoReportingId\": \"\"\n    }\n  ],\n  \"creativeAssetSelection\": {\n    \"defaultAssetId\": \"\",\n    \"rules\": [\n      {\n        \"assetId\": \"\",\n        \"name\": \"\",\n        \"targetingTemplateId\": \"\"\n      }\n    ]\n  },\n  \"creativeAssets\": [\n    {\n      \"actionScript3\": false,\n      \"active\": false,\n      \"additionalSizes\": [\n        {}\n      ],\n      \"alignment\": \"\",\n      \"artworkType\": \"\",\n      \"assetIdentifier\": {\n        \"name\": \"\",\n        \"type\": \"\"\n      },\n      \"audioBitRate\": 0,\n      \"audioSampleRate\": 0,\n      \"backupImageExit\": {},\n      \"bitRate\": 0,\n      \"childAssetType\": \"\",\n      \"collapsedSize\": {},\n      \"companionCreativeIds\": [],\n      \"customStartTimeValue\": 0,\n      \"detectedFeatures\": [],\n      \"displayType\": \"\",\n      \"duration\": 0,\n      \"durationType\": \"\",\n      \"expandedDimension\": {},\n      \"fileSize\": \"\",\n      \"flashVersion\": 0,\n      \"frameRate\": \"\",\n      \"hideFlashObjects\": false,\n      \"hideSelectionBoxes\": false,\n      \"horizontallyLocked\": false,\n      \"id\": \"\",\n      \"idDimensionValue\": {\n        \"dimensionName\": \"\",\n        \"etag\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"matchType\": \"\",\n        \"value\": \"\"\n      },\n      \"mediaDuration\": \"\",\n      \"mimeType\": \"\",\n      \"offset\": {},\n      \"orientation\": \"\",\n      \"originalBackup\": false,\n      \"politeLoad\": false,\n      \"position\": {},\n      \"positionLeftUnit\": \"\",\n      \"positionTopUnit\": \"\",\n      \"progressiveServingUrl\": \"\",\n      \"pushdown\": false,\n      \"pushdownDuration\": \"\",\n      \"role\": \"\",\n      \"size\": {},\n      \"sslCompliant\": false,\n      \"startTimeType\": \"\",\n      \"streamingServingUrl\": \"\",\n      \"transparency\": false,\n      \"verticallyLocked\": false,\n      \"windowMode\": \"\",\n      \"zIndex\": 0,\n      \"zipFilename\": \"\",\n      \"zipFilesize\": \"\"\n    }\n  ],\n  \"creativeFieldAssignments\": [\n    {\n      \"creativeFieldId\": \"\",\n      \"creativeFieldValueId\": \"\"\n    }\n  ],\n  \"customKeyValues\": [],\n  \"dynamicAssetSelection\": false,\n  \"exitCustomEvents\": [\n    {}\n  ],\n  \"fsCommand\": {\n    \"left\": 0,\n    \"positionOption\": \"\",\n    \"top\": 0,\n    \"windowHeight\": 0,\n    \"windowWidth\": 0\n  },\n  \"htmlCode\": \"\",\n  \"htmlCodeLocked\": false,\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {\n    \"time\": \"\"\n  },\n  \"latestTraffickedCreativeId\": \"\",\n  \"mediaDescription\": \"\",\n  \"mediaDuration\": \"\",\n  \"name\": \"\",\n  \"obaIcon\": {\n    \"iconClickThroughUrl\": \"\",\n    \"iconClickTrackingUrl\": \"\",\n    \"iconViewTrackingUrl\": \"\",\n    \"program\": \"\",\n    \"resourceUrl\": \"\",\n    \"size\": {},\n    \"xPosition\": \"\",\n    \"yPosition\": \"\"\n  },\n  \"overrideCss\": \"\",\n  \"progressOffset\": {\n    \"offsetPercentage\": 0,\n    \"offsetSeconds\": 0\n  },\n  \"redirectUrl\": \"\",\n  \"renderingId\": \"\",\n  \"renderingIdDimensionValue\": {},\n  \"requiredFlashPluginVersion\": \"\",\n  \"requiredFlashVersion\": 0,\n  \"size\": {},\n  \"skipOffset\": {},\n  \"skippable\": false,\n  \"sslCompliant\": false,\n  \"sslOverride\": false,\n  \"studioAdvertiserId\": \"\",\n  \"studioCreativeId\": \"\",\n  \"studioTraffickedCreativeId\": \"\",\n  \"subaccountId\": \"\",\n  \"thirdPartyBackupImageImpressionsUrl\": \"\",\n  \"thirdPartyRichMediaImpressionsUrl\": \"\",\n  \"thirdPartyUrls\": [\n    {\n      \"thirdPartyUrlType\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"timerCustomEvents\": [\n    {}\n  ],\n  \"totalFileSize\": \"\",\n  \"type\": \"\",\n  \"universalAdId\": {\n    \"registry\": \"\",\n    \"value\": \"\"\n  },\n  \"version\": 0\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/userprofiles/:profileId/creatives') do |req|
  req.body = "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"adParameters\": \"\",\n  \"adTagKeys\": [],\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"allowScriptAccess\": false,\n  \"archived\": false,\n  \"artworkType\": \"\",\n  \"authoringSource\": \"\",\n  \"authoringTool\": \"\",\n  \"autoAdvanceImages\": false,\n  \"backgroundColor\": \"\",\n  \"backupImageClickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"landingPageId\": \"\"\n  },\n  \"backupImageFeatures\": [],\n  \"backupImageReportingLabel\": \"\",\n  \"backupImageTargetWindow\": {\n    \"customHtml\": \"\",\n    \"targetWindowOption\": \"\"\n  },\n  \"clickTags\": [\n    {\n      \"clickThroughUrl\": {},\n      \"eventName\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"commercialId\": \"\",\n  \"companionCreatives\": [],\n  \"compatibility\": [],\n  \"convertFlashToHtml5\": false,\n  \"counterCustomEvents\": [\n    {\n      \"advertiserCustomEventId\": \"\",\n      \"advertiserCustomEventName\": \"\",\n      \"advertiserCustomEventType\": \"\",\n      \"artworkLabel\": \"\",\n      \"artworkType\": \"\",\n      \"exitClickThroughUrl\": {},\n      \"id\": \"\",\n      \"popupWindowProperties\": {\n        \"dimension\": {},\n        \"offset\": {\n          \"left\": 0,\n          \"top\": 0\n        },\n        \"positionType\": \"\",\n        \"showAddressBar\": false,\n        \"showMenuBar\": false,\n        \"showScrollBar\": false,\n        \"showStatusBar\": false,\n        \"showToolBar\": false,\n        \"title\": \"\"\n      },\n      \"targetType\": \"\",\n      \"videoReportingId\": \"\"\n    }\n  ],\n  \"creativeAssetSelection\": {\n    \"defaultAssetId\": \"\",\n    \"rules\": [\n      {\n        \"assetId\": \"\",\n        \"name\": \"\",\n        \"targetingTemplateId\": \"\"\n      }\n    ]\n  },\n  \"creativeAssets\": [\n    {\n      \"actionScript3\": false,\n      \"active\": false,\n      \"additionalSizes\": [\n        {}\n      ],\n      \"alignment\": \"\",\n      \"artworkType\": \"\",\n      \"assetIdentifier\": {\n        \"name\": \"\",\n        \"type\": \"\"\n      },\n      \"audioBitRate\": 0,\n      \"audioSampleRate\": 0,\n      \"backupImageExit\": {},\n      \"bitRate\": 0,\n      \"childAssetType\": \"\",\n      \"collapsedSize\": {},\n      \"companionCreativeIds\": [],\n      \"customStartTimeValue\": 0,\n      \"detectedFeatures\": [],\n      \"displayType\": \"\",\n      \"duration\": 0,\n      \"durationType\": \"\",\n      \"expandedDimension\": {},\n      \"fileSize\": \"\",\n      \"flashVersion\": 0,\n      \"frameRate\": \"\",\n      \"hideFlashObjects\": false,\n      \"hideSelectionBoxes\": false,\n      \"horizontallyLocked\": false,\n      \"id\": \"\",\n      \"idDimensionValue\": {\n        \"dimensionName\": \"\",\n        \"etag\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"matchType\": \"\",\n        \"value\": \"\"\n      },\n      \"mediaDuration\": \"\",\n      \"mimeType\": \"\",\n      \"offset\": {},\n      \"orientation\": \"\",\n      \"originalBackup\": false,\n      \"politeLoad\": false,\n      \"position\": {},\n      \"positionLeftUnit\": \"\",\n      \"positionTopUnit\": \"\",\n      \"progressiveServingUrl\": \"\",\n      \"pushdown\": false,\n      \"pushdownDuration\": \"\",\n      \"role\": \"\",\n      \"size\": {},\n      \"sslCompliant\": false,\n      \"startTimeType\": \"\",\n      \"streamingServingUrl\": \"\",\n      \"transparency\": false,\n      \"verticallyLocked\": false,\n      \"windowMode\": \"\",\n      \"zIndex\": 0,\n      \"zipFilename\": \"\",\n      \"zipFilesize\": \"\"\n    }\n  ],\n  \"creativeFieldAssignments\": [\n    {\n      \"creativeFieldId\": \"\",\n      \"creativeFieldValueId\": \"\"\n    }\n  ],\n  \"customKeyValues\": [],\n  \"dynamicAssetSelection\": false,\n  \"exitCustomEvents\": [\n    {}\n  ],\n  \"fsCommand\": {\n    \"left\": 0,\n    \"positionOption\": \"\",\n    \"top\": 0,\n    \"windowHeight\": 0,\n    \"windowWidth\": 0\n  },\n  \"htmlCode\": \"\",\n  \"htmlCodeLocked\": false,\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {\n    \"time\": \"\"\n  },\n  \"latestTraffickedCreativeId\": \"\",\n  \"mediaDescription\": \"\",\n  \"mediaDuration\": \"\",\n  \"name\": \"\",\n  \"obaIcon\": {\n    \"iconClickThroughUrl\": \"\",\n    \"iconClickTrackingUrl\": \"\",\n    \"iconViewTrackingUrl\": \"\",\n    \"program\": \"\",\n    \"resourceUrl\": \"\",\n    \"size\": {},\n    \"xPosition\": \"\",\n    \"yPosition\": \"\"\n  },\n  \"overrideCss\": \"\",\n  \"progressOffset\": {\n    \"offsetPercentage\": 0,\n    \"offsetSeconds\": 0\n  },\n  \"redirectUrl\": \"\",\n  \"renderingId\": \"\",\n  \"renderingIdDimensionValue\": {},\n  \"requiredFlashPluginVersion\": \"\",\n  \"requiredFlashVersion\": 0,\n  \"size\": {},\n  \"skipOffset\": {},\n  \"skippable\": false,\n  \"sslCompliant\": false,\n  \"sslOverride\": false,\n  \"studioAdvertiserId\": \"\",\n  \"studioCreativeId\": \"\",\n  \"studioTraffickedCreativeId\": \"\",\n  \"subaccountId\": \"\",\n  \"thirdPartyBackupImageImpressionsUrl\": \"\",\n  \"thirdPartyRichMediaImpressionsUrl\": \"\",\n  \"thirdPartyUrls\": [\n    {\n      \"thirdPartyUrlType\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"timerCustomEvents\": [\n    {}\n  ],\n  \"totalFileSize\": \"\",\n  \"type\": \"\",\n  \"universalAdId\": {\n    \"registry\": \"\",\n    \"value\": \"\"\n  },\n  \"version\": 0\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/creatives";

    let payload = json!({
        "accountId": "",
        "active": false,
        "adParameters": "",
        "adTagKeys": (),
        "additionalSizes": (
            json!({
                "height": 0,
                "iab": false,
                "id": "",
                "kind": "",
                "width": 0
            })
        ),
        "advertiserId": "",
        "allowScriptAccess": false,
        "archived": false,
        "artworkType": "",
        "authoringSource": "",
        "authoringTool": "",
        "autoAdvanceImages": false,
        "backgroundColor": "",
        "backupImageClickThroughUrl": json!({
            "computedClickThroughUrl": "",
            "customClickThroughUrl": "",
            "landingPageId": ""
        }),
        "backupImageFeatures": (),
        "backupImageReportingLabel": "",
        "backupImageTargetWindow": json!({
            "customHtml": "",
            "targetWindowOption": ""
        }),
        "clickTags": (
            json!({
                "clickThroughUrl": json!({}),
                "eventName": "",
                "name": ""
            })
        ),
        "commercialId": "",
        "companionCreatives": (),
        "compatibility": (),
        "convertFlashToHtml5": false,
        "counterCustomEvents": (
            json!({
                "advertiserCustomEventId": "",
                "advertiserCustomEventName": "",
                "advertiserCustomEventType": "",
                "artworkLabel": "",
                "artworkType": "",
                "exitClickThroughUrl": json!({}),
                "id": "",
                "popupWindowProperties": json!({
                    "dimension": json!({}),
                    "offset": json!({
                        "left": 0,
                        "top": 0
                    }),
                    "positionType": "",
                    "showAddressBar": false,
                    "showMenuBar": false,
                    "showScrollBar": false,
                    "showStatusBar": false,
                    "showToolBar": false,
                    "title": ""
                }),
                "targetType": "",
                "videoReportingId": ""
            })
        ),
        "creativeAssetSelection": json!({
            "defaultAssetId": "",
            "rules": (
                json!({
                    "assetId": "",
                    "name": "",
                    "targetingTemplateId": ""
                })
            )
        }),
        "creativeAssets": (
            json!({
                "actionScript3": false,
                "active": false,
                "additionalSizes": (json!({})),
                "alignment": "",
                "artworkType": "",
                "assetIdentifier": json!({
                    "name": "",
                    "type": ""
                }),
                "audioBitRate": 0,
                "audioSampleRate": 0,
                "backupImageExit": json!({}),
                "bitRate": 0,
                "childAssetType": "",
                "collapsedSize": json!({}),
                "companionCreativeIds": (),
                "customStartTimeValue": 0,
                "detectedFeatures": (),
                "displayType": "",
                "duration": 0,
                "durationType": "",
                "expandedDimension": json!({}),
                "fileSize": "",
                "flashVersion": 0,
                "frameRate": "",
                "hideFlashObjects": false,
                "hideSelectionBoxes": false,
                "horizontallyLocked": false,
                "id": "",
                "idDimensionValue": json!({
                    "dimensionName": "",
                    "etag": "",
                    "id": "",
                    "kind": "",
                    "matchType": "",
                    "value": ""
                }),
                "mediaDuration": "",
                "mimeType": "",
                "offset": json!({}),
                "orientation": "",
                "originalBackup": false,
                "politeLoad": false,
                "position": json!({}),
                "positionLeftUnit": "",
                "positionTopUnit": "",
                "progressiveServingUrl": "",
                "pushdown": false,
                "pushdownDuration": "",
                "role": "",
                "size": json!({}),
                "sslCompliant": false,
                "startTimeType": "",
                "streamingServingUrl": "",
                "transparency": false,
                "verticallyLocked": false,
                "windowMode": "",
                "zIndex": 0,
                "zipFilename": "",
                "zipFilesize": ""
            })
        ),
        "creativeFieldAssignments": (
            json!({
                "creativeFieldId": "",
                "creativeFieldValueId": ""
            })
        ),
        "customKeyValues": (),
        "dynamicAssetSelection": false,
        "exitCustomEvents": (json!({})),
        "fsCommand": json!({
            "left": 0,
            "positionOption": "",
            "top": 0,
            "windowHeight": 0,
            "windowWidth": 0
        }),
        "htmlCode": "",
        "htmlCodeLocked": false,
        "id": "",
        "idDimensionValue": json!({}),
        "kind": "",
        "lastModifiedInfo": json!({"time": ""}),
        "latestTraffickedCreativeId": "",
        "mediaDescription": "",
        "mediaDuration": "",
        "name": "",
        "obaIcon": json!({
            "iconClickThroughUrl": "",
            "iconClickTrackingUrl": "",
            "iconViewTrackingUrl": "",
            "program": "",
            "resourceUrl": "",
            "size": json!({}),
            "xPosition": "",
            "yPosition": ""
        }),
        "overrideCss": "",
        "progressOffset": json!({
            "offsetPercentage": 0,
            "offsetSeconds": 0
        }),
        "redirectUrl": "",
        "renderingId": "",
        "renderingIdDimensionValue": json!({}),
        "requiredFlashPluginVersion": "",
        "requiredFlashVersion": 0,
        "size": json!({}),
        "skipOffset": json!({}),
        "skippable": false,
        "sslCompliant": false,
        "sslOverride": false,
        "studioAdvertiserId": "",
        "studioCreativeId": "",
        "studioTraffickedCreativeId": "",
        "subaccountId": "",
        "thirdPartyBackupImageImpressionsUrl": "",
        "thirdPartyRichMediaImpressionsUrl": "",
        "thirdPartyUrls": (
            json!({
                "thirdPartyUrlType": "",
                "url": ""
            })
        ),
        "timerCustomEvents": (json!({})),
        "totalFileSize": "",
        "type": "",
        "universalAdId": json!({
            "registry": "",
            "value": ""
        }),
        "version": 0
    });

    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}}/userprofiles/:profileId/creatives \
  --header 'content-type: application/json' \
  --data '{
  "accountId": "",
  "active": false,
  "adParameters": "",
  "adTagKeys": [],
  "additionalSizes": [
    {
      "height": 0,
      "iab": false,
      "id": "",
      "kind": "",
      "width": 0
    }
  ],
  "advertiserId": "",
  "allowScriptAccess": false,
  "archived": false,
  "artworkType": "",
  "authoringSource": "",
  "authoringTool": "",
  "autoAdvanceImages": false,
  "backgroundColor": "",
  "backupImageClickThroughUrl": {
    "computedClickThroughUrl": "",
    "customClickThroughUrl": "",
    "landingPageId": ""
  },
  "backupImageFeatures": [],
  "backupImageReportingLabel": "",
  "backupImageTargetWindow": {
    "customHtml": "",
    "targetWindowOption": ""
  },
  "clickTags": [
    {
      "clickThroughUrl": {},
      "eventName": "",
      "name": ""
    }
  ],
  "commercialId": "",
  "companionCreatives": [],
  "compatibility": [],
  "convertFlashToHtml5": false,
  "counterCustomEvents": [
    {
      "advertiserCustomEventId": "",
      "advertiserCustomEventName": "",
      "advertiserCustomEventType": "",
      "artworkLabel": "",
      "artworkType": "",
      "exitClickThroughUrl": {},
      "id": "",
      "popupWindowProperties": {
        "dimension": {},
        "offset": {
          "left": 0,
          "top": 0
        },
        "positionType": "",
        "showAddressBar": false,
        "showMenuBar": false,
        "showScrollBar": false,
        "showStatusBar": false,
        "showToolBar": false,
        "title": ""
      },
      "targetType": "",
      "videoReportingId": ""
    }
  ],
  "creativeAssetSelection": {
    "defaultAssetId": "",
    "rules": [
      {
        "assetId": "",
        "name": "",
        "targetingTemplateId": ""
      }
    ]
  },
  "creativeAssets": [
    {
      "actionScript3": false,
      "active": false,
      "additionalSizes": [
        {}
      ],
      "alignment": "",
      "artworkType": "",
      "assetIdentifier": {
        "name": "",
        "type": ""
      },
      "audioBitRate": 0,
      "audioSampleRate": 0,
      "backupImageExit": {},
      "bitRate": 0,
      "childAssetType": "",
      "collapsedSize": {},
      "companionCreativeIds": [],
      "customStartTimeValue": 0,
      "detectedFeatures": [],
      "displayType": "",
      "duration": 0,
      "durationType": "",
      "expandedDimension": {},
      "fileSize": "",
      "flashVersion": 0,
      "frameRate": "",
      "hideFlashObjects": false,
      "hideSelectionBoxes": false,
      "horizontallyLocked": false,
      "id": "",
      "idDimensionValue": {
        "dimensionName": "",
        "etag": "",
        "id": "",
        "kind": "",
        "matchType": "",
        "value": ""
      },
      "mediaDuration": "",
      "mimeType": "",
      "offset": {},
      "orientation": "",
      "originalBackup": false,
      "politeLoad": false,
      "position": {},
      "positionLeftUnit": "",
      "positionTopUnit": "",
      "progressiveServingUrl": "",
      "pushdown": false,
      "pushdownDuration": "",
      "role": "",
      "size": {},
      "sslCompliant": false,
      "startTimeType": "",
      "streamingServingUrl": "",
      "transparency": false,
      "verticallyLocked": false,
      "windowMode": "",
      "zIndex": 0,
      "zipFilename": "",
      "zipFilesize": ""
    }
  ],
  "creativeFieldAssignments": [
    {
      "creativeFieldId": "",
      "creativeFieldValueId": ""
    }
  ],
  "customKeyValues": [],
  "dynamicAssetSelection": false,
  "exitCustomEvents": [
    {}
  ],
  "fsCommand": {
    "left": 0,
    "positionOption": "",
    "top": 0,
    "windowHeight": 0,
    "windowWidth": 0
  },
  "htmlCode": "",
  "htmlCodeLocked": false,
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "lastModifiedInfo": {
    "time": ""
  },
  "latestTraffickedCreativeId": "",
  "mediaDescription": "",
  "mediaDuration": "",
  "name": "",
  "obaIcon": {
    "iconClickThroughUrl": "",
    "iconClickTrackingUrl": "",
    "iconViewTrackingUrl": "",
    "program": "",
    "resourceUrl": "",
    "size": {},
    "xPosition": "",
    "yPosition": ""
  },
  "overrideCss": "",
  "progressOffset": {
    "offsetPercentage": 0,
    "offsetSeconds": 0
  },
  "redirectUrl": "",
  "renderingId": "",
  "renderingIdDimensionValue": {},
  "requiredFlashPluginVersion": "",
  "requiredFlashVersion": 0,
  "size": {},
  "skipOffset": {},
  "skippable": false,
  "sslCompliant": false,
  "sslOverride": false,
  "studioAdvertiserId": "",
  "studioCreativeId": "",
  "studioTraffickedCreativeId": "",
  "subaccountId": "",
  "thirdPartyBackupImageImpressionsUrl": "",
  "thirdPartyRichMediaImpressionsUrl": "",
  "thirdPartyUrls": [
    {
      "thirdPartyUrlType": "",
      "url": ""
    }
  ],
  "timerCustomEvents": [
    {}
  ],
  "totalFileSize": "",
  "type": "",
  "universalAdId": {
    "registry": "",
    "value": ""
  },
  "version": 0
}'
echo '{
  "accountId": "",
  "active": false,
  "adParameters": "",
  "adTagKeys": [],
  "additionalSizes": [
    {
      "height": 0,
      "iab": false,
      "id": "",
      "kind": "",
      "width": 0
    }
  ],
  "advertiserId": "",
  "allowScriptAccess": false,
  "archived": false,
  "artworkType": "",
  "authoringSource": "",
  "authoringTool": "",
  "autoAdvanceImages": false,
  "backgroundColor": "",
  "backupImageClickThroughUrl": {
    "computedClickThroughUrl": "",
    "customClickThroughUrl": "",
    "landingPageId": ""
  },
  "backupImageFeatures": [],
  "backupImageReportingLabel": "",
  "backupImageTargetWindow": {
    "customHtml": "",
    "targetWindowOption": ""
  },
  "clickTags": [
    {
      "clickThroughUrl": {},
      "eventName": "",
      "name": ""
    }
  ],
  "commercialId": "",
  "companionCreatives": [],
  "compatibility": [],
  "convertFlashToHtml5": false,
  "counterCustomEvents": [
    {
      "advertiserCustomEventId": "",
      "advertiserCustomEventName": "",
      "advertiserCustomEventType": "",
      "artworkLabel": "",
      "artworkType": "",
      "exitClickThroughUrl": {},
      "id": "",
      "popupWindowProperties": {
        "dimension": {},
        "offset": {
          "left": 0,
          "top": 0
        },
        "positionType": "",
        "showAddressBar": false,
        "showMenuBar": false,
        "showScrollBar": false,
        "showStatusBar": false,
        "showToolBar": false,
        "title": ""
      },
      "targetType": "",
      "videoReportingId": ""
    }
  ],
  "creativeAssetSelection": {
    "defaultAssetId": "",
    "rules": [
      {
        "assetId": "",
        "name": "",
        "targetingTemplateId": ""
      }
    ]
  },
  "creativeAssets": [
    {
      "actionScript3": false,
      "active": false,
      "additionalSizes": [
        {}
      ],
      "alignment": "",
      "artworkType": "",
      "assetIdentifier": {
        "name": "",
        "type": ""
      },
      "audioBitRate": 0,
      "audioSampleRate": 0,
      "backupImageExit": {},
      "bitRate": 0,
      "childAssetType": "",
      "collapsedSize": {},
      "companionCreativeIds": [],
      "customStartTimeValue": 0,
      "detectedFeatures": [],
      "displayType": "",
      "duration": 0,
      "durationType": "",
      "expandedDimension": {},
      "fileSize": "",
      "flashVersion": 0,
      "frameRate": "",
      "hideFlashObjects": false,
      "hideSelectionBoxes": false,
      "horizontallyLocked": false,
      "id": "",
      "idDimensionValue": {
        "dimensionName": "",
        "etag": "",
        "id": "",
        "kind": "",
        "matchType": "",
        "value": ""
      },
      "mediaDuration": "",
      "mimeType": "",
      "offset": {},
      "orientation": "",
      "originalBackup": false,
      "politeLoad": false,
      "position": {},
      "positionLeftUnit": "",
      "positionTopUnit": "",
      "progressiveServingUrl": "",
      "pushdown": false,
      "pushdownDuration": "",
      "role": "",
      "size": {},
      "sslCompliant": false,
      "startTimeType": "",
      "streamingServingUrl": "",
      "transparency": false,
      "verticallyLocked": false,
      "windowMode": "",
      "zIndex": 0,
      "zipFilename": "",
      "zipFilesize": ""
    }
  ],
  "creativeFieldAssignments": [
    {
      "creativeFieldId": "",
      "creativeFieldValueId": ""
    }
  ],
  "customKeyValues": [],
  "dynamicAssetSelection": false,
  "exitCustomEvents": [
    {}
  ],
  "fsCommand": {
    "left": 0,
    "positionOption": "",
    "top": 0,
    "windowHeight": 0,
    "windowWidth": 0
  },
  "htmlCode": "",
  "htmlCodeLocked": false,
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "lastModifiedInfo": {
    "time": ""
  },
  "latestTraffickedCreativeId": "",
  "mediaDescription": "",
  "mediaDuration": "",
  "name": "",
  "obaIcon": {
    "iconClickThroughUrl": "",
    "iconClickTrackingUrl": "",
    "iconViewTrackingUrl": "",
    "program": "",
    "resourceUrl": "",
    "size": {},
    "xPosition": "",
    "yPosition": ""
  },
  "overrideCss": "",
  "progressOffset": {
    "offsetPercentage": 0,
    "offsetSeconds": 0
  },
  "redirectUrl": "",
  "renderingId": "",
  "renderingIdDimensionValue": {},
  "requiredFlashPluginVersion": "",
  "requiredFlashVersion": 0,
  "size": {},
  "skipOffset": {},
  "skippable": false,
  "sslCompliant": false,
  "sslOverride": false,
  "studioAdvertiserId": "",
  "studioCreativeId": "",
  "studioTraffickedCreativeId": "",
  "subaccountId": "",
  "thirdPartyBackupImageImpressionsUrl": "",
  "thirdPartyRichMediaImpressionsUrl": "",
  "thirdPartyUrls": [
    {
      "thirdPartyUrlType": "",
      "url": ""
    }
  ],
  "timerCustomEvents": [
    {}
  ],
  "totalFileSize": "",
  "type": "",
  "universalAdId": {
    "registry": "",
    "value": ""
  },
  "version": 0
}' |  \
  http POST {{baseUrl}}/userprofiles/:profileId/creatives \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "accountId": "",\n  "active": false,\n  "adParameters": "",\n  "adTagKeys": [],\n  "additionalSizes": [\n    {\n      "height": 0,\n      "iab": false,\n      "id": "",\n      "kind": "",\n      "width": 0\n    }\n  ],\n  "advertiserId": "",\n  "allowScriptAccess": false,\n  "archived": false,\n  "artworkType": "",\n  "authoringSource": "",\n  "authoringTool": "",\n  "autoAdvanceImages": false,\n  "backgroundColor": "",\n  "backupImageClickThroughUrl": {\n    "computedClickThroughUrl": "",\n    "customClickThroughUrl": "",\n    "landingPageId": ""\n  },\n  "backupImageFeatures": [],\n  "backupImageReportingLabel": "",\n  "backupImageTargetWindow": {\n    "customHtml": "",\n    "targetWindowOption": ""\n  },\n  "clickTags": [\n    {\n      "clickThroughUrl": {},\n      "eventName": "",\n      "name": ""\n    }\n  ],\n  "commercialId": "",\n  "companionCreatives": [],\n  "compatibility": [],\n  "convertFlashToHtml5": false,\n  "counterCustomEvents": [\n    {\n      "advertiserCustomEventId": "",\n      "advertiserCustomEventName": "",\n      "advertiserCustomEventType": "",\n      "artworkLabel": "",\n      "artworkType": "",\n      "exitClickThroughUrl": {},\n      "id": "",\n      "popupWindowProperties": {\n        "dimension": {},\n        "offset": {\n          "left": 0,\n          "top": 0\n        },\n        "positionType": "",\n        "showAddressBar": false,\n        "showMenuBar": false,\n        "showScrollBar": false,\n        "showStatusBar": false,\n        "showToolBar": false,\n        "title": ""\n      },\n      "targetType": "",\n      "videoReportingId": ""\n    }\n  ],\n  "creativeAssetSelection": {\n    "defaultAssetId": "",\n    "rules": [\n      {\n        "assetId": "",\n        "name": "",\n        "targetingTemplateId": ""\n      }\n    ]\n  },\n  "creativeAssets": [\n    {\n      "actionScript3": false,\n      "active": false,\n      "additionalSizes": [\n        {}\n      ],\n      "alignment": "",\n      "artworkType": "",\n      "assetIdentifier": {\n        "name": "",\n        "type": ""\n      },\n      "audioBitRate": 0,\n      "audioSampleRate": 0,\n      "backupImageExit": {},\n      "bitRate": 0,\n      "childAssetType": "",\n      "collapsedSize": {},\n      "companionCreativeIds": [],\n      "customStartTimeValue": 0,\n      "detectedFeatures": [],\n      "displayType": "",\n      "duration": 0,\n      "durationType": "",\n      "expandedDimension": {},\n      "fileSize": "",\n      "flashVersion": 0,\n      "frameRate": "",\n      "hideFlashObjects": false,\n      "hideSelectionBoxes": false,\n      "horizontallyLocked": false,\n      "id": "",\n      "idDimensionValue": {\n        "dimensionName": "",\n        "etag": "",\n        "id": "",\n        "kind": "",\n        "matchType": "",\n        "value": ""\n      },\n      "mediaDuration": "",\n      "mimeType": "",\n      "offset": {},\n      "orientation": "",\n      "originalBackup": false,\n      "politeLoad": false,\n      "position": {},\n      "positionLeftUnit": "",\n      "positionTopUnit": "",\n      "progressiveServingUrl": "",\n      "pushdown": false,\n      "pushdownDuration": "",\n      "role": "",\n      "size": {},\n      "sslCompliant": false,\n      "startTimeType": "",\n      "streamingServingUrl": "",\n      "transparency": false,\n      "verticallyLocked": false,\n      "windowMode": "",\n      "zIndex": 0,\n      "zipFilename": "",\n      "zipFilesize": ""\n    }\n  ],\n  "creativeFieldAssignments": [\n    {\n      "creativeFieldId": "",\n      "creativeFieldValueId": ""\n    }\n  ],\n  "customKeyValues": [],\n  "dynamicAssetSelection": false,\n  "exitCustomEvents": [\n    {}\n  ],\n  "fsCommand": {\n    "left": 0,\n    "positionOption": "",\n    "top": 0,\n    "windowHeight": 0,\n    "windowWidth": 0\n  },\n  "htmlCode": "",\n  "htmlCodeLocked": false,\n  "id": "",\n  "idDimensionValue": {},\n  "kind": "",\n  "lastModifiedInfo": {\n    "time": ""\n  },\n  "latestTraffickedCreativeId": "",\n  "mediaDescription": "",\n  "mediaDuration": "",\n  "name": "",\n  "obaIcon": {\n    "iconClickThroughUrl": "",\n    "iconClickTrackingUrl": "",\n    "iconViewTrackingUrl": "",\n    "program": "",\n    "resourceUrl": "",\n    "size": {},\n    "xPosition": "",\n    "yPosition": ""\n  },\n  "overrideCss": "",\n  "progressOffset": {\n    "offsetPercentage": 0,\n    "offsetSeconds": 0\n  },\n  "redirectUrl": "",\n  "renderingId": "",\n  "renderingIdDimensionValue": {},\n  "requiredFlashPluginVersion": "",\n  "requiredFlashVersion": 0,\n  "size": {},\n  "skipOffset": {},\n  "skippable": false,\n  "sslCompliant": false,\n  "sslOverride": false,\n  "studioAdvertiserId": "",\n  "studioCreativeId": "",\n  "studioTraffickedCreativeId": "",\n  "subaccountId": "",\n  "thirdPartyBackupImageImpressionsUrl": "",\n  "thirdPartyRichMediaImpressionsUrl": "",\n  "thirdPartyUrls": [\n    {\n      "thirdPartyUrlType": "",\n      "url": ""\n    }\n  ],\n  "timerCustomEvents": [\n    {}\n  ],\n  "totalFileSize": "",\n  "type": "",\n  "universalAdId": {\n    "registry": "",\n    "value": ""\n  },\n  "version": 0\n}' \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/creatives
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "accountId": "",
  "active": false,
  "adParameters": "",
  "adTagKeys": [],
  "additionalSizes": [
    [
      "height": 0,
      "iab": false,
      "id": "",
      "kind": "",
      "width": 0
    ]
  ],
  "advertiserId": "",
  "allowScriptAccess": false,
  "archived": false,
  "artworkType": "",
  "authoringSource": "",
  "authoringTool": "",
  "autoAdvanceImages": false,
  "backgroundColor": "",
  "backupImageClickThroughUrl": [
    "computedClickThroughUrl": "",
    "customClickThroughUrl": "",
    "landingPageId": ""
  ],
  "backupImageFeatures": [],
  "backupImageReportingLabel": "",
  "backupImageTargetWindow": [
    "customHtml": "",
    "targetWindowOption": ""
  ],
  "clickTags": [
    [
      "clickThroughUrl": [],
      "eventName": "",
      "name": ""
    ]
  ],
  "commercialId": "",
  "companionCreatives": [],
  "compatibility": [],
  "convertFlashToHtml5": false,
  "counterCustomEvents": [
    [
      "advertiserCustomEventId": "",
      "advertiserCustomEventName": "",
      "advertiserCustomEventType": "",
      "artworkLabel": "",
      "artworkType": "",
      "exitClickThroughUrl": [],
      "id": "",
      "popupWindowProperties": [
        "dimension": [],
        "offset": [
          "left": 0,
          "top": 0
        ],
        "positionType": "",
        "showAddressBar": false,
        "showMenuBar": false,
        "showScrollBar": false,
        "showStatusBar": false,
        "showToolBar": false,
        "title": ""
      ],
      "targetType": "",
      "videoReportingId": ""
    ]
  ],
  "creativeAssetSelection": [
    "defaultAssetId": "",
    "rules": [
      [
        "assetId": "",
        "name": "",
        "targetingTemplateId": ""
      ]
    ]
  ],
  "creativeAssets": [
    [
      "actionScript3": false,
      "active": false,
      "additionalSizes": [[]],
      "alignment": "",
      "artworkType": "",
      "assetIdentifier": [
        "name": "",
        "type": ""
      ],
      "audioBitRate": 0,
      "audioSampleRate": 0,
      "backupImageExit": [],
      "bitRate": 0,
      "childAssetType": "",
      "collapsedSize": [],
      "companionCreativeIds": [],
      "customStartTimeValue": 0,
      "detectedFeatures": [],
      "displayType": "",
      "duration": 0,
      "durationType": "",
      "expandedDimension": [],
      "fileSize": "",
      "flashVersion": 0,
      "frameRate": "",
      "hideFlashObjects": false,
      "hideSelectionBoxes": false,
      "horizontallyLocked": false,
      "id": "",
      "idDimensionValue": [
        "dimensionName": "",
        "etag": "",
        "id": "",
        "kind": "",
        "matchType": "",
        "value": ""
      ],
      "mediaDuration": "",
      "mimeType": "",
      "offset": [],
      "orientation": "",
      "originalBackup": false,
      "politeLoad": false,
      "position": [],
      "positionLeftUnit": "",
      "positionTopUnit": "",
      "progressiveServingUrl": "",
      "pushdown": false,
      "pushdownDuration": "",
      "role": "",
      "size": [],
      "sslCompliant": false,
      "startTimeType": "",
      "streamingServingUrl": "",
      "transparency": false,
      "verticallyLocked": false,
      "windowMode": "",
      "zIndex": 0,
      "zipFilename": "",
      "zipFilesize": ""
    ]
  ],
  "creativeFieldAssignments": [
    [
      "creativeFieldId": "",
      "creativeFieldValueId": ""
    ]
  ],
  "customKeyValues": [],
  "dynamicAssetSelection": false,
  "exitCustomEvents": [[]],
  "fsCommand": [
    "left": 0,
    "positionOption": "",
    "top": 0,
    "windowHeight": 0,
    "windowWidth": 0
  ],
  "htmlCode": "",
  "htmlCodeLocked": false,
  "id": "",
  "idDimensionValue": [],
  "kind": "",
  "lastModifiedInfo": ["time": ""],
  "latestTraffickedCreativeId": "",
  "mediaDescription": "",
  "mediaDuration": "",
  "name": "",
  "obaIcon": [
    "iconClickThroughUrl": "",
    "iconClickTrackingUrl": "",
    "iconViewTrackingUrl": "",
    "program": "",
    "resourceUrl": "",
    "size": [],
    "xPosition": "",
    "yPosition": ""
  ],
  "overrideCss": "",
  "progressOffset": [
    "offsetPercentage": 0,
    "offsetSeconds": 0
  ],
  "redirectUrl": "",
  "renderingId": "",
  "renderingIdDimensionValue": [],
  "requiredFlashPluginVersion": "",
  "requiredFlashVersion": 0,
  "size": [],
  "skipOffset": [],
  "skippable": false,
  "sslCompliant": false,
  "sslOverride": false,
  "studioAdvertiserId": "",
  "studioCreativeId": "",
  "studioTraffickedCreativeId": "",
  "subaccountId": "",
  "thirdPartyBackupImageImpressionsUrl": "",
  "thirdPartyRichMediaImpressionsUrl": "",
  "thirdPartyUrls": [
    [
      "thirdPartyUrlType": "",
      "url": ""
    ]
  ],
  "timerCustomEvents": [[]],
  "totalFileSize": "",
  "type": "",
  "universalAdId": [
    "registry": "",
    "value": ""
  ],
  "version": 0
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/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()
GET dfareporting.creatives.list
{{baseUrl}}/userprofiles/:profileId/creatives
QUERY PARAMS

profileId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/creatives");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/creatives")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/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}}/userprofiles/:profileId/creatives"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/creatives");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/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/userprofiles/:profileId/creatives HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/creatives")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/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}}/userprofiles/:profileId/creatives")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/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}}/userprofiles/:profileId/creatives');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/creatives'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/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}}/userprofiles/:profileId/creatives',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/creatives")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/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}}/userprofiles/:profileId/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}}/userprofiles/:profileId/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}}/userprofiles/:profileId/creatives'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/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}}/userprofiles/:profileId/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}}/userprofiles/:profileId/creatives" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/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}}/userprofiles/:profileId/creatives');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/creatives');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/creatives');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/creatives' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/creatives' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/creatives")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/creatives"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/creatives"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/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/userprofiles/:profileId/creatives') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/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}}/userprofiles/:profileId/creatives
http GET {{baseUrl}}/userprofiles/:profileId/creatives
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/creatives
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/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 dfareporting.creatives.patch
{{baseUrl}}/userprofiles/:profileId/creatives
QUERY PARAMS

id
profileId
BODY json

{
  "accountId": "",
  "active": false,
  "adParameters": "",
  "adTagKeys": [],
  "additionalSizes": [
    {
      "height": 0,
      "iab": false,
      "id": "",
      "kind": "",
      "width": 0
    }
  ],
  "advertiserId": "",
  "allowScriptAccess": false,
  "archived": false,
  "artworkType": "",
  "authoringSource": "",
  "authoringTool": "",
  "autoAdvanceImages": false,
  "backgroundColor": "",
  "backupImageClickThroughUrl": {
    "computedClickThroughUrl": "",
    "customClickThroughUrl": "",
    "landingPageId": ""
  },
  "backupImageFeatures": [],
  "backupImageReportingLabel": "",
  "backupImageTargetWindow": {
    "customHtml": "",
    "targetWindowOption": ""
  },
  "clickTags": [
    {
      "clickThroughUrl": {},
      "eventName": "",
      "name": ""
    }
  ],
  "commercialId": "",
  "companionCreatives": [],
  "compatibility": [],
  "convertFlashToHtml5": false,
  "counterCustomEvents": [
    {
      "advertiserCustomEventId": "",
      "advertiserCustomEventName": "",
      "advertiserCustomEventType": "",
      "artworkLabel": "",
      "artworkType": "",
      "exitClickThroughUrl": {},
      "id": "",
      "popupWindowProperties": {
        "dimension": {},
        "offset": {
          "left": 0,
          "top": 0
        },
        "positionType": "",
        "showAddressBar": false,
        "showMenuBar": false,
        "showScrollBar": false,
        "showStatusBar": false,
        "showToolBar": false,
        "title": ""
      },
      "targetType": "",
      "videoReportingId": ""
    }
  ],
  "creativeAssetSelection": {
    "defaultAssetId": "",
    "rules": [
      {
        "assetId": "",
        "name": "",
        "targetingTemplateId": ""
      }
    ]
  },
  "creativeAssets": [
    {
      "actionScript3": false,
      "active": false,
      "additionalSizes": [
        {}
      ],
      "alignment": "",
      "artworkType": "",
      "assetIdentifier": {
        "name": "",
        "type": ""
      },
      "audioBitRate": 0,
      "audioSampleRate": 0,
      "backupImageExit": {},
      "bitRate": 0,
      "childAssetType": "",
      "collapsedSize": {},
      "companionCreativeIds": [],
      "customStartTimeValue": 0,
      "detectedFeatures": [],
      "displayType": "",
      "duration": 0,
      "durationType": "",
      "expandedDimension": {},
      "fileSize": "",
      "flashVersion": 0,
      "frameRate": "",
      "hideFlashObjects": false,
      "hideSelectionBoxes": false,
      "horizontallyLocked": false,
      "id": "",
      "idDimensionValue": {
        "dimensionName": "",
        "etag": "",
        "id": "",
        "kind": "",
        "matchType": "",
        "value": ""
      },
      "mediaDuration": "",
      "mimeType": "",
      "offset": {},
      "orientation": "",
      "originalBackup": false,
      "politeLoad": false,
      "position": {},
      "positionLeftUnit": "",
      "positionTopUnit": "",
      "progressiveServingUrl": "",
      "pushdown": false,
      "pushdownDuration": "",
      "role": "",
      "size": {},
      "sslCompliant": false,
      "startTimeType": "",
      "streamingServingUrl": "",
      "transparency": false,
      "verticallyLocked": false,
      "windowMode": "",
      "zIndex": 0,
      "zipFilename": "",
      "zipFilesize": ""
    }
  ],
  "creativeFieldAssignments": [
    {
      "creativeFieldId": "",
      "creativeFieldValueId": ""
    }
  ],
  "customKeyValues": [],
  "dynamicAssetSelection": false,
  "exitCustomEvents": [
    {}
  ],
  "fsCommand": {
    "left": 0,
    "positionOption": "",
    "top": 0,
    "windowHeight": 0,
    "windowWidth": 0
  },
  "htmlCode": "",
  "htmlCodeLocked": false,
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "lastModifiedInfo": {
    "time": ""
  },
  "latestTraffickedCreativeId": "",
  "mediaDescription": "",
  "mediaDuration": "",
  "name": "",
  "obaIcon": {
    "iconClickThroughUrl": "",
    "iconClickTrackingUrl": "",
    "iconViewTrackingUrl": "",
    "program": "",
    "resourceUrl": "",
    "size": {},
    "xPosition": "",
    "yPosition": ""
  },
  "overrideCss": "",
  "progressOffset": {
    "offsetPercentage": 0,
    "offsetSeconds": 0
  },
  "redirectUrl": "",
  "renderingId": "",
  "renderingIdDimensionValue": {},
  "requiredFlashPluginVersion": "",
  "requiredFlashVersion": 0,
  "size": {},
  "skipOffset": {},
  "skippable": false,
  "sslCompliant": false,
  "sslOverride": false,
  "studioAdvertiserId": "",
  "studioCreativeId": "",
  "studioTraffickedCreativeId": "",
  "subaccountId": "",
  "thirdPartyBackupImageImpressionsUrl": "",
  "thirdPartyRichMediaImpressionsUrl": "",
  "thirdPartyUrls": [
    {
      "thirdPartyUrlType": "",
      "url": ""
    }
  ],
  "timerCustomEvents": [
    {}
  ],
  "totalFileSize": "",
  "type": "",
  "universalAdId": {
    "registry": "",
    "value": ""
  },
  "version": 0
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/creatives?id=");

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  \"accountId\": \"\",\n  \"active\": false,\n  \"adParameters\": \"\",\n  \"adTagKeys\": [],\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"allowScriptAccess\": false,\n  \"archived\": false,\n  \"artworkType\": \"\",\n  \"authoringSource\": \"\",\n  \"authoringTool\": \"\",\n  \"autoAdvanceImages\": false,\n  \"backgroundColor\": \"\",\n  \"backupImageClickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"landingPageId\": \"\"\n  },\n  \"backupImageFeatures\": [],\n  \"backupImageReportingLabel\": \"\",\n  \"backupImageTargetWindow\": {\n    \"customHtml\": \"\",\n    \"targetWindowOption\": \"\"\n  },\n  \"clickTags\": [\n    {\n      \"clickThroughUrl\": {},\n      \"eventName\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"commercialId\": \"\",\n  \"companionCreatives\": [],\n  \"compatibility\": [],\n  \"convertFlashToHtml5\": false,\n  \"counterCustomEvents\": [\n    {\n      \"advertiserCustomEventId\": \"\",\n      \"advertiserCustomEventName\": \"\",\n      \"advertiserCustomEventType\": \"\",\n      \"artworkLabel\": \"\",\n      \"artworkType\": \"\",\n      \"exitClickThroughUrl\": {},\n      \"id\": \"\",\n      \"popupWindowProperties\": {\n        \"dimension\": {},\n        \"offset\": {\n          \"left\": 0,\n          \"top\": 0\n        },\n        \"positionType\": \"\",\n        \"showAddressBar\": false,\n        \"showMenuBar\": false,\n        \"showScrollBar\": false,\n        \"showStatusBar\": false,\n        \"showToolBar\": false,\n        \"title\": \"\"\n      },\n      \"targetType\": \"\",\n      \"videoReportingId\": \"\"\n    }\n  ],\n  \"creativeAssetSelection\": {\n    \"defaultAssetId\": \"\",\n    \"rules\": [\n      {\n        \"assetId\": \"\",\n        \"name\": \"\",\n        \"targetingTemplateId\": \"\"\n      }\n    ]\n  },\n  \"creativeAssets\": [\n    {\n      \"actionScript3\": false,\n      \"active\": false,\n      \"additionalSizes\": [\n        {}\n      ],\n      \"alignment\": \"\",\n      \"artworkType\": \"\",\n      \"assetIdentifier\": {\n        \"name\": \"\",\n        \"type\": \"\"\n      },\n      \"audioBitRate\": 0,\n      \"audioSampleRate\": 0,\n      \"backupImageExit\": {},\n      \"bitRate\": 0,\n      \"childAssetType\": \"\",\n      \"collapsedSize\": {},\n      \"companionCreativeIds\": [],\n      \"customStartTimeValue\": 0,\n      \"detectedFeatures\": [],\n      \"displayType\": \"\",\n      \"duration\": 0,\n      \"durationType\": \"\",\n      \"expandedDimension\": {},\n      \"fileSize\": \"\",\n      \"flashVersion\": 0,\n      \"frameRate\": \"\",\n      \"hideFlashObjects\": false,\n      \"hideSelectionBoxes\": false,\n      \"horizontallyLocked\": false,\n      \"id\": \"\",\n      \"idDimensionValue\": {\n        \"dimensionName\": \"\",\n        \"etag\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"matchType\": \"\",\n        \"value\": \"\"\n      },\n      \"mediaDuration\": \"\",\n      \"mimeType\": \"\",\n      \"offset\": {},\n      \"orientation\": \"\",\n      \"originalBackup\": false,\n      \"politeLoad\": false,\n      \"position\": {},\n      \"positionLeftUnit\": \"\",\n      \"positionTopUnit\": \"\",\n      \"progressiveServingUrl\": \"\",\n      \"pushdown\": false,\n      \"pushdownDuration\": \"\",\n      \"role\": \"\",\n      \"size\": {},\n      \"sslCompliant\": false,\n      \"startTimeType\": \"\",\n      \"streamingServingUrl\": \"\",\n      \"transparency\": false,\n      \"verticallyLocked\": false,\n      \"windowMode\": \"\",\n      \"zIndex\": 0,\n      \"zipFilename\": \"\",\n      \"zipFilesize\": \"\"\n    }\n  ],\n  \"creativeFieldAssignments\": [\n    {\n      \"creativeFieldId\": \"\",\n      \"creativeFieldValueId\": \"\"\n    }\n  ],\n  \"customKeyValues\": [],\n  \"dynamicAssetSelection\": false,\n  \"exitCustomEvents\": [\n    {}\n  ],\n  \"fsCommand\": {\n    \"left\": 0,\n    \"positionOption\": \"\",\n    \"top\": 0,\n    \"windowHeight\": 0,\n    \"windowWidth\": 0\n  },\n  \"htmlCode\": \"\",\n  \"htmlCodeLocked\": false,\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {\n    \"time\": \"\"\n  },\n  \"latestTraffickedCreativeId\": \"\",\n  \"mediaDescription\": \"\",\n  \"mediaDuration\": \"\",\n  \"name\": \"\",\n  \"obaIcon\": {\n    \"iconClickThroughUrl\": \"\",\n    \"iconClickTrackingUrl\": \"\",\n    \"iconViewTrackingUrl\": \"\",\n    \"program\": \"\",\n    \"resourceUrl\": \"\",\n    \"size\": {},\n    \"xPosition\": \"\",\n    \"yPosition\": \"\"\n  },\n  \"overrideCss\": \"\",\n  \"progressOffset\": {\n    \"offsetPercentage\": 0,\n    \"offsetSeconds\": 0\n  },\n  \"redirectUrl\": \"\",\n  \"renderingId\": \"\",\n  \"renderingIdDimensionValue\": {},\n  \"requiredFlashPluginVersion\": \"\",\n  \"requiredFlashVersion\": 0,\n  \"size\": {},\n  \"skipOffset\": {},\n  \"skippable\": false,\n  \"sslCompliant\": false,\n  \"sslOverride\": false,\n  \"studioAdvertiserId\": \"\",\n  \"studioCreativeId\": \"\",\n  \"studioTraffickedCreativeId\": \"\",\n  \"subaccountId\": \"\",\n  \"thirdPartyBackupImageImpressionsUrl\": \"\",\n  \"thirdPartyRichMediaImpressionsUrl\": \"\",\n  \"thirdPartyUrls\": [\n    {\n      \"thirdPartyUrlType\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"timerCustomEvents\": [\n    {}\n  ],\n  \"totalFileSize\": \"\",\n  \"type\": \"\",\n  \"universalAdId\": {\n    \"registry\": \"\",\n    \"value\": \"\"\n  },\n  \"version\": 0\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/patch "{{baseUrl}}/userprofiles/:profileId/creatives" {:query-params {:id ""}
                                                                               :content-type :json
                                                                               :form-params {:accountId ""
                                                                                             :active false
                                                                                             :adParameters ""
                                                                                             :adTagKeys []
                                                                                             :additionalSizes [{:height 0
                                                                                                                :iab false
                                                                                                                :id ""
                                                                                                                :kind ""
                                                                                                                :width 0}]
                                                                                             :advertiserId ""
                                                                                             :allowScriptAccess false
                                                                                             :archived false
                                                                                             :artworkType ""
                                                                                             :authoringSource ""
                                                                                             :authoringTool ""
                                                                                             :autoAdvanceImages false
                                                                                             :backgroundColor ""
                                                                                             :backupImageClickThroughUrl {:computedClickThroughUrl ""
                                                                                                                          :customClickThroughUrl ""
                                                                                                                          :landingPageId ""}
                                                                                             :backupImageFeatures []
                                                                                             :backupImageReportingLabel ""
                                                                                             :backupImageTargetWindow {:customHtml ""
                                                                                                                       :targetWindowOption ""}
                                                                                             :clickTags [{:clickThroughUrl {}
                                                                                                          :eventName ""
                                                                                                          :name ""}]
                                                                                             :commercialId ""
                                                                                             :companionCreatives []
                                                                                             :compatibility []
                                                                                             :convertFlashToHtml5 false
                                                                                             :counterCustomEvents [{:advertiserCustomEventId ""
                                                                                                                    :advertiserCustomEventName ""
                                                                                                                    :advertiserCustomEventType ""
                                                                                                                    :artworkLabel ""
                                                                                                                    :artworkType ""
                                                                                                                    :exitClickThroughUrl {}
                                                                                                                    :id ""
                                                                                                                    :popupWindowProperties {:dimension {}
                                                                                                                                            :offset {:left 0
                                                                                                                                                     :top 0}
                                                                                                                                            :positionType ""
                                                                                                                                            :showAddressBar false
                                                                                                                                            :showMenuBar false
                                                                                                                                            :showScrollBar false
                                                                                                                                            :showStatusBar false
                                                                                                                                            :showToolBar false
                                                                                                                                            :title ""}
                                                                                                                    :targetType ""
                                                                                                                    :videoReportingId ""}]
                                                                                             :creativeAssetSelection {:defaultAssetId ""
                                                                                                                      :rules [{:assetId ""
                                                                                                                               :name ""
                                                                                                                               :targetingTemplateId ""}]}
                                                                                             :creativeAssets [{:actionScript3 false
                                                                                                               :active false
                                                                                                               :additionalSizes [{}]
                                                                                                               :alignment ""
                                                                                                               :artworkType ""
                                                                                                               :assetIdentifier {:name ""
                                                                                                                                 :type ""}
                                                                                                               :audioBitRate 0
                                                                                                               :audioSampleRate 0
                                                                                                               :backupImageExit {}
                                                                                                               :bitRate 0
                                                                                                               :childAssetType ""
                                                                                                               :collapsedSize {}
                                                                                                               :companionCreativeIds []
                                                                                                               :customStartTimeValue 0
                                                                                                               :detectedFeatures []
                                                                                                               :displayType ""
                                                                                                               :duration 0
                                                                                                               :durationType ""
                                                                                                               :expandedDimension {}
                                                                                                               :fileSize ""
                                                                                                               :flashVersion 0
                                                                                                               :frameRate ""
                                                                                                               :hideFlashObjects false
                                                                                                               :hideSelectionBoxes false
                                                                                                               :horizontallyLocked false
                                                                                                               :id ""
                                                                                                               :idDimensionValue {:dimensionName ""
                                                                                                                                  :etag ""
                                                                                                                                  :id ""
                                                                                                                                  :kind ""
                                                                                                                                  :matchType ""
                                                                                                                                  :value ""}
                                                                                                               :mediaDuration ""
                                                                                                               :mimeType ""
                                                                                                               :offset {}
                                                                                                               :orientation ""
                                                                                                               :originalBackup false
                                                                                                               :politeLoad false
                                                                                                               :position {}
                                                                                                               :positionLeftUnit ""
                                                                                                               :positionTopUnit ""
                                                                                                               :progressiveServingUrl ""
                                                                                                               :pushdown false
                                                                                                               :pushdownDuration ""
                                                                                                               :role ""
                                                                                                               :size {}
                                                                                                               :sslCompliant false
                                                                                                               :startTimeType ""
                                                                                                               :streamingServingUrl ""
                                                                                                               :transparency false
                                                                                                               :verticallyLocked false
                                                                                                               :windowMode ""
                                                                                                               :zIndex 0
                                                                                                               :zipFilename ""
                                                                                                               :zipFilesize ""}]
                                                                                             :creativeFieldAssignments [{:creativeFieldId ""
                                                                                                                         :creativeFieldValueId ""}]
                                                                                             :customKeyValues []
                                                                                             :dynamicAssetSelection false
                                                                                             :exitCustomEvents [{}]
                                                                                             :fsCommand {:left 0
                                                                                                         :positionOption ""
                                                                                                         :top 0
                                                                                                         :windowHeight 0
                                                                                                         :windowWidth 0}
                                                                                             :htmlCode ""
                                                                                             :htmlCodeLocked false
                                                                                             :id ""
                                                                                             :idDimensionValue {}
                                                                                             :kind ""
                                                                                             :lastModifiedInfo {:time ""}
                                                                                             :latestTraffickedCreativeId ""
                                                                                             :mediaDescription ""
                                                                                             :mediaDuration ""
                                                                                             :name ""
                                                                                             :obaIcon {:iconClickThroughUrl ""
                                                                                                       :iconClickTrackingUrl ""
                                                                                                       :iconViewTrackingUrl ""
                                                                                                       :program ""
                                                                                                       :resourceUrl ""
                                                                                                       :size {}
                                                                                                       :xPosition ""
                                                                                                       :yPosition ""}
                                                                                             :overrideCss ""
                                                                                             :progressOffset {:offsetPercentage 0
                                                                                                              :offsetSeconds 0}
                                                                                             :redirectUrl ""
                                                                                             :renderingId ""
                                                                                             :renderingIdDimensionValue {}
                                                                                             :requiredFlashPluginVersion ""
                                                                                             :requiredFlashVersion 0
                                                                                             :size {}
                                                                                             :skipOffset {}
                                                                                             :skippable false
                                                                                             :sslCompliant false
                                                                                             :sslOverride false
                                                                                             :studioAdvertiserId ""
                                                                                             :studioCreativeId ""
                                                                                             :studioTraffickedCreativeId ""
                                                                                             :subaccountId ""
                                                                                             :thirdPartyBackupImageImpressionsUrl ""
                                                                                             :thirdPartyRichMediaImpressionsUrl ""
                                                                                             :thirdPartyUrls [{:thirdPartyUrlType ""
                                                                                                               :url ""}]
                                                                                             :timerCustomEvents [{}]
                                                                                             :totalFileSize ""
                                                                                             :type ""
                                                                                             :universalAdId {:registry ""
                                                                                                             :value ""}
                                                                                             :version 0}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/creatives?id="
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"adParameters\": \"\",\n  \"adTagKeys\": [],\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"allowScriptAccess\": false,\n  \"archived\": false,\n  \"artworkType\": \"\",\n  \"authoringSource\": \"\",\n  \"authoringTool\": \"\",\n  \"autoAdvanceImages\": false,\n  \"backgroundColor\": \"\",\n  \"backupImageClickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"landingPageId\": \"\"\n  },\n  \"backupImageFeatures\": [],\n  \"backupImageReportingLabel\": \"\",\n  \"backupImageTargetWindow\": {\n    \"customHtml\": \"\",\n    \"targetWindowOption\": \"\"\n  },\n  \"clickTags\": [\n    {\n      \"clickThroughUrl\": {},\n      \"eventName\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"commercialId\": \"\",\n  \"companionCreatives\": [],\n  \"compatibility\": [],\n  \"convertFlashToHtml5\": false,\n  \"counterCustomEvents\": [\n    {\n      \"advertiserCustomEventId\": \"\",\n      \"advertiserCustomEventName\": \"\",\n      \"advertiserCustomEventType\": \"\",\n      \"artworkLabel\": \"\",\n      \"artworkType\": \"\",\n      \"exitClickThroughUrl\": {},\n      \"id\": \"\",\n      \"popupWindowProperties\": {\n        \"dimension\": {},\n        \"offset\": {\n          \"left\": 0,\n          \"top\": 0\n        },\n        \"positionType\": \"\",\n        \"showAddressBar\": false,\n        \"showMenuBar\": false,\n        \"showScrollBar\": false,\n        \"showStatusBar\": false,\n        \"showToolBar\": false,\n        \"title\": \"\"\n      },\n      \"targetType\": \"\",\n      \"videoReportingId\": \"\"\n    }\n  ],\n  \"creativeAssetSelection\": {\n    \"defaultAssetId\": \"\",\n    \"rules\": [\n      {\n        \"assetId\": \"\",\n        \"name\": \"\",\n        \"targetingTemplateId\": \"\"\n      }\n    ]\n  },\n  \"creativeAssets\": [\n    {\n      \"actionScript3\": false,\n      \"active\": false,\n      \"additionalSizes\": [\n        {}\n      ],\n      \"alignment\": \"\",\n      \"artworkType\": \"\",\n      \"assetIdentifier\": {\n        \"name\": \"\",\n        \"type\": \"\"\n      },\n      \"audioBitRate\": 0,\n      \"audioSampleRate\": 0,\n      \"backupImageExit\": {},\n      \"bitRate\": 0,\n      \"childAssetType\": \"\",\n      \"collapsedSize\": {},\n      \"companionCreativeIds\": [],\n      \"customStartTimeValue\": 0,\n      \"detectedFeatures\": [],\n      \"displayType\": \"\",\n      \"duration\": 0,\n      \"durationType\": \"\",\n      \"expandedDimension\": {},\n      \"fileSize\": \"\",\n      \"flashVersion\": 0,\n      \"frameRate\": \"\",\n      \"hideFlashObjects\": false,\n      \"hideSelectionBoxes\": false,\n      \"horizontallyLocked\": false,\n      \"id\": \"\",\n      \"idDimensionValue\": {\n        \"dimensionName\": \"\",\n        \"etag\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"matchType\": \"\",\n        \"value\": \"\"\n      },\n      \"mediaDuration\": \"\",\n      \"mimeType\": \"\",\n      \"offset\": {},\n      \"orientation\": \"\",\n      \"originalBackup\": false,\n      \"politeLoad\": false,\n      \"position\": {},\n      \"positionLeftUnit\": \"\",\n      \"positionTopUnit\": \"\",\n      \"progressiveServingUrl\": \"\",\n      \"pushdown\": false,\n      \"pushdownDuration\": \"\",\n      \"role\": \"\",\n      \"size\": {},\n      \"sslCompliant\": false,\n      \"startTimeType\": \"\",\n      \"streamingServingUrl\": \"\",\n      \"transparency\": false,\n      \"verticallyLocked\": false,\n      \"windowMode\": \"\",\n      \"zIndex\": 0,\n      \"zipFilename\": \"\",\n      \"zipFilesize\": \"\"\n    }\n  ],\n  \"creativeFieldAssignments\": [\n    {\n      \"creativeFieldId\": \"\",\n      \"creativeFieldValueId\": \"\"\n    }\n  ],\n  \"customKeyValues\": [],\n  \"dynamicAssetSelection\": false,\n  \"exitCustomEvents\": [\n    {}\n  ],\n  \"fsCommand\": {\n    \"left\": 0,\n    \"positionOption\": \"\",\n    \"top\": 0,\n    \"windowHeight\": 0,\n    \"windowWidth\": 0\n  },\n  \"htmlCode\": \"\",\n  \"htmlCodeLocked\": false,\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {\n    \"time\": \"\"\n  },\n  \"latestTraffickedCreativeId\": \"\",\n  \"mediaDescription\": \"\",\n  \"mediaDuration\": \"\",\n  \"name\": \"\",\n  \"obaIcon\": {\n    \"iconClickThroughUrl\": \"\",\n    \"iconClickTrackingUrl\": \"\",\n    \"iconViewTrackingUrl\": \"\",\n    \"program\": \"\",\n    \"resourceUrl\": \"\",\n    \"size\": {},\n    \"xPosition\": \"\",\n    \"yPosition\": \"\"\n  },\n  \"overrideCss\": \"\",\n  \"progressOffset\": {\n    \"offsetPercentage\": 0,\n    \"offsetSeconds\": 0\n  },\n  \"redirectUrl\": \"\",\n  \"renderingId\": \"\",\n  \"renderingIdDimensionValue\": {},\n  \"requiredFlashPluginVersion\": \"\",\n  \"requiredFlashVersion\": 0,\n  \"size\": {},\n  \"skipOffset\": {},\n  \"skippable\": false,\n  \"sslCompliant\": false,\n  \"sslOverride\": false,\n  \"studioAdvertiserId\": \"\",\n  \"studioCreativeId\": \"\",\n  \"studioTraffickedCreativeId\": \"\",\n  \"subaccountId\": \"\",\n  \"thirdPartyBackupImageImpressionsUrl\": \"\",\n  \"thirdPartyRichMediaImpressionsUrl\": \"\",\n  \"thirdPartyUrls\": [\n    {\n      \"thirdPartyUrlType\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"timerCustomEvents\": [\n    {}\n  ],\n  \"totalFileSize\": \"\",\n  \"type\": \"\",\n  \"universalAdId\": {\n    \"registry\": \"\",\n    \"value\": \"\"\n  },\n  \"version\": 0\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}}/userprofiles/:profileId/creatives?id="),
    Content = new StringContent("{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"adParameters\": \"\",\n  \"adTagKeys\": [],\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"allowScriptAccess\": false,\n  \"archived\": false,\n  \"artworkType\": \"\",\n  \"authoringSource\": \"\",\n  \"authoringTool\": \"\",\n  \"autoAdvanceImages\": false,\n  \"backgroundColor\": \"\",\n  \"backupImageClickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"landingPageId\": \"\"\n  },\n  \"backupImageFeatures\": [],\n  \"backupImageReportingLabel\": \"\",\n  \"backupImageTargetWindow\": {\n    \"customHtml\": \"\",\n    \"targetWindowOption\": \"\"\n  },\n  \"clickTags\": [\n    {\n      \"clickThroughUrl\": {},\n      \"eventName\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"commercialId\": \"\",\n  \"companionCreatives\": [],\n  \"compatibility\": [],\n  \"convertFlashToHtml5\": false,\n  \"counterCustomEvents\": [\n    {\n      \"advertiserCustomEventId\": \"\",\n      \"advertiserCustomEventName\": \"\",\n      \"advertiserCustomEventType\": \"\",\n      \"artworkLabel\": \"\",\n      \"artworkType\": \"\",\n      \"exitClickThroughUrl\": {},\n      \"id\": \"\",\n      \"popupWindowProperties\": {\n        \"dimension\": {},\n        \"offset\": {\n          \"left\": 0,\n          \"top\": 0\n        },\n        \"positionType\": \"\",\n        \"showAddressBar\": false,\n        \"showMenuBar\": false,\n        \"showScrollBar\": false,\n        \"showStatusBar\": false,\n        \"showToolBar\": false,\n        \"title\": \"\"\n      },\n      \"targetType\": \"\",\n      \"videoReportingId\": \"\"\n    }\n  ],\n  \"creativeAssetSelection\": {\n    \"defaultAssetId\": \"\",\n    \"rules\": [\n      {\n        \"assetId\": \"\",\n        \"name\": \"\",\n        \"targetingTemplateId\": \"\"\n      }\n    ]\n  },\n  \"creativeAssets\": [\n    {\n      \"actionScript3\": false,\n      \"active\": false,\n      \"additionalSizes\": [\n        {}\n      ],\n      \"alignment\": \"\",\n      \"artworkType\": \"\",\n      \"assetIdentifier\": {\n        \"name\": \"\",\n        \"type\": \"\"\n      },\n      \"audioBitRate\": 0,\n      \"audioSampleRate\": 0,\n      \"backupImageExit\": {},\n      \"bitRate\": 0,\n      \"childAssetType\": \"\",\n      \"collapsedSize\": {},\n      \"companionCreativeIds\": [],\n      \"customStartTimeValue\": 0,\n      \"detectedFeatures\": [],\n      \"displayType\": \"\",\n      \"duration\": 0,\n      \"durationType\": \"\",\n      \"expandedDimension\": {},\n      \"fileSize\": \"\",\n      \"flashVersion\": 0,\n      \"frameRate\": \"\",\n      \"hideFlashObjects\": false,\n      \"hideSelectionBoxes\": false,\n      \"horizontallyLocked\": false,\n      \"id\": \"\",\n      \"idDimensionValue\": {\n        \"dimensionName\": \"\",\n        \"etag\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"matchType\": \"\",\n        \"value\": \"\"\n      },\n      \"mediaDuration\": \"\",\n      \"mimeType\": \"\",\n      \"offset\": {},\n      \"orientation\": \"\",\n      \"originalBackup\": false,\n      \"politeLoad\": false,\n      \"position\": {},\n      \"positionLeftUnit\": \"\",\n      \"positionTopUnit\": \"\",\n      \"progressiveServingUrl\": \"\",\n      \"pushdown\": false,\n      \"pushdownDuration\": \"\",\n      \"role\": \"\",\n      \"size\": {},\n      \"sslCompliant\": false,\n      \"startTimeType\": \"\",\n      \"streamingServingUrl\": \"\",\n      \"transparency\": false,\n      \"verticallyLocked\": false,\n      \"windowMode\": \"\",\n      \"zIndex\": 0,\n      \"zipFilename\": \"\",\n      \"zipFilesize\": \"\"\n    }\n  ],\n  \"creativeFieldAssignments\": [\n    {\n      \"creativeFieldId\": \"\",\n      \"creativeFieldValueId\": \"\"\n    }\n  ],\n  \"customKeyValues\": [],\n  \"dynamicAssetSelection\": false,\n  \"exitCustomEvents\": [\n    {}\n  ],\n  \"fsCommand\": {\n    \"left\": 0,\n    \"positionOption\": \"\",\n    \"top\": 0,\n    \"windowHeight\": 0,\n    \"windowWidth\": 0\n  },\n  \"htmlCode\": \"\",\n  \"htmlCodeLocked\": false,\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {\n    \"time\": \"\"\n  },\n  \"latestTraffickedCreativeId\": \"\",\n  \"mediaDescription\": \"\",\n  \"mediaDuration\": \"\",\n  \"name\": \"\",\n  \"obaIcon\": {\n    \"iconClickThroughUrl\": \"\",\n    \"iconClickTrackingUrl\": \"\",\n    \"iconViewTrackingUrl\": \"\",\n    \"program\": \"\",\n    \"resourceUrl\": \"\",\n    \"size\": {},\n    \"xPosition\": \"\",\n    \"yPosition\": \"\"\n  },\n  \"overrideCss\": \"\",\n  \"progressOffset\": {\n    \"offsetPercentage\": 0,\n    \"offsetSeconds\": 0\n  },\n  \"redirectUrl\": \"\",\n  \"renderingId\": \"\",\n  \"renderingIdDimensionValue\": {},\n  \"requiredFlashPluginVersion\": \"\",\n  \"requiredFlashVersion\": 0,\n  \"size\": {},\n  \"skipOffset\": {},\n  \"skippable\": false,\n  \"sslCompliant\": false,\n  \"sslOverride\": false,\n  \"studioAdvertiserId\": \"\",\n  \"studioCreativeId\": \"\",\n  \"studioTraffickedCreativeId\": \"\",\n  \"subaccountId\": \"\",\n  \"thirdPartyBackupImageImpressionsUrl\": \"\",\n  \"thirdPartyRichMediaImpressionsUrl\": \"\",\n  \"thirdPartyUrls\": [\n    {\n      \"thirdPartyUrlType\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"timerCustomEvents\": [\n    {}\n  ],\n  \"totalFileSize\": \"\",\n  \"type\": \"\",\n  \"universalAdId\": {\n    \"registry\": \"\",\n    \"value\": \"\"\n  },\n  \"version\": 0\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}}/userprofiles/:profileId/creatives?id=");
var request = new RestRequest("", Method.Patch);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"adParameters\": \"\",\n  \"adTagKeys\": [],\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"allowScriptAccess\": false,\n  \"archived\": false,\n  \"artworkType\": \"\",\n  \"authoringSource\": \"\",\n  \"authoringTool\": \"\",\n  \"autoAdvanceImages\": false,\n  \"backgroundColor\": \"\",\n  \"backupImageClickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"landingPageId\": \"\"\n  },\n  \"backupImageFeatures\": [],\n  \"backupImageReportingLabel\": \"\",\n  \"backupImageTargetWindow\": {\n    \"customHtml\": \"\",\n    \"targetWindowOption\": \"\"\n  },\n  \"clickTags\": [\n    {\n      \"clickThroughUrl\": {},\n      \"eventName\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"commercialId\": \"\",\n  \"companionCreatives\": [],\n  \"compatibility\": [],\n  \"convertFlashToHtml5\": false,\n  \"counterCustomEvents\": [\n    {\n      \"advertiserCustomEventId\": \"\",\n      \"advertiserCustomEventName\": \"\",\n      \"advertiserCustomEventType\": \"\",\n      \"artworkLabel\": \"\",\n      \"artworkType\": \"\",\n      \"exitClickThroughUrl\": {},\n      \"id\": \"\",\n      \"popupWindowProperties\": {\n        \"dimension\": {},\n        \"offset\": {\n          \"left\": 0,\n          \"top\": 0\n        },\n        \"positionType\": \"\",\n        \"showAddressBar\": false,\n        \"showMenuBar\": false,\n        \"showScrollBar\": false,\n        \"showStatusBar\": false,\n        \"showToolBar\": false,\n        \"title\": \"\"\n      },\n      \"targetType\": \"\",\n      \"videoReportingId\": \"\"\n    }\n  ],\n  \"creativeAssetSelection\": {\n    \"defaultAssetId\": \"\",\n    \"rules\": [\n      {\n        \"assetId\": \"\",\n        \"name\": \"\",\n        \"targetingTemplateId\": \"\"\n      }\n    ]\n  },\n  \"creativeAssets\": [\n    {\n      \"actionScript3\": false,\n      \"active\": false,\n      \"additionalSizes\": [\n        {}\n      ],\n      \"alignment\": \"\",\n      \"artworkType\": \"\",\n      \"assetIdentifier\": {\n        \"name\": \"\",\n        \"type\": \"\"\n      },\n      \"audioBitRate\": 0,\n      \"audioSampleRate\": 0,\n      \"backupImageExit\": {},\n      \"bitRate\": 0,\n      \"childAssetType\": \"\",\n      \"collapsedSize\": {},\n      \"companionCreativeIds\": [],\n      \"customStartTimeValue\": 0,\n      \"detectedFeatures\": [],\n      \"displayType\": \"\",\n      \"duration\": 0,\n      \"durationType\": \"\",\n      \"expandedDimension\": {},\n      \"fileSize\": \"\",\n      \"flashVersion\": 0,\n      \"frameRate\": \"\",\n      \"hideFlashObjects\": false,\n      \"hideSelectionBoxes\": false,\n      \"horizontallyLocked\": false,\n      \"id\": \"\",\n      \"idDimensionValue\": {\n        \"dimensionName\": \"\",\n        \"etag\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"matchType\": \"\",\n        \"value\": \"\"\n      },\n      \"mediaDuration\": \"\",\n      \"mimeType\": \"\",\n      \"offset\": {},\n      \"orientation\": \"\",\n      \"originalBackup\": false,\n      \"politeLoad\": false,\n      \"position\": {},\n      \"positionLeftUnit\": \"\",\n      \"positionTopUnit\": \"\",\n      \"progressiveServingUrl\": \"\",\n      \"pushdown\": false,\n      \"pushdownDuration\": \"\",\n      \"role\": \"\",\n      \"size\": {},\n      \"sslCompliant\": false,\n      \"startTimeType\": \"\",\n      \"streamingServingUrl\": \"\",\n      \"transparency\": false,\n      \"verticallyLocked\": false,\n      \"windowMode\": \"\",\n      \"zIndex\": 0,\n      \"zipFilename\": \"\",\n      \"zipFilesize\": \"\"\n    }\n  ],\n  \"creativeFieldAssignments\": [\n    {\n      \"creativeFieldId\": \"\",\n      \"creativeFieldValueId\": \"\"\n    }\n  ],\n  \"customKeyValues\": [],\n  \"dynamicAssetSelection\": false,\n  \"exitCustomEvents\": [\n    {}\n  ],\n  \"fsCommand\": {\n    \"left\": 0,\n    \"positionOption\": \"\",\n    \"top\": 0,\n    \"windowHeight\": 0,\n    \"windowWidth\": 0\n  },\n  \"htmlCode\": \"\",\n  \"htmlCodeLocked\": false,\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {\n    \"time\": \"\"\n  },\n  \"latestTraffickedCreativeId\": \"\",\n  \"mediaDescription\": \"\",\n  \"mediaDuration\": \"\",\n  \"name\": \"\",\n  \"obaIcon\": {\n    \"iconClickThroughUrl\": \"\",\n    \"iconClickTrackingUrl\": \"\",\n    \"iconViewTrackingUrl\": \"\",\n    \"program\": \"\",\n    \"resourceUrl\": \"\",\n    \"size\": {},\n    \"xPosition\": \"\",\n    \"yPosition\": \"\"\n  },\n  \"overrideCss\": \"\",\n  \"progressOffset\": {\n    \"offsetPercentage\": 0,\n    \"offsetSeconds\": 0\n  },\n  \"redirectUrl\": \"\",\n  \"renderingId\": \"\",\n  \"renderingIdDimensionValue\": {},\n  \"requiredFlashPluginVersion\": \"\",\n  \"requiredFlashVersion\": 0,\n  \"size\": {},\n  \"skipOffset\": {},\n  \"skippable\": false,\n  \"sslCompliant\": false,\n  \"sslOverride\": false,\n  \"studioAdvertiserId\": \"\",\n  \"studioCreativeId\": \"\",\n  \"studioTraffickedCreativeId\": \"\",\n  \"subaccountId\": \"\",\n  \"thirdPartyBackupImageImpressionsUrl\": \"\",\n  \"thirdPartyRichMediaImpressionsUrl\": \"\",\n  \"thirdPartyUrls\": [\n    {\n      \"thirdPartyUrlType\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"timerCustomEvents\": [\n    {}\n  ],\n  \"totalFileSize\": \"\",\n  \"type\": \"\",\n  \"universalAdId\": {\n    \"registry\": \"\",\n    \"value\": \"\"\n  },\n  \"version\": 0\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/creatives?id="

	payload := strings.NewReader("{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"adParameters\": \"\",\n  \"adTagKeys\": [],\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"allowScriptAccess\": false,\n  \"archived\": false,\n  \"artworkType\": \"\",\n  \"authoringSource\": \"\",\n  \"authoringTool\": \"\",\n  \"autoAdvanceImages\": false,\n  \"backgroundColor\": \"\",\n  \"backupImageClickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"landingPageId\": \"\"\n  },\n  \"backupImageFeatures\": [],\n  \"backupImageReportingLabel\": \"\",\n  \"backupImageTargetWindow\": {\n    \"customHtml\": \"\",\n    \"targetWindowOption\": \"\"\n  },\n  \"clickTags\": [\n    {\n      \"clickThroughUrl\": {},\n      \"eventName\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"commercialId\": \"\",\n  \"companionCreatives\": [],\n  \"compatibility\": [],\n  \"convertFlashToHtml5\": false,\n  \"counterCustomEvents\": [\n    {\n      \"advertiserCustomEventId\": \"\",\n      \"advertiserCustomEventName\": \"\",\n      \"advertiserCustomEventType\": \"\",\n      \"artworkLabel\": \"\",\n      \"artworkType\": \"\",\n      \"exitClickThroughUrl\": {},\n      \"id\": \"\",\n      \"popupWindowProperties\": {\n        \"dimension\": {},\n        \"offset\": {\n          \"left\": 0,\n          \"top\": 0\n        },\n        \"positionType\": \"\",\n        \"showAddressBar\": false,\n        \"showMenuBar\": false,\n        \"showScrollBar\": false,\n        \"showStatusBar\": false,\n        \"showToolBar\": false,\n        \"title\": \"\"\n      },\n      \"targetType\": \"\",\n      \"videoReportingId\": \"\"\n    }\n  ],\n  \"creativeAssetSelection\": {\n    \"defaultAssetId\": \"\",\n    \"rules\": [\n      {\n        \"assetId\": \"\",\n        \"name\": \"\",\n        \"targetingTemplateId\": \"\"\n      }\n    ]\n  },\n  \"creativeAssets\": [\n    {\n      \"actionScript3\": false,\n      \"active\": false,\n      \"additionalSizes\": [\n        {}\n      ],\n      \"alignment\": \"\",\n      \"artworkType\": \"\",\n      \"assetIdentifier\": {\n        \"name\": \"\",\n        \"type\": \"\"\n      },\n      \"audioBitRate\": 0,\n      \"audioSampleRate\": 0,\n      \"backupImageExit\": {},\n      \"bitRate\": 0,\n      \"childAssetType\": \"\",\n      \"collapsedSize\": {},\n      \"companionCreativeIds\": [],\n      \"customStartTimeValue\": 0,\n      \"detectedFeatures\": [],\n      \"displayType\": \"\",\n      \"duration\": 0,\n      \"durationType\": \"\",\n      \"expandedDimension\": {},\n      \"fileSize\": \"\",\n      \"flashVersion\": 0,\n      \"frameRate\": \"\",\n      \"hideFlashObjects\": false,\n      \"hideSelectionBoxes\": false,\n      \"horizontallyLocked\": false,\n      \"id\": \"\",\n      \"idDimensionValue\": {\n        \"dimensionName\": \"\",\n        \"etag\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"matchType\": \"\",\n        \"value\": \"\"\n      },\n      \"mediaDuration\": \"\",\n      \"mimeType\": \"\",\n      \"offset\": {},\n      \"orientation\": \"\",\n      \"originalBackup\": false,\n      \"politeLoad\": false,\n      \"position\": {},\n      \"positionLeftUnit\": \"\",\n      \"positionTopUnit\": \"\",\n      \"progressiveServingUrl\": \"\",\n      \"pushdown\": false,\n      \"pushdownDuration\": \"\",\n      \"role\": \"\",\n      \"size\": {},\n      \"sslCompliant\": false,\n      \"startTimeType\": \"\",\n      \"streamingServingUrl\": \"\",\n      \"transparency\": false,\n      \"verticallyLocked\": false,\n      \"windowMode\": \"\",\n      \"zIndex\": 0,\n      \"zipFilename\": \"\",\n      \"zipFilesize\": \"\"\n    }\n  ],\n  \"creativeFieldAssignments\": [\n    {\n      \"creativeFieldId\": \"\",\n      \"creativeFieldValueId\": \"\"\n    }\n  ],\n  \"customKeyValues\": [],\n  \"dynamicAssetSelection\": false,\n  \"exitCustomEvents\": [\n    {}\n  ],\n  \"fsCommand\": {\n    \"left\": 0,\n    \"positionOption\": \"\",\n    \"top\": 0,\n    \"windowHeight\": 0,\n    \"windowWidth\": 0\n  },\n  \"htmlCode\": \"\",\n  \"htmlCodeLocked\": false,\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {\n    \"time\": \"\"\n  },\n  \"latestTraffickedCreativeId\": \"\",\n  \"mediaDescription\": \"\",\n  \"mediaDuration\": \"\",\n  \"name\": \"\",\n  \"obaIcon\": {\n    \"iconClickThroughUrl\": \"\",\n    \"iconClickTrackingUrl\": \"\",\n    \"iconViewTrackingUrl\": \"\",\n    \"program\": \"\",\n    \"resourceUrl\": \"\",\n    \"size\": {},\n    \"xPosition\": \"\",\n    \"yPosition\": \"\"\n  },\n  \"overrideCss\": \"\",\n  \"progressOffset\": {\n    \"offsetPercentage\": 0,\n    \"offsetSeconds\": 0\n  },\n  \"redirectUrl\": \"\",\n  \"renderingId\": \"\",\n  \"renderingIdDimensionValue\": {},\n  \"requiredFlashPluginVersion\": \"\",\n  \"requiredFlashVersion\": 0,\n  \"size\": {},\n  \"skipOffset\": {},\n  \"skippable\": false,\n  \"sslCompliant\": false,\n  \"sslOverride\": false,\n  \"studioAdvertiserId\": \"\",\n  \"studioCreativeId\": \"\",\n  \"studioTraffickedCreativeId\": \"\",\n  \"subaccountId\": \"\",\n  \"thirdPartyBackupImageImpressionsUrl\": \"\",\n  \"thirdPartyRichMediaImpressionsUrl\": \"\",\n  \"thirdPartyUrls\": [\n    {\n      \"thirdPartyUrlType\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"timerCustomEvents\": [\n    {}\n  ],\n  \"totalFileSize\": \"\",\n  \"type\": \"\",\n  \"universalAdId\": {\n    \"registry\": \"\",\n    \"value\": \"\"\n  },\n  \"version\": 0\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/userprofiles/:profileId/creatives?id= HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 4870

{
  "accountId": "",
  "active": false,
  "adParameters": "",
  "adTagKeys": [],
  "additionalSizes": [
    {
      "height": 0,
      "iab": false,
      "id": "",
      "kind": "",
      "width": 0
    }
  ],
  "advertiserId": "",
  "allowScriptAccess": false,
  "archived": false,
  "artworkType": "",
  "authoringSource": "",
  "authoringTool": "",
  "autoAdvanceImages": false,
  "backgroundColor": "",
  "backupImageClickThroughUrl": {
    "computedClickThroughUrl": "",
    "customClickThroughUrl": "",
    "landingPageId": ""
  },
  "backupImageFeatures": [],
  "backupImageReportingLabel": "",
  "backupImageTargetWindow": {
    "customHtml": "",
    "targetWindowOption": ""
  },
  "clickTags": [
    {
      "clickThroughUrl": {},
      "eventName": "",
      "name": ""
    }
  ],
  "commercialId": "",
  "companionCreatives": [],
  "compatibility": [],
  "convertFlashToHtml5": false,
  "counterCustomEvents": [
    {
      "advertiserCustomEventId": "",
      "advertiserCustomEventName": "",
      "advertiserCustomEventType": "",
      "artworkLabel": "",
      "artworkType": "",
      "exitClickThroughUrl": {},
      "id": "",
      "popupWindowProperties": {
        "dimension": {},
        "offset": {
          "left": 0,
          "top": 0
        },
        "positionType": "",
        "showAddressBar": false,
        "showMenuBar": false,
        "showScrollBar": false,
        "showStatusBar": false,
        "showToolBar": false,
        "title": ""
      },
      "targetType": "",
      "videoReportingId": ""
    }
  ],
  "creativeAssetSelection": {
    "defaultAssetId": "",
    "rules": [
      {
        "assetId": "",
        "name": "",
        "targetingTemplateId": ""
      }
    ]
  },
  "creativeAssets": [
    {
      "actionScript3": false,
      "active": false,
      "additionalSizes": [
        {}
      ],
      "alignment": "",
      "artworkType": "",
      "assetIdentifier": {
        "name": "",
        "type": ""
      },
      "audioBitRate": 0,
      "audioSampleRate": 0,
      "backupImageExit": {},
      "bitRate": 0,
      "childAssetType": "",
      "collapsedSize": {},
      "companionCreativeIds": [],
      "customStartTimeValue": 0,
      "detectedFeatures": [],
      "displayType": "",
      "duration": 0,
      "durationType": "",
      "expandedDimension": {},
      "fileSize": "",
      "flashVersion": 0,
      "frameRate": "",
      "hideFlashObjects": false,
      "hideSelectionBoxes": false,
      "horizontallyLocked": false,
      "id": "",
      "idDimensionValue": {
        "dimensionName": "",
        "etag": "",
        "id": "",
        "kind": "",
        "matchType": "",
        "value": ""
      },
      "mediaDuration": "",
      "mimeType": "",
      "offset": {},
      "orientation": "",
      "originalBackup": false,
      "politeLoad": false,
      "position": {},
      "positionLeftUnit": "",
      "positionTopUnit": "",
      "progressiveServingUrl": "",
      "pushdown": false,
      "pushdownDuration": "",
      "role": "",
      "size": {},
      "sslCompliant": false,
      "startTimeType": "",
      "streamingServingUrl": "",
      "transparency": false,
      "verticallyLocked": false,
      "windowMode": "",
      "zIndex": 0,
      "zipFilename": "",
      "zipFilesize": ""
    }
  ],
  "creativeFieldAssignments": [
    {
      "creativeFieldId": "",
      "creativeFieldValueId": ""
    }
  ],
  "customKeyValues": [],
  "dynamicAssetSelection": false,
  "exitCustomEvents": [
    {}
  ],
  "fsCommand": {
    "left": 0,
    "positionOption": "",
    "top": 0,
    "windowHeight": 0,
    "windowWidth": 0
  },
  "htmlCode": "",
  "htmlCodeLocked": false,
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "lastModifiedInfo": {
    "time": ""
  },
  "latestTraffickedCreativeId": "",
  "mediaDescription": "",
  "mediaDuration": "",
  "name": "",
  "obaIcon": {
    "iconClickThroughUrl": "",
    "iconClickTrackingUrl": "",
    "iconViewTrackingUrl": "",
    "program": "",
    "resourceUrl": "",
    "size": {},
    "xPosition": "",
    "yPosition": ""
  },
  "overrideCss": "",
  "progressOffset": {
    "offsetPercentage": 0,
    "offsetSeconds": 0
  },
  "redirectUrl": "",
  "renderingId": "",
  "renderingIdDimensionValue": {},
  "requiredFlashPluginVersion": "",
  "requiredFlashVersion": 0,
  "size": {},
  "skipOffset": {},
  "skippable": false,
  "sslCompliant": false,
  "sslOverride": false,
  "studioAdvertiserId": "",
  "studioCreativeId": "",
  "studioTraffickedCreativeId": "",
  "subaccountId": "",
  "thirdPartyBackupImageImpressionsUrl": "",
  "thirdPartyRichMediaImpressionsUrl": "",
  "thirdPartyUrls": [
    {
      "thirdPartyUrlType": "",
      "url": ""
    }
  ],
  "timerCustomEvents": [
    {}
  ],
  "totalFileSize": "",
  "type": "",
  "universalAdId": {
    "registry": "",
    "value": ""
  },
  "version": 0
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/userprofiles/:profileId/creatives?id=")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"adParameters\": \"\",\n  \"adTagKeys\": [],\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"allowScriptAccess\": false,\n  \"archived\": false,\n  \"artworkType\": \"\",\n  \"authoringSource\": \"\",\n  \"authoringTool\": \"\",\n  \"autoAdvanceImages\": false,\n  \"backgroundColor\": \"\",\n  \"backupImageClickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"landingPageId\": \"\"\n  },\n  \"backupImageFeatures\": [],\n  \"backupImageReportingLabel\": \"\",\n  \"backupImageTargetWindow\": {\n    \"customHtml\": \"\",\n    \"targetWindowOption\": \"\"\n  },\n  \"clickTags\": [\n    {\n      \"clickThroughUrl\": {},\n      \"eventName\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"commercialId\": \"\",\n  \"companionCreatives\": [],\n  \"compatibility\": [],\n  \"convertFlashToHtml5\": false,\n  \"counterCustomEvents\": [\n    {\n      \"advertiserCustomEventId\": \"\",\n      \"advertiserCustomEventName\": \"\",\n      \"advertiserCustomEventType\": \"\",\n      \"artworkLabel\": \"\",\n      \"artworkType\": \"\",\n      \"exitClickThroughUrl\": {},\n      \"id\": \"\",\n      \"popupWindowProperties\": {\n        \"dimension\": {},\n        \"offset\": {\n          \"left\": 0,\n          \"top\": 0\n        },\n        \"positionType\": \"\",\n        \"showAddressBar\": false,\n        \"showMenuBar\": false,\n        \"showScrollBar\": false,\n        \"showStatusBar\": false,\n        \"showToolBar\": false,\n        \"title\": \"\"\n      },\n      \"targetType\": \"\",\n      \"videoReportingId\": \"\"\n    }\n  ],\n  \"creativeAssetSelection\": {\n    \"defaultAssetId\": \"\",\n    \"rules\": [\n      {\n        \"assetId\": \"\",\n        \"name\": \"\",\n        \"targetingTemplateId\": \"\"\n      }\n    ]\n  },\n  \"creativeAssets\": [\n    {\n      \"actionScript3\": false,\n      \"active\": false,\n      \"additionalSizes\": [\n        {}\n      ],\n      \"alignment\": \"\",\n      \"artworkType\": \"\",\n      \"assetIdentifier\": {\n        \"name\": \"\",\n        \"type\": \"\"\n      },\n      \"audioBitRate\": 0,\n      \"audioSampleRate\": 0,\n      \"backupImageExit\": {},\n      \"bitRate\": 0,\n      \"childAssetType\": \"\",\n      \"collapsedSize\": {},\n      \"companionCreativeIds\": [],\n      \"customStartTimeValue\": 0,\n      \"detectedFeatures\": [],\n      \"displayType\": \"\",\n      \"duration\": 0,\n      \"durationType\": \"\",\n      \"expandedDimension\": {},\n      \"fileSize\": \"\",\n      \"flashVersion\": 0,\n      \"frameRate\": \"\",\n      \"hideFlashObjects\": false,\n      \"hideSelectionBoxes\": false,\n      \"horizontallyLocked\": false,\n      \"id\": \"\",\n      \"idDimensionValue\": {\n        \"dimensionName\": \"\",\n        \"etag\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"matchType\": \"\",\n        \"value\": \"\"\n      },\n      \"mediaDuration\": \"\",\n      \"mimeType\": \"\",\n      \"offset\": {},\n      \"orientation\": \"\",\n      \"originalBackup\": false,\n      \"politeLoad\": false,\n      \"position\": {},\n      \"positionLeftUnit\": \"\",\n      \"positionTopUnit\": \"\",\n      \"progressiveServingUrl\": \"\",\n      \"pushdown\": false,\n      \"pushdownDuration\": \"\",\n      \"role\": \"\",\n      \"size\": {},\n      \"sslCompliant\": false,\n      \"startTimeType\": \"\",\n      \"streamingServingUrl\": \"\",\n      \"transparency\": false,\n      \"verticallyLocked\": false,\n      \"windowMode\": \"\",\n      \"zIndex\": 0,\n      \"zipFilename\": \"\",\n      \"zipFilesize\": \"\"\n    }\n  ],\n  \"creativeFieldAssignments\": [\n    {\n      \"creativeFieldId\": \"\",\n      \"creativeFieldValueId\": \"\"\n    }\n  ],\n  \"customKeyValues\": [],\n  \"dynamicAssetSelection\": false,\n  \"exitCustomEvents\": [\n    {}\n  ],\n  \"fsCommand\": {\n    \"left\": 0,\n    \"positionOption\": \"\",\n    \"top\": 0,\n    \"windowHeight\": 0,\n    \"windowWidth\": 0\n  },\n  \"htmlCode\": \"\",\n  \"htmlCodeLocked\": false,\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {\n    \"time\": \"\"\n  },\n  \"latestTraffickedCreativeId\": \"\",\n  \"mediaDescription\": \"\",\n  \"mediaDuration\": \"\",\n  \"name\": \"\",\n  \"obaIcon\": {\n    \"iconClickThroughUrl\": \"\",\n    \"iconClickTrackingUrl\": \"\",\n    \"iconViewTrackingUrl\": \"\",\n    \"program\": \"\",\n    \"resourceUrl\": \"\",\n    \"size\": {},\n    \"xPosition\": \"\",\n    \"yPosition\": \"\"\n  },\n  \"overrideCss\": \"\",\n  \"progressOffset\": {\n    \"offsetPercentage\": 0,\n    \"offsetSeconds\": 0\n  },\n  \"redirectUrl\": \"\",\n  \"renderingId\": \"\",\n  \"renderingIdDimensionValue\": {},\n  \"requiredFlashPluginVersion\": \"\",\n  \"requiredFlashVersion\": 0,\n  \"size\": {},\n  \"skipOffset\": {},\n  \"skippable\": false,\n  \"sslCompliant\": false,\n  \"sslOverride\": false,\n  \"studioAdvertiserId\": \"\",\n  \"studioCreativeId\": \"\",\n  \"studioTraffickedCreativeId\": \"\",\n  \"subaccountId\": \"\",\n  \"thirdPartyBackupImageImpressionsUrl\": \"\",\n  \"thirdPartyRichMediaImpressionsUrl\": \"\",\n  \"thirdPartyUrls\": [\n    {\n      \"thirdPartyUrlType\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"timerCustomEvents\": [\n    {}\n  ],\n  \"totalFileSize\": \"\",\n  \"type\": \"\",\n  \"universalAdId\": {\n    \"registry\": \"\",\n    \"value\": \"\"\n  },\n  \"version\": 0\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/creatives?id="))
    .header("content-type", "application/json")
    .method("PATCH", HttpRequest.BodyPublishers.ofString("{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"adParameters\": \"\",\n  \"adTagKeys\": [],\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"allowScriptAccess\": false,\n  \"archived\": false,\n  \"artworkType\": \"\",\n  \"authoringSource\": \"\",\n  \"authoringTool\": \"\",\n  \"autoAdvanceImages\": false,\n  \"backgroundColor\": \"\",\n  \"backupImageClickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"landingPageId\": \"\"\n  },\n  \"backupImageFeatures\": [],\n  \"backupImageReportingLabel\": \"\",\n  \"backupImageTargetWindow\": {\n    \"customHtml\": \"\",\n    \"targetWindowOption\": \"\"\n  },\n  \"clickTags\": [\n    {\n      \"clickThroughUrl\": {},\n      \"eventName\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"commercialId\": \"\",\n  \"companionCreatives\": [],\n  \"compatibility\": [],\n  \"convertFlashToHtml5\": false,\n  \"counterCustomEvents\": [\n    {\n      \"advertiserCustomEventId\": \"\",\n      \"advertiserCustomEventName\": \"\",\n      \"advertiserCustomEventType\": \"\",\n      \"artworkLabel\": \"\",\n      \"artworkType\": \"\",\n      \"exitClickThroughUrl\": {},\n      \"id\": \"\",\n      \"popupWindowProperties\": {\n        \"dimension\": {},\n        \"offset\": {\n          \"left\": 0,\n          \"top\": 0\n        },\n        \"positionType\": \"\",\n        \"showAddressBar\": false,\n        \"showMenuBar\": false,\n        \"showScrollBar\": false,\n        \"showStatusBar\": false,\n        \"showToolBar\": false,\n        \"title\": \"\"\n      },\n      \"targetType\": \"\",\n      \"videoReportingId\": \"\"\n    }\n  ],\n  \"creativeAssetSelection\": {\n    \"defaultAssetId\": \"\",\n    \"rules\": [\n      {\n        \"assetId\": \"\",\n        \"name\": \"\",\n        \"targetingTemplateId\": \"\"\n      }\n    ]\n  },\n  \"creativeAssets\": [\n    {\n      \"actionScript3\": false,\n      \"active\": false,\n      \"additionalSizes\": [\n        {}\n      ],\n      \"alignment\": \"\",\n      \"artworkType\": \"\",\n      \"assetIdentifier\": {\n        \"name\": \"\",\n        \"type\": \"\"\n      },\n      \"audioBitRate\": 0,\n      \"audioSampleRate\": 0,\n      \"backupImageExit\": {},\n      \"bitRate\": 0,\n      \"childAssetType\": \"\",\n      \"collapsedSize\": {},\n      \"companionCreativeIds\": [],\n      \"customStartTimeValue\": 0,\n      \"detectedFeatures\": [],\n      \"displayType\": \"\",\n      \"duration\": 0,\n      \"durationType\": \"\",\n      \"expandedDimension\": {},\n      \"fileSize\": \"\",\n      \"flashVersion\": 0,\n      \"frameRate\": \"\",\n      \"hideFlashObjects\": false,\n      \"hideSelectionBoxes\": false,\n      \"horizontallyLocked\": false,\n      \"id\": \"\",\n      \"idDimensionValue\": {\n        \"dimensionName\": \"\",\n        \"etag\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"matchType\": \"\",\n        \"value\": \"\"\n      },\n      \"mediaDuration\": \"\",\n      \"mimeType\": \"\",\n      \"offset\": {},\n      \"orientation\": \"\",\n      \"originalBackup\": false,\n      \"politeLoad\": false,\n      \"position\": {},\n      \"positionLeftUnit\": \"\",\n      \"positionTopUnit\": \"\",\n      \"progressiveServingUrl\": \"\",\n      \"pushdown\": false,\n      \"pushdownDuration\": \"\",\n      \"role\": \"\",\n      \"size\": {},\n      \"sslCompliant\": false,\n      \"startTimeType\": \"\",\n      \"streamingServingUrl\": \"\",\n      \"transparency\": false,\n      \"verticallyLocked\": false,\n      \"windowMode\": \"\",\n      \"zIndex\": 0,\n      \"zipFilename\": \"\",\n      \"zipFilesize\": \"\"\n    }\n  ],\n  \"creativeFieldAssignments\": [\n    {\n      \"creativeFieldId\": \"\",\n      \"creativeFieldValueId\": \"\"\n    }\n  ],\n  \"customKeyValues\": [],\n  \"dynamicAssetSelection\": false,\n  \"exitCustomEvents\": [\n    {}\n  ],\n  \"fsCommand\": {\n    \"left\": 0,\n    \"positionOption\": \"\",\n    \"top\": 0,\n    \"windowHeight\": 0,\n    \"windowWidth\": 0\n  },\n  \"htmlCode\": \"\",\n  \"htmlCodeLocked\": false,\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {\n    \"time\": \"\"\n  },\n  \"latestTraffickedCreativeId\": \"\",\n  \"mediaDescription\": \"\",\n  \"mediaDuration\": \"\",\n  \"name\": \"\",\n  \"obaIcon\": {\n    \"iconClickThroughUrl\": \"\",\n    \"iconClickTrackingUrl\": \"\",\n    \"iconViewTrackingUrl\": \"\",\n    \"program\": \"\",\n    \"resourceUrl\": \"\",\n    \"size\": {},\n    \"xPosition\": \"\",\n    \"yPosition\": \"\"\n  },\n  \"overrideCss\": \"\",\n  \"progressOffset\": {\n    \"offsetPercentage\": 0,\n    \"offsetSeconds\": 0\n  },\n  \"redirectUrl\": \"\",\n  \"renderingId\": \"\",\n  \"renderingIdDimensionValue\": {},\n  \"requiredFlashPluginVersion\": \"\",\n  \"requiredFlashVersion\": 0,\n  \"size\": {},\n  \"skipOffset\": {},\n  \"skippable\": false,\n  \"sslCompliant\": false,\n  \"sslOverride\": false,\n  \"studioAdvertiserId\": \"\",\n  \"studioCreativeId\": \"\",\n  \"studioTraffickedCreativeId\": \"\",\n  \"subaccountId\": \"\",\n  \"thirdPartyBackupImageImpressionsUrl\": \"\",\n  \"thirdPartyRichMediaImpressionsUrl\": \"\",\n  \"thirdPartyUrls\": [\n    {\n      \"thirdPartyUrlType\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"timerCustomEvents\": [\n    {}\n  ],\n  \"totalFileSize\": \"\",\n  \"type\": \"\",\n  \"universalAdId\": {\n    \"registry\": \"\",\n    \"value\": \"\"\n  },\n  \"version\": 0\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  \"accountId\": \"\",\n  \"active\": false,\n  \"adParameters\": \"\",\n  \"adTagKeys\": [],\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"allowScriptAccess\": false,\n  \"archived\": false,\n  \"artworkType\": \"\",\n  \"authoringSource\": \"\",\n  \"authoringTool\": \"\",\n  \"autoAdvanceImages\": false,\n  \"backgroundColor\": \"\",\n  \"backupImageClickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"landingPageId\": \"\"\n  },\n  \"backupImageFeatures\": [],\n  \"backupImageReportingLabel\": \"\",\n  \"backupImageTargetWindow\": {\n    \"customHtml\": \"\",\n    \"targetWindowOption\": \"\"\n  },\n  \"clickTags\": [\n    {\n      \"clickThroughUrl\": {},\n      \"eventName\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"commercialId\": \"\",\n  \"companionCreatives\": [],\n  \"compatibility\": [],\n  \"convertFlashToHtml5\": false,\n  \"counterCustomEvents\": [\n    {\n      \"advertiserCustomEventId\": \"\",\n      \"advertiserCustomEventName\": \"\",\n      \"advertiserCustomEventType\": \"\",\n      \"artworkLabel\": \"\",\n      \"artworkType\": \"\",\n      \"exitClickThroughUrl\": {},\n      \"id\": \"\",\n      \"popupWindowProperties\": {\n        \"dimension\": {},\n        \"offset\": {\n          \"left\": 0,\n          \"top\": 0\n        },\n        \"positionType\": \"\",\n        \"showAddressBar\": false,\n        \"showMenuBar\": false,\n        \"showScrollBar\": false,\n        \"showStatusBar\": false,\n        \"showToolBar\": false,\n        \"title\": \"\"\n      },\n      \"targetType\": \"\",\n      \"videoReportingId\": \"\"\n    }\n  ],\n  \"creativeAssetSelection\": {\n    \"defaultAssetId\": \"\",\n    \"rules\": [\n      {\n        \"assetId\": \"\",\n        \"name\": \"\",\n        \"targetingTemplateId\": \"\"\n      }\n    ]\n  },\n  \"creativeAssets\": [\n    {\n      \"actionScript3\": false,\n      \"active\": false,\n      \"additionalSizes\": [\n        {}\n      ],\n      \"alignment\": \"\",\n      \"artworkType\": \"\",\n      \"assetIdentifier\": {\n        \"name\": \"\",\n        \"type\": \"\"\n      },\n      \"audioBitRate\": 0,\n      \"audioSampleRate\": 0,\n      \"backupImageExit\": {},\n      \"bitRate\": 0,\n      \"childAssetType\": \"\",\n      \"collapsedSize\": {},\n      \"companionCreativeIds\": [],\n      \"customStartTimeValue\": 0,\n      \"detectedFeatures\": [],\n      \"displayType\": \"\",\n      \"duration\": 0,\n      \"durationType\": \"\",\n      \"expandedDimension\": {},\n      \"fileSize\": \"\",\n      \"flashVersion\": 0,\n      \"frameRate\": \"\",\n      \"hideFlashObjects\": false,\n      \"hideSelectionBoxes\": false,\n      \"horizontallyLocked\": false,\n      \"id\": \"\",\n      \"idDimensionValue\": {\n        \"dimensionName\": \"\",\n        \"etag\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"matchType\": \"\",\n        \"value\": \"\"\n      },\n      \"mediaDuration\": \"\",\n      \"mimeType\": \"\",\n      \"offset\": {},\n      \"orientation\": \"\",\n      \"originalBackup\": false,\n      \"politeLoad\": false,\n      \"position\": {},\n      \"positionLeftUnit\": \"\",\n      \"positionTopUnit\": \"\",\n      \"progressiveServingUrl\": \"\",\n      \"pushdown\": false,\n      \"pushdownDuration\": \"\",\n      \"role\": \"\",\n      \"size\": {},\n      \"sslCompliant\": false,\n      \"startTimeType\": \"\",\n      \"streamingServingUrl\": \"\",\n      \"transparency\": false,\n      \"verticallyLocked\": false,\n      \"windowMode\": \"\",\n      \"zIndex\": 0,\n      \"zipFilename\": \"\",\n      \"zipFilesize\": \"\"\n    }\n  ],\n  \"creativeFieldAssignments\": [\n    {\n      \"creativeFieldId\": \"\",\n      \"creativeFieldValueId\": \"\"\n    }\n  ],\n  \"customKeyValues\": [],\n  \"dynamicAssetSelection\": false,\n  \"exitCustomEvents\": [\n    {}\n  ],\n  \"fsCommand\": {\n    \"left\": 0,\n    \"positionOption\": \"\",\n    \"top\": 0,\n    \"windowHeight\": 0,\n    \"windowWidth\": 0\n  },\n  \"htmlCode\": \"\",\n  \"htmlCodeLocked\": false,\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {\n    \"time\": \"\"\n  },\n  \"latestTraffickedCreativeId\": \"\",\n  \"mediaDescription\": \"\",\n  \"mediaDuration\": \"\",\n  \"name\": \"\",\n  \"obaIcon\": {\n    \"iconClickThroughUrl\": \"\",\n    \"iconClickTrackingUrl\": \"\",\n    \"iconViewTrackingUrl\": \"\",\n    \"program\": \"\",\n    \"resourceUrl\": \"\",\n    \"size\": {},\n    \"xPosition\": \"\",\n    \"yPosition\": \"\"\n  },\n  \"overrideCss\": \"\",\n  \"progressOffset\": {\n    \"offsetPercentage\": 0,\n    \"offsetSeconds\": 0\n  },\n  \"redirectUrl\": \"\",\n  \"renderingId\": \"\",\n  \"renderingIdDimensionValue\": {},\n  \"requiredFlashPluginVersion\": \"\",\n  \"requiredFlashVersion\": 0,\n  \"size\": {},\n  \"skipOffset\": {},\n  \"skippable\": false,\n  \"sslCompliant\": false,\n  \"sslOverride\": false,\n  \"studioAdvertiserId\": \"\",\n  \"studioCreativeId\": \"\",\n  \"studioTraffickedCreativeId\": \"\",\n  \"subaccountId\": \"\",\n  \"thirdPartyBackupImageImpressionsUrl\": \"\",\n  \"thirdPartyRichMediaImpressionsUrl\": \"\",\n  \"thirdPartyUrls\": [\n    {\n      \"thirdPartyUrlType\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"timerCustomEvents\": [\n    {}\n  ],\n  \"totalFileSize\": \"\",\n  \"type\": \"\",\n  \"universalAdId\": {\n    \"registry\": \"\",\n    \"value\": \"\"\n  },\n  \"version\": 0\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/creatives?id=")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/userprofiles/:profileId/creatives?id=")
  .header("content-type", "application/json")
  .body("{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"adParameters\": \"\",\n  \"adTagKeys\": [],\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"allowScriptAccess\": false,\n  \"archived\": false,\n  \"artworkType\": \"\",\n  \"authoringSource\": \"\",\n  \"authoringTool\": \"\",\n  \"autoAdvanceImages\": false,\n  \"backgroundColor\": \"\",\n  \"backupImageClickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"landingPageId\": \"\"\n  },\n  \"backupImageFeatures\": [],\n  \"backupImageReportingLabel\": \"\",\n  \"backupImageTargetWindow\": {\n    \"customHtml\": \"\",\n    \"targetWindowOption\": \"\"\n  },\n  \"clickTags\": [\n    {\n      \"clickThroughUrl\": {},\n      \"eventName\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"commercialId\": \"\",\n  \"companionCreatives\": [],\n  \"compatibility\": [],\n  \"convertFlashToHtml5\": false,\n  \"counterCustomEvents\": [\n    {\n      \"advertiserCustomEventId\": \"\",\n      \"advertiserCustomEventName\": \"\",\n      \"advertiserCustomEventType\": \"\",\n      \"artworkLabel\": \"\",\n      \"artworkType\": \"\",\n      \"exitClickThroughUrl\": {},\n      \"id\": \"\",\n      \"popupWindowProperties\": {\n        \"dimension\": {},\n        \"offset\": {\n          \"left\": 0,\n          \"top\": 0\n        },\n        \"positionType\": \"\",\n        \"showAddressBar\": false,\n        \"showMenuBar\": false,\n        \"showScrollBar\": false,\n        \"showStatusBar\": false,\n        \"showToolBar\": false,\n        \"title\": \"\"\n      },\n      \"targetType\": \"\",\n      \"videoReportingId\": \"\"\n    }\n  ],\n  \"creativeAssetSelection\": {\n    \"defaultAssetId\": \"\",\n    \"rules\": [\n      {\n        \"assetId\": \"\",\n        \"name\": \"\",\n        \"targetingTemplateId\": \"\"\n      }\n    ]\n  },\n  \"creativeAssets\": [\n    {\n      \"actionScript3\": false,\n      \"active\": false,\n      \"additionalSizes\": [\n        {}\n      ],\n      \"alignment\": \"\",\n      \"artworkType\": \"\",\n      \"assetIdentifier\": {\n        \"name\": \"\",\n        \"type\": \"\"\n      },\n      \"audioBitRate\": 0,\n      \"audioSampleRate\": 0,\n      \"backupImageExit\": {},\n      \"bitRate\": 0,\n      \"childAssetType\": \"\",\n      \"collapsedSize\": {},\n      \"companionCreativeIds\": [],\n      \"customStartTimeValue\": 0,\n      \"detectedFeatures\": [],\n      \"displayType\": \"\",\n      \"duration\": 0,\n      \"durationType\": \"\",\n      \"expandedDimension\": {},\n      \"fileSize\": \"\",\n      \"flashVersion\": 0,\n      \"frameRate\": \"\",\n      \"hideFlashObjects\": false,\n      \"hideSelectionBoxes\": false,\n      \"horizontallyLocked\": false,\n      \"id\": \"\",\n      \"idDimensionValue\": {\n        \"dimensionName\": \"\",\n        \"etag\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"matchType\": \"\",\n        \"value\": \"\"\n      },\n      \"mediaDuration\": \"\",\n      \"mimeType\": \"\",\n      \"offset\": {},\n      \"orientation\": \"\",\n      \"originalBackup\": false,\n      \"politeLoad\": false,\n      \"position\": {},\n      \"positionLeftUnit\": \"\",\n      \"positionTopUnit\": \"\",\n      \"progressiveServingUrl\": \"\",\n      \"pushdown\": false,\n      \"pushdownDuration\": \"\",\n      \"role\": \"\",\n      \"size\": {},\n      \"sslCompliant\": false,\n      \"startTimeType\": \"\",\n      \"streamingServingUrl\": \"\",\n      \"transparency\": false,\n      \"verticallyLocked\": false,\n      \"windowMode\": \"\",\n      \"zIndex\": 0,\n      \"zipFilename\": \"\",\n      \"zipFilesize\": \"\"\n    }\n  ],\n  \"creativeFieldAssignments\": [\n    {\n      \"creativeFieldId\": \"\",\n      \"creativeFieldValueId\": \"\"\n    }\n  ],\n  \"customKeyValues\": [],\n  \"dynamicAssetSelection\": false,\n  \"exitCustomEvents\": [\n    {}\n  ],\n  \"fsCommand\": {\n    \"left\": 0,\n    \"positionOption\": \"\",\n    \"top\": 0,\n    \"windowHeight\": 0,\n    \"windowWidth\": 0\n  },\n  \"htmlCode\": \"\",\n  \"htmlCodeLocked\": false,\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {\n    \"time\": \"\"\n  },\n  \"latestTraffickedCreativeId\": \"\",\n  \"mediaDescription\": \"\",\n  \"mediaDuration\": \"\",\n  \"name\": \"\",\n  \"obaIcon\": {\n    \"iconClickThroughUrl\": \"\",\n    \"iconClickTrackingUrl\": \"\",\n    \"iconViewTrackingUrl\": \"\",\n    \"program\": \"\",\n    \"resourceUrl\": \"\",\n    \"size\": {},\n    \"xPosition\": \"\",\n    \"yPosition\": \"\"\n  },\n  \"overrideCss\": \"\",\n  \"progressOffset\": {\n    \"offsetPercentage\": 0,\n    \"offsetSeconds\": 0\n  },\n  \"redirectUrl\": \"\",\n  \"renderingId\": \"\",\n  \"renderingIdDimensionValue\": {},\n  \"requiredFlashPluginVersion\": \"\",\n  \"requiredFlashVersion\": 0,\n  \"size\": {},\n  \"skipOffset\": {},\n  \"skippable\": false,\n  \"sslCompliant\": false,\n  \"sslOverride\": false,\n  \"studioAdvertiserId\": \"\",\n  \"studioCreativeId\": \"\",\n  \"studioTraffickedCreativeId\": \"\",\n  \"subaccountId\": \"\",\n  \"thirdPartyBackupImageImpressionsUrl\": \"\",\n  \"thirdPartyRichMediaImpressionsUrl\": \"\",\n  \"thirdPartyUrls\": [\n    {\n      \"thirdPartyUrlType\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"timerCustomEvents\": [\n    {}\n  ],\n  \"totalFileSize\": \"\",\n  \"type\": \"\",\n  \"universalAdId\": {\n    \"registry\": \"\",\n    \"value\": \"\"\n  },\n  \"version\": 0\n}")
  .asString();
const data = JSON.stringify({
  accountId: '',
  active: false,
  adParameters: '',
  adTagKeys: [],
  additionalSizes: [
    {
      height: 0,
      iab: false,
      id: '',
      kind: '',
      width: 0
    }
  ],
  advertiserId: '',
  allowScriptAccess: false,
  archived: false,
  artworkType: '',
  authoringSource: '',
  authoringTool: '',
  autoAdvanceImages: false,
  backgroundColor: '',
  backupImageClickThroughUrl: {
    computedClickThroughUrl: '',
    customClickThroughUrl: '',
    landingPageId: ''
  },
  backupImageFeatures: [],
  backupImageReportingLabel: '',
  backupImageTargetWindow: {
    customHtml: '',
    targetWindowOption: ''
  },
  clickTags: [
    {
      clickThroughUrl: {},
      eventName: '',
      name: ''
    }
  ],
  commercialId: '',
  companionCreatives: [],
  compatibility: [],
  convertFlashToHtml5: false,
  counterCustomEvents: [
    {
      advertiserCustomEventId: '',
      advertiserCustomEventName: '',
      advertiserCustomEventType: '',
      artworkLabel: '',
      artworkType: '',
      exitClickThroughUrl: {},
      id: '',
      popupWindowProperties: {
        dimension: {},
        offset: {
          left: 0,
          top: 0
        },
        positionType: '',
        showAddressBar: false,
        showMenuBar: false,
        showScrollBar: false,
        showStatusBar: false,
        showToolBar: false,
        title: ''
      },
      targetType: '',
      videoReportingId: ''
    }
  ],
  creativeAssetSelection: {
    defaultAssetId: '',
    rules: [
      {
        assetId: '',
        name: '',
        targetingTemplateId: ''
      }
    ]
  },
  creativeAssets: [
    {
      actionScript3: false,
      active: false,
      additionalSizes: [
        {}
      ],
      alignment: '',
      artworkType: '',
      assetIdentifier: {
        name: '',
        type: ''
      },
      audioBitRate: 0,
      audioSampleRate: 0,
      backupImageExit: {},
      bitRate: 0,
      childAssetType: '',
      collapsedSize: {},
      companionCreativeIds: [],
      customStartTimeValue: 0,
      detectedFeatures: [],
      displayType: '',
      duration: 0,
      durationType: '',
      expandedDimension: {},
      fileSize: '',
      flashVersion: 0,
      frameRate: '',
      hideFlashObjects: false,
      hideSelectionBoxes: false,
      horizontallyLocked: false,
      id: '',
      idDimensionValue: {
        dimensionName: '',
        etag: '',
        id: '',
        kind: '',
        matchType: '',
        value: ''
      },
      mediaDuration: '',
      mimeType: '',
      offset: {},
      orientation: '',
      originalBackup: false,
      politeLoad: false,
      position: {},
      positionLeftUnit: '',
      positionTopUnit: '',
      progressiveServingUrl: '',
      pushdown: false,
      pushdownDuration: '',
      role: '',
      size: {},
      sslCompliant: false,
      startTimeType: '',
      streamingServingUrl: '',
      transparency: false,
      verticallyLocked: false,
      windowMode: '',
      zIndex: 0,
      zipFilename: '',
      zipFilesize: ''
    }
  ],
  creativeFieldAssignments: [
    {
      creativeFieldId: '',
      creativeFieldValueId: ''
    }
  ],
  customKeyValues: [],
  dynamicAssetSelection: false,
  exitCustomEvents: [
    {}
  ],
  fsCommand: {
    left: 0,
    positionOption: '',
    top: 0,
    windowHeight: 0,
    windowWidth: 0
  },
  htmlCode: '',
  htmlCodeLocked: false,
  id: '',
  idDimensionValue: {},
  kind: '',
  lastModifiedInfo: {
    time: ''
  },
  latestTraffickedCreativeId: '',
  mediaDescription: '',
  mediaDuration: '',
  name: '',
  obaIcon: {
    iconClickThroughUrl: '',
    iconClickTrackingUrl: '',
    iconViewTrackingUrl: '',
    program: '',
    resourceUrl: '',
    size: {},
    xPosition: '',
    yPosition: ''
  },
  overrideCss: '',
  progressOffset: {
    offsetPercentage: 0,
    offsetSeconds: 0
  },
  redirectUrl: '',
  renderingId: '',
  renderingIdDimensionValue: {},
  requiredFlashPluginVersion: '',
  requiredFlashVersion: 0,
  size: {},
  skipOffset: {},
  skippable: false,
  sslCompliant: false,
  sslOverride: false,
  studioAdvertiserId: '',
  studioCreativeId: '',
  studioTraffickedCreativeId: '',
  subaccountId: '',
  thirdPartyBackupImageImpressionsUrl: '',
  thirdPartyRichMediaImpressionsUrl: '',
  thirdPartyUrls: [
    {
      thirdPartyUrlType: '',
      url: ''
    }
  ],
  timerCustomEvents: [
    {}
  ],
  totalFileSize: '',
  type: '',
  universalAdId: {
    registry: '',
    value: ''
  },
  version: 0
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PATCH', '{{baseUrl}}/userprofiles/:profileId/creatives?id=');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/userprofiles/:profileId/creatives',
  params: {id: ''},
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    active: false,
    adParameters: '',
    adTagKeys: [],
    additionalSizes: [{height: 0, iab: false, id: '', kind: '', width: 0}],
    advertiserId: '',
    allowScriptAccess: false,
    archived: false,
    artworkType: '',
    authoringSource: '',
    authoringTool: '',
    autoAdvanceImages: false,
    backgroundColor: '',
    backupImageClickThroughUrl: {computedClickThroughUrl: '', customClickThroughUrl: '', landingPageId: ''},
    backupImageFeatures: [],
    backupImageReportingLabel: '',
    backupImageTargetWindow: {customHtml: '', targetWindowOption: ''},
    clickTags: [{clickThroughUrl: {}, eventName: '', name: ''}],
    commercialId: '',
    companionCreatives: [],
    compatibility: [],
    convertFlashToHtml5: false,
    counterCustomEvents: [
      {
        advertiserCustomEventId: '',
        advertiserCustomEventName: '',
        advertiserCustomEventType: '',
        artworkLabel: '',
        artworkType: '',
        exitClickThroughUrl: {},
        id: '',
        popupWindowProperties: {
          dimension: {},
          offset: {left: 0, top: 0},
          positionType: '',
          showAddressBar: false,
          showMenuBar: false,
          showScrollBar: false,
          showStatusBar: false,
          showToolBar: false,
          title: ''
        },
        targetType: '',
        videoReportingId: ''
      }
    ],
    creativeAssetSelection: {defaultAssetId: '', rules: [{assetId: '', name: '', targetingTemplateId: ''}]},
    creativeAssets: [
      {
        actionScript3: false,
        active: false,
        additionalSizes: [{}],
        alignment: '',
        artworkType: '',
        assetIdentifier: {name: '', type: ''},
        audioBitRate: 0,
        audioSampleRate: 0,
        backupImageExit: {},
        bitRate: 0,
        childAssetType: '',
        collapsedSize: {},
        companionCreativeIds: [],
        customStartTimeValue: 0,
        detectedFeatures: [],
        displayType: '',
        duration: 0,
        durationType: '',
        expandedDimension: {},
        fileSize: '',
        flashVersion: 0,
        frameRate: '',
        hideFlashObjects: false,
        hideSelectionBoxes: false,
        horizontallyLocked: false,
        id: '',
        idDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
        mediaDuration: '',
        mimeType: '',
        offset: {},
        orientation: '',
        originalBackup: false,
        politeLoad: false,
        position: {},
        positionLeftUnit: '',
        positionTopUnit: '',
        progressiveServingUrl: '',
        pushdown: false,
        pushdownDuration: '',
        role: '',
        size: {},
        sslCompliant: false,
        startTimeType: '',
        streamingServingUrl: '',
        transparency: false,
        verticallyLocked: false,
        windowMode: '',
        zIndex: 0,
        zipFilename: '',
        zipFilesize: ''
      }
    ],
    creativeFieldAssignments: [{creativeFieldId: '', creativeFieldValueId: ''}],
    customKeyValues: [],
    dynamicAssetSelection: false,
    exitCustomEvents: [{}],
    fsCommand: {left: 0, positionOption: '', top: 0, windowHeight: 0, windowWidth: 0},
    htmlCode: '',
    htmlCodeLocked: false,
    id: '',
    idDimensionValue: {},
    kind: '',
    lastModifiedInfo: {time: ''},
    latestTraffickedCreativeId: '',
    mediaDescription: '',
    mediaDuration: '',
    name: '',
    obaIcon: {
      iconClickThroughUrl: '',
      iconClickTrackingUrl: '',
      iconViewTrackingUrl: '',
      program: '',
      resourceUrl: '',
      size: {},
      xPosition: '',
      yPosition: ''
    },
    overrideCss: '',
    progressOffset: {offsetPercentage: 0, offsetSeconds: 0},
    redirectUrl: '',
    renderingId: '',
    renderingIdDimensionValue: {},
    requiredFlashPluginVersion: '',
    requiredFlashVersion: 0,
    size: {},
    skipOffset: {},
    skippable: false,
    sslCompliant: false,
    sslOverride: false,
    studioAdvertiserId: '',
    studioCreativeId: '',
    studioTraffickedCreativeId: '',
    subaccountId: '',
    thirdPartyBackupImageImpressionsUrl: '',
    thirdPartyRichMediaImpressionsUrl: '',
    thirdPartyUrls: [{thirdPartyUrlType: '', url: ''}],
    timerCustomEvents: [{}],
    totalFileSize: '',
    type: '',
    universalAdId: {registry: '', value: ''},
    version: 0
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/creatives?id=';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","active":false,"adParameters":"","adTagKeys":[],"additionalSizes":[{"height":0,"iab":false,"id":"","kind":"","width":0}],"advertiserId":"","allowScriptAccess":false,"archived":false,"artworkType":"","authoringSource":"","authoringTool":"","autoAdvanceImages":false,"backgroundColor":"","backupImageClickThroughUrl":{"computedClickThroughUrl":"","customClickThroughUrl":"","landingPageId":""},"backupImageFeatures":[],"backupImageReportingLabel":"","backupImageTargetWindow":{"customHtml":"","targetWindowOption":""},"clickTags":[{"clickThroughUrl":{},"eventName":"","name":""}],"commercialId":"","companionCreatives":[],"compatibility":[],"convertFlashToHtml5":false,"counterCustomEvents":[{"advertiserCustomEventId":"","advertiserCustomEventName":"","advertiserCustomEventType":"","artworkLabel":"","artworkType":"","exitClickThroughUrl":{},"id":"","popupWindowProperties":{"dimension":{},"offset":{"left":0,"top":0},"positionType":"","showAddressBar":false,"showMenuBar":false,"showScrollBar":false,"showStatusBar":false,"showToolBar":false,"title":""},"targetType":"","videoReportingId":""}],"creativeAssetSelection":{"defaultAssetId":"","rules":[{"assetId":"","name":"","targetingTemplateId":""}]},"creativeAssets":[{"actionScript3":false,"active":false,"additionalSizes":[{}],"alignment":"","artworkType":"","assetIdentifier":{"name":"","type":""},"audioBitRate":0,"audioSampleRate":0,"backupImageExit":{},"bitRate":0,"childAssetType":"","collapsedSize":{},"companionCreativeIds":[],"customStartTimeValue":0,"detectedFeatures":[],"displayType":"","duration":0,"durationType":"","expandedDimension":{},"fileSize":"","flashVersion":0,"frameRate":"","hideFlashObjects":false,"hideSelectionBoxes":false,"horizontallyLocked":false,"id":"","idDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"mediaDuration":"","mimeType":"","offset":{},"orientation":"","originalBackup":false,"politeLoad":false,"position":{},"positionLeftUnit":"","positionTopUnit":"","progressiveServingUrl":"","pushdown":false,"pushdownDuration":"","role":"","size":{},"sslCompliant":false,"startTimeType":"","streamingServingUrl":"","transparency":false,"verticallyLocked":false,"windowMode":"","zIndex":0,"zipFilename":"","zipFilesize":""}],"creativeFieldAssignments":[{"creativeFieldId":"","creativeFieldValueId":""}],"customKeyValues":[],"dynamicAssetSelection":false,"exitCustomEvents":[{}],"fsCommand":{"left":0,"positionOption":"","top":0,"windowHeight":0,"windowWidth":0},"htmlCode":"","htmlCodeLocked":false,"id":"","idDimensionValue":{},"kind":"","lastModifiedInfo":{"time":""},"latestTraffickedCreativeId":"","mediaDescription":"","mediaDuration":"","name":"","obaIcon":{"iconClickThroughUrl":"","iconClickTrackingUrl":"","iconViewTrackingUrl":"","program":"","resourceUrl":"","size":{},"xPosition":"","yPosition":""},"overrideCss":"","progressOffset":{"offsetPercentage":0,"offsetSeconds":0},"redirectUrl":"","renderingId":"","renderingIdDimensionValue":{},"requiredFlashPluginVersion":"","requiredFlashVersion":0,"size":{},"skipOffset":{},"skippable":false,"sslCompliant":false,"sslOverride":false,"studioAdvertiserId":"","studioCreativeId":"","studioTraffickedCreativeId":"","subaccountId":"","thirdPartyBackupImageImpressionsUrl":"","thirdPartyRichMediaImpressionsUrl":"","thirdPartyUrls":[{"thirdPartyUrlType":"","url":""}],"timerCustomEvents":[{}],"totalFileSize":"","type":"","universalAdId":{"registry":"","value":""},"version":0}'
};

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}}/userprofiles/:profileId/creatives?id=',
  method: 'PATCH',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "accountId": "",\n  "active": false,\n  "adParameters": "",\n  "adTagKeys": [],\n  "additionalSizes": [\n    {\n      "height": 0,\n      "iab": false,\n      "id": "",\n      "kind": "",\n      "width": 0\n    }\n  ],\n  "advertiserId": "",\n  "allowScriptAccess": false,\n  "archived": false,\n  "artworkType": "",\n  "authoringSource": "",\n  "authoringTool": "",\n  "autoAdvanceImages": false,\n  "backgroundColor": "",\n  "backupImageClickThroughUrl": {\n    "computedClickThroughUrl": "",\n    "customClickThroughUrl": "",\n    "landingPageId": ""\n  },\n  "backupImageFeatures": [],\n  "backupImageReportingLabel": "",\n  "backupImageTargetWindow": {\n    "customHtml": "",\n    "targetWindowOption": ""\n  },\n  "clickTags": [\n    {\n      "clickThroughUrl": {},\n      "eventName": "",\n      "name": ""\n    }\n  ],\n  "commercialId": "",\n  "companionCreatives": [],\n  "compatibility": [],\n  "convertFlashToHtml5": false,\n  "counterCustomEvents": [\n    {\n      "advertiserCustomEventId": "",\n      "advertiserCustomEventName": "",\n      "advertiserCustomEventType": "",\n      "artworkLabel": "",\n      "artworkType": "",\n      "exitClickThroughUrl": {},\n      "id": "",\n      "popupWindowProperties": {\n        "dimension": {},\n        "offset": {\n          "left": 0,\n          "top": 0\n        },\n        "positionType": "",\n        "showAddressBar": false,\n        "showMenuBar": false,\n        "showScrollBar": false,\n        "showStatusBar": false,\n        "showToolBar": false,\n        "title": ""\n      },\n      "targetType": "",\n      "videoReportingId": ""\n    }\n  ],\n  "creativeAssetSelection": {\n    "defaultAssetId": "",\n    "rules": [\n      {\n        "assetId": "",\n        "name": "",\n        "targetingTemplateId": ""\n      }\n    ]\n  },\n  "creativeAssets": [\n    {\n      "actionScript3": false,\n      "active": false,\n      "additionalSizes": [\n        {}\n      ],\n      "alignment": "",\n      "artworkType": "",\n      "assetIdentifier": {\n        "name": "",\n        "type": ""\n      },\n      "audioBitRate": 0,\n      "audioSampleRate": 0,\n      "backupImageExit": {},\n      "bitRate": 0,\n      "childAssetType": "",\n      "collapsedSize": {},\n      "companionCreativeIds": [],\n      "customStartTimeValue": 0,\n      "detectedFeatures": [],\n      "displayType": "",\n      "duration": 0,\n      "durationType": "",\n      "expandedDimension": {},\n      "fileSize": "",\n      "flashVersion": 0,\n      "frameRate": "",\n      "hideFlashObjects": false,\n      "hideSelectionBoxes": false,\n      "horizontallyLocked": false,\n      "id": "",\n      "idDimensionValue": {\n        "dimensionName": "",\n        "etag": "",\n        "id": "",\n        "kind": "",\n        "matchType": "",\n        "value": ""\n      },\n      "mediaDuration": "",\n      "mimeType": "",\n      "offset": {},\n      "orientation": "",\n      "originalBackup": false,\n      "politeLoad": false,\n      "position": {},\n      "positionLeftUnit": "",\n      "positionTopUnit": "",\n      "progressiveServingUrl": "",\n      "pushdown": false,\n      "pushdownDuration": "",\n      "role": "",\n      "size": {},\n      "sslCompliant": false,\n      "startTimeType": "",\n      "streamingServingUrl": "",\n      "transparency": false,\n      "verticallyLocked": false,\n      "windowMode": "",\n      "zIndex": 0,\n      "zipFilename": "",\n      "zipFilesize": ""\n    }\n  ],\n  "creativeFieldAssignments": [\n    {\n      "creativeFieldId": "",\n      "creativeFieldValueId": ""\n    }\n  ],\n  "customKeyValues": [],\n  "dynamicAssetSelection": false,\n  "exitCustomEvents": [\n    {}\n  ],\n  "fsCommand": {\n    "left": 0,\n    "positionOption": "",\n    "top": 0,\n    "windowHeight": 0,\n    "windowWidth": 0\n  },\n  "htmlCode": "",\n  "htmlCodeLocked": false,\n  "id": "",\n  "idDimensionValue": {},\n  "kind": "",\n  "lastModifiedInfo": {\n    "time": ""\n  },\n  "latestTraffickedCreativeId": "",\n  "mediaDescription": "",\n  "mediaDuration": "",\n  "name": "",\n  "obaIcon": {\n    "iconClickThroughUrl": "",\n    "iconClickTrackingUrl": "",\n    "iconViewTrackingUrl": "",\n    "program": "",\n    "resourceUrl": "",\n    "size": {},\n    "xPosition": "",\n    "yPosition": ""\n  },\n  "overrideCss": "",\n  "progressOffset": {\n    "offsetPercentage": 0,\n    "offsetSeconds": 0\n  },\n  "redirectUrl": "",\n  "renderingId": "",\n  "renderingIdDimensionValue": {},\n  "requiredFlashPluginVersion": "",\n  "requiredFlashVersion": 0,\n  "size": {},\n  "skipOffset": {},\n  "skippable": false,\n  "sslCompliant": false,\n  "sslOverride": false,\n  "studioAdvertiserId": "",\n  "studioCreativeId": "",\n  "studioTraffickedCreativeId": "",\n  "subaccountId": "",\n  "thirdPartyBackupImageImpressionsUrl": "",\n  "thirdPartyRichMediaImpressionsUrl": "",\n  "thirdPartyUrls": [\n    {\n      "thirdPartyUrlType": "",\n      "url": ""\n    }\n  ],\n  "timerCustomEvents": [\n    {}\n  ],\n  "totalFileSize": "",\n  "type": "",\n  "universalAdId": {\n    "registry": "",\n    "value": ""\n  },\n  "version": 0\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"adParameters\": \"\",\n  \"adTagKeys\": [],\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"allowScriptAccess\": false,\n  \"archived\": false,\n  \"artworkType\": \"\",\n  \"authoringSource\": \"\",\n  \"authoringTool\": \"\",\n  \"autoAdvanceImages\": false,\n  \"backgroundColor\": \"\",\n  \"backupImageClickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"landingPageId\": \"\"\n  },\n  \"backupImageFeatures\": [],\n  \"backupImageReportingLabel\": \"\",\n  \"backupImageTargetWindow\": {\n    \"customHtml\": \"\",\n    \"targetWindowOption\": \"\"\n  },\n  \"clickTags\": [\n    {\n      \"clickThroughUrl\": {},\n      \"eventName\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"commercialId\": \"\",\n  \"companionCreatives\": [],\n  \"compatibility\": [],\n  \"convertFlashToHtml5\": false,\n  \"counterCustomEvents\": [\n    {\n      \"advertiserCustomEventId\": \"\",\n      \"advertiserCustomEventName\": \"\",\n      \"advertiserCustomEventType\": \"\",\n      \"artworkLabel\": \"\",\n      \"artworkType\": \"\",\n      \"exitClickThroughUrl\": {},\n      \"id\": \"\",\n      \"popupWindowProperties\": {\n        \"dimension\": {},\n        \"offset\": {\n          \"left\": 0,\n          \"top\": 0\n        },\n        \"positionType\": \"\",\n        \"showAddressBar\": false,\n        \"showMenuBar\": false,\n        \"showScrollBar\": false,\n        \"showStatusBar\": false,\n        \"showToolBar\": false,\n        \"title\": \"\"\n      },\n      \"targetType\": \"\",\n      \"videoReportingId\": \"\"\n    }\n  ],\n  \"creativeAssetSelection\": {\n    \"defaultAssetId\": \"\",\n    \"rules\": [\n      {\n        \"assetId\": \"\",\n        \"name\": \"\",\n        \"targetingTemplateId\": \"\"\n      }\n    ]\n  },\n  \"creativeAssets\": [\n    {\n      \"actionScript3\": false,\n      \"active\": false,\n      \"additionalSizes\": [\n        {}\n      ],\n      \"alignment\": \"\",\n      \"artworkType\": \"\",\n      \"assetIdentifier\": {\n        \"name\": \"\",\n        \"type\": \"\"\n      },\n      \"audioBitRate\": 0,\n      \"audioSampleRate\": 0,\n      \"backupImageExit\": {},\n      \"bitRate\": 0,\n      \"childAssetType\": \"\",\n      \"collapsedSize\": {},\n      \"companionCreativeIds\": [],\n      \"customStartTimeValue\": 0,\n      \"detectedFeatures\": [],\n      \"displayType\": \"\",\n      \"duration\": 0,\n      \"durationType\": \"\",\n      \"expandedDimension\": {},\n      \"fileSize\": \"\",\n      \"flashVersion\": 0,\n      \"frameRate\": \"\",\n      \"hideFlashObjects\": false,\n      \"hideSelectionBoxes\": false,\n      \"horizontallyLocked\": false,\n      \"id\": \"\",\n      \"idDimensionValue\": {\n        \"dimensionName\": \"\",\n        \"etag\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"matchType\": \"\",\n        \"value\": \"\"\n      },\n      \"mediaDuration\": \"\",\n      \"mimeType\": \"\",\n      \"offset\": {},\n      \"orientation\": \"\",\n      \"originalBackup\": false,\n      \"politeLoad\": false,\n      \"position\": {},\n      \"positionLeftUnit\": \"\",\n      \"positionTopUnit\": \"\",\n      \"progressiveServingUrl\": \"\",\n      \"pushdown\": false,\n      \"pushdownDuration\": \"\",\n      \"role\": \"\",\n      \"size\": {},\n      \"sslCompliant\": false,\n      \"startTimeType\": \"\",\n      \"streamingServingUrl\": \"\",\n      \"transparency\": false,\n      \"verticallyLocked\": false,\n      \"windowMode\": \"\",\n      \"zIndex\": 0,\n      \"zipFilename\": \"\",\n      \"zipFilesize\": \"\"\n    }\n  ],\n  \"creativeFieldAssignments\": [\n    {\n      \"creativeFieldId\": \"\",\n      \"creativeFieldValueId\": \"\"\n    }\n  ],\n  \"customKeyValues\": [],\n  \"dynamicAssetSelection\": false,\n  \"exitCustomEvents\": [\n    {}\n  ],\n  \"fsCommand\": {\n    \"left\": 0,\n    \"positionOption\": \"\",\n    \"top\": 0,\n    \"windowHeight\": 0,\n    \"windowWidth\": 0\n  },\n  \"htmlCode\": \"\",\n  \"htmlCodeLocked\": false,\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {\n    \"time\": \"\"\n  },\n  \"latestTraffickedCreativeId\": \"\",\n  \"mediaDescription\": \"\",\n  \"mediaDuration\": \"\",\n  \"name\": \"\",\n  \"obaIcon\": {\n    \"iconClickThroughUrl\": \"\",\n    \"iconClickTrackingUrl\": \"\",\n    \"iconViewTrackingUrl\": \"\",\n    \"program\": \"\",\n    \"resourceUrl\": \"\",\n    \"size\": {},\n    \"xPosition\": \"\",\n    \"yPosition\": \"\"\n  },\n  \"overrideCss\": \"\",\n  \"progressOffset\": {\n    \"offsetPercentage\": 0,\n    \"offsetSeconds\": 0\n  },\n  \"redirectUrl\": \"\",\n  \"renderingId\": \"\",\n  \"renderingIdDimensionValue\": {},\n  \"requiredFlashPluginVersion\": \"\",\n  \"requiredFlashVersion\": 0,\n  \"size\": {},\n  \"skipOffset\": {},\n  \"skippable\": false,\n  \"sslCompliant\": false,\n  \"sslOverride\": false,\n  \"studioAdvertiserId\": \"\",\n  \"studioCreativeId\": \"\",\n  \"studioTraffickedCreativeId\": \"\",\n  \"subaccountId\": \"\",\n  \"thirdPartyBackupImageImpressionsUrl\": \"\",\n  \"thirdPartyRichMediaImpressionsUrl\": \"\",\n  \"thirdPartyUrls\": [\n    {\n      \"thirdPartyUrlType\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"timerCustomEvents\": [\n    {}\n  ],\n  \"totalFileSize\": \"\",\n  \"type\": \"\",\n  \"universalAdId\": {\n    \"registry\": \"\",\n    \"value\": \"\"\n  },\n  \"version\": 0\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/creatives?id=")
  .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/userprofiles/:profileId/creatives?id=',
  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({
  accountId: '',
  active: false,
  adParameters: '',
  adTagKeys: [],
  additionalSizes: [{height: 0, iab: false, id: '', kind: '', width: 0}],
  advertiserId: '',
  allowScriptAccess: false,
  archived: false,
  artworkType: '',
  authoringSource: '',
  authoringTool: '',
  autoAdvanceImages: false,
  backgroundColor: '',
  backupImageClickThroughUrl: {computedClickThroughUrl: '', customClickThroughUrl: '', landingPageId: ''},
  backupImageFeatures: [],
  backupImageReportingLabel: '',
  backupImageTargetWindow: {customHtml: '', targetWindowOption: ''},
  clickTags: [{clickThroughUrl: {}, eventName: '', name: ''}],
  commercialId: '',
  companionCreatives: [],
  compatibility: [],
  convertFlashToHtml5: false,
  counterCustomEvents: [
    {
      advertiserCustomEventId: '',
      advertiserCustomEventName: '',
      advertiserCustomEventType: '',
      artworkLabel: '',
      artworkType: '',
      exitClickThroughUrl: {},
      id: '',
      popupWindowProperties: {
        dimension: {},
        offset: {left: 0, top: 0},
        positionType: '',
        showAddressBar: false,
        showMenuBar: false,
        showScrollBar: false,
        showStatusBar: false,
        showToolBar: false,
        title: ''
      },
      targetType: '',
      videoReportingId: ''
    }
  ],
  creativeAssetSelection: {defaultAssetId: '', rules: [{assetId: '', name: '', targetingTemplateId: ''}]},
  creativeAssets: [
    {
      actionScript3: false,
      active: false,
      additionalSizes: [{}],
      alignment: '',
      artworkType: '',
      assetIdentifier: {name: '', type: ''},
      audioBitRate: 0,
      audioSampleRate: 0,
      backupImageExit: {},
      bitRate: 0,
      childAssetType: '',
      collapsedSize: {},
      companionCreativeIds: [],
      customStartTimeValue: 0,
      detectedFeatures: [],
      displayType: '',
      duration: 0,
      durationType: '',
      expandedDimension: {},
      fileSize: '',
      flashVersion: 0,
      frameRate: '',
      hideFlashObjects: false,
      hideSelectionBoxes: false,
      horizontallyLocked: false,
      id: '',
      idDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
      mediaDuration: '',
      mimeType: '',
      offset: {},
      orientation: '',
      originalBackup: false,
      politeLoad: false,
      position: {},
      positionLeftUnit: '',
      positionTopUnit: '',
      progressiveServingUrl: '',
      pushdown: false,
      pushdownDuration: '',
      role: '',
      size: {},
      sslCompliant: false,
      startTimeType: '',
      streamingServingUrl: '',
      transparency: false,
      verticallyLocked: false,
      windowMode: '',
      zIndex: 0,
      zipFilename: '',
      zipFilesize: ''
    }
  ],
  creativeFieldAssignments: [{creativeFieldId: '', creativeFieldValueId: ''}],
  customKeyValues: [],
  dynamicAssetSelection: false,
  exitCustomEvents: [{}],
  fsCommand: {left: 0, positionOption: '', top: 0, windowHeight: 0, windowWidth: 0},
  htmlCode: '',
  htmlCodeLocked: false,
  id: '',
  idDimensionValue: {},
  kind: '',
  lastModifiedInfo: {time: ''},
  latestTraffickedCreativeId: '',
  mediaDescription: '',
  mediaDuration: '',
  name: '',
  obaIcon: {
    iconClickThroughUrl: '',
    iconClickTrackingUrl: '',
    iconViewTrackingUrl: '',
    program: '',
    resourceUrl: '',
    size: {},
    xPosition: '',
    yPosition: ''
  },
  overrideCss: '',
  progressOffset: {offsetPercentage: 0, offsetSeconds: 0},
  redirectUrl: '',
  renderingId: '',
  renderingIdDimensionValue: {},
  requiredFlashPluginVersion: '',
  requiredFlashVersion: 0,
  size: {},
  skipOffset: {},
  skippable: false,
  sslCompliant: false,
  sslOverride: false,
  studioAdvertiserId: '',
  studioCreativeId: '',
  studioTraffickedCreativeId: '',
  subaccountId: '',
  thirdPartyBackupImageImpressionsUrl: '',
  thirdPartyRichMediaImpressionsUrl: '',
  thirdPartyUrls: [{thirdPartyUrlType: '', url: ''}],
  timerCustomEvents: [{}],
  totalFileSize: '',
  type: '',
  universalAdId: {registry: '', value: ''},
  version: 0
}));
req.end();
const request = require('request');

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/userprofiles/:profileId/creatives',
  qs: {id: ''},
  headers: {'content-type': 'application/json'},
  body: {
    accountId: '',
    active: false,
    adParameters: '',
    adTagKeys: [],
    additionalSizes: [{height: 0, iab: false, id: '', kind: '', width: 0}],
    advertiserId: '',
    allowScriptAccess: false,
    archived: false,
    artworkType: '',
    authoringSource: '',
    authoringTool: '',
    autoAdvanceImages: false,
    backgroundColor: '',
    backupImageClickThroughUrl: {computedClickThroughUrl: '', customClickThroughUrl: '', landingPageId: ''},
    backupImageFeatures: [],
    backupImageReportingLabel: '',
    backupImageTargetWindow: {customHtml: '', targetWindowOption: ''},
    clickTags: [{clickThroughUrl: {}, eventName: '', name: ''}],
    commercialId: '',
    companionCreatives: [],
    compatibility: [],
    convertFlashToHtml5: false,
    counterCustomEvents: [
      {
        advertiserCustomEventId: '',
        advertiserCustomEventName: '',
        advertiserCustomEventType: '',
        artworkLabel: '',
        artworkType: '',
        exitClickThroughUrl: {},
        id: '',
        popupWindowProperties: {
          dimension: {},
          offset: {left: 0, top: 0},
          positionType: '',
          showAddressBar: false,
          showMenuBar: false,
          showScrollBar: false,
          showStatusBar: false,
          showToolBar: false,
          title: ''
        },
        targetType: '',
        videoReportingId: ''
      }
    ],
    creativeAssetSelection: {defaultAssetId: '', rules: [{assetId: '', name: '', targetingTemplateId: ''}]},
    creativeAssets: [
      {
        actionScript3: false,
        active: false,
        additionalSizes: [{}],
        alignment: '',
        artworkType: '',
        assetIdentifier: {name: '', type: ''},
        audioBitRate: 0,
        audioSampleRate: 0,
        backupImageExit: {},
        bitRate: 0,
        childAssetType: '',
        collapsedSize: {},
        companionCreativeIds: [],
        customStartTimeValue: 0,
        detectedFeatures: [],
        displayType: '',
        duration: 0,
        durationType: '',
        expandedDimension: {},
        fileSize: '',
        flashVersion: 0,
        frameRate: '',
        hideFlashObjects: false,
        hideSelectionBoxes: false,
        horizontallyLocked: false,
        id: '',
        idDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
        mediaDuration: '',
        mimeType: '',
        offset: {},
        orientation: '',
        originalBackup: false,
        politeLoad: false,
        position: {},
        positionLeftUnit: '',
        positionTopUnit: '',
        progressiveServingUrl: '',
        pushdown: false,
        pushdownDuration: '',
        role: '',
        size: {},
        sslCompliant: false,
        startTimeType: '',
        streamingServingUrl: '',
        transparency: false,
        verticallyLocked: false,
        windowMode: '',
        zIndex: 0,
        zipFilename: '',
        zipFilesize: ''
      }
    ],
    creativeFieldAssignments: [{creativeFieldId: '', creativeFieldValueId: ''}],
    customKeyValues: [],
    dynamicAssetSelection: false,
    exitCustomEvents: [{}],
    fsCommand: {left: 0, positionOption: '', top: 0, windowHeight: 0, windowWidth: 0},
    htmlCode: '',
    htmlCodeLocked: false,
    id: '',
    idDimensionValue: {},
    kind: '',
    lastModifiedInfo: {time: ''},
    latestTraffickedCreativeId: '',
    mediaDescription: '',
    mediaDuration: '',
    name: '',
    obaIcon: {
      iconClickThroughUrl: '',
      iconClickTrackingUrl: '',
      iconViewTrackingUrl: '',
      program: '',
      resourceUrl: '',
      size: {},
      xPosition: '',
      yPosition: ''
    },
    overrideCss: '',
    progressOffset: {offsetPercentage: 0, offsetSeconds: 0},
    redirectUrl: '',
    renderingId: '',
    renderingIdDimensionValue: {},
    requiredFlashPluginVersion: '',
    requiredFlashVersion: 0,
    size: {},
    skipOffset: {},
    skippable: false,
    sslCompliant: false,
    sslOverride: false,
    studioAdvertiserId: '',
    studioCreativeId: '',
    studioTraffickedCreativeId: '',
    subaccountId: '',
    thirdPartyBackupImageImpressionsUrl: '',
    thirdPartyRichMediaImpressionsUrl: '',
    thirdPartyUrls: [{thirdPartyUrlType: '', url: ''}],
    timerCustomEvents: [{}],
    totalFileSize: '',
    type: '',
    universalAdId: {registry: '', value: ''},
    version: 0
  },
  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}}/userprofiles/:profileId/creatives');

req.query({
  id: ''
});

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  accountId: '',
  active: false,
  adParameters: '',
  adTagKeys: [],
  additionalSizes: [
    {
      height: 0,
      iab: false,
      id: '',
      kind: '',
      width: 0
    }
  ],
  advertiserId: '',
  allowScriptAccess: false,
  archived: false,
  artworkType: '',
  authoringSource: '',
  authoringTool: '',
  autoAdvanceImages: false,
  backgroundColor: '',
  backupImageClickThroughUrl: {
    computedClickThroughUrl: '',
    customClickThroughUrl: '',
    landingPageId: ''
  },
  backupImageFeatures: [],
  backupImageReportingLabel: '',
  backupImageTargetWindow: {
    customHtml: '',
    targetWindowOption: ''
  },
  clickTags: [
    {
      clickThroughUrl: {},
      eventName: '',
      name: ''
    }
  ],
  commercialId: '',
  companionCreatives: [],
  compatibility: [],
  convertFlashToHtml5: false,
  counterCustomEvents: [
    {
      advertiserCustomEventId: '',
      advertiserCustomEventName: '',
      advertiserCustomEventType: '',
      artworkLabel: '',
      artworkType: '',
      exitClickThroughUrl: {},
      id: '',
      popupWindowProperties: {
        dimension: {},
        offset: {
          left: 0,
          top: 0
        },
        positionType: '',
        showAddressBar: false,
        showMenuBar: false,
        showScrollBar: false,
        showStatusBar: false,
        showToolBar: false,
        title: ''
      },
      targetType: '',
      videoReportingId: ''
    }
  ],
  creativeAssetSelection: {
    defaultAssetId: '',
    rules: [
      {
        assetId: '',
        name: '',
        targetingTemplateId: ''
      }
    ]
  },
  creativeAssets: [
    {
      actionScript3: false,
      active: false,
      additionalSizes: [
        {}
      ],
      alignment: '',
      artworkType: '',
      assetIdentifier: {
        name: '',
        type: ''
      },
      audioBitRate: 0,
      audioSampleRate: 0,
      backupImageExit: {},
      bitRate: 0,
      childAssetType: '',
      collapsedSize: {},
      companionCreativeIds: [],
      customStartTimeValue: 0,
      detectedFeatures: [],
      displayType: '',
      duration: 0,
      durationType: '',
      expandedDimension: {},
      fileSize: '',
      flashVersion: 0,
      frameRate: '',
      hideFlashObjects: false,
      hideSelectionBoxes: false,
      horizontallyLocked: false,
      id: '',
      idDimensionValue: {
        dimensionName: '',
        etag: '',
        id: '',
        kind: '',
        matchType: '',
        value: ''
      },
      mediaDuration: '',
      mimeType: '',
      offset: {},
      orientation: '',
      originalBackup: false,
      politeLoad: false,
      position: {},
      positionLeftUnit: '',
      positionTopUnit: '',
      progressiveServingUrl: '',
      pushdown: false,
      pushdownDuration: '',
      role: '',
      size: {},
      sslCompliant: false,
      startTimeType: '',
      streamingServingUrl: '',
      transparency: false,
      verticallyLocked: false,
      windowMode: '',
      zIndex: 0,
      zipFilename: '',
      zipFilesize: ''
    }
  ],
  creativeFieldAssignments: [
    {
      creativeFieldId: '',
      creativeFieldValueId: ''
    }
  ],
  customKeyValues: [],
  dynamicAssetSelection: false,
  exitCustomEvents: [
    {}
  ],
  fsCommand: {
    left: 0,
    positionOption: '',
    top: 0,
    windowHeight: 0,
    windowWidth: 0
  },
  htmlCode: '',
  htmlCodeLocked: false,
  id: '',
  idDimensionValue: {},
  kind: '',
  lastModifiedInfo: {
    time: ''
  },
  latestTraffickedCreativeId: '',
  mediaDescription: '',
  mediaDuration: '',
  name: '',
  obaIcon: {
    iconClickThroughUrl: '',
    iconClickTrackingUrl: '',
    iconViewTrackingUrl: '',
    program: '',
    resourceUrl: '',
    size: {},
    xPosition: '',
    yPosition: ''
  },
  overrideCss: '',
  progressOffset: {
    offsetPercentage: 0,
    offsetSeconds: 0
  },
  redirectUrl: '',
  renderingId: '',
  renderingIdDimensionValue: {},
  requiredFlashPluginVersion: '',
  requiredFlashVersion: 0,
  size: {},
  skipOffset: {},
  skippable: false,
  sslCompliant: false,
  sslOverride: false,
  studioAdvertiserId: '',
  studioCreativeId: '',
  studioTraffickedCreativeId: '',
  subaccountId: '',
  thirdPartyBackupImageImpressionsUrl: '',
  thirdPartyRichMediaImpressionsUrl: '',
  thirdPartyUrls: [
    {
      thirdPartyUrlType: '',
      url: ''
    }
  ],
  timerCustomEvents: [
    {}
  ],
  totalFileSize: '',
  type: '',
  universalAdId: {
    registry: '',
    value: ''
  },
  version: 0
});

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}}/userprofiles/:profileId/creatives',
  params: {id: ''},
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    active: false,
    adParameters: '',
    adTagKeys: [],
    additionalSizes: [{height: 0, iab: false, id: '', kind: '', width: 0}],
    advertiserId: '',
    allowScriptAccess: false,
    archived: false,
    artworkType: '',
    authoringSource: '',
    authoringTool: '',
    autoAdvanceImages: false,
    backgroundColor: '',
    backupImageClickThroughUrl: {computedClickThroughUrl: '', customClickThroughUrl: '', landingPageId: ''},
    backupImageFeatures: [],
    backupImageReportingLabel: '',
    backupImageTargetWindow: {customHtml: '', targetWindowOption: ''},
    clickTags: [{clickThroughUrl: {}, eventName: '', name: ''}],
    commercialId: '',
    companionCreatives: [],
    compatibility: [],
    convertFlashToHtml5: false,
    counterCustomEvents: [
      {
        advertiserCustomEventId: '',
        advertiserCustomEventName: '',
        advertiserCustomEventType: '',
        artworkLabel: '',
        artworkType: '',
        exitClickThroughUrl: {},
        id: '',
        popupWindowProperties: {
          dimension: {},
          offset: {left: 0, top: 0},
          positionType: '',
          showAddressBar: false,
          showMenuBar: false,
          showScrollBar: false,
          showStatusBar: false,
          showToolBar: false,
          title: ''
        },
        targetType: '',
        videoReportingId: ''
      }
    ],
    creativeAssetSelection: {defaultAssetId: '', rules: [{assetId: '', name: '', targetingTemplateId: ''}]},
    creativeAssets: [
      {
        actionScript3: false,
        active: false,
        additionalSizes: [{}],
        alignment: '',
        artworkType: '',
        assetIdentifier: {name: '', type: ''},
        audioBitRate: 0,
        audioSampleRate: 0,
        backupImageExit: {},
        bitRate: 0,
        childAssetType: '',
        collapsedSize: {},
        companionCreativeIds: [],
        customStartTimeValue: 0,
        detectedFeatures: [],
        displayType: '',
        duration: 0,
        durationType: '',
        expandedDimension: {},
        fileSize: '',
        flashVersion: 0,
        frameRate: '',
        hideFlashObjects: false,
        hideSelectionBoxes: false,
        horizontallyLocked: false,
        id: '',
        idDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
        mediaDuration: '',
        mimeType: '',
        offset: {},
        orientation: '',
        originalBackup: false,
        politeLoad: false,
        position: {},
        positionLeftUnit: '',
        positionTopUnit: '',
        progressiveServingUrl: '',
        pushdown: false,
        pushdownDuration: '',
        role: '',
        size: {},
        sslCompliant: false,
        startTimeType: '',
        streamingServingUrl: '',
        transparency: false,
        verticallyLocked: false,
        windowMode: '',
        zIndex: 0,
        zipFilename: '',
        zipFilesize: ''
      }
    ],
    creativeFieldAssignments: [{creativeFieldId: '', creativeFieldValueId: ''}],
    customKeyValues: [],
    dynamicAssetSelection: false,
    exitCustomEvents: [{}],
    fsCommand: {left: 0, positionOption: '', top: 0, windowHeight: 0, windowWidth: 0},
    htmlCode: '',
    htmlCodeLocked: false,
    id: '',
    idDimensionValue: {},
    kind: '',
    lastModifiedInfo: {time: ''},
    latestTraffickedCreativeId: '',
    mediaDescription: '',
    mediaDuration: '',
    name: '',
    obaIcon: {
      iconClickThroughUrl: '',
      iconClickTrackingUrl: '',
      iconViewTrackingUrl: '',
      program: '',
      resourceUrl: '',
      size: {},
      xPosition: '',
      yPosition: ''
    },
    overrideCss: '',
    progressOffset: {offsetPercentage: 0, offsetSeconds: 0},
    redirectUrl: '',
    renderingId: '',
    renderingIdDimensionValue: {},
    requiredFlashPluginVersion: '',
    requiredFlashVersion: 0,
    size: {},
    skipOffset: {},
    skippable: false,
    sslCompliant: false,
    sslOverride: false,
    studioAdvertiserId: '',
    studioCreativeId: '',
    studioTraffickedCreativeId: '',
    subaccountId: '',
    thirdPartyBackupImageImpressionsUrl: '',
    thirdPartyRichMediaImpressionsUrl: '',
    thirdPartyUrls: [{thirdPartyUrlType: '', url: ''}],
    timerCustomEvents: [{}],
    totalFileSize: '',
    type: '',
    universalAdId: {registry: '', value: ''},
    version: 0
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/creatives?id=';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","active":false,"adParameters":"","adTagKeys":[],"additionalSizes":[{"height":0,"iab":false,"id":"","kind":"","width":0}],"advertiserId":"","allowScriptAccess":false,"archived":false,"artworkType":"","authoringSource":"","authoringTool":"","autoAdvanceImages":false,"backgroundColor":"","backupImageClickThroughUrl":{"computedClickThroughUrl":"","customClickThroughUrl":"","landingPageId":""},"backupImageFeatures":[],"backupImageReportingLabel":"","backupImageTargetWindow":{"customHtml":"","targetWindowOption":""},"clickTags":[{"clickThroughUrl":{},"eventName":"","name":""}],"commercialId":"","companionCreatives":[],"compatibility":[],"convertFlashToHtml5":false,"counterCustomEvents":[{"advertiserCustomEventId":"","advertiserCustomEventName":"","advertiserCustomEventType":"","artworkLabel":"","artworkType":"","exitClickThroughUrl":{},"id":"","popupWindowProperties":{"dimension":{},"offset":{"left":0,"top":0},"positionType":"","showAddressBar":false,"showMenuBar":false,"showScrollBar":false,"showStatusBar":false,"showToolBar":false,"title":""},"targetType":"","videoReportingId":""}],"creativeAssetSelection":{"defaultAssetId":"","rules":[{"assetId":"","name":"","targetingTemplateId":""}]},"creativeAssets":[{"actionScript3":false,"active":false,"additionalSizes":[{}],"alignment":"","artworkType":"","assetIdentifier":{"name":"","type":""},"audioBitRate":0,"audioSampleRate":0,"backupImageExit":{},"bitRate":0,"childAssetType":"","collapsedSize":{},"companionCreativeIds":[],"customStartTimeValue":0,"detectedFeatures":[],"displayType":"","duration":0,"durationType":"","expandedDimension":{},"fileSize":"","flashVersion":0,"frameRate":"","hideFlashObjects":false,"hideSelectionBoxes":false,"horizontallyLocked":false,"id":"","idDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"mediaDuration":"","mimeType":"","offset":{},"orientation":"","originalBackup":false,"politeLoad":false,"position":{},"positionLeftUnit":"","positionTopUnit":"","progressiveServingUrl":"","pushdown":false,"pushdownDuration":"","role":"","size":{},"sslCompliant":false,"startTimeType":"","streamingServingUrl":"","transparency":false,"verticallyLocked":false,"windowMode":"","zIndex":0,"zipFilename":"","zipFilesize":""}],"creativeFieldAssignments":[{"creativeFieldId":"","creativeFieldValueId":""}],"customKeyValues":[],"dynamicAssetSelection":false,"exitCustomEvents":[{}],"fsCommand":{"left":0,"positionOption":"","top":0,"windowHeight":0,"windowWidth":0},"htmlCode":"","htmlCodeLocked":false,"id":"","idDimensionValue":{},"kind":"","lastModifiedInfo":{"time":""},"latestTraffickedCreativeId":"","mediaDescription":"","mediaDuration":"","name":"","obaIcon":{"iconClickThroughUrl":"","iconClickTrackingUrl":"","iconViewTrackingUrl":"","program":"","resourceUrl":"","size":{},"xPosition":"","yPosition":""},"overrideCss":"","progressOffset":{"offsetPercentage":0,"offsetSeconds":0},"redirectUrl":"","renderingId":"","renderingIdDimensionValue":{},"requiredFlashPluginVersion":"","requiredFlashVersion":0,"size":{},"skipOffset":{},"skippable":false,"sslCompliant":false,"sslOverride":false,"studioAdvertiserId":"","studioCreativeId":"","studioTraffickedCreativeId":"","subaccountId":"","thirdPartyBackupImageImpressionsUrl":"","thirdPartyRichMediaImpressionsUrl":"","thirdPartyUrls":[{"thirdPartyUrlType":"","url":""}],"timerCustomEvents":[{}],"totalFileSize":"","type":"","universalAdId":{"registry":"","value":""},"version":0}'
};

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 = @{ @"accountId": @"",
                              @"active": @NO,
                              @"adParameters": @"",
                              @"adTagKeys": @[  ],
                              @"additionalSizes": @[ @{ @"height": @0, @"iab": @NO, @"id": @"", @"kind": @"", @"width": @0 } ],
                              @"advertiserId": @"",
                              @"allowScriptAccess": @NO,
                              @"archived": @NO,
                              @"artworkType": @"",
                              @"authoringSource": @"",
                              @"authoringTool": @"",
                              @"autoAdvanceImages": @NO,
                              @"backgroundColor": @"",
                              @"backupImageClickThroughUrl": @{ @"computedClickThroughUrl": @"", @"customClickThroughUrl": @"", @"landingPageId": @"" },
                              @"backupImageFeatures": @[  ],
                              @"backupImageReportingLabel": @"",
                              @"backupImageTargetWindow": @{ @"customHtml": @"", @"targetWindowOption": @"" },
                              @"clickTags": @[ @{ @"clickThroughUrl": @{  }, @"eventName": @"", @"name": @"" } ],
                              @"commercialId": @"",
                              @"companionCreatives": @[  ],
                              @"compatibility": @[  ],
                              @"convertFlashToHtml5": @NO,
                              @"counterCustomEvents": @[ @{ @"advertiserCustomEventId": @"", @"advertiserCustomEventName": @"", @"advertiserCustomEventType": @"", @"artworkLabel": @"", @"artworkType": @"", @"exitClickThroughUrl": @{  }, @"id": @"", @"popupWindowProperties": @{ @"dimension": @{  }, @"offset": @{ @"left": @0, @"top": @0 }, @"positionType": @"", @"showAddressBar": @NO, @"showMenuBar": @NO, @"showScrollBar": @NO, @"showStatusBar": @NO, @"showToolBar": @NO, @"title": @"" }, @"targetType": @"", @"videoReportingId": @"" } ],
                              @"creativeAssetSelection": @{ @"defaultAssetId": @"", @"rules": @[ @{ @"assetId": @"", @"name": @"", @"targetingTemplateId": @"" } ] },
                              @"creativeAssets": @[ @{ @"actionScript3": @NO, @"active": @NO, @"additionalSizes": @[ @{  } ], @"alignment": @"", @"artworkType": @"", @"assetIdentifier": @{ @"name": @"", @"type": @"" }, @"audioBitRate": @0, @"audioSampleRate": @0, @"backupImageExit": @{  }, @"bitRate": @0, @"childAssetType": @"", @"collapsedSize": @{  }, @"companionCreativeIds": @[  ], @"customStartTimeValue": @0, @"detectedFeatures": @[  ], @"displayType": @"", @"duration": @0, @"durationType": @"", @"expandedDimension": @{  }, @"fileSize": @"", @"flashVersion": @0, @"frameRate": @"", @"hideFlashObjects": @NO, @"hideSelectionBoxes": @NO, @"horizontallyLocked": @NO, @"id": @"", @"idDimensionValue": @{ @"dimensionName": @"", @"etag": @"", @"id": @"", @"kind": @"", @"matchType": @"", @"value": @"" }, @"mediaDuration": @"", @"mimeType": @"", @"offset": @{  }, @"orientation": @"", @"originalBackup": @NO, @"politeLoad": @NO, @"position": @{  }, @"positionLeftUnit": @"", @"positionTopUnit": @"", @"progressiveServingUrl": @"", @"pushdown": @NO, @"pushdownDuration": @"", @"role": @"", @"size": @{  }, @"sslCompliant": @NO, @"startTimeType": @"", @"streamingServingUrl": @"", @"transparency": @NO, @"verticallyLocked": @NO, @"windowMode": @"", @"zIndex": @0, @"zipFilename": @"", @"zipFilesize": @"" } ],
                              @"creativeFieldAssignments": @[ @{ @"creativeFieldId": @"", @"creativeFieldValueId": @"" } ],
                              @"customKeyValues": @[  ],
                              @"dynamicAssetSelection": @NO,
                              @"exitCustomEvents": @[ @{  } ],
                              @"fsCommand": @{ @"left": @0, @"positionOption": @"", @"top": @0, @"windowHeight": @0, @"windowWidth": @0 },
                              @"htmlCode": @"",
                              @"htmlCodeLocked": @NO,
                              @"id": @"",
                              @"idDimensionValue": @{  },
                              @"kind": @"",
                              @"lastModifiedInfo": @{ @"time": @"" },
                              @"latestTraffickedCreativeId": @"",
                              @"mediaDescription": @"",
                              @"mediaDuration": @"",
                              @"name": @"",
                              @"obaIcon": @{ @"iconClickThroughUrl": @"", @"iconClickTrackingUrl": @"", @"iconViewTrackingUrl": @"", @"program": @"", @"resourceUrl": @"", @"size": @{  }, @"xPosition": @"", @"yPosition": @"" },
                              @"overrideCss": @"",
                              @"progressOffset": @{ @"offsetPercentage": @0, @"offsetSeconds": @0 },
                              @"redirectUrl": @"",
                              @"renderingId": @"",
                              @"renderingIdDimensionValue": @{  },
                              @"requiredFlashPluginVersion": @"",
                              @"requiredFlashVersion": @0,
                              @"size": @{  },
                              @"skipOffset": @{  },
                              @"skippable": @NO,
                              @"sslCompliant": @NO,
                              @"sslOverride": @NO,
                              @"studioAdvertiserId": @"",
                              @"studioCreativeId": @"",
                              @"studioTraffickedCreativeId": @"",
                              @"subaccountId": @"",
                              @"thirdPartyBackupImageImpressionsUrl": @"",
                              @"thirdPartyRichMediaImpressionsUrl": @"",
                              @"thirdPartyUrls": @[ @{ @"thirdPartyUrlType": @"", @"url": @"" } ],
                              @"timerCustomEvents": @[ @{  } ],
                              @"totalFileSize": @"",
                              @"type": @"",
                              @"universalAdId": @{ @"registry": @"", @"value": @"" },
                              @"version": @0 };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/userprofiles/:profileId/creatives?id="]
                                                       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}}/userprofiles/:profileId/creatives?id=" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"adParameters\": \"\",\n  \"adTagKeys\": [],\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"allowScriptAccess\": false,\n  \"archived\": false,\n  \"artworkType\": \"\",\n  \"authoringSource\": \"\",\n  \"authoringTool\": \"\",\n  \"autoAdvanceImages\": false,\n  \"backgroundColor\": \"\",\n  \"backupImageClickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"landingPageId\": \"\"\n  },\n  \"backupImageFeatures\": [],\n  \"backupImageReportingLabel\": \"\",\n  \"backupImageTargetWindow\": {\n    \"customHtml\": \"\",\n    \"targetWindowOption\": \"\"\n  },\n  \"clickTags\": [\n    {\n      \"clickThroughUrl\": {},\n      \"eventName\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"commercialId\": \"\",\n  \"companionCreatives\": [],\n  \"compatibility\": [],\n  \"convertFlashToHtml5\": false,\n  \"counterCustomEvents\": [\n    {\n      \"advertiserCustomEventId\": \"\",\n      \"advertiserCustomEventName\": \"\",\n      \"advertiserCustomEventType\": \"\",\n      \"artworkLabel\": \"\",\n      \"artworkType\": \"\",\n      \"exitClickThroughUrl\": {},\n      \"id\": \"\",\n      \"popupWindowProperties\": {\n        \"dimension\": {},\n        \"offset\": {\n          \"left\": 0,\n          \"top\": 0\n        },\n        \"positionType\": \"\",\n        \"showAddressBar\": false,\n        \"showMenuBar\": false,\n        \"showScrollBar\": false,\n        \"showStatusBar\": false,\n        \"showToolBar\": false,\n        \"title\": \"\"\n      },\n      \"targetType\": \"\",\n      \"videoReportingId\": \"\"\n    }\n  ],\n  \"creativeAssetSelection\": {\n    \"defaultAssetId\": \"\",\n    \"rules\": [\n      {\n        \"assetId\": \"\",\n        \"name\": \"\",\n        \"targetingTemplateId\": \"\"\n      }\n    ]\n  },\n  \"creativeAssets\": [\n    {\n      \"actionScript3\": false,\n      \"active\": false,\n      \"additionalSizes\": [\n        {}\n      ],\n      \"alignment\": \"\",\n      \"artworkType\": \"\",\n      \"assetIdentifier\": {\n        \"name\": \"\",\n        \"type\": \"\"\n      },\n      \"audioBitRate\": 0,\n      \"audioSampleRate\": 0,\n      \"backupImageExit\": {},\n      \"bitRate\": 0,\n      \"childAssetType\": \"\",\n      \"collapsedSize\": {},\n      \"companionCreativeIds\": [],\n      \"customStartTimeValue\": 0,\n      \"detectedFeatures\": [],\n      \"displayType\": \"\",\n      \"duration\": 0,\n      \"durationType\": \"\",\n      \"expandedDimension\": {},\n      \"fileSize\": \"\",\n      \"flashVersion\": 0,\n      \"frameRate\": \"\",\n      \"hideFlashObjects\": false,\n      \"hideSelectionBoxes\": false,\n      \"horizontallyLocked\": false,\n      \"id\": \"\",\n      \"idDimensionValue\": {\n        \"dimensionName\": \"\",\n        \"etag\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"matchType\": \"\",\n        \"value\": \"\"\n      },\n      \"mediaDuration\": \"\",\n      \"mimeType\": \"\",\n      \"offset\": {},\n      \"orientation\": \"\",\n      \"originalBackup\": false,\n      \"politeLoad\": false,\n      \"position\": {},\n      \"positionLeftUnit\": \"\",\n      \"positionTopUnit\": \"\",\n      \"progressiveServingUrl\": \"\",\n      \"pushdown\": false,\n      \"pushdownDuration\": \"\",\n      \"role\": \"\",\n      \"size\": {},\n      \"sslCompliant\": false,\n      \"startTimeType\": \"\",\n      \"streamingServingUrl\": \"\",\n      \"transparency\": false,\n      \"verticallyLocked\": false,\n      \"windowMode\": \"\",\n      \"zIndex\": 0,\n      \"zipFilename\": \"\",\n      \"zipFilesize\": \"\"\n    }\n  ],\n  \"creativeFieldAssignments\": [\n    {\n      \"creativeFieldId\": \"\",\n      \"creativeFieldValueId\": \"\"\n    }\n  ],\n  \"customKeyValues\": [],\n  \"dynamicAssetSelection\": false,\n  \"exitCustomEvents\": [\n    {}\n  ],\n  \"fsCommand\": {\n    \"left\": 0,\n    \"positionOption\": \"\",\n    \"top\": 0,\n    \"windowHeight\": 0,\n    \"windowWidth\": 0\n  },\n  \"htmlCode\": \"\",\n  \"htmlCodeLocked\": false,\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {\n    \"time\": \"\"\n  },\n  \"latestTraffickedCreativeId\": \"\",\n  \"mediaDescription\": \"\",\n  \"mediaDuration\": \"\",\n  \"name\": \"\",\n  \"obaIcon\": {\n    \"iconClickThroughUrl\": \"\",\n    \"iconClickTrackingUrl\": \"\",\n    \"iconViewTrackingUrl\": \"\",\n    \"program\": \"\",\n    \"resourceUrl\": \"\",\n    \"size\": {},\n    \"xPosition\": \"\",\n    \"yPosition\": \"\"\n  },\n  \"overrideCss\": \"\",\n  \"progressOffset\": {\n    \"offsetPercentage\": 0,\n    \"offsetSeconds\": 0\n  },\n  \"redirectUrl\": \"\",\n  \"renderingId\": \"\",\n  \"renderingIdDimensionValue\": {},\n  \"requiredFlashPluginVersion\": \"\",\n  \"requiredFlashVersion\": 0,\n  \"size\": {},\n  \"skipOffset\": {},\n  \"skippable\": false,\n  \"sslCompliant\": false,\n  \"sslOverride\": false,\n  \"studioAdvertiserId\": \"\",\n  \"studioCreativeId\": \"\",\n  \"studioTraffickedCreativeId\": \"\",\n  \"subaccountId\": \"\",\n  \"thirdPartyBackupImageImpressionsUrl\": \"\",\n  \"thirdPartyRichMediaImpressionsUrl\": \"\",\n  \"thirdPartyUrls\": [\n    {\n      \"thirdPartyUrlType\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"timerCustomEvents\": [\n    {}\n  ],\n  \"totalFileSize\": \"\",\n  \"type\": \"\",\n  \"universalAdId\": {\n    \"registry\": \"\",\n    \"value\": \"\"\n  },\n  \"version\": 0\n}" in

Client.call ~headers ~body `PATCH uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/creatives?id=",
  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([
    'accountId' => '',
    'active' => null,
    'adParameters' => '',
    'adTagKeys' => [
        
    ],
    'additionalSizes' => [
        [
                'height' => 0,
                'iab' => null,
                'id' => '',
                'kind' => '',
                'width' => 0
        ]
    ],
    'advertiserId' => '',
    'allowScriptAccess' => null,
    'archived' => null,
    'artworkType' => '',
    'authoringSource' => '',
    'authoringTool' => '',
    'autoAdvanceImages' => null,
    'backgroundColor' => '',
    'backupImageClickThroughUrl' => [
        'computedClickThroughUrl' => '',
        'customClickThroughUrl' => '',
        'landingPageId' => ''
    ],
    'backupImageFeatures' => [
        
    ],
    'backupImageReportingLabel' => '',
    'backupImageTargetWindow' => [
        'customHtml' => '',
        'targetWindowOption' => ''
    ],
    'clickTags' => [
        [
                'clickThroughUrl' => [
                                
                ],
                'eventName' => '',
                'name' => ''
        ]
    ],
    'commercialId' => '',
    'companionCreatives' => [
        
    ],
    'compatibility' => [
        
    ],
    'convertFlashToHtml5' => null,
    'counterCustomEvents' => [
        [
                'advertiserCustomEventId' => '',
                'advertiserCustomEventName' => '',
                'advertiserCustomEventType' => '',
                'artworkLabel' => '',
                'artworkType' => '',
                'exitClickThroughUrl' => [
                                
                ],
                'id' => '',
                'popupWindowProperties' => [
                                'dimension' => [
                                                                
                                ],
                                'offset' => [
                                                                'left' => 0,
                                                                'top' => 0
                                ],
                                'positionType' => '',
                                'showAddressBar' => null,
                                'showMenuBar' => null,
                                'showScrollBar' => null,
                                'showStatusBar' => null,
                                'showToolBar' => null,
                                'title' => ''
                ],
                'targetType' => '',
                'videoReportingId' => ''
        ]
    ],
    'creativeAssetSelection' => [
        'defaultAssetId' => '',
        'rules' => [
                [
                                'assetId' => '',
                                'name' => '',
                                'targetingTemplateId' => ''
                ]
        ]
    ],
    'creativeAssets' => [
        [
                'actionScript3' => null,
                'active' => null,
                'additionalSizes' => [
                                [
                                                                
                                ]
                ],
                'alignment' => '',
                'artworkType' => '',
                'assetIdentifier' => [
                                'name' => '',
                                'type' => ''
                ],
                'audioBitRate' => 0,
                'audioSampleRate' => 0,
                'backupImageExit' => [
                                
                ],
                'bitRate' => 0,
                'childAssetType' => '',
                'collapsedSize' => [
                                
                ],
                'companionCreativeIds' => [
                                
                ],
                'customStartTimeValue' => 0,
                'detectedFeatures' => [
                                
                ],
                'displayType' => '',
                'duration' => 0,
                'durationType' => '',
                'expandedDimension' => [
                                
                ],
                'fileSize' => '',
                'flashVersion' => 0,
                'frameRate' => '',
                'hideFlashObjects' => null,
                'hideSelectionBoxes' => null,
                'horizontallyLocked' => null,
                'id' => '',
                'idDimensionValue' => [
                                'dimensionName' => '',
                                'etag' => '',
                                'id' => '',
                                'kind' => '',
                                'matchType' => '',
                                'value' => ''
                ],
                'mediaDuration' => '',
                'mimeType' => '',
                'offset' => [
                                
                ],
                'orientation' => '',
                'originalBackup' => null,
                'politeLoad' => null,
                'position' => [
                                
                ],
                'positionLeftUnit' => '',
                'positionTopUnit' => '',
                'progressiveServingUrl' => '',
                'pushdown' => null,
                'pushdownDuration' => '',
                'role' => '',
                'size' => [
                                
                ],
                'sslCompliant' => null,
                'startTimeType' => '',
                'streamingServingUrl' => '',
                'transparency' => null,
                'verticallyLocked' => null,
                'windowMode' => '',
                'zIndex' => 0,
                'zipFilename' => '',
                'zipFilesize' => ''
        ]
    ],
    'creativeFieldAssignments' => [
        [
                'creativeFieldId' => '',
                'creativeFieldValueId' => ''
        ]
    ],
    'customKeyValues' => [
        
    ],
    'dynamicAssetSelection' => null,
    'exitCustomEvents' => [
        [
                
        ]
    ],
    'fsCommand' => [
        'left' => 0,
        'positionOption' => '',
        'top' => 0,
        'windowHeight' => 0,
        'windowWidth' => 0
    ],
    'htmlCode' => '',
    'htmlCodeLocked' => null,
    'id' => '',
    'idDimensionValue' => [
        
    ],
    'kind' => '',
    'lastModifiedInfo' => [
        'time' => ''
    ],
    'latestTraffickedCreativeId' => '',
    'mediaDescription' => '',
    'mediaDuration' => '',
    'name' => '',
    'obaIcon' => [
        'iconClickThroughUrl' => '',
        'iconClickTrackingUrl' => '',
        'iconViewTrackingUrl' => '',
        'program' => '',
        'resourceUrl' => '',
        'size' => [
                
        ],
        'xPosition' => '',
        'yPosition' => ''
    ],
    'overrideCss' => '',
    'progressOffset' => [
        'offsetPercentage' => 0,
        'offsetSeconds' => 0
    ],
    'redirectUrl' => '',
    'renderingId' => '',
    'renderingIdDimensionValue' => [
        
    ],
    'requiredFlashPluginVersion' => '',
    'requiredFlashVersion' => 0,
    'size' => [
        
    ],
    'skipOffset' => [
        
    ],
    'skippable' => null,
    'sslCompliant' => null,
    'sslOverride' => null,
    'studioAdvertiserId' => '',
    'studioCreativeId' => '',
    'studioTraffickedCreativeId' => '',
    'subaccountId' => '',
    'thirdPartyBackupImageImpressionsUrl' => '',
    'thirdPartyRichMediaImpressionsUrl' => '',
    'thirdPartyUrls' => [
        [
                'thirdPartyUrlType' => '',
                'url' => ''
        ]
    ],
    'timerCustomEvents' => [
        [
                
        ]
    ],
    'totalFileSize' => '',
    'type' => '',
    'universalAdId' => [
        'registry' => '',
        'value' => ''
    ],
    'version' => 0
  ]),
  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}}/userprofiles/:profileId/creatives?id=', [
  'body' => '{
  "accountId": "",
  "active": false,
  "adParameters": "",
  "adTagKeys": [],
  "additionalSizes": [
    {
      "height": 0,
      "iab": false,
      "id": "",
      "kind": "",
      "width": 0
    }
  ],
  "advertiserId": "",
  "allowScriptAccess": false,
  "archived": false,
  "artworkType": "",
  "authoringSource": "",
  "authoringTool": "",
  "autoAdvanceImages": false,
  "backgroundColor": "",
  "backupImageClickThroughUrl": {
    "computedClickThroughUrl": "",
    "customClickThroughUrl": "",
    "landingPageId": ""
  },
  "backupImageFeatures": [],
  "backupImageReportingLabel": "",
  "backupImageTargetWindow": {
    "customHtml": "",
    "targetWindowOption": ""
  },
  "clickTags": [
    {
      "clickThroughUrl": {},
      "eventName": "",
      "name": ""
    }
  ],
  "commercialId": "",
  "companionCreatives": [],
  "compatibility": [],
  "convertFlashToHtml5": false,
  "counterCustomEvents": [
    {
      "advertiserCustomEventId": "",
      "advertiserCustomEventName": "",
      "advertiserCustomEventType": "",
      "artworkLabel": "",
      "artworkType": "",
      "exitClickThroughUrl": {},
      "id": "",
      "popupWindowProperties": {
        "dimension": {},
        "offset": {
          "left": 0,
          "top": 0
        },
        "positionType": "",
        "showAddressBar": false,
        "showMenuBar": false,
        "showScrollBar": false,
        "showStatusBar": false,
        "showToolBar": false,
        "title": ""
      },
      "targetType": "",
      "videoReportingId": ""
    }
  ],
  "creativeAssetSelection": {
    "defaultAssetId": "",
    "rules": [
      {
        "assetId": "",
        "name": "",
        "targetingTemplateId": ""
      }
    ]
  },
  "creativeAssets": [
    {
      "actionScript3": false,
      "active": false,
      "additionalSizes": [
        {}
      ],
      "alignment": "",
      "artworkType": "",
      "assetIdentifier": {
        "name": "",
        "type": ""
      },
      "audioBitRate": 0,
      "audioSampleRate": 0,
      "backupImageExit": {},
      "bitRate": 0,
      "childAssetType": "",
      "collapsedSize": {},
      "companionCreativeIds": [],
      "customStartTimeValue": 0,
      "detectedFeatures": [],
      "displayType": "",
      "duration": 0,
      "durationType": "",
      "expandedDimension": {},
      "fileSize": "",
      "flashVersion": 0,
      "frameRate": "",
      "hideFlashObjects": false,
      "hideSelectionBoxes": false,
      "horizontallyLocked": false,
      "id": "",
      "idDimensionValue": {
        "dimensionName": "",
        "etag": "",
        "id": "",
        "kind": "",
        "matchType": "",
        "value": ""
      },
      "mediaDuration": "",
      "mimeType": "",
      "offset": {},
      "orientation": "",
      "originalBackup": false,
      "politeLoad": false,
      "position": {},
      "positionLeftUnit": "",
      "positionTopUnit": "",
      "progressiveServingUrl": "",
      "pushdown": false,
      "pushdownDuration": "",
      "role": "",
      "size": {},
      "sslCompliant": false,
      "startTimeType": "",
      "streamingServingUrl": "",
      "transparency": false,
      "verticallyLocked": false,
      "windowMode": "",
      "zIndex": 0,
      "zipFilename": "",
      "zipFilesize": ""
    }
  ],
  "creativeFieldAssignments": [
    {
      "creativeFieldId": "",
      "creativeFieldValueId": ""
    }
  ],
  "customKeyValues": [],
  "dynamicAssetSelection": false,
  "exitCustomEvents": [
    {}
  ],
  "fsCommand": {
    "left": 0,
    "positionOption": "",
    "top": 0,
    "windowHeight": 0,
    "windowWidth": 0
  },
  "htmlCode": "",
  "htmlCodeLocked": false,
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "lastModifiedInfo": {
    "time": ""
  },
  "latestTraffickedCreativeId": "",
  "mediaDescription": "",
  "mediaDuration": "",
  "name": "",
  "obaIcon": {
    "iconClickThroughUrl": "",
    "iconClickTrackingUrl": "",
    "iconViewTrackingUrl": "",
    "program": "",
    "resourceUrl": "",
    "size": {},
    "xPosition": "",
    "yPosition": ""
  },
  "overrideCss": "",
  "progressOffset": {
    "offsetPercentage": 0,
    "offsetSeconds": 0
  },
  "redirectUrl": "",
  "renderingId": "",
  "renderingIdDimensionValue": {},
  "requiredFlashPluginVersion": "",
  "requiredFlashVersion": 0,
  "size": {},
  "skipOffset": {},
  "skippable": false,
  "sslCompliant": false,
  "sslOverride": false,
  "studioAdvertiserId": "",
  "studioCreativeId": "",
  "studioTraffickedCreativeId": "",
  "subaccountId": "",
  "thirdPartyBackupImageImpressionsUrl": "",
  "thirdPartyRichMediaImpressionsUrl": "",
  "thirdPartyUrls": [
    {
      "thirdPartyUrlType": "",
      "url": ""
    }
  ],
  "timerCustomEvents": [
    {}
  ],
  "totalFileSize": "",
  "type": "",
  "universalAdId": {
    "registry": "",
    "value": ""
  },
  "version": 0
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/creatives');
$request->setMethod(HttpRequest::HTTP_METH_PATCH);

$request->setQueryData([
  'id' => ''
]);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'accountId' => '',
  'active' => null,
  'adParameters' => '',
  'adTagKeys' => [
    
  ],
  'additionalSizes' => [
    [
        'height' => 0,
        'iab' => null,
        'id' => '',
        'kind' => '',
        'width' => 0
    ]
  ],
  'advertiserId' => '',
  'allowScriptAccess' => null,
  'archived' => null,
  'artworkType' => '',
  'authoringSource' => '',
  'authoringTool' => '',
  'autoAdvanceImages' => null,
  'backgroundColor' => '',
  'backupImageClickThroughUrl' => [
    'computedClickThroughUrl' => '',
    'customClickThroughUrl' => '',
    'landingPageId' => ''
  ],
  'backupImageFeatures' => [
    
  ],
  'backupImageReportingLabel' => '',
  'backupImageTargetWindow' => [
    'customHtml' => '',
    'targetWindowOption' => ''
  ],
  'clickTags' => [
    [
        'clickThroughUrl' => [
                
        ],
        'eventName' => '',
        'name' => ''
    ]
  ],
  'commercialId' => '',
  'companionCreatives' => [
    
  ],
  'compatibility' => [
    
  ],
  'convertFlashToHtml5' => null,
  'counterCustomEvents' => [
    [
        'advertiserCustomEventId' => '',
        'advertiserCustomEventName' => '',
        'advertiserCustomEventType' => '',
        'artworkLabel' => '',
        'artworkType' => '',
        'exitClickThroughUrl' => [
                
        ],
        'id' => '',
        'popupWindowProperties' => [
                'dimension' => [
                                
                ],
                'offset' => [
                                'left' => 0,
                                'top' => 0
                ],
                'positionType' => '',
                'showAddressBar' => null,
                'showMenuBar' => null,
                'showScrollBar' => null,
                'showStatusBar' => null,
                'showToolBar' => null,
                'title' => ''
        ],
        'targetType' => '',
        'videoReportingId' => ''
    ]
  ],
  'creativeAssetSelection' => [
    'defaultAssetId' => '',
    'rules' => [
        [
                'assetId' => '',
                'name' => '',
                'targetingTemplateId' => ''
        ]
    ]
  ],
  'creativeAssets' => [
    [
        'actionScript3' => null,
        'active' => null,
        'additionalSizes' => [
                [
                                
                ]
        ],
        'alignment' => '',
        'artworkType' => '',
        'assetIdentifier' => [
                'name' => '',
                'type' => ''
        ],
        'audioBitRate' => 0,
        'audioSampleRate' => 0,
        'backupImageExit' => [
                
        ],
        'bitRate' => 0,
        'childAssetType' => '',
        'collapsedSize' => [
                
        ],
        'companionCreativeIds' => [
                
        ],
        'customStartTimeValue' => 0,
        'detectedFeatures' => [
                
        ],
        'displayType' => '',
        'duration' => 0,
        'durationType' => '',
        'expandedDimension' => [
                
        ],
        'fileSize' => '',
        'flashVersion' => 0,
        'frameRate' => '',
        'hideFlashObjects' => null,
        'hideSelectionBoxes' => null,
        'horizontallyLocked' => null,
        'id' => '',
        'idDimensionValue' => [
                'dimensionName' => '',
                'etag' => '',
                'id' => '',
                'kind' => '',
                'matchType' => '',
                'value' => ''
        ],
        'mediaDuration' => '',
        'mimeType' => '',
        'offset' => [
                
        ],
        'orientation' => '',
        'originalBackup' => null,
        'politeLoad' => null,
        'position' => [
                
        ],
        'positionLeftUnit' => '',
        'positionTopUnit' => '',
        'progressiveServingUrl' => '',
        'pushdown' => null,
        'pushdownDuration' => '',
        'role' => '',
        'size' => [
                
        ],
        'sslCompliant' => null,
        'startTimeType' => '',
        'streamingServingUrl' => '',
        'transparency' => null,
        'verticallyLocked' => null,
        'windowMode' => '',
        'zIndex' => 0,
        'zipFilename' => '',
        'zipFilesize' => ''
    ]
  ],
  'creativeFieldAssignments' => [
    [
        'creativeFieldId' => '',
        'creativeFieldValueId' => ''
    ]
  ],
  'customKeyValues' => [
    
  ],
  'dynamicAssetSelection' => null,
  'exitCustomEvents' => [
    [
        
    ]
  ],
  'fsCommand' => [
    'left' => 0,
    'positionOption' => '',
    'top' => 0,
    'windowHeight' => 0,
    'windowWidth' => 0
  ],
  'htmlCode' => '',
  'htmlCodeLocked' => null,
  'id' => '',
  'idDimensionValue' => [
    
  ],
  'kind' => '',
  'lastModifiedInfo' => [
    'time' => ''
  ],
  'latestTraffickedCreativeId' => '',
  'mediaDescription' => '',
  'mediaDuration' => '',
  'name' => '',
  'obaIcon' => [
    'iconClickThroughUrl' => '',
    'iconClickTrackingUrl' => '',
    'iconViewTrackingUrl' => '',
    'program' => '',
    'resourceUrl' => '',
    'size' => [
        
    ],
    'xPosition' => '',
    'yPosition' => ''
  ],
  'overrideCss' => '',
  'progressOffset' => [
    'offsetPercentage' => 0,
    'offsetSeconds' => 0
  ],
  'redirectUrl' => '',
  'renderingId' => '',
  'renderingIdDimensionValue' => [
    
  ],
  'requiredFlashPluginVersion' => '',
  'requiredFlashVersion' => 0,
  'size' => [
    
  ],
  'skipOffset' => [
    
  ],
  'skippable' => null,
  'sslCompliant' => null,
  'sslOverride' => null,
  'studioAdvertiserId' => '',
  'studioCreativeId' => '',
  'studioTraffickedCreativeId' => '',
  'subaccountId' => '',
  'thirdPartyBackupImageImpressionsUrl' => '',
  'thirdPartyRichMediaImpressionsUrl' => '',
  'thirdPartyUrls' => [
    [
        'thirdPartyUrlType' => '',
        'url' => ''
    ]
  ],
  'timerCustomEvents' => [
    [
        
    ]
  ],
  'totalFileSize' => '',
  'type' => '',
  'universalAdId' => [
    'registry' => '',
    'value' => ''
  ],
  'version' => 0
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'accountId' => '',
  'active' => null,
  'adParameters' => '',
  'adTagKeys' => [
    
  ],
  'additionalSizes' => [
    [
        'height' => 0,
        'iab' => null,
        'id' => '',
        'kind' => '',
        'width' => 0
    ]
  ],
  'advertiserId' => '',
  'allowScriptAccess' => null,
  'archived' => null,
  'artworkType' => '',
  'authoringSource' => '',
  'authoringTool' => '',
  'autoAdvanceImages' => null,
  'backgroundColor' => '',
  'backupImageClickThroughUrl' => [
    'computedClickThroughUrl' => '',
    'customClickThroughUrl' => '',
    'landingPageId' => ''
  ],
  'backupImageFeatures' => [
    
  ],
  'backupImageReportingLabel' => '',
  'backupImageTargetWindow' => [
    'customHtml' => '',
    'targetWindowOption' => ''
  ],
  'clickTags' => [
    [
        'clickThroughUrl' => [
                
        ],
        'eventName' => '',
        'name' => ''
    ]
  ],
  'commercialId' => '',
  'companionCreatives' => [
    
  ],
  'compatibility' => [
    
  ],
  'convertFlashToHtml5' => null,
  'counterCustomEvents' => [
    [
        'advertiserCustomEventId' => '',
        'advertiserCustomEventName' => '',
        'advertiserCustomEventType' => '',
        'artworkLabel' => '',
        'artworkType' => '',
        'exitClickThroughUrl' => [
                
        ],
        'id' => '',
        'popupWindowProperties' => [
                'dimension' => [
                                
                ],
                'offset' => [
                                'left' => 0,
                                'top' => 0
                ],
                'positionType' => '',
                'showAddressBar' => null,
                'showMenuBar' => null,
                'showScrollBar' => null,
                'showStatusBar' => null,
                'showToolBar' => null,
                'title' => ''
        ],
        'targetType' => '',
        'videoReportingId' => ''
    ]
  ],
  'creativeAssetSelection' => [
    'defaultAssetId' => '',
    'rules' => [
        [
                'assetId' => '',
                'name' => '',
                'targetingTemplateId' => ''
        ]
    ]
  ],
  'creativeAssets' => [
    [
        'actionScript3' => null,
        'active' => null,
        'additionalSizes' => [
                [
                                
                ]
        ],
        'alignment' => '',
        'artworkType' => '',
        'assetIdentifier' => [
                'name' => '',
                'type' => ''
        ],
        'audioBitRate' => 0,
        'audioSampleRate' => 0,
        'backupImageExit' => [
                
        ],
        'bitRate' => 0,
        'childAssetType' => '',
        'collapsedSize' => [
                
        ],
        'companionCreativeIds' => [
                
        ],
        'customStartTimeValue' => 0,
        'detectedFeatures' => [
                
        ],
        'displayType' => '',
        'duration' => 0,
        'durationType' => '',
        'expandedDimension' => [
                
        ],
        'fileSize' => '',
        'flashVersion' => 0,
        'frameRate' => '',
        'hideFlashObjects' => null,
        'hideSelectionBoxes' => null,
        'horizontallyLocked' => null,
        'id' => '',
        'idDimensionValue' => [
                'dimensionName' => '',
                'etag' => '',
                'id' => '',
                'kind' => '',
                'matchType' => '',
                'value' => ''
        ],
        'mediaDuration' => '',
        'mimeType' => '',
        'offset' => [
                
        ],
        'orientation' => '',
        'originalBackup' => null,
        'politeLoad' => null,
        'position' => [
                
        ],
        'positionLeftUnit' => '',
        'positionTopUnit' => '',
        'progressiveServingUrl' => '',
        'pushdown' => null,
        'pushdownDuration' => '',
        'role' => '',
        'size' => [
                
        ],
        'sslCompliant' => null,
        'startTimeType' => '',
        'streamingServingUrl' => '',
        'transparency' => null,
        'verticallyLocked' => null,
        'windowMode' => '',
        'zIndex' => 0,
        'zipFilename' => '',
        'zipFilesize' => ''
    ]
  ],
  'creativeFieldAssignments' => [
    [
        'creativeFieldId' => '',
        'creativeFieldValueId' => ''
    ]
  ],
  'customKeyValues' => [
    
  ],
  'dynamicAssetSelection' => null,
  'exitCustomEvents' => [
    [
        
    ]
  ],
  'fsCommand' => [
    'left' => 0,
    'positionOption' => '',
    'top' => 0,
    'windowHeight' => 0,
    'windowWidth' => 0
  ],
  'htmlCode' => '',
  'htmlCodeLocked' => null,
  'id' => '',
  'idDimensionValue' => [
    
  ],
  'kind' => '',
  'lastModifiedInfo' => [
    'time' => ''
  ],
  'latestTraffickedCreativeId' => '',
  'mediaDescription' => '',
  'mediaDuration' => '',
  'name' => '',
  'obaIcon' => [
    'iconClickThroughUrl' => '',
    'iconClickTrackingUrl' => '',
    'iconViewTrackingUrl' => '',
    'program' => '',
    'resourceUrl' => '',
    'size' => [
        
    ],
    'xPosition' => '',
    'yPosition' => ''
  ],
  'overrideCss' => '',
  'progressOffset' => [
    'offsetPercentage' => 0,
    'offsetSeconds' => 0
  ],
  'redirectUrl' => '',
  'renderingId' => '',
  'renderingIdDimensionValue' => [
    
  ],
  'requiredFlashPluginVersion' => '',
  'requiredFlashVersion' => 0,
  'size' => [
    
  ],
  'skipOffset' => [
    
  ],
  'skippable' => null,
  'sslCompliant' => null,
  'sslOverride' => null,
  'studioAdvertiserId' => '',
  'studioCreativeId' => '',
  'studioTraffickedCreativeId' => '',
  'subaccountId' => '',
  'thirdPartyBackupImageImpressionsUrl' => '',
  'thirdPartyRichMediaImpressionsUrl' => '',
  'thirdPartyUrls' => [
    [
        'thirdPartyUrlType' => '',
        'url' => ''
    ]
  ],
  'timerCustomEvents' => [
    [
        
    ]
  ],
  'totalFileSize' => '',
  'type' => '',
  'universalAdId' => [
    'registry' => '',
    'value' => ''
  ],
  'version' => 0
]));
$request->setRequestUrl('{{baseUrl}}/userprofiles/:profileId/creatives');
$request->setRequestMethod('PATCH');
$request->setBody($body);

$request->setQuery(new http\QueryString([
  'id' => ''
]));

$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}}/userprofiles/:profileId/creatives?id=' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "active": false,
  "adParameters": "",
  "adTagKeys": [],
  "additionalSizes": [
    {
      "height": 0,
      "iab": false,
      "id": "",
      "kind": "",
      "width": 0
    }
  ],
  "advertiserId": "",
  "allowScriptAccess": false,
  "archived": false,
  "artworkType": "",
  "authoringSource": "",
  "authoringTool": "",
  "autoAdvanceImages": false,
  "backgroundColor": "",
  "backupImageClickThroughUrl": {
    "computedClickThroughUrl": "",
    "customClickThroughUrl": "",
    "landingPageId": ""
  },
  "backupImageFeatures": [],
  "backupImageReportingLabel": "",
  "backupImageTargetWindow": {
    "customHtml": "",
    "targetWindowOption": ""
  },
  "clickTags": [
    {
      "clickThroughUrl": {},
      "eventName": "",
      "name": ""
    }
  ],
  "commercialId": "",
  "companionCreatives": [],
  "compatibility": [],
  "convertFlashToHtml5": false,
  "counterCustomEvents": [
    {
      "advertiserCustomEventId": "",
      "advertiserCustomEventName": "",
      "advertiserCustomEventType": "",
      "artworkLabel": "",
      "artworkType": "",
      "exitClickThroughUrl": {},
      "id": "",
      "popupWindowProperties": {
        "dimension": {},
        "offset": {
          "left": 0,
          "top": 0
        },
        "positionType": "",
        "showAddressBar": false,
        "showMenuBar": false,
        "showScrollBar": false,
        "showStatusBar": false,
        "showToolBar": false,
        "title": ""
      },
      "targetType": "",
      "videoReportingId": ""
    }
  ],
  "creativeAssetSelection": {
    "defaultAssetId": "",
    "rules": [
      {
        "assetId": "",
        "name": "",
        "targetingTemplateId": ""
      }
    ]
  },
  "creativeAssets": [
    {
      "actionScript3": false,
      "active": false,
      "additionalSizes": [
        {}
      ],
      "alignment": "",
      "artworkType": "",
      "assetIdentifier": {
        "name": "",
        "type": ""
      },
      "audioBitRate": 0,
      "audioSampleRate": 0,
      "backupImageExit": {},
      "bitRate": 0,
      "childAssetType": "",
      "collapsedSize": {},
      "companionCreativeIds": [],
      "customStartTimeValue": 0,
      "detectedFeatures": [],
      "displayType": "",
      "duration": 0,
      "durationType": "",
      "expandedDimension": {},
      "fileSize": "",
      "flashVersion": 0,
      "frameRate": "",
      "hideFlashObjects": false,
      "hideSelectionBoxes": false,
      "horizontallyLocked": false,
      "id": "",
      "idDimensionValue": {
        "dimensionName": "",
        "etag": "",
        "id": "",
        "kind": "",
        "matchType": "",
        "value": ""
      },
      "mediaDuration": "",
      "mimeType": "",
      "offset": {},
      "orientation": "",
      "originalBackup": false,
      "politeLoad": false,
      "position": {},
      "positionLeftUnit": "",
      "positionTopUnit": "",
      "progressiveServingUrl": "",
      "pushdown": false,
      "pushdownDuration": "",
      "role": "",
      "size": {},
      "sslCompliant": false,
      "startTimeType": "",
      "streamingServingUrl": "",
      "transparency": false,
      "verticallyLocked": false,
      "windowMode": "",
      "zIndex": 0,
      "zipFilename": "",
      "zipFilesize": ""
    }
  ],
  "creativeFieldAssignments": [
    {
      "creativeFieldId": "",
      "creativeFieldValueId": ""
    }
  ],
  "customKeyValues": [],
  "dynamicAssetSelection": false,
  "exitCustomEvents": [
    {}
  ],
  "fsCommand": {
    "left": 0,
    "positionOption": "",
    "top": 0,
    "windowHeight": 0,
    "windowWidth": 0
  },
  "htmlCode": "",
  "htmlCodeLocked": false,
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "lastModifiedInfo": {
    "time": ""
  },
  "latestTraffickedCreativeId": "",
  "mediaDescription": "",
  "mediaDuration": "",
  "name": "",
  "obaIcon": {
    "iconClickThroughUrl": "",
    "iconClickTrackingUrl": "",
    "iconViewTrackingUrl": "",
    "program": "",
    "resourceUrl": "",
    "size": {},
    "xPosition": "",
    "yPosition": ""
  },
  "overrideCss": "",
  "progressOffset": {
    "offsetPercentage": 0,
    "offsetSeconds": 0
  },
  "redirectUrl": "",
  "renderingId": "",
  "renderingIdDimensionValue": {},
  "requiredFlashPluginVersion": "",
  "requiredFlashVersion": 0,
  "size": {},
  "skipOffset": {},
  "skippable": false,
  "sslCompliant": false,
  "sslOverride": false,
  "studioAdvertiserId": "",
  "studioCreativeId": "",
  "studioTraffickedCreativeId": "",
  "subaccountId": "",
  "thirdPartyBackupImageImpressionsUrl": "",
  "thirdPartyRichMediaImpressionsUrl": "",
  "thirdPartyUrls": [
    {
      "thirdPartyUrlType": "",
      "url": ""
    }
  ],
  "timerCustomEvents": [
    {}
  ],
  "totalFileSize": "",
  "type": "",
  "universalAdId": {
    "registry": "",
    "value": ""
  },
  "version": 0
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/creatives?id=' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "active": false,
  "adParameters": "",
  "adTagKeys": [],
  "additionalSizes": [
    {
      "height": 0,
      "iab": false,
      "id": "",
      "kind": "",
      "width": 0
    }
  ],
  "advertiserId": "",
  "allowScriptAccess": false,
  "archived": false,
  "artworkType": "",
  "authoringSource": "",
  "authoringTool": "",
  "autoAdvanceImages": false,
  "backgroundColor": "",
  "backupImageClickThroughUrl": {
    "computedClickThroughUrl": "",
    "customClickThroughUrl": "",
    "landingPageId": ""
  },
  "backupImageFeatures": [],
  "backupImageReportingLabel": "",
  "backupImageTargetWindow": {
    "customHtml": "",
    "targetWindowOption": ""
  },
  "clickTags": [
    {
      "clickThroughUrl": {},
      "eventName": "",
      "name": ""
    }
  ],
  "commercialId": "",
  "companionCreatives": [],
  "compatibility": [],
  "convertFlashToHtml5": false,
  "counterCustomEvents": [
    {
      "advertiserCustomEventId": "",
      "advertiserCustomEventName": "",
      "advertiserCustomEventType": "",
      "artworkLabel": "",
      "artworkType": "",
      "exitClickThroughUrl": {},
      "id": "",
      "popupWindowProperties": {
        "dimension": {},
        "offset": {
          "left": 0,
          "top": 0
        },
        "positionType": "",
        "showAddressBar": false,
        "showMenuBar": false,
        "showScrollBar": false,
        "showStatusBar": false,
        "showToolBar": false,
        "title": ""
      },
      "targetType": "",
      "videoReportingId": ""
    }
  ],
  "creativeAssetSelection": {
    "defaultAssetId": "",
    "rules": [
      {
        "assetId": "",
        "name": "",
        "targetingTemplateId": ""
      }
    ]
  },
  "creativeAssets": [
    {
      "actionScript3": false,
      "active": false,
      "additionalSizes": [
        {}
      ],
      "alignment": "",
      "artworkType": "",
      "assetIdentifier": {
        "name": "",
        "type": ""
      },
      "audioBitRate": 0,
      "audioSampleRate": 0,
      "backupImageExit": {},
      "bitRate": 0,
      "childAssetType": "",
      "collapsedSize": {},
      "companionCreativeIds": [],
      "customStartTimeValue": 0,
      "detectedFeatures": [],
      "displayType": "",
      "duration": 0,
      "durationType": "",
      "expandedDimension": {},
      "fileSize": "",
      "flashVersion": 0,
      "frameRate": "",
      "hideFlashObjects": false,
      "hideSelectionBoxes": false,
      "horizontallyLocked": false,
      "id": "",
      "idDimensionValue": {
        "dimensionName": "",
        "etag": "",
        "id": "",
        "kind": "",
        "matchType": "",
        "value": ""
      },
      "mediaDuration": "",
      "mimeType": "",
      "offset": {},
      "orientation": "",
      "originalBackup": false,
      "politeLoad": false,
      "position": {},
      "positionLeftUnit": "",
      "positionTopUnit": "",
      "progressiveServingUrl": "",
      "pushdown": false,
      "pushdownDuration": "",
      "role": "",
      "size": {},
      "sslCompliant": false,
      "startTimeType": "",
      "streamingServingUrl": "",
      "transparency": false,
      "verticallyLocked": false,
      "windowMode": "",
      "zIndex": 0,
      "zipFilename": "",
      "zipFilesize": ""
    }
  ],
  "creativeFieldAssignments": [
    {
      "creativeFieldId": "",
      "creativeFieldValueId": ""
    }
  ],
  "customKeyValues": [],
  "dynamicAssetSelection": false,
  "exitCustomEvents": [
    {}
  ],
  "fsCommand": {
    "left": 0,
    "positionOption": "",
    "top": 0,
    "windowHeight": 0,
    "windowWidth": 0
  },
  "htmlCode": "",
  "htmlCodeLocked": false,
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "lastModifiedInfo": {
    "time": ""
  },
  "latestTraffickedCreativeId": "",
  "mediaDescription": "",
  "mediaDuration": "",
  "name": "",
  "obaIcon": {
    "iconClickThroughUrl": "",
    "iconClickTrackingUrl": "",
    "iconViewTrackingUrl": "",
    "program": "",
    "resourceUrl": "",
    "size": {},
    "xPosition": "",
    "yPosition": ""
  },
  "overrideCss": "",
  "progressOffset": {
    "offsetPercentage": 0,
    "offsetSeconds": 0
  },
  "redirectUrl": "",
  "renderingId": "",
  "renderingIdDimensionValue": {},
  "requiredFlashPluginVersion": "",
  "requiredFlashVersion": 0,
  "size": {},
  "skipOffset": {},
  "skippable": false,
  "sslCompliant": false,
  "sslOverride": false,
  "studioAdvertiserId": "",
  "studioCreativeId": "",
  "studioTraffickedCreativeId": "",
  "subaccountId": "",
  "thirdPartyBackupImageImpressionsUrl": "",
  "thirdPartyRichMediaImpressionsUrl": "",
  "thirdPartyUrls": [
    {
      "thirdPartyUrlType": "",
      "url": ""
    }
  ],
  "timerCustomEvents": [
    {}
  ],
  "totalFileSize": "",
  "type": "",
  "universalAdId": {
    "registry": "",
    "value": ""
  },
  "version": 0
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"adParameters\": \"\",\n  \"adTagKeys\": [],\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"allowScriptAccess\": false,\n  \"archived\": false,\n  \"artworkType\": \"\",\n  \"authoringSource\": \"\",\n  \"authoringTool\": \"\",\n  \"autoAdvanceImages\": false,\n  \"backgroundColor\": \"\",\n  \"backupImageClickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"landingPageId\": \"\"\n  },\n  \"backupImageFeatures\": [],\n  \"backupImageReportingLabel\": \"\",\n  \"backupImageTargetWindow\": {\n    \"customHtml\": \"\",\n    \"targetWindowOption\": \"\"\n  },\n  \"clickTags\": [\n    {\n      \"clickThroughUrl\": {},\n      \"eventName\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"commercialId\": \"\",\n  \"companionCreatives\": [],\n  \"compatibility\": [],\n  \"convertFlashToHtml5\": false,\n  \"counterCustomEvents\": [\n    {\n      \"advertiserCustomEventId\": \"\",\n      \"advertiserCustomEventName\": \"\",\n      \"advertiserCustomEventType\": \"\",\n      \"artworkLabel\": \"\",\n      \"artworkType\": \"\",\n      \"exitClickThroughUrl\": {},\n      \"id\": \"\",\n      \"popupWindowProperties\": {\n        \"dimension\": {},\n        \"offset\": {\n          \"left\": 0,\n          \"top\": 0\n        },\n        \"positionType\": \"\",\n        \"showAddressBar\": false,\n        \"showMenuBar\": false,\n        \"showScrollBar\": false,\n        \"showStatusBar\": false,\n        \"showToolBar\": false,\n        \"title\": \"\"\n      },\n      \"targetType\": \"\",\n      \"videoReportingId\": \"\"\n    }\n  ],\n  \"creativeAssetSelection\": {\n    \"defaultAssetId\": \"\",\n    \"rules\": [\n      {\n        \"assetId\": \"\",\n        \"name\": \"\",\n        \"targetingTemplateId\": \"\"\n      }\n    ]\n  },\n  \"creativeAssets\": [\n    {\n      \"actionScript3\": false,\n      \"active\": false,\n      \"additionalSizes\": [\n        {}\n      ],\n      \"alignment\": \"\",\n      \"artworkType\": \"\",\n      \"assetIdentifier\": {\n        \"name\": \"\",\n        \"type\": \"\"\n      },\n      \"audioBitRate\": 0,\n      \"audioSampleRate\": 0,\n      \"backupImageExit\": {},\n      \"bitRate\": 0,\n      \"childAssetType\": \"\",\n      \"collapsedSize\": {},\n      \"companionCreativeIds\": [],\n      \"customStartTimeValue\": 0,\n      \"detectedFeatures\": [],\n      \"displayType\": \"\",\n      \"duration\": 0,\n      \"durationType\": \"\",\n      \"expandedDimension\": {},\n      \"fileSize\": \"\",\n      \"flashVersion\": 0,\n      \"frameRate\": \"\",\n      \"hideFlashObjects\": false,\n      \"hideSelectionBoxes\": false,\n      \"horizontallyLocked\": false,\n      \"id\": \"\",\n      \"idDimensionValue\": {\n        \"dimensionName\": \"\",\n        \"etag\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"matchType\": \"\",\n        \"value\": \"\"\n      },\n      \"mediaDuration\": \"\",\n      \"mimeType\": \"\",\n      \"offset\": {},\n      \"orientation\": \"\",\n      \"originalBackup\": false,\n      \"politeLoad\": false,\n      \"position\": {},\n      \"positionLeftUnit\": \"\",\n      \"positionTopUnit\": \"\",\n      \"progressiveServingUrl\": \"\",\n      \"pushdown\": false,\n      \"pushdownDuration\": \"\",\n      \"role\": \"\",\n      \"size\": {},\n      \"sslCompliant\": false,\n      \"startTimeType\": \"\",\n      \"streamingServingUrl\": \"\",\n      \"transparency\": false,\n      \"verticallyLocked\": false,\n      \"windowMode\": \"\",\n      \"zIndex\": 0,\n      \"zipFilename\": \"\",\n      \"zipFilesize\": \"\"\n    }\n  ],\n  \"creativeFieldAssignments\": [\n    {\n      \"creativeFieldId\": \"\",\n      \"creativeFieldValueId\": \"\"\n    }\n  ],\n  \"customKeyValues\": [],\n  \"dynamicAssetSelection\": false,\n  \"exitCustomEvents\": [\n    {}\n  ],\n  \"fsCommand\": {\n    \"left\": 0,\n    \"positionOption\": \"\",\n    \"top\": 0,\n    \"windowHeight\": 0,\n    \"windowWidth\": 0\n  },\n  \"htmlCode\": \"\",\n  \"htmlCodeLocked\": false,\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {\n    \"time\": \"\"\n  },\n  \"latestTraffickedCreativeId\": \"\",\n  \"mediaDescription\": \"\",\n  \"mediaDuration\": \"\",\n  \"name\": \"\",\n  \"obaIcon\": {\n    \"iconClickThroughUrl\": \"\",\n    \"iconClickTrackingUrl\": \"\",\n    \"iconViewTrackingUrl\": \"\",\n    \"program\": \"\",\n    \"resourceUrl\": \"\",\n    \"size\": {},\n    \"xPosition\": \"\",\n    \"yPosition\": \"\"\n  },\n  \"overrideCss\": \"\",\n  \"progressOffset\": {\n    \"offsetPercentage\": 0,\n    \"offsetSeconds\": 0\n  },\n  \"redirectUrl\": \"\",\n  \"renderingId\": \"\",\n  \"renderingIdDimensionValue\": {},\n  \"requiredFlashPluginVersion\": \"\",\n  \"requiredFlashVersion\": 0,\n  \"size\": {},\n  \"skipOffset\": {},\n  \"skippable\": false,\n  \"sslCompliant\": false,\n  \"sslOverride\": false,\n  \"studioAdvertiserId\": \"\",\n  \"studioCreativeId\": \"\",\n  \"studioTraffickedCreativeId\": \"\",\n  \"subaccountId\": \"\",\n  \"thirdPartyBackupImageImpressionsUrl\": \"\",\n  \"thirdPartyRichMediaImpressionsUrl\": \"\",\n  \"thirdPartyUrls\": [\n    {\n      \"thirdPartyUrlType\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"timerCustomEvents\": [\n    {}\n  ],\n  \"totalFileSize\": \"\",\n  \"type\": \"\",\n  \"universalAdId\": {\n    \"registry\": \"\",\n    \"value\": \"\"\n  },\n  \"version\": 0\n}"

headers = { 'content-type': "application/json" }

conn.request("PATCH", "/baseUrl/userprofiles/:profileId/creatives?id=", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/creatives"

querystring = {"id":""}

payload = {
    "accountId": "",
    "active": False,
    "adParameters": "",
    "adTagKeys": [],
    "additionalSizes": [
        {
            "height": 0,
            "iab": False,
            "id": "",
            "kind": "",
            "width": 0
        }
    ],
    "advertiserId": "",
    "allowScriptAccess": False,
    "archived": False,
    "artworkType": "",
    "authoringSource": "",
    "authoringTool": "",
    "autoAdvanceImages": False,
    "backgroundColor": "",
    "backupImageClickThroughUrl": {
        "computedClickThroughUrl": "",
        "customClickThroughUrl": "",
        "landingPageId": ""
    },
    "backupImageFeatures": [],
    "backupImageReportingLabel": "",
    "backupImageTargetWindow": {
        "customHtml": "",
        "targetWindowOption": ""
    },
    "clickTags": [
        {
            "clickThroughUrl": {},
            "eventName": "",
            "name": ""
        }
    ],
    "commercialId": "",
    "companionCreatives": [],
    "compatibility": [],
    "convertFlashToHtml5": False,
    "counterCustomEvents": [
        {
            "advertiserCustomEventId": "",
            "advertiserCustomEventName": "",
            "advertiserCustomEventType": "",
            "artworkLabel": "",
            "artworkType": "",
            "exitClickThroughUrl": {},
            "id": "",
            "popupWindowProperties": {
                "dimension": {},
                "offset": {
                    "left": 0,
                    "top": 0
                },
                "positionType": "",
                "showAddressBar": False,
                "showMenuBar": False,
                "showScrollBar": False,
                "showStatusBar": False,
                "showToolBar": False,
                "title": ""
            },
            "targetType": "",
            "videoReportingId": ""
        }
    ],
    "creativeAssetSelection": {
        "defaultAssetId": "",
        "rules": [
            {
                "assetId": "",
                "name": "",
                "targetingTemplateId": ""
            }
        ]
    },
    "creativeAssets": [
        {
            "actionScript3": False,
            "active": False,
            "additionalSizes": [{}],
            "alignment": "",
            "artworkType": "",
            "assetIdentifier": {
                "name": "",
                "type": ""
            },
            "audioBitRate": 0,
            "audioSampleRate": 0,
            "backupImageExit": {},
            "bitRate": 0,
            "childAssetType": "",
            "collapsedSize": {},
            "companionCreativeIds": [],
            "customStartTimeValue": 0,
            "detectedFeatures": [],
            "displayType": "",
            "duration": 0,
            "durationType": "",
            "expandedDimension": {},
            "fileSize": "",
            "flashVersion": 0,
            "frameRate": "",
            "hideFlashObjects": False,
            "hideSelectionBoxes": False,
            "horizontallyLocked": False,
            "id": "",
            "idDimensionValue": {
                "dimensionName": "",
                "etag": "",
                "id": "",
                "kind": "",
                "matchType": "",
                "value": ""
            },
            "mediaDuration": "",
            "mimeType": "",
            "offset": {},
            "orientation": "",
            "originalBackup": False,
            "politeLoad": False,
            "position": {},
            "positionLeftUnit": "",
            "positionTopUnit": "",
            "progressiveServingUrl": "",
            "pushdown": False,
            "pushdownDuration": "",
            "role": "",
            "size": {},
            "sslCompliant": False,
            "startTimeType": "",
            "streamingServingUrl": "",
            "transparency": False,
            "verticallyLocked": False,
            "windowMode": "",
            "zIndex": 0,
            "zipFilename": "",
            "zipFilesize": ""
        }
    ],
    "creativeFieldAssignments": [
        {
            "creativeFieldId": "",
            "creativeFieldValueId": ""
        }
    ],
    "customKeyValues": [],
    "dynamicAssetSelection": False,
    "exitCustomEvents": [{}],
    "fsCommand": {
        "left": 0,
        "positionOption": "",
        "top": 0,
        "windowHeight": 0,
        "windowWidth": 0
    },
    "htmlCode": "",
    "htmlCodeLocked": False,
    "id": "",
    "idDimensionValue": {},
    "kind": "",
    "lastModifiedInfo": { "time": "" },
    "latestTraffickedCreativeId": "",
    "mediaDescription": "",
    "mediaDuration": "",
    "name": "",
    "obaIcon": {
        "iconClickThroughUrl": "",
        "iconClickTrackingUrl": "",
        "iconViewTrackingUrl": "",
        "program": "",
        "resourceUrl": "",
        "size": {},
        "xPosition": "",
        "yPosition": ""
    },
    "overrideCss": "",
    "progressOffset": {
        "offsetPercentage": 0,
        "offsetSeconds": 0
    },
    "redirectUrl": "",
    "renderingId": "",
    "renderingIdDimensionValue": {},
    "requiredFlashPluginVersion": "",
    "requiredFlashVersion": 0,
    "size": {},
    "skipOffset": {},
    "skippable": False,
    "sslCompliant": False,
    "sslOverride": False,
    "studioAdvertiserId": "",
    "studioCreativeId": "",
    "studioTraffickedCreativeId": "",
    "subaccountId": "",
    "thirdPartyBackupImageImpressionsUrl": "",
    "thirdPartyRichMediaImpressionsUrl": "",
    "thirdPartyUrls": [
        {
            "thirdPartyUrlType": "",
            "url": ""
        }
    ],
    "timerCustomEvents": [{}],
    "totalFileSize": "",
    "type": "",
    "universalAdId": {
        "registry": "",
        "value": ""
    },
    "version": 0
}
headers = {"content-type": "application/json"}

response = requests.patch(url, json=payload, headers=headers, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/creatives"

queryString <- list(id = "")

payload <- "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"adParameters\": \"\",\n  \"adTagKeys\": [],\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"allowScriptAccess\": false,\n  \"archived\": false,\n  \"artworkType\": \"\",\n  \"authoringSource\": \"\",\n  \"authoringTool\": \"\",\n  \"autoAdvanceImages\": false,\n  \"backgroundColor\": \"\",\n  \"backupImageClickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"landingPageId\": \"\"\n  },\n  \"backupImageFeatures\": [],\n  \"backupImageReportingLabel\": \"\",\n  \"backupImageTargetWindow\": {\n    \"customHtml\": \"\",\n    \"targetWindowOption\": \"\"\n  },\n  \"clickTags\": [\n    {\n      \"clickThroughUrl\": {},\n      \"eventName\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"commercialId\": \"\",\n  \"companionCreatives\": [],\n  \"compatibility\": [],\n  \"convertFlashToHtml5\": false,\n  \"counterCustomEvents\": [\n    {\n      \"advertiserCustomEventId\": \"\",\n      \"advertiserCustomEventName\": \"\",\n      \"advertiserCustomEventType\": \"\",\n      \"artworkLabel\": \"\",\n      \"artworkType\": \"\",\n      \"exitClickThroughUrl\": {},\n      \"id\": \"\",\n      \"popupWindowProperties\": {\n        \"dimension\": {},\n        \"offset\": {\n          \"left\": 0,\n          \"top\": 0\n        },\n        \"positionType\": \"\",\n        \"showAddressBar\": false,\n        \"showMenuBar\": false,\n        \"showScrollBar\": false,\n        \"showStatusBar\": false,\n        \"showToolBar\": false,\n        \"title\": \"\"\n      },\n      \"targetType\": \"\",\n      \"videoReportingId\": \"\"\n    }\n  ],\n  \"creativeAssetSelection\": {\n    \"defaultAssetId\": \"\",\n    \"rules\": [\n      {\n        \"assetId\": \"\",\n        \"name\": \"\",\n        \"targetingTemplateId\": \"\"\n      }\n    ]\n  },\n  \"creativeAssets\": [\n    {\n      \"actionScript3\": false,\n      \"active\": false,\n      \"additionalSizes\": [\n        {}\n      ],\n      \"alignment\": \"\",\n      \"artworkType\": \"\",\n      \"assetIdentifier\": {\n        \"name\": \"\",\n        \"type\": \"\"\n      },\n      \"audioBitRate\": 0,\n      \"audioSampleRate\": 0,\n      \"backupImageExit\": {},\n      \"bitRate\": 0,\n      \"childAssetType\": \"\",\n      \"collapsedSize\": {},\n      \"companionCreativeIds\": [],\n      \"customStartTimeValue\": 0,\n      \"detectedFeatures\": [],\n      \"displayType\": \"\",\n      \"duration\": 0,\n      \"durationType\": \"\",\n      \"expandedDimension\": {},\n      \"fileSize\": \"\",\n      \"flashVersion\": 0,\n      \"frameRate\": \"\",\n      \"hideFlashObjects\": false,\n      \"hideSelectionBoxes\": false,\n      \"horizontallyLocked\": false,\n      \"id\": \"\",\n      \"idDimensionValue\": {\n        \"dimensionName\": \"\",\n        \"etag\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"matchType\": \"\",\n        \"value\": \"\"\n      },\n      \"mediaDuration\": \"\",\n      \"mimeType\": \"\",\n      \"offset\": {},\n      \"orientation\": \"\",\n      \"originalBackup\": false,\n      \"politeLoad\": false,\n      \"position\": {},\n      \"positionLeftUnit\": \"\",\n      \"positionTopUnit\": \"\",\n      \"progressiveServingUrl\": \"\",\n      \"pushdown\": false,\n      \"pushdownDuration\": \"\",\n      \"role\": \"\",\n      \"size\": {},\n      \"sslCompliant\": false,\n      \"startTimeType\": \"\",\n      \"streamingServingUrl\": \"\",\n      \"transparency\": false,\n      \"verticallyLocked\": false,\n      \"windowMode\": \"\",\n      \"zIndex\": 0,\n      \"zipFilename\": \"\",\n      \"zipFilesize\": \"\"\n    }\n  ],\n  \"creativeFieldAssignments\": [\n    {\n      \"creativeFieldId\": \"\",\n      \"creativeFieldValueId\": \"\"\n    }\n  ],\n  \"customKeyValues\": [],\n  \"dynamicAssetSelection\": false,\n  \"exitCustomEvents\": [\n    {}\n  ],\n  \"fsCommand\": {\n    \"left\": 0,\n    \"positionOption\": \"\",\n    \"top\": 0,\n    \"windowHeight\": 0,\n    \"windowWidth\": 0\n  },\n  \"htmlCode\": \"\",\n  \"htmlCodeLocked\": false,\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {\n    \"time\": \"\"\n  },\n  \"latestTraffickedCreativeId\": \"\",\n  \"mediaDescription\": \"\",\n  \"mediaDuration\": \"\",\n  \"name\": \"\",\n  \"obaIcon\": {\n    \"iconClickThroughUrl\": \"\",\n    \"iconClickTrackingUrl\": \"\",\n    \"iconViewTrackingUrl\": \"\",\n    \"program\": \"\",\n    \"resourceUrl\": \"\",\n    \"size\": {},\n    \"xPosition\": \"\",\n    \"yPosition\": \"\"\n  },\n  \"overrideCss\": \"\",\n  \"progressOffset\": {\n    \"offsetPercentage\": 0,\n    \"offsetSeconds\": 0\n  },\n  \"redirectUrl\": \"\",\n  \"renderingId\": \"\",\n  \"renderingIdDimensionValue\": {},\n  \"requiredFlashPluginVersion\": \"\",\n  \"requiredFlashVersion\": 0,\n  \"size\": {},\n  \"skipOffset\": {},\n  \"skippable\": false,\n  \"sslCompliant\": false,\n  \"sslOverride\": false,\n  \"studioAdvertiserId\": \"\",\n  \"studioCreativeId\": \"\",\n  \"studioTraffickedCreativeId\": \"\",\n  \"subaccountId\": \"\",\n  \"thirdPartyBackupImageImpressionsUrl\": \"\",\n  \"thirdPartyRichMediaImpressionsUrl\": \"\",\n  \"thirdPartyUrls\": [\n    {\n      \"thirdPartyUrlType\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"timerCustomEvents\": [\n    {}\n  ],\n  \"totalFileSize\": \"\",\n  \"type\": \"\",\n  \"universalAdId\": {\n    \"registry\": \"\",\n    \"value\": \"\"\n  },\n  \"version\": 0\n}"

encode <- "json"

response <- VERB("PATCH", url, body = payload, query = queryString, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/creatives?id=")

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  \"accountId\": \"\",\n  \"active\": false,\n  \"adParameters\": \"\",\n  \"adTagKeys\": [],\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"allowScriptAccess\": false,\n  \"archived\": false,\n  \"artworkType\": \"\",\n  \"authoringSource\": \"\",\n  \"authoringTool\": \"\",\n  \"autoAdvanceImages\": false,\n  \"backgroundColor\": \"\",\n  \"backupImageClickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"landingPageId\": \"\"\n  },\n  \"backupImageFeatures\": [],\n  \"backupImageReportingLabel\": \"\",\n  \"backupImageTargetWindow\": {\n    \"customHtml\": \"\",\n    \"targetWindowOption\": \"\"\n  },\n  \"clickTags\": [\n    {\n      \"clickThroughUrl\": {},\n      \"eventName\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"commercialId\": \"\",\n  \"companionCreatives\": [],\n  \"compatibility\": [],\n  \"convertFlashToHtml5\": false,\n  \"counterCustomEvents\": [\n    {\n      \"advertiserCustomEventId\": \"\",\n      \"advertiserCustomEventName\": \"\",\n      \"advertiserCustomEventType\": \"\",\n      \"artworkLabel\": \"\",\n      \"artworkType\": \"\",\n      \"exitClickThroughUrl\": {},\n      \"id\": \"\",\n      \"popupWindowProperties\": {\n        \"dimension\": {},\n        \"offset\": {\n          \"left\": 0,\n          \"top\": 0\n        },\n        \"positionType\": \"\",\n        \"showAddressBar\": false,\n        \"showMenuBar\": false,\n        \"showScrollBar\": false,\n        \"showStatusBar\": false,\n        \"showToolBar\": false,\n        \"title\": \"\"\n      },\n      \"targetType\": \"\",\n      \"videoReportingId\": \"\"\n    }\n  ],\n  \"creativeAssetSelection\": {\n    \"defaultAssetId\": \"\",\n    \"rules\": [\n      {\n        \"assetId\": \"\",\n        \"name\": \"\",\n        \"targetingTemplateId\": \"\"\n      }\n    ]\n  },\n  \"creativeAssets\": [\n    {\n      \"actionScript3\": false,\n      \"active\": false,\n      \"additionalSizes\": [\n        {}\n      ],\n      \"alignment\": \"\",\n      \"artworkType\": \"\",\n      \"assetIdentifier\": {\n        \"name\": \"\",\n        \"type\": \"\"\n      },\n      \"audioBitRate\": 0,\n      \"audioSampleRate\": 0,\n      \"backupImageExit\": {},\n      \"bitRate\": 0,\n      \"childAssetType\": \"\",\n      \"collapsedSize\": {},\n      \"companionCreativeIds\": [],\n      \"customStartTimeValue\": 0,\n      \"detectedFeatures\": [],\n      \"displayType\": \"\",\n      \"duration\": 0,\n      \"durationType\": \"\",\n      \"expandedDimension\": {},\n      \"fileSize\": \"\",\n      \"flashVersion\": 0,\n      \"frameRate\": \"\",\n      \"hideFlashObjects\": false,\n      \"hideSelectionBoxes\": false,\n      \"horizontallyLocked\": false,\n      \"id\": \"\",\n      \"idDimensionValue\": {\n        \"dimensionName\": \"\",\n        \"etag\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"matchType\": \"\",\n        \"value\": \"\"\n      },\n      \"mediaDuration\": \"\",\n      \"mimeType\": \"\",\n      \"offset\": {},\n      \"orientation\": \"\",\n      \"originalBackup\": false,\n      \"politeLoad\": false,\n      \"position\": {},\n      \"positionLeftUnit\": \"\",\n      \"positionTopUnit\": \"\",\n      \"progressiveServingUrl\": \"\",\n      \"pushdown\": false,\n      \"pushdownDuration\": \"\",\n      \"role\": \"\",\n      \"size\": {},\n      \"sslCompliant\": false,\n      \"startTimeType\": \"\",\n      \"streamingServingUrl\": \"\",\n      \"transparency\": false,\n      \"verticallyLocked\": false,\n      \"windowMode\": \"\",\n      \"zIndex\": 0,\n      \"zipFilename\": \"\",\n      \"zipFilesize\": \"\"\n    }\n  ],\n  \"creativeFieldAssignments\": [\n    {\n      \"creativeFieldId\": \"\",\n      \"creativeFieldValueId\": \"\"\n    }\n  ],\n  \"customKeyValues\": [],\n  \"dynamicAssetSelection\": false,\n  \"exitCustomEvents\": [\n    {}\n  ],\n  \"fsCommand\": {\n    \"left\": 0,\n    \"positionOption\": \"\",\n    \"top\": 0,\n    \"windowHeight\": 0,\n    \"windowWidth\": 0\n  },\n  \"htmlCode\": \"\",\n  \"htmlCodeLocked\": false,\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {\n    \"time\": \"\"\n  },\n  \"latestTraffickedCreativeId\": \"\",\n  \"mediaDescription\": \"\",\n  \"mediaDuration\": \"\",\n  \"name\": \"\",\n  \"obaIcon\": {\n    \"iconClickThroughUrl\": \"\",\n    \"iconClickTrackingUrl\": \"\",\n    \"iconViewTrackingUrl\": \"\",\n    \"program\": \"\",\n    \"resourceUrl\": \"\",\n    \"size\": {},\n    \"xPosition\": \"\",\n    \"yPosition\": \"\"\n  },\n  \"overrideCss\": \"\",\n  \"progressOffset\": {\n    \"offsetPercentage\": 0,\n    \"offsetSeconds\": 0\n  },\n  \"redirectUrl\": \"\",\n  \"renderingId\": \"\",\n  \"renderingIdDimensionValue\": {},\n  \"requiredFlashPluginVersion\": \"\",\n  \"requiredFlashVersion\": 0,\n  \"size\": {},\n  \"skipOffset\": {},\n  \"skippable\": false,\n  \"sslCompliant\": false,\n  \"sslOverride\": false,\n  \"studioAdvertiserId\": \"\",\n  \"studioCreativeId\": \"\",\n  \"studioTraffickedCreativeId\": \"\",\n  \"subaccountId\": \"\",\n  \"thirdPartyBackupImageImpressionsUrl\": \"\",\n  \"thirdPartyRichMediaImpressionsUrl\": \"\",\n  \"thirdPartyUrls\": [\n    {\n      \"thirdPartyUrlType\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"timerCustomEvents\": [\n    {}\n  ],\n  \"totalFileSize\": \"\",\n  \"type\": \"\",\n  \"universalAdId\": {\n    \"registry\": \"\",\n    \"value\": \"\"\n  },\n  \"version\": 0\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/userprofiles/:profileId/creatives') do |req|
  req.params['id'] = ''
  req.body = "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"adParameters\": \"\",\n  \"adTagKeys\": [],\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"allowScriptAccess\": false,\n  \"archived\": false,\n  \"artworkType\": \"\",\n  \"authoringSource\": \"\",\n  \"authoringTool\": \"\",\n  \"autoAdvanceImages\": false,\n  \"backgroundColor\": \"\",\n  \"backupImageClickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"landingPageId\": \"\"\n  },\n  \"backupImageFeatures\": [],\n  \"backupImageReportingLabel\": \"\",\n  \"backupImageTargetWindow\": {\n    \"customHtml\": \"\",\n    \"targetWindowOption\": \"\"\n  },\n  \"clickTags\": [\n    {\n      \"clickThroughUrl\": {},\n      \"eventName\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"commercialId\": \"\",\n  \"companionCreatives\": [],\n  \"compatibility\": [],\n  \"convertFlashToHtml5\": false,\n  \"counterCustomEvents\": [\n    {\n      \"advertiserCustomEventId\": \"\",\n      \"advertiserCustomEventName\": \"\",\n      \"advertiserCustomEventType\": \"\",\n      \"artworkLabel\": \"\",\n      \"artworkType\": \"\",\n      \"exitClickThroughUrl\": {},\n      \"id\": \"\",\n      \"popupWindowProperties\": {\n        \"dimension\": {},\n        \"offset\": {\n          \"left\": 0,\n          \"top\": 0\n        },\n        \"positionType\": \"\",\n        \"showAddressBar\": false,\n        \"showMenuBar\": false,\n        \"showScrollBar\": false,\n        \"showStatusBar\": false,\n        \"showToolBar\": false,\n        \"title\": \"\"\n      },\n      \"targetType\": \"\",\n      \"videoReportingId\": \"\"\n    }\n  ],\n  \"creativeAssetSelection\": {\n    \"defaultAssetId\": \"\",\n    \"rules\": [\n      {\n        \"assetId\": \"\",\n        \"name\": \"\",\n        \"targetingTemplateId\": \"\"\n      }\n    ]\n  },\n  \"creativeAssets\": [\n    {\n      \"actionScript3\": false,\n      \"active\": false,\n      \"additionalSizes\": [\n        {}\n      ],\n      \"alignment\": \"\",\n      \"artworkType\": \"\",\n      \"assetIdentifier\": {\n        \"name\": \"\",\n        \"type\": \"\"\n      },\n      \"audioBitRate\": 0,\n      \"audioSampleRate\": 0,\n      \"backupImageExit\": {},\n      \"bitRate\": 0,\n      \"childAssetType\": \"\",\n      \"collapsedSize\": {},\n      \"companionCreativeIds\": [],\n      \"customStartTimeValue\": 0,\n      \"detectedFeatures\": [],\n      \"displayType\": \"\",\n      \"duration\": 0,\n      \"durationType\": \"\",\n      \"expandedDimension\": {},\n      \"fileSize\": \"\",\n      \"flashVersion\": 0,\n      \"frameRate\": \"\",\n      \"hideFlashObjects\": false,\n      \"hideSelectionBoxes\": false,\n      \"horizontallyLocked\": false,\n      \"id\": \"\",\n      \"idDimensionValue\": {\n        \"dimensionName\": \"\",\n        \"etag\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"matchType\": \"\",\n        \"value\": \"\"\n      },\n      \"mediaDuration\": \"\",\n      \"mimeType\": \"\",\n      \"offset\": {},\n      \"orientation\": \"\",\n      \"originalBackup\": false,\n      \"politeLoad\": false,\n      \"position\": {},\n      \"positionLeftUnit\": \"\",\n      \"positionTopUnit\": \"\",\n      \"progressiveServingUrl\": \"\",\n      \"pushdown\": false,\n      \"pushdownDuration\": \"\",\n      \"role\": \"\",\n      \"size\": {},\n      \"sslCompliant\": false,\n      \"startTimeType\": \"\",\n      \"streamingServingUrl\": \"\",\n      \"transparency\": false,\n      \"verticallyLocked\": false,\n      \"windowMode\": \"\",\n      \"zIndex\": 0,\n      \"zipFilename\": \"\",\n      \"zipFilesize\": \"\"\n    }\n  ],\n  \"creativeFieldAssignments\": [\n    {\n      \"creativeFieldId\": \"\",\n      \"creativeFieldValueId\": \"\"\n    }\n  ],\n  \"customKeyValues\": [],\n  \"dynamicAssetSelection\": false,\n  \"exitCustomEvents\": [\n    {}\n  ],\n  \"fsCommand\": {\n    \"left\": 0,\n    \"positionOption\": \"\",\n    \"top\": 0,\n    \"windowHeight\": 0,\n    \"windowWidth\": 0\n  },\n  \"htmlCode\": \"\",\n  \"htmlCodeLocked\": false,\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {\n    \"time\": \"\"\n  },\n  \"latestTraffickedCreativeId\": \"\",\n  \"mediaDescription\": \"\",\n  \"mediaDuration\": \"\",\n  \"name\": \"\",\n  \"obaIcon\": {\n    \"iconClickThroughUrl\": \"\",\n    \"iconClickTrackingUrl\": \"\",\n    \"iconViewTrackingUrl\": \"\",\n    \"program\": \"\",\n    \"resourceUrl\": \"\",\n    \"size\": {},\n    \"xPosition\": \"\",\n    \"yPosition\": \"\"\n  },\n  \"overrideCss\": \"\",\n  \"progressOffset\": {\n    \"offsetPercentage\": 0,\n    \"offsetSeconds\": 0\n  },\n  \"redirectUrl\": \"\",\n  \"renderingId\": \"\",\n  \"renderingIdDimensionValue\": {},\n  \"requiredFlashPluginVersion\": \"\",\n  \"requiredFlashVersion\": 0,\n  \"size\": {},\n  \"skipOffset\": {},\n  \"skippable\": false,\n  \"sslCompliant\": false,\n  \"sslOverride\": false,\n  \"studioAdvertiserId\": \"\",\n  \"studioCreativeId\": \"\",\n  \"studioTraffickedCreativeId\": \"\",\n  \"subaccountId\": \"\",\n  \"thirdPartyBackupImageImpressionsUrl\": \"\",\n  \"thirdPartyRichMediaImpressionsUrl\": \"\",\n  \"thirdPartyUrls\": [\n    {\n      \"thirdPartyUrlType\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"timerCustomEvents\": [\n    {}\n  ],\n  \"totalFileSize\": \"\",\n  \"type\": \"\",\n  \"universalAdId\": {\n    \"registry\": \"\",\n    \"value\": \"\"\n  },\n  \"version\": 0\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}}/userprofiles/:profileId/creatives";

    let querystring = [
        ("id", ""),
    ];

    let payload = json!({
        "accountId": "",
        "active": false,
        "adParameters": "",
        "adTagKeys": (),
        "additionalSizes": (
            json!({
                "height": 0,
                "iab": false,
                "id": "",
                "kind": "",
                "width": 0
            })
        ),
        "advertiserId": "",
        "allowScriptAccess": false,
        "archived": false,
        "artworkType": "",
        "authoringSource": "",
        "authoringTool": "",
        "autoAdvanceImages": false,
        "backgroundColor": "",
        "backupImageClickThroughUrl": json!({
            "computedClickThroughUrl": "",
            "customClickThroughUrl": "",
            "landingPageId": ""
        }),
        "backupImageFeatures": (),
        "backupImageReportingLabel": "",
        "backupImageTargetWindow": json!({
            "customHtml": "",
            "targetWindowOption": ""
        }),
        "clickTags": (
            json!({
                "clickThroughUrl": json!({}),
                "eventName": "",
                "name": ""
            })
        ),
        "commercialId": "",
        "companionCreatives": (),
        "compatibility": (),
        "convertFlashToHtml5": false,
        "counterCustomEvents": (
            json!({
                "advertiserCustomEventId": "",
                "advertiserCustomEventName": "",
                "advertiserCustomEventType": "",
                "artworkLabel": "",
                "artworkType": "",
                "exitClickThroughUrl": json!({}),
                "id": "",
                "popupWindowProperties": json!({
                    "dimension": json!({}),
                    "offset": json!({
                        "left": 0,
                        "top": 0
                    }),
                    "positionType": "",
                    "showAddressBar": false,
                    "showMenuBar": false,
                    "showScrollBar": false,
                    "showStatusBar": false,
                    "showToolBar": false,
                    "title": ""
                }),
                "targetType": "",
                "videoReportingId": ""
            })
        ),
        "creativeAssetSelection": json!({
            "defaultAssetId": "",
            "rules": (
                json!({
                    "assetId": "",
                    "name": "",
                    "targetingTemplateId": ""
                })
            )
        }),
        "creativeAssets": (
            json!({
                "actionScript3": false,
                "active": false,
                "additionalSizes": (json!({})),
                "alignment": "",
                "artworkType": "",
                "assetIdentifier": json!({
                    "name": "",
                    "type": ""
                }),
                "audioBitRate": 0,
                "audioSampleRate": 0,
                "backupImageExit": json!({}),
                "bitRate": 0,
                "childAssetType": "",
                "collapsedSize": json!({}),
                "companionCreativeIds": (),
                "customStartTimeValue": 0,
                "detectedFeatures": (),
                "displayType": "",
                "duration": 0,
                "durationType": "",
                "expandedDimension": json!({}),
                "fileSize": "",
                "flashVersion": 0,
                "frameRate": "",
                "hideFlashObjects": false,
                "hideSelectionBoxes": false,
                "horizontallyLocked": false,
                "id": "",
                "idDimensionValue": json!({
                    "dimensionName": "",
                    "etag": "",
                    "id": "",
                    "kind": "",
                    "matchType": "",
                    "value": ""
                }),
                "mediaDuration": "",
                "mimeType": "",
                "offset": json!({}),
                "orientation": "",
                "originalBackup": false,
                "politeLoad": false,
                "position": json!({}),
                "positionLeftUnit": "",
                "positionTopUnit": "",
                "progressiveServingUrl": "",
                "pushdown": false,
                "pushdownDuration": "",
                "role": "",
                "size": json!({}),
                "sslCompliant": false,
                "startTimeType": "",
                "streamingServingUrl": "",
                "transparency": false,
                "verticallyLocked": false,
                "windowMode": "",
                "zIndex": 0,
                "zipFilename": "",
                "zipFilesize": ""
            })
        ),
        "creativeFieldAssignments": (
            json!({
                "creativeFieldId": "",
                "creativeFieldValueId": ""
            })
        ),
        "customKeyValues": (),
        "dynamicAssetSelection": false,
        "exitCustomEvents": (json!({})),
        "fsCommand": json!({
            "left": 0,
            "positionOption": "",
            "top": 0,
            "windowHeight": 0,
            "windowWidth": 0
        }),
        "htmlCode": "",
        "htmlCodeLocked": false,
        "id": "",
        "idDimensionValue": json!({}),
        "kind": "",
        "lastModifiedInfo": json!({"time": ""}),
        "latestTraffickedCreativeId": "",
        "mediaDescription": "",
        "mediaDuration": "",
        "name": "",
        "obaIcon": json!({
            "iconClickThroughUrl": "",
            "iconClickTrackingUrl": "",
            "iconViewTrackingUrl": "",
            "program": "",
            "resourceUrl": "",
            "size": json!({}),
            "xPosition": "",
            "yPosition": ""
        }),
        "overrideCss": "",
        "progressOffset": json!({
            "offsetPercentage": 0,
            "offsetSeconds": 0
        }),
        "redirectUrl": "",
        "renderingId": "",
        "renderingIdDimensionValue": json!({}),
        "requiredFlashPluginVersion": "",
        "requiredFlashVersion": 0,
        "size": json!({}),
        "skipOffset": json!({}),
        "skippable": false,
        "sslCompliant": false,
        "sslOverride": false,
        "studioAdvertiserId": "",
        "studioCreativeId": "",
        "studioTraffickedCreativeId": "",
        "subaccountId": "",
        "thirdPartyBackupImageImpressionsUrl": "",
        "thirdPartyRichMediaImpressionsUrl": "",
        "thirdPartyUrls": (
            json!({
                "thirdPartyUrlType": "",
                "url": ""
            })
        ),
        "timerCustomEvents": (json!({})),
        "totalFileSize": "",
        "type": "",
        "universalAdId": json!({
            "registry": "",
            "value": ""
        }),
        "version": 0
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PATCH").unwrap(), url)
        .query(&querystring)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PATCH \
  --url '{{baseUrl}}/userprofiles/:profileId/creatives?id=' \
  --header 'content-type: application/json' \
  --data '{
  "accountId": "",
  "active": false,
  "adParameters": "",
  "adTagKeys": [],
  "additionalSizes": [
    {
      "height": 0,
      "iab": false,
      "id": "",
      "kind": "",
      "width": 0
    }
  ],
  "advertiserId": "",
  "allowScriptAccess": false,
  "archived": false,
  "artworkType": "",
  "authoringSource": "",
  "authoringTool": "",
  "autoAdvanceImages": false,
  "backgroundColor": "",
  "backupImageClickThroughUrl": {
    "computedClickThroughUrl": "",
    "customClickThroughUrl": "",
    "landingPageId": ""
  },
  "backupImageFeatures": [],
  "backupImageReportingLabel": "",
  "backupImageTargetWindow": {
    "customHtml": "",
    "targetWindowOption": ""
  },
  "clickTags": [
    {
      "clickThroughUrl": {},
      "eventName": "",
      "name": ""
    }
  ],
  "commercialId": "",
  "companionCreatives": [],
  "compatibility": [],
  "convertFlashToHtml5": false,
  "counterCustomEvents": [
    {
      "advertiserCustomEventId": "",
      "advertiserCustomEventName": "",
      "advertiserCustomEventType": "",
      "artworkLabel": "",
      "artworkType": "",
      "exitClickThroughUrl": {},
      "id": "",
      "popupWindowProperties": {
        "dimension": {},
        "offset": {
          "left": 0,
          "top": 0
        },
        "positionType": "",
        "showAddressBar": false,
        "showMenuBar": false,
        "showScrollBar": false,
        "showStatusBar": false,
        "showToolBar": false,
        "title": ""
      },
      "targetType": "",
      "videoReportingId": ""
    }
  ],
  "creativeAssetSelection": {
    "defaultAssetId": "",
    "rules": [
      {
        "assetId": "",
        "name": "",
        "targetingTemplateId": ""
      }
    ]
  },
  "creativeAssets": [
    {
      "actionScript3": false,
      "active": false,
      "additionalSizes": [
        {}
      ],
      "alignment": "",
      "artworkType": "",
      "assetIdentifier": {
        "name": "",
        "type": ""
      },
      "audioBitRate": 0,
      "audioSampleRate": 0,
      "backupImageExit": {},
      "bitRate": 0,
      "childAssetType": "",
      "collapsedSize": {},
      "companionCreativeIds": [],
      "customStartTimeValue": 0,
      "detectedFeatures": [],
      "displayType": "",
      "duration": 0,
      "durationType": "",
      "expandedDimension": {},
      "fileSize": "",
      "flashVersion": 0,
      "frameRate": "",
      "hideFlashObjects": false,
      "hideSelectionBoxes": false,
      "horizontallyLocked": false,
      "id": "",
      "idDimensionValue": {
        "dimensionName": "",
        "etag": "",
        "id": "",
        "kind": "",
        "matchType": "",
        "value": ""
      },
      "mediaDuration": "",
      "mimeType": "",
      "offset": {},
      "orientation": "",
      "originalBackup": false,
      "politeLoad": false,
      "position": {},
      "positionLeftUnit": "",
      "positionTopUnit": "",
      "progressiveServingUrl": "",
      "pushdown": false,
      "pushdownDuration": "",
      "role": "",
      "size": {},
      "sslCompliant": false,
      "startTimeType": "",
      "streamingServingUrl": "",
      "transparency": false,
      "verticallyLocked": false,
      "windowMode": "",
      "zIndex": 0,
      "zipFilename": "",
      "zipFilesize": ""
    }
  ],
  "creativeFieldAssignments": [
    {
      "creativeFieldId": "",
      "creativeFieldValueId": ""
    }
  ],
  "customKeyValues": [],
  "dynamicAssetSelection": false,
  "exitCustomEvents": [
    {}
  ],
  "fsCommand": {
    "left": 0,
    "positionOption": "",
    "top": 0,
    "windowHeight": 0,
    "windowWidth": 0
  },
  "htmlCode": "",
  "htmlCodeLocked": false,
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "lastModifiedInfo": {
    "time": ""
  },
  "latestTraffickedCreativeId": "",
  "mediaDescription": "",
  "mediaDuration": "",
  "name": "",
  "obaIcon": {
    "iconClickThroughUrl": "",
    "iconClickTrackingUrl": "",
    "iconViewTrackingUrl": "",
    "program": "",
    "resourceUrl": "",
    "size": {},
    "xPosition": "",
    "yPosition": ""
  },
  "overrideCss": "",
  "progressOffset": {
    "offsetPercentage": 0,
    "offsetSeconds": 0
  },
  "redirectUrl": "",
  "renderingId": "",
  "renderingIdDimensionValue": {},
  "requiredFlashPluginVersion": "",
  "requiredFlashVersion": 0,
  "size": {},
  "skipOffset": {},
  "skippable": false,
  "sslCompliant": false,
  "sslOverride": false,
  "studioAdvertiserId": "",
  "studioCreativeId": "",
  "studioTraffickedCreativeId": "",
  "subaccountId": "",
  "thirdPartyBackupImageImpressionsUrl": "",
  "thirdPartyRichMediaImpressionsUrl": "",
  "thirdPartyUrls": [
    {
      "thirdPartyUrlType": "",
      "url": ""
    }
  ],
  "timerCustomEvents": [
    {}
  ],
  "totalFileSize": "",
  "type": "",
  "universalAdId": {
    "registry": "",
    "value": ""
  },
  "version": 0
}'
echo '{
  "accountId": "",
  "active": false,
  "adParameters": "",
  "adTagKeys": [],
  "additionalSizes": [
    {
      "height": 0,
      "iab": false,
      "id": "",
      "kind": "",
      "width": 0
    }
  ],
  "advertiserId": "",
  "allowScriptAccess": false,
  "archived": false,
  "artworkType": "",
  "authoringSource": "",
  "authoringTool": "",
  "autoAdvanceImages": false,
  "backgroundColor": "",
  "backupImageClickThroughUrl": {
    "computedClickThroughUrl": "",
    "customClickThroughUrl": "",
    "landingPageId": ""
  },
  "backupImageFeatures": [],
  "backupImageReportingLabel": "",
  "backupImageTargetWindow": {
    "customHtml": "",
    "targetWindowOption": ""
  },
  "clickTags": [
    {
      "clickThroughUrl": {},
      "eventName": "",
      "name": ""
    }
  ],
  "commercialId": "",
  "companionCreatives": [],
  "compatibility": [],
  "convertFlashToHtml5": false,
  "counterCustomEvents": [
    {
      "advertiserCustomEventId": "",
      "advertiserCustomEventName": "",
      "advertiserCustomEventType": "",
      "artworkLabel": "",
      "artworkType": "",
      "exitClickThroughUrl": {},
      "id": "",
      "popupWindowProperties": {
        "dimension": {},
        "offset": {
          "left": 0,
          "top": 0
        },
        "positionType": "",
        "showAddressBar": false,
        "showMenuBar": false,
        "showScrollBar": false,
        "showStatusBar": false,
        "showToolBar": false,
        "title": ""
      },
      "targetType": "",
      "videoReportingId": ""
    }
  ],
  "creativeAssetSelection": {
    "defaultAssetId": "",
    "rules": [
      {
        "assetId": "",
        "name": "",
        "targetingTemplateId": ""
      }
    ]
  },
  "creativeAssets": [
    {
      "actionScript3": false,
      "active": false,
      "additionalSizes": [
        {}
      ],
      "alignment": "",
      "artworkType": "",
      "assetIdentifier": {
        "name": "",
        "type": ""
      },
      "audioBitRate": 0,
      "audioSampleRate": 0,
      "backupImageExit": {},
      "bitRate": 0,
      "childAssetType": "",
      "collapsedSize": {},
      "companionCreativeIds": [],
      "customStartTimeValue": 0,
      "detectedFeatures": [],
      "displayType": "",
      "duration": 0,
      "durationType": "",
      "expandedDimension": {},
      "fileSize": "",
      "flashVersion": 0,
      "frameRate": "",
      "hideFlashObjects": false,
      "hideSelectionBoxes": false,
      "horizontallyLocked": false,
      "id": "",
      "idDimensionValue": {
        "dimensionName": "",
        "etag": "",
        "id": "",
        "kind": "",
        "matchType": "",
        "value": ""
      },
      "mediaDuration": "",
      "mimeType": "",
      "offset": {},
      "orientation": "",
      "originalBackup": false,
      "politeLoad": false,
      "position": {},
      "positionLeftUnit": "",
      "positionTopUnit": "",
      "progressiveServingUrl": "",
      "pushdown": false,
      "pushdownDuration": "",
      "role": "",
      "size": {},
      "sslCompliant": false,
      "startTimeType": "",
      "streamingServingUrl": "",
      "transparency": false,
      "verticallyLocked": false,
      "windowMode": "",
      "zIndex": 0,
      "zipFilename": "",
      "zipFilesize": ""
    }
  ],
  "creativeFieldAssignments": [
    {
      "creativeFieldId": "",
      "creativeFieldValueId": ""
    }
  ],
  "customKeyValues": [],
  "dynamicAssetSelection": false,
  "exitCustomEvents": [
    {}
  ],
  "fsCommand": {
    "left": 0,
    "positionOption": "",
    "top": 0,
    "windowHeight": 0,
    "windowWidth": 0
  },
  "htmlCode": "",
  "htmlCodeLocked": false,
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "lastModifiedInfo": {
    "time": ""
  },
  "latestTraffickedCreativeId": "",
  "mediaDescription": "",
  "mediaDuration": "",
  "name": "",
  "obaIcon": {
    "iconClickThroughUrl": "",
    "iconClickTrackingUrl": "",
    "iconViewTrackingUrl": "",
    "program": "",
    "resourceUrl": "",
    "size": {},
    "xPosition": "",
    "yPosition": ""
  },
  "overrideCss": "",
  "progressOffset": {
    "offsetPercentage": 0,
    "offsetSeconds": 0
  },
  "redirectUrl": "",
  "renderingId": "",
  "renderingIdDimensionValue": {},
  "requiredFlashPluginVersion": "",
  "requiredFlashVersion": 0,
  "size": {},
  "skipOffset": {},
  "skippable": false,
  "sslCompliant": false,
  "sslOverride": false,
  "studioAdvertiserId": "",
  "studioCreativeId": "",
  "studioTraffickedCreativeId": "",
  "subaccountId": "",
  "thirdPartyBackupImageImpressionsUrl": "",
  "thirdPartyRichMediaImpressionsUrl": "",
  "thirdPartyUrls": [
    {
      "thirdPartyUrlType": "",
      "url": ""
    }
  ],
  "timerCustomEvents": [
    {}
  ],
  "totalFileSize": "",
  "type": "",
  "universalAdId": {
    "registry": "",
    "value": ""
  },
  "version": 0
}' |  \
  http PATCH '{{baseUrl}}/userprofiles/:profileId/creatives?id=' \
  content-type:application/json
wget --quiet \
  --method PATCH \
  --header 'content-type: application/json' \
  --body-data '{\n  "accountId": "",\n  "active": false,\n  "adParameters": "",\n  "adTagKeys": [],\n  "additionalSizes": [\n    {\n      "height": 0,\n      "iab": false,\n      "id": "",\n      "kind": "",\n      "width": 0\n    }\n  ],\n  "advertiserId": "",\n  "allowScriptAccess": false,\n  "archived": false,\n  "artworkType": "",\n  "authoringSource": "",\n  "authoringTool": "",\n  "autoAdvanceImages": false,\n  "backgroundColor": "",\n  "backupImageClickThroughUrl": {\n    "computedClickThroughUrl": "",\n    "customClickThroughUrl": "",\n    "landingPageId": ""\n  },\n  "backupImageFeatures": [],\n  "backupImageReportingLabel": "",\n  "backupImageTargetWindow": {\n    "customHtml": "",\n    "targetWindowOption": ""\n  },\n  "clickTags": [\n    {\n      "clickThroughUrl": {},\n      "eventName": "",\n      "name": ""\n    }\n  ],\n  "commercialId": "",\n  "companionCreatives": [],\n  "compatibility": [],\n  "convertFlashToHtml5": false,\n  "counterCustomEvents": [\n    {\n      "advertiserCustomEventId": "",\n      "advertiserCustomEventName": "",\n      "advertiserCustomEventType": "",\n      "artworkLabel": "",\n      "artworkType": "",\n      "exitClickThroughUrl": {},\n      "id": "",\n      "popupWindowProperties": {\n        "dimension": {},\n        "offset": {\n          "left": 0,\n          "top": 0\n        },\n        "positionType": "",\n        "showAddressBar": false,\n        "showMenuBar": false,\n        "showScrollBar": false,\n        "showStatusBar": false,\n        "showToolBar": false,\n        "title": ""\n      },\n      "targetType": "",\n      "videoReportingId": ""\n    }\n  ],\n  "creativeAssetSelection": {\n    "defaultAssetId": "",\n    "rules": [\n      {\n        "assetId": "",\n        "name": "",\n        "targetingTemplateId": ""\n      }\n    ]\n  },\n  "creativeAssets": [\n    {\n      "actionScript3": false,\n      "active": false,\n      "additionalSizes": [\n        {}\n      ],\n      "alignment": "",\n      "artworkType": "",\n      "assetIdentifier": {\n        "name": "",\n        "type": ""\n      },\n      "audioBitRate": 0,\n      "audioSampleRate": 0,\n      "backupImageExit": {},\n      "bitRate": 0,\n      "childAssetType": "",\n      "collapsedSize": {},\n      "companionCreativeIds": [],\n      "customStartTimeValue": 0,\n      "detectedFeatures": [],\n      "displayType": "",\n      "duration": 0,\n      "durationType": "",\n      "expandedDimension": {},\n      "fileSize": "",\n      "flashVersion": 0,\n      "frameRate": "",\n      "hideFlashObjects": false,\n      "hideSelectionBoxes": false,\n      "horizontallyLocked": false,\n      "id": "",\n      "idDimensionValue": {\n        "dimensionName": "",\n        "etag": "",\n        "id": "",\n        "kind": "",\n        "matchType": "",\n        "value": ""\n      },\n      "mediaDuration": "",\n      "mimeType": "",\n      "offset": {},\n      "orientation": "",\n      "originalBackup": false,\n      "politeLoad": false,\n      "position": {},\n      "positionLeftUnit": "",\n      "positionTopUnit": "",\n      "progressiveServingUrl": "",\n      "pushdown": false,\n      "pushdownDuration": "",\n      "role": "",\n      "size": {},\n      "sslCompliant": false,\n      "startTimeType": "",\n      "streamingServingUrl": "",\n      "transparency": false,\n      "verticallyLocked": false,\n      "windowMode": "",\n      "zIndex": 0,\n      "zipFilename": "",\n      "zipFilesize": ""\n    }\n  ],\n  "creativeFieldAssignments": [\n    {\n      "creativeFieldId": "",\n      "creativeFieldValueId": ""\n    }\n  ],\n  "customKeyValues": [],\n  "dynamicAssetSelection": false,\n  "exitCustomEvents": [\n    {}\n  ],\n  "fsCommand": {\n    "left": 0,\n    "positionOption": "",\n    "top": 0,\n    "windowHeight": 0,\n    "windowWidth": 0\n  },\n  "htmlCode": "",\n  "htmlCodeLocked": false,\n  "id": "",\n  "idDimensionValue": {},\n  "kind": "",\n  "lastModifiedInfo": {\n    "time": ""\n  },\n  "latestTraffickedCreativeId": "",\n  "mediaDescription": "",\n  "mediaDuration": "",\n  "name": "",\n  "obaIcon": {\n    "iconClickThroughUrl": "",\n    "iconClickTrackingUrl": "",\n    "iconViewTrackingUrl": "",\n    "program": "",\n    "resourceUrl": "",\n    "size": {},\n    "xPosition": "",\n    "yPosition": ""\n  },\n  "overrideCss": "",\n  "progressOffset": {\n    "offsetPercentage": 0,\n    "offsetSeconds": 0\n  },\n  "redirectUrl": "",\n  "renderingId": "",\n  "renderingIdDimensionValue": {},\n  "requiredFlashPluginVersion": "",\n  "requiredFlashVersion": 0,\n  "size": {},\n  "skipOffset": {},\n  "skippable": false,\n  "sslCompliant": false,\n  "sslOverride": false,\n  "studioAdvertiserId": "",\n  "studioCreativeId": "",\n  "studioTraffickedCreativeId": "",\n  "subaccountId": "",\n  "thirdPartyBackupImageImpressionsUrl": "",\n  "thirdPartyRichMediaImpressionsUrl": "",\n  "thirdPartyUrls": [\n    {\n      "thirdPartyUrlType": "",\n      "url": ""\n    }\n  ],\n  "timerCustomEvents": [\n    {}\n  ],\n  "totalFileSize": "",\n  "type": "",\n  "universalAdId": {\n    "registry": "",\n    "value": ""\n  },\n  "version": 0\n}' \
  --output-document \
  - '{{baseUrl}}/userprofiles/:profileId/creatives?id='
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "accountId": "",
  "active": false,
  "adParameters": "",
  "adTagKeys": [],
  "additionalSizes": [
    [
      "height": 0,
      "iab": false,
      "id": "",
      "kind": "",
      "width": 0
    ]
  ],
  "advertiserId": "",
  "allowScriptAccess": false,
  "archived": false,
  "artworkType": "",
  "authoringSource": "",
  "authoringTool": "",
  "autoAdvanceImages": false,
  "backgroundColor": "",
  "backupImageClickThroughUrl": [
    "computedClickThroughUrl": "",
    "customClickThroughUrl": "",
    "landingPageId": ""
  ],
  "backupImageFeatures": [],
  "backupImageReportingLabel": "",
  "backupImageTargetWindow": [
    "customHtml": "",
    "targetWindowOption": ""
  ],
  "clickTags": [
    [
      "clickThroughUrl": [],
      "eventName": "",
      "name": ""
    ]
  ],
  "commercialId": "",
  "companionCreatives": [],
  "compatibility": [],
  "convertFlashToHtml5": false,
  "counterCustomEvents": [
    [
      "advertiserCustomEventId": "",
      "advertiserCustomEventName": "",
      "advertiserCustomEventType": "",
      "artworkLabel": "",
      "artworkType": "",
      "exitClickThroughUrl": [],
      "id": "",
      "popupWindowProperties": [
        "dimension": [],
        "offset": [
          "left": 0,
          "top": 0
        ],
        "positionType": "",
        "showAddressBar": false,
        "showMenuBar": false,
        "showScrollBar": false,
        "showStatusBar": false,
        "showToolBar": false,
        "title": ""
      ],
      "targetType": "",
      "videoReportingId": ""
    ]
  ],
  "creativeAssetSelection": [
    "defaultAssetId": "",
    "rules": [
      [
        "assetId": "",
        "name": "",
        "targetingTemplateId": ""
      ]
    ]
  ],
  "creativeAssets": [
    [
      "actionScript3": false,
      "active": false,
      "additionalSizes": [[]],
      "alignment": "",
      "artworkType": "",
      "assetIdentifier": [
        "name": "",
        "type": ""
      ],
      "audioBitRate": 0,
      "audioSampleRate": 0,
      "backupImageExit": [],
      "bitRate": 0,
      "childAssetType": "",
      "collapsedSize": [],
      "companionCreativeIds": [],
      "customStartTimeValue": 0,
      "detectedFeatures": [],
      "displayType": "",
      "duration": 0,
      "durationType": "",
      "expandedDimension": [],
      "fileSize": "",
      "flashVersion": 0,
      "frameRate": "",
      "hideFlashObjects": false,
      "hideSelectionBoxes": false,
      "horizontallyLocked": false,
      "id": "",
      "idDimensionValue": [
        "dimensionName": "",
        "etag": "",
        "id": "",
        "kind": "",
        "matchType": "",
        "value": ""
      ],
      "mediaDuration": "",
      "mimeType": "",
      "offset": [],
      "orientation": "",
      "originalBackup": false,
      "politeLoad": false,
      "position": [],
      "positionLeftUnit": "",
      "positionTopUnit": "",
      "progressiveServingUrl": "",
      "pushdown": false,
      "pushdownDuration": "",
      "role": "",
      "size": [],
      "sslCompliant": false,
      "startTimeType": "",
      "streamingServingUrl": "",
      "transparency": false,
      "verticallyLocked": false,
      "windowMode": "",
      "zIndex": 0,
      "zipFilename": "",
      "zipFilesize": ""
    ]
  ],
  "creativeFieldAssignments": [
    [
      "creativeFieldId": "",
      "creativeFieldValueId": ""
    ]
  ],
  "customKeyValues": [],
  "dynamicAssetSelection": false,
  "exitCustomEvents": [[]],
  "fsCommand": [
    "left": 0,
    "positionOption": "",
    "top": 0,
    "windowHeight": 0,
    "windowWidth": 0
  ],
  "htmlCode": "",
  "htmlCodeLocked": false,
  "id": "",
  "idDimensionValue": [],
  "kind": "",
  "lastModifiedInfo": ["time": ""],
  "latestTraffickedCreativeId": "",
  "mediaDescription": "",
  "mediaDuration": "",
  "name": "",
  "obaIcon": [
    "iconClickThroughUrl": "",
    "iconClickTrackingUrl": "",
    "iconViewTrackingUrl": "",
    "program": "",
    "resourceUrl": "",
    "size": [],
    "xPosition": "",
    "yPosition": ""
  ],
  "overrideCss": "",
  "progressOffset": [
    "offsetPercentage": 0,
    "offsetSeconds": 0
  ],
  "redirectUrl": "",
  "renderingId": "",
  "renderingIdDimensionValue": [],
  "requiredFlashPluginVersion": "",
  "requiredFlashVersion": 0,
  "size": [],
  "skipOffset": [],
  "skippable": false,
  "sslCompliant": false,
  "sslOverride": false,
  "studioAdvertiserId": "",
  "studioCreativeId": "",
  "studioTraffickedCreativeId": "",
  "subaccountId": "",
  "thirdPartyBackupImageImpressionsUrl": "",
  "thirdPartyRichMediaImpressionsUrl": "",
  "thirdPartyUrls": [
    [
      "thirdPartyUrlType": "",
      "url": ""
    ]
  ],
  "timerCustomEvents": [[]],
  "totalFileSize": "",
  "type": "",
  "universalAdId": [
    "registry": "",
    "value": ""
  ],
  "version": 0
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/creatives?id=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PATCH"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
PUT dfareporting.creatives.update
{{baseUrl}}/userprofiles/:profileId/creatives
QUERY PARAMS

profileId
BODY json

{
  "accountId": "",
  "active": false,
  "adParameters": "",
  "adTagKeys": [],
  "additionalSizes": [
    {
      "height": 0,
      "iab": false,
      "id": "",
      "kind": "",
      "width": 0
    }
  ],
  "advertiserId": "",
  "allowScriptAccess": false,
  "archived": false,
  "artworkType": "",
  "authoringSource": "",
  "authoringTool": "",
  "autoAdvanceImages": false,
  "backgroundColor": "",
  "backupImageClickThroughUrl": {
    "computedClickThroughUrl": "",
    "customClickThroughUrl": "",
    "landingPageId": ""
  },
  "backupImageFeatures": [],
  "backupImageReportingLabel": "",
  "backupImageTargetWindow": {
    "customHtml": "",
    "targetWindowOption": ""
  },
  "clickTags": [
    {
      "clickThroughUrl": {},
      "eventName": "",
      "name": ""
    }
  ],
  "commercialId": "",
  "companionCreatives": [],
  "compatibility": [],
  "convertFlashToHtml5": false,
  "counterCustomEvents": [
    {
      "advertiserCustomEventId": "",
      "advertiserCustomEventName": "",
      "advertiserCustomEventType": "",
      "artworkLabel": "",
      "artworkType": "",
      "exitClickThroughUrl": {},
      "id": "",
      "popupWindowProperties": {
        "dimension": {},
        "offset": {
          "left": 0,
          "top": 0
        },
        "positionType": "",
        "showAddressBar": false,
        "showMenuBar": false,
        "showScrollBar": false,
        "showStatusBar": false,
        "showToolBar": false,
        "title": ""
      },
      "targetType": "",
      "videoReportingId": ""
    }
  ],
  "creativeAssetSelection": {
    "defaultAssetId": "",
    "rules": [
      {
        "assetId": "",
        "name": "",
        "targetingTemplateId": ""
      }
    ]
  },
  "creativeAssets": [
    {
      "actionScript3": false,
      "active": false,
      "additionalSizes": [
        {}
      ],
      "alignment": "",
      "artworkType": "",
      "assetIdentifier": {
        "name": "",
        "type": ""
      },
      "audioBitRate": 0,
      "audioSampleRate": 0,
      "backupImageExit": {},
      "bitRate": 0,
      "childAssetType": "",
      "collapsedSize": {},
      "companionCreativeIds": [],
      "customStartTimeValue": 0,
      "detectedFeatures": [],
      "displayType": "",
      "duration": 0,
      "durationType": "",
      "expandedDimension": {},
      "fileSize": "",
      "flashVersion": 0,
      "frameRate": "",
      "hideFlashObjects": false,
      "hideSelectionBoxes": false,
      "horizontallyLocked": false,
      "id": "",
      "idDimensionValue": {
        "dimensionName": "",
        "etag": "",
        "id": "",
        "kind": "",
        "matchType": "",
        "value": ""
      },
      "mediaDuration": "",
      "mimeType": "",
      "offset": {},
      "orientation": "",
      "originalBackup": false,
      "politeLoad": false,
      "position": {},
      "positionLeftUnit": "",
      "positionTopUnit": "",
      "progressiveServingUrl": "",
      "pushdown": false,
      "pushdownDuration": "",
      "role": "",
      "size": {},
      "sslCompliant": false,
      "startTimeType": "",
      "streamingServingUrl": "",
      "transparency": false,
      "verticallyLocked": false,
      "windowMode": "",
      "zIndex": 0,
      "zipFilename": "",
      "zipFilesize": ""
    }
  ],
  "creativeFieldAssignments": [
    {
      "creativeFieldId": "",
      "creativeFieldValueId": ""
    }
  ],
  "customKeyValues": [],
  "dynamicAssetSelection": false,
  "exitCustomEvents": [
    {}
  ],
  "fsCommand": {
    "left": 0,
    "positionOption": "",
    "top": 0,
    "windowHeight": 0,
    "windowWidth": 0
  },
  "htmlCode": "",
  "htmlCodeLocked": false,
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "lastModifiedInfo": {
    "time": ""
  },
  "latestTraffickedCreativeId": "",
  "mediaDescription": "",
  "mediaDuration": "",
  "name": "",
  "obaIcon": {
    "iconClickThroughUrl": "",
    "iconClickTrackingUrl": "",
    "iconViewTrackingUrl": "",
    "program": "",
    "resourceUrl": "",
    "size": {},
    "xPosition": "",
    "yPosition": ""
  },
  "overrideCss": "",
  "progressOffset": {
    "offsetPercentage": 0,
    "offsetSeconds": 0
  },
  "redirectUrl": "",
  "renderingId": "",
  "renderingIdDimensionValue": {},
  "requiredFlashPluginVersion": "",
  "requiredFlashVersion": 0,
  "size": {},
  "skipOffset": {},
  "skippable": false,
  "sslCompliant": false,
  "sslOverride": false,
  "studioAdvertiserId": "",
  "studioCreativeId": "",
  "studioTraffickedCreativeId": "",
  "subaccountId": "",
  "thirdPartyBackupImageImpressionsUrl": "",
  "thirdPartyRichMediaImpressionsUrl": "",
  "thirdPartyUrls": [
    {
      "thirdPartyUrlType": "",
      "url": ""
    }
  ],
  "timerCustomEvents": [
    {}
  ],
  "totalFileSize": "",
  "type": "",
  "universalAdId": {
    "registry": "",
    "value": ""
  },
  "version": 0
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/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  \"accountId\": \"\",\n  \"active\": false,\n  \"adParameters\": \"\",\n  \"adTagKeys\": [],\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"allowScriptAccess\": false,\n  \"archived\": false,\n  \"artworkType\": \"\",\n  \"authoringSource\": \"\",\n  \"authoringTool\": \"\",\n  \"autoAdvanceImages\": false,\n  \"backgroundColor\": \"\",\n  \"backupImageClickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"landingPageId\": \"\"\n  },\n  \"backupImageFeatures\": [],\n  \"backupImageReportingLabel\": \"\",\n  \"backupImageTargetWindow\": {\n    \"customHtml\": \"\",\n    \"targetWindowOption\": \"\"\n  },\n  \"clickTags\": [\n    {\n      \"clickThroughUrl\": {},\n      \"eventName\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"commercialId\": \"\",\n  \"companionCreatives\": [],\n  \"compatibility\": [],\n  \"convertFlashToHtml5\": false,\n  \"counterCustomEvents\": [\n    {\n      \"advertiserCustomEventId\": \"\",\n      \"advertiserCustomEventName\": \"\",\n      \"advertiserCustomEventType\": \"\",\n      \"artworkLabel\": \"\",\n      \"artworkType\": \"\",\n      \"exitClickThroughUrl\": {},\n      \"id\": \"\",\n      \"popupWindowProperties\": {\n        \"dimension\": {},\n        \"offset\": {\n          \"left\": 0,\n          \"top\": 0\n        },\n        \"positionType\": \"\",\n        \"showAddressBar\": false,\n        \"showMenuBar\": false,\n        \"showScrollBar\": false,\n        \"showStatusBar\": false,\n        \"showToolBar\": false,\n        \"title\": \"\"\n      },\n      \"targetType\": \"\",\n      \"videoReportingId\": \"\"\n    }\n  ],\n  \"creativeAssetSelection\": {\n    \"defaultAssetId\": \"\",\n    \"rules\": [\n      {\n        \"assetId\": \"\",\n        \"name\": \"\",\n        \"targetingTemplateId\": \"\"\n      }\n    ]\n  },\n  \"creativeAssets\": [\n    {\n      \"actionScript3\": false,\n      \"active\": false,\n      \"additionalSizes\": [\n        {}\n      ],\n      \"alignment\": \"\",\n      \"artworkType\": \"\",\n      \"assetIdentifier\": {\n        \"name\": \"\",\n        \"type\": \"\"\n      },\n      \"audioBitRate\": 0,\n      \"audioSampleRate\": 0,\n      \"backupImageExit\": {},\n      \"bitRate\": 0,\n      \"childAssetType\": \"\",\n      \"collapsedSize\": {},\n      \"companionCreativeIds\": [],\n      \"customStartTimeValue\": 0,\n      \"detectedFeatures\": [],\n      \"displayType\": \"\",\n      \"duration\": 0,\n      \"durationType\": \"\",\n      \"expandedDimension\": {},\n      \"fileSize\": \"\",\n      \"flashVersion\": 0,\n      \"frameRate\": \"\",\n      \"hideFlashObjects\": false,\n      \"hideSelectionBoxes\": false,\n      \"horizontallyLocked\": false,\n      \"id\": \"\",\n      \"idDimensionValue\": {\n        \"dimensionName\": \"\",\n        \"etag\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"matchType\": \"\",\n        \"value\": \"\"\n      },\n      \"mediaDuration\": \"\",\n      \"mimeType\": \"\",\n      \"offset\": {},\n      \"orientation\": \"\",\n      \"originalBackup\": false,\n      \"politeLoad\": false,\n      \"position\": {},\n      \"positionLeftUnit\": \"\",\n      \"positionTopUnit\": \"\",\n      \"progressiveServingUrl\": \"\",\n      \"pushdown\": false,\n      \"pushdownDuration\": \"\",\n      \"role\": \"\",\n      \"size\": {},\n      \"sslCompliant\": false,\n      \"startTimeType\": \"\",\n      \"streamingServingUrl\": \"\",\n      \"transparency\": false,\n      \"verticallyLocked\": false,\n      \"windowMode\": \"\",\n      \"zIndex\": 0,\n      \"zipFilename\": \"\",\n      \"zipFilesize\": \"\"\n    }\n  ],\n  \"creativeFieldAssignments\": [\n    {\n      \"creativeFieldId\": \"\",\n      \"creativeFieldValueId\": \"\"\n    }\n  ],\n  \"customKeyValues\": [],\n  \"dynamicAssetSelection\": false,\n  \"exitCustomEvents\": [\n    {}\n  ],\n  \"fsCommand\": {\n    \"left\": 0,\n    \"positionOption\": \"\",\n    \"top\": 0,\n    \"windowHeight\": 0,\n    \"windowWidth\": 0\n  },\n  \"htmlCode\": \"\",\n  \"htmlCodeLocked\": false,\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {\n    \"time\": \"\"\n  },\n  \"latestTraffickedCreativeId\": \"\",\n  \"mediaDescription\": \"\",\n  \"mediaDuration\": \"\",\n  \"name\": \"\",\n  \"obaIcon\": {\n    \"iconClickThroughUrl\": \"\",\n    \"iconClickTrackingUrl\": \"\",\n    \"iconViewTrackingUrl\": \"\",\n    \"program\": \"\",\n    \"resourceUrl\": \"\",\n    \"size\": {},\n    \"xPosition\": \"\",\n    \"yPosition\": \"\"\n  },\n  \"overrideCss\": \"\",\n  \"progressOffset\": {\n    \"offsetPercentage\": 0,\n    \"offsetSeconds\": 0\n  },\n  \"redirectUrl\": \"\",\n  \"renderingId\": \"\",\n  \"renderingIdDimensionValue\": {},\n  \"requiredFlashPluginVersion\": \"\",\n  \"requiredFlashVersion\": 0,\n  \"size\": {},\n  \"skipOffset\": {},\n  \"skippable\": false,\n  \"sslCompliant\": false,\n  \"sslOverride\": false,\n  \"studioAdvertiserId\": \"\",\n  \"studioCreativeId\": \"\",\n  \"studioTraffickedCreativeId\": \"\",\n  \"subaccountId\": \"\",\n  \"thirdPartyBackupImageImpressionsUrl\": \"\",\n  \"thirdPartyRichMediaImpressionsUrl\": \"\",\n  \"thirdPartyUrls\": [\n    {\n      \"thirdPartyUrlType\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"timerCustomEvents\": [\n    {}\n  ],\n  \"totalFileSize\": \"\",\n  \"type\": \"\",\n  \"universalAdId\": {\n    \"registry\": \"\",\n    \"value\": \"\"\n  },\n  \"version\": 0\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/userprofiles/:profileId/creatives" {:content-type :json
                                                                             :form-params {:accountId ""
                                                                                           :active false
                                                                                           :adParameters ""
                                                                                           :adTagKeys []
                                                                                           :additionalSizes [{:height 0
                                                                                                              :iab false
                                                                                                              :id ""
                                                                                                              :kind ""
                                                                                                              :width 0}]
                                                                                           :advertiserId ""
                                                                                           :allowScriptAccess false
                                                                                           :archived false
                                                                                           :artworkType ""
                                                                                           :authoringSource ""
                                                                                           :authoringTool ""
                                                                                           :autoAdvanceImages false
                                                                                           :backgroundColor ""
                                                                                           :backupImageClickThroughUrl {:computedClickThroughUrl ""
                                                                                                                        :customClickThroughUrl ""
                                                                                                                        :landingPageId ""}
                                                                                           :backupImageFeatures []
                                                                                           :backupImageReportingLabel ""
                                                                                           :backupImageTargetWindow {:customHtml ""
                                                                                                                     :targetWindowOption ""}
                                                                                           :clickTags [{:clickThroughUrl {}
                                                                                                        :eventName ""
                                                                                                        :name ""}]
                                                                                           :commercialId ""
                                                                                           :companionCreatives []
                                                                                           :compatibility []
                                                                                           :convertFlashToHtml5 false
                                                                                           :counterCustomEvents [{:advertiserCustomEventId ""
                                                                                                                  :advertiserCustomEventName ""
                                                                                                                  :advertiserCustomEventType ""
                                                                                                                  :artworkLabel ""
                                                                                                                  :artworkType ""
                                                                                                                  :exitClickThroughUrl {}
                                                                                                                  :id ""
                                                                                                                  :popupWindowProperties {:dimension {}
                                                                                                                                          :offset {:left 0
                                                                                                                                                   :top 0}
                                                                                                                                          :positionType ""
                                                                                                                                          :showAddressBar false
                                                                                                                                          :showMenuBar false
                                                                                                                                          :showScrollBar false
                                                                                                                                          :showStatusBar false
                                                                                                                                          :showToolBar false
                                                                                                                                          :title ""}
                                                                                                                  :targetType ""
                                                                                                                  :videoReportingId ""}]
                                                                                           :creativeAssetSelection {:defaultAssetId ""
                                                                                                                    :rules [{:assetId ""
                                                                                                                             :name ""
                                                                                                                             :targetingTemplateId ""}]}
                                                                                           :creativeAssets [{:actionScript3 false
                                                                                                             :active false
                                                                                                             :additionalSizes [{}]
                                                                                                             :alignment ""
                                                                                                             :artworkType ""
                                                                                                             :assetIdentifier {:name ""
                                                                                                                               :type ""}
                                                                                                             :audioBitRate 0
                                                                                                             :audioSampleRate 0
                                                                                                             :backupImageExit {}
                                                                                                             :bitRate 0
                                                                                                             :childAssetType ""
                                                                                                             :collapsedSize {}
                                                                                                             :companionCreativeIds []
                                                                                                             :customStartTimeValue 0
                                                                                                             :detectedFeatures []
                                                                                                             :displayType ""
                                                                                                             :duration 0
                                                                                                             :durationType ""
                                                                                                             :expandedDimension {}
                                                                                                             :fileSize ""
                                                                                                             :flashVersion 0
                                                                                                             :frameRate ""
                                                                                                             :hideFlashObjects false
                                                                                                             :hideSelectionBoxes false
                                                                                                             :horizontallyLocked false
                                                                                                             :id ""
                                                                                                             :idDimensionValue {:dimensionName ""
                                                                                                                                :etag ""
                                                                                                                                :id ""
                                                                                                                                :kind ""
                                                                                                                                :matchType ""
                                                                                                                                :value ""}
                                                                                                             :mediaDuration ""
                                                                                                             :mimeType ""
                                                                                                             :offset {}
                                                                                                             :orientation ""
                                                                                                             :originalBackup false
                                                                                                             :politeLoad false
                                                                                                             :position {}
                                                                                                             :positionLeftUnit ""
                                                                                                             :positionTopUnit ""
                                                                                                             :progressiveServingUrl ""
                                                                                                             :pushdown false
                                                                                                             :pushdownDuration ""
                                                                                                             :role ""
                                                                                                             :size {}
                                                                                                             :sslCompliant false
                                                                                                             :startTimeType ""
                                                                                                             :streamingServingUrl ""
                                                                                                             :transparency false
                                                                                                             :verticallyLocked false
                                                                                                             :windowMode ""
                                                                                                             :zIndex 0
                                                                                                             :zipFilename ""
                                                                                                             :zipFilesize ""}]
                                                                                           :creativeFieldAssignments [{:creativeFieldId ""
                                                                                                                       :creativeFieldValueId ""}]
                                                                                           :customKeyValues []
                                                                                           :dynamicAssetSelection false
                                                                                           :exitCustomEvents [{}]
                                                                                           :fsCommand {:left 0
                                                                                                       :positionOption ""
                                                                                                       :top 0
                                                                                                       :windowHeight 0
                                                                                                       :windowWidth 0}
                                                                                           :htmlCode ""
                                                                                           :htmlCodeLocked false
                                                                                           :id ""
                                                                                           :idDimensionValue {}
                                                                                           :kind ""
                                                                                           :lastModifiedInfo {:time ""}
                                                                                           :latestTraffickedCreativeId ""
                                                                                           :mediaDescription ""
                                                                                           :mediaDuration ""
                                                                                           :name ""
                                                                                           :obaIcon {:iconClickThroughUrl ""
                                                                                                     :iconClickTrackingUrl ""
                                                                                                     :iconViewTrackingUrl ""
                                                                                                     :program ""
                                                                                                     :resourceUrl ""
                                                                                                     :size {}
                                                                                                     :xPosition ""
                                                                                                     :yPosition ""}
                                                                                           :overrideCss ""
                                                                                           :progressOffset {:offsetPercentage 0
                                                                                                            :offsetSeconds 0}
                                                                                           :redirectUrl ""
                                                                                           :renderingId ""
                                                                                           :renderingIdDimensionValue {}
                                                                                           :requiredFlashPluginVersion ""
                                                                                           :requiredFlashVersion 0
                                                                                           :size {}
                                                                                           :skipOffset {}
                                                                                           :skippable false
                                                                                           :sslCompliant false
                                                                                           :sslOverride false
                                                                                           :studioAdvertiserId ""
                                                                                           :studioCreativeId ""
                                                                                           :studioTraffickedCreativeId ""
                                                                                           :subaccountId ""
                                                                                           :thirdPartyBackupImageImpressionsUrl ""
                                                                                           :thirdPartyRichMediaImpressionsUrl ""
                                                                                           :thirdPartyUrls [{:thirdPartyUrlType ""
                                                                                                             :url ""}]
                                                                                           :timerCustomEvents [{}]
                                                                                           :totalFileSize ""
                                                                                           :type ""
                                                                                           :universalAdId {:registry ""
                                                                                                           :value ""}
                                                                                           :version 0}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/creatives"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"adParameters\": \"\",\n  \"adTagKeys\": [],\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"allowScriptAccess\": false,\n  \"archived\": false,\n  \"artworkType\": \"\",\n  \"authoringSource\": \"\",\n  \"authoringTool\": \"\",\n  \"autoAdvanceImages\": false,\n  \"backgroundColor\": \"\",\n  \"backupImageClickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"landingPageId\": \"\"\n  },\n  \"backupImageFeatures\": [],\n  \"backupImageReportingLabel\": \"\",\n  \"backupImageTargetWindow\": {\n    \"customHtml\": \"\",\n    \"targetWindowOption\": \"\"\n  },\n  \"clickTags\": [\n    {\n      \"clickThroughUrl\": {},\n      \"eventName\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"commercialId\": \"\",\n  \"companionCreatives\": [],\n  \"compatibility\": [],\n  \"convertFlashToHtml5\": false,\n  \"counterCustomEvents\": [\n    {\n      \"advertiserCustomEventId\": \"\",\n      \"advertiserCustomEventName\": \"\",\n      \"advertiserCustomEventType\": \"\",\n      \"artworkLabel\": \"\",\n      \"artworkType\": \"\",\n      \"exitClickThroughUrl\": {},\n      \"id\": \"\",\n      \"popupWindowProperties\": {\n        \"dimension\": {},\n        \"offset\": {\n          \"left\": 0,\n          \"top\": 0\n        },\n        \"positionType\": \"\",\n        \"showAddressBar\": false,\n        \"showMenuBar\": false,\n        \"showScrollBar\": false,\n        \"showStatusBar\": false,\n        \"showToolBar\": false,\n        \"title\": \"\"\n      },\n      \"targetType\": \"\",\n      \"videoReportingId\": \"\"\n    }\n  ],\n  \"creativeAssetSelection\": {\n    \"defaultAssetId\": \"\",\n    \"rules\": [\n      {\n        \"assetId\": \"\",\n        \"name\": \"\",\n        \"targetingTemplateId\": \"\"\n      }\n    ]\n  },\n  \"creativeAssets\": [\n    {\n      \"actionScript3\": false,\n      \"active\": false,\n      \"additionalSizes\": [\n        {}\n      ],\n      \"alignment\": \"\",\n      \"artworkType\": \"\",\n      \"assetIdentifier\": {\n        \"name\": \"\",\n        \"type\": \"\"\n      },\n      \"audioBitRate\": 0,\n      \"audioSampleRate\": 0,\n      \"backupImageExit\": {},\n      \"bitRate\": 0,\n      \"childAssetType\": \"\",\n      \"collapsedSize\": {},\n      \"companionCreativeIds\": [],\n      \"customStartTimeValue\": 0,\n      \"detectedFeatures\": [],\n      \"displayType\": \"\",\n      \"duration\": 0,\n      \"durationType\": \"\",\n      \"expandedDimension\": {},\n      \"fileSize\": \"\",\n      \"flashVersion\": 0,\n      \"frameRate\": \"\",\n      \"hideFlashObjects\": false,\n      \"hideSelectionBoxes\": false,\n      \"horizontallyLocked\": false,\n      \"id\": \"\",\n      \"idDimensionValue\": {\n        \"dimensionName\": \"\",\n        \"etag\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"matchType\": \"\",\n        \"value\": \"\"\n      },\n      \"mediaDuration\": \"\",\n      \"mimeType\": \"\",\n      \"offset\": {},\n      \"orientation\": \"\",\n      \"originalBackup\": false,\n      \"politeLoad\": false,\n      \"position\": {},\n      \"positionLeftUnit\": \"\",\n      \"positionTopUnit\": \"\",\n      \"progressiveServingUrl\": \"\",\n      \"pushdown\": false,\n      \"pushdownDuration\": \"\",\n      \"role\": \"\",\n      \"size\": {},\n      \"sslCompliant\": false,\n      \"startTimeType\": \"\",\n      \"streamingServingUrl\": \"\",\n      \"transparency\": false,\n      \"verticallyLocked\": false,\n      \"windowMode\": \"\",\n      \"zIndex\": 0,\n      \"zipFilename\": \"\",\n      \"zipFilesize\": \"\"\n    }\n  ],\n  \"creativeFieldAssignments\": [\n    {\n      \"creativeFieldId\": \"\",\n      \"creativeFieldValueId\": \"\"\n    }\n  ],\n  \"customKeyValues\": [],\n  \"dynamicAssetSelection\": false,\n  \"exitCustomEvents\": [\n    {}\n  ],\n  \"fsCommand\": {\n    \"left\": 0,\n    \"positionOption\": \"\",\n    \"top\": 0,\n    \"windowHeight\": 0,\n    \"windowWidth\": 0\n  },\n  \"htmlCode\": \"\",\n  \"htmlCodeLocked\": false,\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {\n    \"time\": \"\"\n  },\n  \"latestTraffickedCreativeId\": \"\",\n  \"mediaDescription\": \"\",\n  \"mediaDuration\": \"\",\n  \"name\": \"\",\n  \"obaIcon\": {\n    \"iconClickThroughUrl\": \"\",\n    \"iconClickTrackingUrl\": \"\",\n    \"iconViewTrackingUrl\": \"\",\n    \"program\": \"\",\n    \"resourceUrl\": \"\",\n    \"size\": {},\n    \"xPosition\": \"\",\n    \"yPosition\": \"\"\n  },\n  \"overrideCss\": \"\",\n  \"progressOffset\": {\n    \"offsetPercentage\": 0,\n    \"offsetSeconds\": 0\n  },\n  \"redirectUrl\": \"\",\n  \"renderingId\": \"\",\n  \"renderingIdDimensionValue\": {},\n  \"requiredFlashPluginVersion\": \"\",\n  \"requiredFlashVersion\": 0,\n  \"size\": {},\n  \"skipOffset\": {},\n  \"skippable\": false,\n  \"sslCompliant\": false,\n  \"sslOverride\": false,\n  \"studioAdvertiserId\": \"\",\n  \"studioCreativeId\": \"\",\n  \"studioTraffickedCreativeId\": \"\",\n  \"subaccountId\": \"\",\n  \"thirdPartyBackupImageImpressionsUrl\": \"\",\n  \"thirdPartyRichMediaImpressionsUrl\": \"\",\n  \"thirdPartyUrls\": [\n    {\n      \"thirdPartyUrlType\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"timerCustomEvents\": [\n    {}\n  ],\n  \"totalFileSize\": \"\",\n  \"type\": \"\",\n  \"universalAdId\": {\n    \"registry\": \"\",\n    \"value\": \"\"\n  },\n  \"version\": 0\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/userprofiles/:profileId/creatives"),
    Content = new StringContent("{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"adParameters\": \"\",\n  \"adTagKeys\": [],\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"allowScriptAccess\": false,\n  \"archived\": false,\n  \"artworkType\": \"\",\n  \"authoringSource\": \"\",\n  \"authoringTool\": \"\",\n  \"autoAdvanceImages\": false,\n  \"backgroundColor\": \"\",\n  \"backupImageClickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"landingPageId\": \"\"\n  },\n  \"backupImageFeatures\": [],\n  \"backupImageReportingLabel\": \"\",\n  \"backupImageTargetWindow\": {\n    \"customHtml\": \"\",\n    \"targetWindowOption\": \"\"\n  },\n  \"clickTags\": [\n    {\n      \"clickThroughUrl\": {},\n      \"eventName\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"commercialId\": \"\",\n  \"companionCreatives\": [],\n  \"compatibility\": [],\n  \"convertFlashToHtml5\": false,\n  \"counterCustomEvents\": [\n    {\n      \"advertiserCustomEventId\": \"\",\n      \"advertiserCustomEventName\": \"\",\n      \"advertiserCustomEventType\": \"\",\n      \"artworkLabel\": \"\",\n      \"artworkType\": \"\",\n      \"exitClickThroughUrl\": {},\n      \"id\": \"\",\n      \"popupWindowProperties\": {\n        \"dimension\": {},\n        \"offset\": {\n          \"left\": 0,\n          \"top\": 0\n        },\n        \"positionType\": \"\",\n        \"showAddressBar\": false,\n        \"showMenuBar\": false,\n        \"showScrollBar\": false,\n        \"showStatusBar\": false,\n        \"showToolBar\": false,\n        \"title\": \"\"\n      },\n      \"targetType\": \"\",\n      \"videoReportingId\": \"\"\n    }\n  ],\n  \"creativeAssetSelection\": {\n    \"defaultAssetId\": \"\",\n    \"rules\": [\n      {\n        \"assetId\": \"\",\n        \"name\": \"\",\n        \"targetingTemplateId\": \"\"\n      }\n    ]\n  },\n  \"creativeAssets\": [\n    {\n      \"actionScript3\": false,\n      \"active\": false,\n      \"additionalSizes\": [\n        {}\n      ],\n      \"alignment\": \"\",\n      \"artworkType\": \"\",\n      \"assetIdentifier\": {\n        \"name\": \"\",\n        \"type\": \"\"\n      },\n      \"audioBitRate\": 0,\n      \"audioSampleRate\": 0,\n      \"backupImageExit\": {},\n      \"bitRate\": 0,\n      \"childAssetType\": \"\",\n      \"collapsedSize\": {},\n      \"companionCreativeIds\": [],\n      \"customStartTimeValue\": 0,\n      \"detectedFeatures\": [],\n      \"displayType\": \"\",\n      \"duration\": 0,\n      \"durationType\": \"\",\n      \"expandedDimension\": {},\n      \"fileSize\": \"\",\n      \"flashVersion\": 0,\n      \"frameRate\": \"\",\n      \"hideFlashObjects\": false,\n      \"hideSelectionBoxes\": false,\n      \"horizontallyLocked\": false,\n      \"id\": \"\",\n      \"idDimensionValue\": {\n        \"dimensionName\": \"\",\n        \"etag\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"matchType\": \"\",\n        \"value\": \"\"\n      },\n      \"mediaDuration\": \"\",\n      \"mimeType\": \"\",\n      \"offset\": {},\n      \"orientation\": \"\",\n      \"originalBackup\": false,\n      \"politeLoad\": false,\n      \"position\": {},\n      \"positionLeftUnit\": \"\",\n      \"positionTopUnit\": \"\",\n      \"progressiveServingUrl\": \"\",\n      \"pushdown\": false,\n      \"pushdownDuration\": \"\",\n      \"role\": \"\",\n      \"size\": {},\n      \"sslCompliant\": false,\n      \"startTimeType\": \"\",\n      \"streamingServingUrl\": \"\",\n      \"transparency\": false,\n      \"verticallyLocked\": false,\n      \"windowMode\": \"\",\n      \"zIndex\": 0,\n      \"zipFilename\": \"\",\n      \"zipFilesize\": \"\"\n    }\n  ],\n  \"creativeFieldAssignments\": [\n    {\n      \"creativeFieldId\": \"\",\n      \"creativeFieldValueId\": \"\"\n    }\n  ],\n  \"customKeyValues\": [],\n  \"dynamicAssetSelection\": false,\n  \"exitCustomEvents\": [\n    {}\n  ],\n  \"fsCommand\": {\n    \"left\": 0,\n    \"positionOption\": \"\",\n    \"top\": 0,\n    \"windowHeight\": 0,\n    \"windowWidth\": 0\n  },\n  \"htmlCode\": \"\",\n  \"htmlCodeLocked\": false,\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {\n    \"time\": \"\"\n  },\n  \"latestTraffickedCreativeId\": \"\",\n  \"mediaDescription\": \"\",\n  \"mediaDuration\": \"\",\n  \"name\": \"\",\n  \"obaIcon\": {\n    \"iconClickThroughUrl\": \"\",\n    \"iconClickTrackingUrl\": \"\",\n    \"iconViewTrackingUrl\": \"\",\n    \"program\": \"\",\n    \"resourceUrl\": \"\",\n    \"size\": {},\n    \"xPosition\": \"\",\n    \"yPosition\": \"\"\n  },\n  \"overrideCss\": \"\",\n  \"progressOffset\": {\n    \"offsetPercentage\": 0,\n    \"offsetSeconds\": 0\n  },\n  \"redirectUrl\": \"\",\n  \"renderingId\": \"\",\n  \"renderingIdDimensionValue\": {},\n  \"requiredFlashPluginVersion\": \"\",\n  \"requiredFlashVersion\": 0,\n  \"size\": {},\n  \"skipOffset\": {},\n  \"skippable\": false,\n  \"sslCompliant\": false,\n  \"sslOverride\": false,\n  \"studioAdvertiserId\": \"\",\n  \"studioCreativeId\": \"\",\n  \"studioTraffickedCreativeId\": \"\",\n  \"subaccountId\": \"\",\n  \"thirdPartyBackupImageImpressionsUrl\": \"\",\n  \"thirdPartyRichMediaImpressionsUrl\": \"\",\n  \"thirdPartyUrls\": [\n    {\n      \"thirdPartyUrlType\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"timerCustomEvents\": [\n    {}\n  ],\n  \"totalFileSize\": \"\",\n  \"type\": \"\",\n  \"universalAdId\": {\n    \"registry\": \"\",\n    \"value\": \"\"\n  },\n  \"version\": 0\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}}/userprofiles/:profileId/creatives");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"adParameters\": \"\",\n  \"adTagKeys\": [],\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"allowScriptAccess\": false,\n  \"archived\": false,\n  \"artworkType\": \"\",\n  \"authoringSource\": \"\",\n  \"authoringTool\": \"\",\n  \"autoAdvanceImages\": false,\n  \"backgroundColor\": \"\",\n  \"backupImageClickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"landingPageId\": \"\"\n  },\n  \"backupImageFeatures\": [],\n  \"backupImageReportingLabel\": \"\",\n  \"backupImageTargetWindow\": {\n    \"customHtml\": \"\",\n    \"targetWindowOption\": \"\"\n  },\n  \"clickTags\": [\n    {\n      \"clickThroughUrl\": {},\n      \"eventName\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"commercialId\": \"\",\n  \"companionCreatives\": [],\n  \"compatibility\": [],\n  \"convertFlashToHtml5\": false,\n  \"counterCustomEvents\": [\n    {\n      \"advertiserCustomEventId\": \"\",\n      \"advertiserCustomEventName\": \"\",\n      \"advertiserCustomEventType\": \"\",\n      \"artworkLabel\": \"\",\n      \"artworkType\": \"\",\n      \"exitClickThroughUrl\": {},\n      \"id\": \"\",\n      \"popupWindowProperties\": {\n        \"dimension\": {},\n        \"offset\": {\n          \"left\": 0,\n          \"top\": 0\n        },\n        \"positionType\": \"\",\n        \"showAddressBar\": false,\n        \"showMenuBar\": false,\n        \"showScrollBar\": false,\n        \"showStatusBar\": false,\n        \"showToolBar\": false,\n        \"title\": \"\"\n      },\n      \"targetType\": \"\",\n      \"videoReportingId\": \"\"\n    }\n  ],\n  \"creativeAssetSelection\": {\n    \"defaultAssetId\": \"\",\n    \"rules\": [\n      {\n        \"assetId\": \"\",\n        \"name\": \"\",\n        \"targetingTemplateId\": \"\"\n      }\n    ]\n  },\n  \"creativeAssets\": [\n    {\n      \"actionScript3\": false,\n      \"active\": false,\n      \"additionalSizes\": [\n        {}\n      ],\n      \"alignment\": \"\",\n      \"artworkType\": \"\",\n      \"assetIdentifier\": {\n        \"name\": \"\",\n        \"type\": \"\"\n      },\n      \"audioBitRate\": 0,\n      \"audioSampleRate\": 0,\n      \"backupImageExit\": {},\n      \"bitRate\": 0,\n      \"childAssetType\": \"\",\n      \"collapsedSize\": {},\n      \"companionCreativeIds\": [],\n      \"customStartTimeValue\": 0,\n      \"detectedFeatures\": [],\n      \"displayType\": \"\",\n      \"duration\": 0,\n      \"durationType\": \"\",\n      \"expandedDimension\": {},\n      \"fileSize\": \"\",\n      \"flashVersion\": 0,\n      \"frameRate\": \"\",\n      \"hideFlashObjects\": false,\n      \"hideSelectionBoxes\": false,\n      \"horizontallyLocked\": false,\n      \"id\": \"\",\n      \"idDimensionValue\": {\n        \"dimensionName\": \"\",\n        \"etag\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"matchType\": \"\",\n        \"value\": \"\"\n      },\n      \"mediaDuration\": \"\",\n      \"mimeType\": \"\",\n      \"offset\": {},\n      \"orientation\": \"\",\n      \"originalBackup\": false,\n      \"politeLoad\": false,\n      \"position\": {},\n      \"positionLeftUnit\": \"\",\n      \"positionTopUnit\": \"\",\n      \"progressiveServingUrl\": \"\",\n      \"pushdown\": false,\n      \"pushdownDuration\": \"\",\n      \"role\": \"\",\n      \"size\": {},\n      \"sslCompliant\": false,\n      \"startTimeType\": \"\",\n      \"streamingServingUrl\": \"\",\n      \"transparency\": false,\n      \"verticallyLocked\": false,\n      \"windowMode\": \"\",\n      \"zIndex\": 0,\n      \"zipFilename\": \"\",\n      \"zipFilesize\": \"\"\n    }\n  ],\n  \"creativeFieldAssignments\": [\n    {\n      \"creativeFieldId\": \"\",\n      \"creativeFieldValueId\": \"\"\n    }\n  ],\n  \"customKeyValues\": [],\n  \"dynamicAssetSelection\": false,\n  \"exitCustomEvents\": [\n    {}\n  ],\n  \"fsCommand\": {\n    \"left\": 0,\n    \"positionOption\": \"\",\n    \"top\": 0,\n    \"windowHeight\": 0,\n    \"windowWidth\": 0\n  },\n  \"htmlCode\": \"\",\n  \"htmlCodeLocked\": false,\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {\n    \"time\": \"\"\n  },\n  \"latestTraffickedCreativeId\": \"\",\n  \"mediaDescription\": \"\",\n  \"mediaDuration\": \"\",\n  \"name\": \"\",\n  \"obaIcon\": {\n    \"iconClickThroughUrl\": \"\",\n    \"iconClickTrackingUrl\": \"\",\n    \"iconViewTrackingUrl\": \"\",\n    \"program\": \"\",\n    \"resourceUrl\": \"\",\n    \"size\": {},\n    \"xPosition\": \"\",\n    \"yPosition\": \"\"\n  },\n  \"overrideCss\": \"\",\n  \"progressOffset\": {\n    \"offsetPercentage\": 0,\n    \"offsetSeconds\": 0\n  },\n  \"redirectUrl\": \"\",\n  \"renderingId\": \"\",\n  \"renderingIdDimensionValue\": {},\n  \"requiredFlashPluginVersion\": \"\",\n  \"requiredFlashVersion\": 0,\n  \"size\": {},\n  \"skipOffset\": {},\n  \"skippable\": false,\n  \"sslCompliant\": false,\n  \"sslOverride\": false,\n  \"studioAdvertiserId\": \"\",\n  \"studioCreativeId\": \"\",\n  \"studioTraffickedCreativeId\": \"\",\n  \"subaccountId\": \"\",\n  \"thirdPartyBackupImageImpressionsUrl\": \"\",\n  \"thirdPartyRichMediaImpressionsUrl\": \"\",\n  \"thirdPartyUrls\": [\n    {\n      \"thirdPartyUrlType\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"timerCustomEvents\": [\n    {}\n  ],\n  \"totalFileSize\": \"\",\n  \"type\": \"\",\n  \"universalAdId\": {\n    \"registry\": \"\",\n    \"value\": \"\"\n  },\n  \"version\": 0\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/creatives"

	payload := strings.NewReader("{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"adParameters\": \"\",\n  \"adTagKeys\": [],\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"allowScriptAccess\": false,\n  \"archived\": false,\n  \"artworkType\": \"\",\n  \"authoringSource\": \"\",\n  \"authoringTool\": \"\",\n  \"autoAdvanceImages\": false,\n  \"backgroundColor\": \"\",\n  \"backupImageClickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"landingPageId\": \"\"\n  },\n  \"backupImageFeatures\": [],\n  \"backupImageReportingLabel\": \"\",\n  \"backupImageTargetWindow\": {\n    \"customHtml\": \"\",\n    \"targetWindowOption\": \"\"\n  },\n  \"clickTags\": [\n    {\n      \"clickThroughUrl\": {},\n      \"eventName\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"commercialId\": \"\",\n  \"companionCreatives\": [],\n  \"compatibility\": [],\n  \"convertFlashToHtml5\": false,\n  \"counterCustomEvents\": [\n    {\n      \"advertiserCustomEventId\": \"\",\n      \"advertiserCustomEventName\": \"\",\n      \"advertiserCustomEventType\": \"\",\n      \"artworkLabel\": \"\",\n      \"artworkType\": \"\",\n      \"exitClickThroughUrl\": {},\n      \"id\": \"\",\n      \"popupWindowProperties\": {\n        \"dimension\": {},\n        \"offset\": {\n          \"left\": 0,\n          \"top\": 0\n        },\n        \"positionType\": \"\",\n        \"showAddressBar\": false,\n        \"showMenuBar\": false,\n        \"showScrollBar\": false,\n        \"showStatusBar\": false,\n        \"showToolBar\": false,\n        \"title\": \"\"\n      },\n      \"targetType\": \"\",\n      \"videoReportingId\": \"\"\n    }\n  ],\n  \"creativeAssetSelection\": {\n    \"defaultAssetId\": \"\",\n    \"rules\": [\n      {\n        \"assetId\": \"\",\n        \"name\": \"\",\n        \"targetingTemplateId\": \"\"\n      }\n    ]\n  },\n  \"creativeAssets\": [\n    {\n      \"actionScript3\": false,\n      \"active\": false,\n      \"additionalSizes\": [\n        {}\n      ],\n      \"alignment\": \"\",\n      \"artworkType\": \"\",\n      \"assetIdentifier\": {\n        \"name\": \"\",\n        \"type\": \"\"\n      },\n      \"audioBitRate\": 0,\n      \"audioSampleRate\": 0,\n      \"backupImageExit\": {},\n      \"bitRate\": 0,\n      \"childAssetType\": \"\",\n      \"collapsedSize\": {},\n      \"companionCreativeIds\": [],\n      \"customStartTimeValue\": 0,\n      \"detectedFeatures\": [],\n      \"displayType\": \"\",\n      \"duration\": 0,\n      \"durationType\": \"\",\n      \"expandedDimension\": {},\n      \"fileSize\": \"\",\n      \"flashVersion\": 0,\n      \"frameRate\": \"\",\n      \"hideFlashObjects\": false,\n      \"hideSelectionBoxes\": false,\n      \"horizontallyLocked\": false,\n      \"id\": \"\",\n      \"idDimensionValue\": {\n        \"dimensionName\": \"\",\n        \"etag\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"matchType\": \"\",\n        \"value\": \"\"\n      },\n      \"mediaDuration\": \"\",\n      \"mimeType\": \"\",\n      \"offset\": {},\n      \"orientation\": \"\",\n      \"originalBackup\": false,\n      \"politeLoad\": false,\n      \"position\": {},\n      \"positionLeftUnit\": \"\",\n      \"positionTopUnit\": \"\",\n      \"progressiveServingUrl\": \"\",\n      \"pushdown\": false,\n      \"pushdownDuration\": \"\",\n      \"role\": \"\",\n      \"size\": {},\n      \"sslCompliant\": false,\n      \"startTimeType\": \"\",\n      \"streamingServingUrl\": \"\",\n      \"transparency\": false,\n      \"verticallyLocked\": false,\n      \"windowMode\": \"\",\n      \"zIndex\": 0,\n      \"zipFilename\": \"\",\n      \"zipFilesize\": \"\"\n    }\n  ],\n  \"creativeFieldAssignments\": [\n    {\n      \"creativeFieldId\": \"\",\n      \"creativeFieldValueId\": \"\"\n    }\n  ],\n  \"customKeyValues\": [],\n  \"dynamicAssetSelection\": false,\n  \"exitCustomEvents\": [\n    {}\n  ],\n  \"fsCommand\": {\n    \"left\": 0,\n    \"positionOption\": \"\",\n    \"top\": 0,\n    \"windowHeight\": 0,\n    \"windowWidth\": 0\n  },\n  \"htmlCode\": \"\",\n  \"htmlCodeLocked\": false,\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {\n    \"time\": \"\"\n  },\n  \"latestTraffickedCreativeId\": \"\",\n  \"mediaDescription\": \"\",\n  \"mediaDuration\": \"\",\n  \"name\": \"\",\n  \"obaIcon\": {\n    \"iconClickThroughUrl\": \"\",\n    \"iconClickTrackingUrl\": \"\",\n    \"iconViewTrackingUrl\": \"\",\n    \"program\": \"\",\n    \"resourceUrl\": \"\",\n    \"size\": {},\n    \"xPosition\": \"\",\n    \"yPosition\": \"\"\n  },\n  \"overrideCss\": \"\",\n  \"progressOffset\": {\n    \"offsetPercentage\": 0,\n    \"offsetSeconds\": 0\n  },\n  \"redirectUrl\": \"\",\n  \"renderingId\": \"\",\n  \"renderingIdDimensionValue\": {},\n  \"requiredFlashPluginVersion\": \"\",\n  \"requiredFlashVersion\": 0,\n  \"size\": {},\n  \"skipOffset\": {},\n  \"skippable\": false,\n  \"sslCompliant\": false,\n  \"sslOverride\": false,\n  \"studioAdvertiserId\": \"\",\n  \"studioCreativeId\": \"\",\n  \"studioTraffickedCreativeId\": \"\",\n  \"subaccountId\": \"\",\n  \"thirdPartyBackupImageImpressionsUrl\": \"\",\n  \"thirdPartyRichMediaImpressionsUrl\": \"\",\n  \"thirdPartyUrls\": [\n    {\n      \"thirdPartyUrlType\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"timerCustomEvents\": [\n    {}\n  ],\n  \"totalFileSize\": \"\",\n  \"type\": \"\",\n  \"universalAdId\": {\n    \"registry\": \"\",\n    \"value\": \"\"\n  },\n  \"version\": 0\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/userprofiles/:profileId/creatives HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 4870

{
  "accountId": "",
  "active": false,
  "adParameters": "",
  "adTagKeys": [],
  "additionalSizes": [
    {
      "height": 0,
      "iab": false,
      "id": "",
      "kind": "",
      "width": 0
    }
  ],
  "advertiserId": "",
  "allowScriptAccess": false,
  "archived": false,
  "artworkType": "",
  "authoringSource": "",
  "authoringTool": "",
  "autoAdvanceImages": false,
  "backgroundColor": "",
  "backupImageClickThroughUrl": {
    "computedClickThroughUrl": "",
    "customClickThroughUrl": "",
    "landingPageId": ""
  },
  "backupImageFeatures": [],
  "backupImageReportingLabel": "",
  "backupImageTargetWindow": {
    "customHtml": "",
    "targetWindowOption": ""
  },
  "clickTags": [
    {
      "clickThroughUrl": {},
      "eventName": "",
      "name": ""
    }
  ],
  "commercialId": "",
  "companionCreatives": [],
  "compatibility": [],
  "convertFlashToHtml5": false,
  "counterCustomEvents": [
    {
      "advertiserCustomEventId": "",
      "advertiserCustomEventName": "",
      "advertiserCustomEventType": "",
      "artworkLabel": "",
      "artworkType": "",
      "exitClickThroughUrl": {},
      "id": "",
      "popupWindowProperties": {
        "dimension": {},
        "offset": {
          "left": 0,
          "top": 0
        },
        "positionType": "",
        "showAddressBar": false,
        "showMenuBar": false,
        "showScrollBar": false,
        "showStatusBar": false,
        "showToolBar": false,
        "title": ""
      },
      "targetType": "",
      "videoReportingId": ""
    }
  ],
  "creativeAssetSelection": {
    "defaultAssetId": "",
    "rules": [
      {
        "assetId": "",
        "name": "",
        "targetingTemplateId": ""
      }
    ]
  },
  "creativeAssets": [
    {
      "actionScript3": false,
      "active": false,
      "additionalSizes": [
        {}
      ],
      "alignment": "",
      "artworkType": "",
      "assetIdentifier": {
        "name": "",
        "type": ""
      },
      "audioBitRate": 0,
      "audioSampleRate": 0,
      "backupImageExit": {},
      "bitRate": 0,
      "childAssetType": "",
      "collapsedSize": {},
      "companionCreativeIds": [],
      "customStartTimeValue": 0,
      "detectedFeatures": [],
      "displayType": "",
      "duration": 0,
      "durationType": "",
      "expandedDimension": {},
      "fileSize": "",
      "flashVersion": 0,
      "frameRate": "",
      "hideFlashObjects": false,
      "hideSelectionBoxes": false,
      "horizontallyLocked": false,
      "id": "",
      "idDimensionValue": {
        "dimensionName": "",
        "etag": "",
        "id": "",
        "kind": "",
        "matchType": "",
        "value": ""
      },
      "mediaDuration": "",
      "mimeType": "",
      "offset": {},
      "orientation": "",
      "originalBackup": false,
      "politeLoad": false,
      "position": {},
      "positionLeftUnit": "",
      "positionTopUnit": "",
      "progressiveServingUrl": "",
      "pushdown": false,
      "pushdownDuration": "",
      "role": "",
      "size": {},
      "sslCompliant": false,
      "startTimeType": "",
      "streamingServingUrl": "",
      "transparency": false,
      "verticallyLocked": false,
      "windowMode": "",
      "zIndex": 0,
      "zipFilename": "",
      "zipFilesize": ""
    }
  ],
  "creativeFieldAssignments": [
    {
      "creativeFieldId": "",
      "creativeFieldValueId": ""
    }
  ],
  "customKeyValues": [],
  "dynamicAssetSelection": false,
  "exitCustomEvents": [
    {}
  ],
  "fsCommand": {
    "left": 0,
    "positionOption": "",
    "top": 0,
    "windowHeight": 0,
    "windowWidth": 0
  },
  "htmlCode": "",
  "htmlCodeLocked": false,
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "lastModifiedInfo": {
    "time": ""
  },
  "latestTraffickedCreativeId": "",
  "mediaDescription": "",
  "mediaDuration": "",
  "name": "",
  "obaIcon": {
    "iconClickThroughUrl": "",
    "iconClickTrackingUrl": "",
    "iconViewTrackingUrl": "",
    "program": "",
    "resourceUrl": "",
    "size": {},
    "xPosition": "",
    "yPosition": ""
  },
  "overrideCss": "",
  "progressOffset": {
    "offsetPercentage": 0,
    "offsetSeconds": 0
  },
  "redirectUrl": "",
  "renderingId": "",
  "renderingIdDimensionValue": {},
  "requiredFlashPluginVersion": "",
  "requiredFlashVersion": 0,
  "size": {},
  "skipOffset": {},
  "skippable": false,
  "sslCompliant": false,
  "sslOverride": false,
  "studioAdvertiserId": "",
  "studioCreativeId": "",
  "studioTraffickedCreativeId": "",
  "subaccountId": "",
  "thirdPartyBackupImageImpressionsUrl": "",
  "thirdPartyRichMediaImpressionsUrl": "",
  "thirdPartyUrls": [
    {
      "thirdPartyUrlType": "",
      "url": ""
    }
  ],
  "timerCustomEvents": [
    {}
  ],
  "totalFileSize": "",
  "type": "",
  "universalAdId": {
    "registry": "",
    "value": ""
  },
  "version": 0
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/userprofiles/:profileId/creatives")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"adParameters\": \"\",\n  \"adTagKeys\": [],\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"allowScriptAccess\": false,\n  \"archived\": false,\n  \"artworkType\": \"\",\n  \"authoringSource\": \"\",\n  \"authoringTool\": \"\",\n  \"autoAdvanceImages\": false,\n  \"backgroundColor\": \"\",\n  \"backupImageClickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"landingPageId\": \"\"\n  },\n  \"backupImageFeatures\": [],\n  \"backupImageReportingLabel\": \"\",\n  \"backupImageTargetWindow\": {\n    \"customHtml\": \"\",\n    \"targetWindowOption\": \"\"\n  },\n  \"clickTags\": [\n    {\n      \"clickThroughUrl\": {},\n      \"eventName\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"commercialId\": \"\",\n  \"companionCreatives\": [],\n  \"compatibility\": [],\n  \"convertFlashToHtml5\": false,\n  \"counterCustomEvents\": [\n    {\n      \"advertiserCustomEventId\": \"\",\n      \"advertiserCustomEventName\": \"\",\n      \"advertiserCustomEventType\": \"\",\n      \"artworkLabel\": \"\",\n      \"artworkType\": \"\",\n      \"exitClickThroughUrl\": {},\n      \"id\": \"\",\n      \"popupWindowProperties\": {\n        \"dimension\": {},\n        \"offset\": {\n          \"left\": 0,\n          \"top\": 0\n        },\n        \"positionType\": \"\",\n        \"showAddressBar\": false,\n        \"showMenuBar\": false,\n        \"showScrollBar\": false,\n        \"showStatusBar\": false,\n        \"showToolBar\": false,\n        \"title\": \"\"\n      },\n      \"targetType\": \"\",\n      \"videoReportingId\": \"\"\n    }\n  ],\n  \"creativeAssetSelection\": {\n    \"defaultAssetId\": \"\",\n    \"rules\": [\n      {\n        \"assetId\": \"\",\n        \"name\": \"\",\n        \"targetingTemplateId\": \"\"\n      }\n    ]\n  },\n  \"creativeAssets\": [\n    {\n      \"actionScript3\": false,\n      \"active\": false,\n      \"additionalSizes\": [\n        {}\n      ],\n      \"alignment\": \"\",\n      \"artworkType\": \"\",\n      \"assetIdentifier\": {\n        \"name\": \"\",\n        \"type\": \"\"\n      },\n      \"audioBitRate\": 0,\n      \"audioSampleRate\": 0,\n      \"backupImageExit\": {},\n      \"bitRate\": 0,\n      \"childAssetType\": \"\",\n      \"collapsedSize\": {},\n      \"companionCreativeIds\": [],\n      \"customStartTimeValue\": 0,\n      \"detectedFeatures\": [],\n      \"displayType\": \"\",\n      \"duration\": 0,\n      \"durationType\": \"\",\n      \"expandedDimension\": {},\n      \"fileSize\": \"\",\n      \"flashVersion\": 0,\n      \"frameRate\": \"\",\n      \"hideFlashObjects\": false,\n      \"hideSelectionBoxes\": false,\n      \"horizontallyLocked\": false,\n      \"id\": \"\",\n      \"idDimensionValue\": {\n        \"dimensionName\": \"\",\n        \"etag\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"matchType\": \"\",\n        \"value\": \"\"\n      },\n      \"mediaDuration\": \"\",\n      \"mimeType\": \"\",\n      \"offset\": {},\n      \"orientation\": \"\",\n      \"originalBackup\": false,\n      \"politeLoad\": false,\n      \"position\": {},\n      \"positionLeftUnit\": \"\",\n      \"positionTopUnit\": \"\",\n      \"progressiveServingUrl\": \"\",\n      \"pushdown\": false,\n      \"pushdownDuration\": \"\",\n      \"role\": \"\",\n      \"size\": {},\n      \"sslCompliant\": false,\n      \"startTimeType\": \"\",\n      \"streamingServingUrl\": \"\",\n      \"transparency\": false,\n      \"verticallyLocked\": false,\n      \"windowMode\": \"\",\n      \"zIndex\": 0,\n      \"zipFilename\": \"\",\n      \"zipFilesize\": \"\"\n    }\n  ],\n  \"creativeFieldAssignments\": [\n    {\n      \"creativeFieldId\": \"\",\n      \"creativeFieldValueId\": \"\"\n    }\n  ],\n  \"customKeyValues\": [],\n  \"dynamicAssetSelection\": false,\n  \"exitCustomEvents\": [\n    {}\n  ],\n  \"fsCommand\": {\n    \"left\": 0,\n    \"positionOption\": \"\",\n    \"top\": 0,\n    \"windowHeight\": 0,\n    \"windowWidth\": 0\n  },\n  \"htmlCode\": \"\",\n  \"htmlCodeLocked\": false,\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {\n    \"time\": \"\"\n  },\n  \"latestTraffickedCreativeId\": \"\",\n  \"mediaDescription\": \"\",\n  \"mediaDuration\": \"\",\n  \"name\": \"\",\n  \"obaIcon\": {\n    \"iconClickThroughUrl\": \"\",\n    \"iconClickTrackingUrl\": \"\",\n    \"iconViewTrackingUrl\": \"\",\n    \"program\": \"\",\n    \"resourceUrl\": \"\",\n    \"size\": {},\n    \"xPosition\": \"\",\n    \"yPosition\": \"\"\n  },\n  \"overrideCss\": \"\",\n  \"progressOffset\": {\n    \"offsetPercentage\": 0,\n    \"offsetSeconds\": 0\n  },\n  \"redirectUrl\": \"\",\n  \"renderingId\": \"\",\n  \"renderingIdDimensionValue\": {},\n  \"requiredFlashPluginVersion\": \"\",\n  \"requiredFlashVersion\": 0,\n  \"size\": {},\n  \"skipOffset\": {},\n  \"skippable\": false,\n  \"sslCompliant\": false,\n  \"sslOverride\": false,\n  \"studioAdvertiserId\": \"\",\n  \"studioCreativeId\": \"\",\n  \"studioTraffickedCreativeId\": \"\",\n  \"subaccountId\": \"\",\n  \"thirdPartyBackupImageImpressionsUrl\": \"\",\n  \"thirdPartyRichMediaImpressionsUrl\": \"\",\n  \"thirdPartyUrls\": [\n    {\n      \"thirdPartyUrlType\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"timerCustomEvents\": [\n    {}\n  ],\n  \"totalFileSize\": \"\",\n  \"type\": \"\",\n  \"universalAdId\": {\n    \"registry\": \"\",\n    \"value\": \"\"\n  },\n  \"version\": 0\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/creatives"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"adParameters\": \"\",\n  \"adTagKeys\": [],\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"allowScriptAccess\": false,\n  \"archived\": false,\n  \"artworkType\": \"\",\n  \"authoringSource\": \"\",\n  \"authoringTool\": \"\",\n  \"autoAdvanceImages\": false,\n  \"backgroundColor\": \"\",\n  \"backupImageClickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"landingPageId\": \"\"\n  },\n  \"backupImageFeatures\": [],\n  \"backupImageReportingLabel\": \"\",\n  \"backupImageTargetWindow\": {\n    \"customHtml\": \"\",\n    \"targetWindowOption\": \"\"\n  },\n  \"clickTags\": [\n    {\n      \"clickThroughUrl\": {},\n      \"eventName\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"commercialId\": \"\",\n  \"companionCreatives\": [],\n  \"compatibility\": [],\n  \"convertFlashToHtml5\": false,\n  \"counterCustomEvents\": [\n    {\n      \"advertiserCustomEventId\": \"\",\n      \"advertiserCustomEventName\": \"\",\n      \"advertiserCustomEventType\": \"\",\n      \"artworkLabel\": \"\",\n      \"artworkType\": \"\",\n      \"exitClickThroughUrl\": {},\n      \"id\": \"\",\n      \"popupWindowProperties\": {\n        \"dimension\": {},\n        \"offset\": {\n          \"left\": 0,\n          \"top\": 0\n        },\n        \"positionType\": \"\",\n        \"showAddressBar\": false,\n        \"showMenuBar\": false,\n        \"showScrollBar\": false,\n        \"showStatusBar\": false,\n        \"showToolBar\": false,\n        \"title\": \"\"\n      },\n      \"targetType\": \"\",\n      \"videoReportingId\": \"\"\n    }\n  ],\n  \"creativeAssetSelection\": {\n    \"defaultAssetId\": \"\",\n    \"rules\": [\n      {\n        \"assetId\": \"\",\n        \"name\": \"\",\n        \"targetingTemplateId\": \"\"\n      }\n    ]\n  },\n  \"creativeAssets\": [\n    {\n      \"actionScript3\": false,\n      \"active\": false,\n      \"additionalSizes\": [\n        {}\n      ],\n      \"alignment\": \"\",\n      \"artworkType\": \"\",\n      \"assetIdentifier\": {\n        \"name\": \"\",\n        \"type\": \"\"\n      },\n      \"audioBitRate\": 0,\n      \"audioSampleRate\": 0,\n      \"backupImageExit\": {},\n      \"bitRate\": 0,\n      \"childAssetType\": \"\",\n      \"collapsedSize\": {},\n      \"companionCreativeIds\": [],\n      \"customStartTimeValue\": 0,\n      \"detectedFeatures\": [],\n      \"displayType\": \"\",\n      \"duration\": 0,\n      \"durationType\": \"\",\n      \"expandedDimension\": {},\n      \"fileSize\": \"\",\n      \"flashVersion\": 0,\n      \"frameRate\": \"\",\n      \"hideFlashObjects\": false,\n      \"hideSelectionBoxes\": false,\n      \"horizontallyLocked\": false,\n      \"id\": \"\",\n      \"idDimensionValue\": {\n        \"dimensionName\": \"\",\n        \"etag\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"matchType\": \"\",\n        \"value\": \"\"\n      },\n      \"mediaDuration\": \"\",\n      \"mimeType\": \"\",\n      \"offset\": {},\n      \"orientation\": \"\",\n      \"originalBackup\": false,\n      \"politeLoad\": false,\n      \"position\": {},\n      \"positionLeftUnit\": \"\",\n      \"positionTopUnit\": \"\",\n      \"progressiveServingUrl\": \"\",\n      \"pushdown\": false,\n      \"pushdownDuration\": \"\",\n      \"role\": \"\",\n      \"size\": {},\n      \"sslCompliant\": false,\n      \"startTimeType\": \"\",\n      \"streamingServingUrl\": \"\",\n      \"transparency\": false,\n      \"verticallyLocked\": false,\n      \"windowMode\": \"\",\n      \"zIndex\": 0,\n      \"zipFilename\": \"\",\n      \"zipFilesize\": \"\"\n    }\n  ],\n  \"creativeFieldAssignments\": [\n    {\n      \"creativeFieldId\": \"\",\n      \"creativeFieldValueId\": \"\"\n    }\n  ],\n  \"customKeyValues\": [],\n  \"dynamicAssetSelection\": false,\n  \"exitCustomEvents\": [\n    {}\n  ],\n  \"fsCommand\": {\n    \"left\": 0,\n    \"positionOption\": \"\",\n    \"top\": 0,\n    \"windowHeight\": 0,\n    \"windowWidth\": 0\n  },\n  \"htmlCode\": \"\",\n  \"htmlCodeLocked\": false,\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {\n    \"time\": \"\"\n  },\n  \"latestTraffickedCreativeId\": \"\",\n  \"mediaDescription\": \"\",\n  \"mediaDuration\": \"\",\n  \"name\": \"\",\n  \"obaIcon\": {\n    \"iconClickThroughUrl\": \"\",\n    \"iconClickTrackingUrl\": \"\",\n    \"iconViewTrackingUrl\": \"\",\n    \"program\": \"\",\n    \"resourceUrl\": \"\",\n    \"size\": {},\n    \"xPosition\": \"\",\n    \"yPosition\": \"\"\n  },\n  \"overrideCss\": \"\",\n  \"progressOffset\": {\n    \"offsetPercentage\": 0,\n    \"offsetSeconds\": 0\n  },\n  \"redirectUrl\": \"\",\n  \"renderingId\": \"\",\n  \"renderingIdDimensionValue\": {},\n  \"requiredFlashPluginVersion\": \"\",\n  \"requiredFlashVersion\": 0,\n  \"size\": {},\n  \"skipOffset\": {},\n  \"skippable\": false,\n  \"sslCompliant\": false,\n  \"sslOverride\": false,\n  \"studioAdvertiserId\": \"\",\n  \"studioCreativeId\": \"\",\n  \"studioTraffickedCreativeId\": \"\",\n  \"subaccountId\": \"\",\n  \"thirdPartyBackupImageImpressionsUrl\": \"\",\n  \"thirdPartyRichMediaImpressionsUrl\": \"\",\n  \"thirdPartyUrls\": [\n    {\n      \"thirdPartyUrlType\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"timerCustomEvents\": [\n    {}\n  ],\n  \"totalFileSize\": \"\",\n  \"type\": \"\",\n  \"universalAdId\": {\n    \"registry\": \"\",\n    \"value\": \"\"\n  },\n  \"version\": 0\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  \"accountId\": \"\",\n  \"active\": false,\n  \"adParameters\": \"\",\n  \"adTagKeys\": [],\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"allowScriptAccess\": false,\n  \"archived\": false,\n  \"artworkType\": \"\",\n  \"authoringSource\": \"\",\n  \"authoringTool\": \"\",\n  \"autoAdvanceImages\": false,\n  \"backgroundColor\": \"\",\n  \"backupImageClickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"landingPageId\": \"\"\n  },\n  \"backupImageFeatures\": [],\n  \"backupImageReportingLabel\": \"\",\n  \"backupImageTargetWindow\": {\n    \"customHtml\": \"\",\n    \"targetWindowOption\": \"\"\n  },\n  \"clickTags\": [\n    {\n      \"clickThroughUrl\": {},\n      \"eventName\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"commercialId\": \"\",\n  \"companionCreatives\": [],\n  \"compatibility\": [],\n  \"convertFlashToHtml5\": false,\n  \"counterCustomEvents\": [\n    {\n      \"advertiserCustomEventId\": \"\",\n      \"advertiserCustomEventName\": \"\",\n      \"advertiserCustomEventType\": \"\",\n      \"artworkLabel\": \"\",\n      \"artworkType\": \"\",\n      \"exitClickThroughUrl\": {},\n      \"id\": \"\",\n      \"popupWindowProperties\": {\n        \"dimension\": {},\n        \"offset\": {\n          \"left\": 0,\n          \"top\": 0\n        },\n        \"positionType\": \"\",\n        \"showAddressBar\": false,\n        \"showMenuBar\": false,\n        \"showScrollBar\": false,\n        \"showStatusBar\": false,\n        \"showToolBar\": false,\n        \"title\": \"\"\n      },\n      \"targetType\": \"\",\n      \"videoReportingId\": \"\"\n    }\n  ],\n  \"creativeAssetSelection\": {\n    \"defaultAssetId\": \"\",\n    \"rules\": [\n      {\n        \"assetId\": \"\",\n        \"name\": \"\",\n        \"targetingTemplateId\": \"\"\n      }\n    ]\n  },\n  \"creativeAssets\": [\n    {\n      \"actionScript3\": false,\n      \"active\": false,\n      \"additionalSizes\": [\n        {}\n      ],\n      \"alignment\": \"\",\n      \"artworkType\": \"\",\n      \"assetIdentifier\": {\n        \"name\": \"\",\n        \"type\": \"\"\n      },\n      \"audioBitRate\": 0,\n      \"audioSampleRate\": 0,\n      \"backupImageExit\": {},\n      \"bitRate\": 0,\n      \"childAssetType\": \"\",\n      \"collapsedSize\": {},\n      \"companionCreativeIds\": [],\n      \"customStartTimeValue\": 0,\n      \"detectedFeatures\": [],\n      \"displayType\": \"\",\n      \"duration\": 0,\n      \"durationType\": \"\",\n      \"expandedDimension\": {},\n      \"fileSize\": \"\",\n      \"flashVersion\": 0,\n      \"frameRate\": \"\",\n      \"hideFlashObjects\": false,\n      \"hideSelectionBoxes\": false,\n      \"horizontallyLocked\": false,\n      \"id\": \"\",\n      \"idDimensionValue\": {\n        \"dimensionName\": \"\",\n        \"etag\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"matchType\": \"\",\n        \"value\": \"\"\n      },\n      \"mediaDuration\": \"\",\n      \"mimeType\": \"\",\n      \"offset\": {},\n      \"orientation\": \"\",\n      \"originalBackup\": false,\n      \"politeLoad\": false,\n      \"position\": {},\n      \"positionLeftUnit\": \"\",\n      \"positionTopUnit\": \"\",\n      \"progressiveServingUrl\": \"\",\n      \"pushdown\": false,\n      \"pushdownDuration\": \"\",\n      \"role\": \"\",\n      \"size\": {},\n      \"sslCompliant\": false,\n      \"startTimeType\": \"\",\n      \"streamingServingUrl\": \"\",\n      \"transparency\": false,\n      \"verticallyLocked\": false,\n      \"windowMode\": \"\",\n      \"zIndex\": 0,\n      \"zipFilename\": \"\",\n      \"zipFilesize\": \"\"\n    }\n  ],\n  \"creativeFieldAssignments\": [\n    {\n      \"creativeFieldId\": \"\",\n      \"creativeFieldValueId\": \"\"\n    }\n  ],\n  \"customKeyValues\": [],\n  \"dynamicAssetSelection\": false,\n  \"exitCustomEvents\": [\n    {}\n  ],\n  \"fsCommand\": {\n    \"left\": 0,\n    \"positionOption\": \"\",\n    \"top\": 0,\n    \"windowHeight\": 0,\n    \"windowWidth\": 0\n  },\n  \"htmlCode\": \"\",\n  \"htmlCodeLocked\": false,\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {\n    \"time\": \"\"\n  },\n  \"latestTraffickedCreativeId\": \"\",\n  \"mediaDescription\": \"\",\n  \"mediaDuration\": \"\",\n  \"name\": \"\",\n  \"obaIcon\": {\n    \"iconClickThroughUrl\": \"\",\n    \"iconClickTrackingUrl\": \"\",\n    \"iconViewTrackingUrl\": \"\",\n    \"program\": \"\",\n    \"resourceUrl\": \"\",\n    \"size\": {},\n    \"xPosition\": \"\",\n    \"yPosition\": \"\"\n  },\n  \"overrideCss\": \"\",\n  \"progressOffset\": {\n    \"offsetPercentage\": 0,\n    \"offsetSeconds\": 0\n  },\n  \"redirectUrl\": \"\",\n  \"renderingId\": \"\",\n  \"renderingIdDimensionValue\": {},\n  \"requiredFlashPluginVersion\": \"\",\n  \"requiredFlashVersion\": 0,\n  \"size\": {},\n  \"skipOffset\": {},\n  \"skippable\": false,\n  \"sslCompliant\": false,\n  \"sslOverride\": false,\n  \"studioAdvertiserId\": \"\",\n  \"studioCreativeId\": \"\",\n  \"studioTraffickedCreativeId\": \"\",\n  \"subaccountId\": \"\",\n  \"thirdPartyBackupImageImpressionsUrl\": \"\",\n  \"thirdPartyRichMediaImpressionsUrl\": \"\",\n  \"thirdPartyUrls\": [\n    {\n      \"thirdPartyUrlType\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"timerCustomEvents\": [\n    {}\n  ],\n  \"totalFileSize\": \"\",\n  \"type\": \"\",\n  \"universalAdId\": {\n    \"registry\": \"\",\n    \"value\": \"\"\n  },\n  \"version\": 0\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/creatives")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/userprofiles/:profileId/creatives")
  .header("content-type", "application/json")
  .body("{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"adParameters\": \"\",\n  \"adTagKeys\": [],\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"allowScriptAccess\": false,\n  \"archived\": false,\n  \"artworkType\": \"\",\n  \"authoringSource\": \"\",\n  \"authoringTool\": \"\",\n  \"autoAdvanceImages\": false,\n  \"backgroundColor\": \"\",\n  \"backupImageClickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"landingPageId\": \"\"\n  },\n  \"backupImageFeatures\": [],\n  \"backupImageReportingLabel\": \"\",\n  \"backupImageTargetWindow\": {\n    \"customHtml\": \"\",\n    \"targetWindowOption\": \"\"\n  },\n  \"clickTags\": [\n    {\n      \"clickThroughUrl\": {},\n      \"eventName\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"commercialId\": \"\",\n  \"companionCreatives\": [],\n  \"compatibility\": [],\n  \"convertFlashToHtml5\": false,\n  \"counterCustomEvents\": [\n    {\n      \"advertiserCustomEventId\": \"\",\n      \"advertiserCustomEventName\": \"\",\n      \"advertiserCustomEventType\": \"\",\n      \"artworkLabel\": \"\",\n      \"artworkType\": \"\",\n      \"exitClickThroughUrl\": {},\n      \"id\": \"\",\n      \"popupWindowProperties\": {\n        \"dimension\": {},\n        \"offset\": {\n          \"left\": 0,\n          \"top\": 0\n        },\n        \"positionType\": \"\",\n        \"showAddressBar\": false,\n        \"showMenuBar\": false,\n        \"showScrollBar\": false,\n        \"showStatusBar\": false,\n        \"showToolBar\": false,\n        \"title\": \"\"\n      },\n      \"targetType\": \"\",\n      \"videoReportingId\": \"\"\n    }\n  ],\n  \"creativeAssetSelection\": {\n    \"defaultAssetId\": \"\",\n    \"rules\": [\n      {\n        \"assetId\": \"\",\n        \"name\": \"\",\n        \"targetingTemplateId\": \"\"\n      }\n    ]\n  },\n  \"creativeAssets\": [\n    {\n      \"actionScript3\": false,\n      \"active\": false,\n      \"additionalSizes\": [\n        {}\n      ],\n      \"alignment\": \"\",\n      \"artworkType\": \"\",\n      \"assetIdentifier\": {\n        \"name\": \"\",\n        \"type\": \"\"\n      },\n      \"audioBitRate\": 0,\n      \"audioSampleRate\": 0,\n      \"backupImageExit\": {},\n      \"bitRate\": 0,\n      \"childAssetType\": \"\",\n      \"collapsedSize\": {},\n      \"companionCreativeIds\": [],\n      \"customStartTimeValue\": 0,\n      \"detectedFeatures\": [],\n      \"displayType\": \"\",\n      \"duration\": 0,\n      \"durationType\": \"\",\n      \"expandedDimension\": {},\n      \"fileSize\": \"\",\n      \"flashVersion\": 0,\n      \"frameRate\": \"\",\n      \"hideFlashObjects\": false,\n      \"hideSelectionBoxes\": false,\n      \"horizontallyLocked\": false,\n      \"id\": \"\",\n      \"idDimensionValue\": {\n        \"dimensionName\": \"\",\n        \"etag\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"matchType\": \"\",\n        \"value\": \"\"\n      },\n      \"mediaDuration\": \"\",\n      \"mimeType\": \"\",\n      \"offset\": {},\n      \"orientation\": \"\",\n      \"originalBackup\": false,\n      \"politeLoad\": false,\n      \"position\": {},\n      \"positionLeftUnit\": \"\",\n      \"positionTopUnit\": \"\",\n      \"progressiveServingUrl\": \"\",\n      \"pushdown\": false,\n      \"pushdownDuration\": \"\",\n      \"role\": \"\",\n      \"size\": {},\n      \"sslCompliant\": false,\n      \"startTimeType\": \"\",\n      \"streamingServingUrl\": \"\",\n      \"transparency\": false,\n      \"verticallyLocked\": false,\n      \"windowMode\": \"\",\n      \"zIndex\": 0,\n      \"zipFilename\": \"\",\n      \"zipFilesize\": \"\"\n    }\n  ],\n  \"creativeFieldAssignments\": [\n    {\n      \"creativeFieldId\": \"\",\n      \"creativeFieldValueId\": \"\"\n    }\n  ],\n  \"customKeyValues\": [],\n  \"dynamicAssetSelection\": false,\n  \"exitCustomEvents\": [\n    {}\n  ],\n  \"fsCommand\": {\n    \"left\": 0,\n    \"positionOption\": \"\",\n    \"top\": 0,\n    \"windowHeight\": 0,\n    \"windowWidth\": 0\n  },\n  \"htmlCode\": \"\",\n  \"htmlCodeLocked\": false,\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {\n    \"time\": \"\"\n  },\n  \"latestTraffickedCreativeId\": \"\",\n  \"mediaDescription\": \"\",\n  \"mediaDuration\": \"\",\n  \"name\": \"\",\n  \"obaIcon\": {\n    \"iconClickThroughUrl\": \"\",\n    \"iconClickTrackingUrl\": \"\",\n    \"iconViewTrackingUrl\": \"\",\n    \"program\": \"\",\n    \"resourceUrl\": \"\",\n    \"size\": {},\n    \"xPosition\": \"\",\n    \"yPosition\": \"\"\n  },\n  \"overrideCss\": \"\",\n  \"progressOffset\": {\n    \"offsetPercentage\": 0,\n    \"offsetSeconds\": 0\n  },\n  \"redirectUrl\": \"\",\n  \"renderingId\": \"\",\n  \"renderingIdDimensionValue\": {},\n  \"requiredFlashPluginVersion\": \"\",\n  \"requiredFlashVersion\": 0,\n  \"size\": {},\n  \"skipOffset\": {},\n  \"skippable\": false,\n  \"sslCompliant\": false,\n  \"sslOverride\": false,\n  \"studioAdvertiserId\": \"\",\n  \"studioCreativeId\": \"\",\n  \"studioTraffickedCreativeId\": \"\",\n  \"subaccountId\": \"\",\n  \"thirdPartyBackupImageImpressionsUrl\": \"\",\n  \"thirdPartyRichMediaImpressionsUrl\": \"\",\n  \"thirdPartyUrls\": [\n    {\n      \"thirdPartyUrlType\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"timerCustomEvents\": [\n    {}\n  ],\n  \"totalFileSize\": \"\",\n  \"type\": \"\",\n  \"universalAdId\": {\n    \"registry\": \"\",\n    \"value\": \"\"\n  },\n  \"version\": 0\n}")
  .asString();
const data = JSON.stringify({
  accountId: '',
  active: false,
  adParameters: '',
  adTagKeys: [],
  additionalSizes: [
    {
      height: 0,
      iab: false,
      id: '',
      kind: '',
      width: 0
    }
  ],
  advertiserId: '',
  allowScriptAccess: false,
  archived: false,
  artworkType: '',
  authoringSource: '',
  authoringTool: '',
  autoAdvanceImages: false,
  backgroundColor: '',
  backupImageClickThroughUrl: {
    computedClickThroughUrl: '',
    customClickThroughUrl: '',
    landingPageId: ''
  },
  backupImageFeatures: [],
  backupImageReportingLabel: '',
  backupImageTargetWindow: {
    customHtml: '',
    targetWindowOption: ''
  },
  clickTags: [
    {
      clickThroughUrl: {},
      eventName: '',
      name: ''
    }
  ],
  commercialId: '',
  companionCreatives: [],
  compatibility: [],
  convertFlashToHtml5: false,
  counterCustomEvents: [
    {
      advertiserCustomEventId: '',
      advertiserCustomEventName: '',
      advertiserCustomEventType: '',
      artworkLabel: '',
      artworkType: '',
      exitClickThroughUrl: {},
      id: '',
      popupWindowProperties: {
        dimension: {},
        offset: {
          left: 0,
          top: 0
        },
        positionType: '',
        showAddressBar: false,
        showMenuBar: false,
        showScrollBar: false,
        showStatusBar: false,
        showToolBar: false,
        title: ''
      },
      targetType: '',
      videoReportingId: ''
    }
  ],
  creativeAssetSelection: {
    defaultAssetId: '',
    rules: [
      {
        assetId: '',
        name: '',
        targetingTemplateId: ''
      }
    ]
  },
  creativeAssets: [
    {
      actionScript3: false,
      active: false,
      additionalSizes: [
        {}
      ],
      alignment: '',
      artworkType: '',
      assetIdentifier: {
        name: '',
        type: ''
      },
      audioBitRate: 0,
      audioSampleRate: 0,
      backupImageExit: {},
      bitRate: 0,
      childAssetType: '',
      collapsedSize: {},
      companionCreativeIds: [],
      customStartTimeValue: 0,
      detectedFeatures: [],
      displayType: '',
      duration: 0,
      durationType: '',
      expandedDimension: {},
      fileSize: '',
      flashVersion: 0,
      frameRate: '',
      hideFlashObjects: false,
      hideSelectionBoxes: false,
      horizontallyLocked: false,
      id: '',
      idDimensionValue: {
        dimensionName: '',
        etag: '',
        id: '',
        kind: '',
        matchType: '',
        value: ''
      },
      mediaDuration: '',
      mimeType: '',
      offset: {},
      orientation: '',
      originalBackup: false,
      politeLoad: false,
      position: {},
      positionLeftUnit: '',
      positionTopUnit: '',
      progressiveServingUrl: '',
      pushdown: false,
      pushdownDuration: '',
      role: '',
      size: {},
      sslCompliant: false,
      startTimeType: '',
      streamingServingUrl: '',
      transparency: false,
      verticallyLocked: false,
      windowMode: '',
      zIndex: 0,
      zipFilename: '',
      zipFilesize: ''
    }
  ],
  creativeFieldAssignments: [
    {
      creativeFieldId: '',
      creativeFieldValueId: ''
    }
  ],
  customKeyValues: [],
  dynamicAssetSelection: false,
  exitCustomEvents: [
    {}
  ],
  fsCommand: {
    left: 0,
    positionOption: '',
    top: 0,
    windowHeight: 0,
    windowWidth: 0
  },
  htmlCode: '',
  htmlCodeLocked: false,
  id: '',
  idDimensionValue: {},
  kind: '',
  lastModifiedInfo: {
    time: ''
  },
  latestTraffickedCreativeId: '',
  mediaDescription: '',
  mediaDuration: '',
  name: '',
  obaIcon: {
    iconClickThroughUrl: '',
    iconClickTrackingUrl: '',
    iconViewTrackingUrl: '',
    program: '',
    resourceUrl: '',
    size: {},
    xPosition: '',
    yPosition: ''
  },
  overrideCss: '',
  progressOffset: {
    offsetPercentage: 0,
    offsetSeconds: 0
  },
  redirectUrl: '',
  renderingId: '',
  renderingIdDimensionValue: {},
  requiredFlashPluginVersion: '',
  requiredFlashVersion: 0,
  size: {},
  skipOffset: {},
  skippable: false,
  sslCompliant: false,
  sslOverride: false,
  studioAdvertiserId: '',
  studioCreativeId: '',
  studioTraffickedCreativeId: '',
  subaccountId: '',
  thirdPartyBackupImageImpressionsUrl: '',
  thirdPartyRichMediaImpressionsUrl: '',
  thirdPartyUrls: [
    {
      thirdPartyUrlType: '',
      url: ''
    }
  ],
  timerCustomEvents: [
    {}
  ],
  totalFileSize: '',
  type: '',
  universalAdId: {
    registry: '',
    value: ''
  },
  version: 0
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/userprofiles/:profileId/creatives');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/userprofiles/:profileId/creatives',
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    active: false,
    adParameters: '',
    adTagKeys: [],
    additionalSizes: [{height: 0, iab: false, id: '', kind: '', width: 0}],
    advertiserId: '',
    allowScriptAccess: false,
    archived: false,
    artworkType: '',
    authoringSource: '',
    authoringTool: '',
    autoAdvanceImages: false,
    backgroundColor: '',
    backupImageClickThroughUrl: {computedClickThroughUrl: '', customClickThroughUrl: '', landingPageId: ''},
    backupImageFeatures: [],
    backupImageReportingLabel: '',
    backupImageTargetWindow: {customHtml: '', targetWindowOption: ''},
    clickTags: [{clickThroughUrl: {}, eventName: '', name: ''}],
    commercialId: '',
    companionCreatives: [],
    compatibility: [],
    convertFlashToHtml5: false,
    counterCustomEvents: [
      {
        advertiserCustomEventId: '',
        advertiserCustomEventName: '',
        advertiserCustomEventType: '',
        artworkLabel: '',
        artworkType: '',
        exitClickThroughUrl: {},
        id: '',
        popupWindowProperties: {
          dimension: {},
          offset: {left: 0, top: 0},
          positionType: '',
          showAddressBar: false,
          showMenuBar: false,
          showScrollBar: false,
          showStatusBar: false,
          showToolBar: false,
          title: ''
        },
        targetType: '',
        videoReportingId: ''
      }
    ],
    creativeAssetSelection: {defaultAssetId: '', rules: [{assetId: '', name: '', targetingTemplateId: ''}]},
    creativeAssets: [
      {
        actionScript3: false,
        active: false,
        additionalSizes: [{}],
        alignment: '',
        artworkType: '',
        assetIdentifier: {name: '', type: ''},
        audioBitRate: 0,
        audioSampleRate: 0,
        backupImageExit: {},
        bitRate: 0,
        childAssetType: '',
        collapsedSize: {},
        companionCreativeIds: [],
        customStartTimeValue: 0,
        detectedFeatures: [],
        displayType: '',
        duration: 0,
        durationType: '',
        expandedDimension: {},
        fileSize: '',
        flashVersion: 0,
        frameRate: '',
        hideFlashObjects: false,
        hideSelectionBoxes: false,
        horizontallyLocked: false,
        id: '',
        idDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
        mediaDuration: '',
        mimeType: '',
        offset: {},
        orientation: '',
        originalBackup: false,
        politeLoad: false,
        position: {},
        positionLeftUnit: '',
        positionTopUnit: '',
        progressiveServingUrl: '',
        pushdown: false,
        pushdownDuration: '',
        role: '',
        size: {},
        sslCompliant: false,
        startTimeType: '',
        streamingServingUrl: '',
        transparency: false,
        verticallyLocked: false,
        windowMode: '',
        zIndex: 0,
        zipFilename: '',
        zipFilesize: ''
      }
    ],
    creativeFieldAssignments: [{creativeFieldId: '', creativeFieldValueId: ''}],
    customKeyValues: [],
    dynamicAssetSelection: false,
    exitCustomEvents: [{}],
    fsCommand: {left: 0, positionOption: '', top: 0, windowHeight: 0, windowWidth: 0},
    htmlCode: '',
    htmlCodeLocked: false,
    id: '',
    idDimensionValue: {},
    kind: '',
    lastModifiedInfo: {time: ''},
    latestTraffickedCreativeId: '',
    mediaDescription: '',
    mediaDuration: '',
    name: '',
    obaIcon: {
      iconClickThroughUrl: '',
      iconClickTrackingUrl: '',
      iconViewTrackingUrl: '',
      program: '',
      resourceUrl: '',
      size: {},
      xPosition: '',
      yPosition: ''
    },
    overrideCss: '',
    progressOffset: {offsetPercentage: 0, offsetSeconds: 0},
    redirectUrl: '',
    renderingId: '',
    renderingIdDimensionValue: {},
    requiredFlashPluginVersion: '',
    requiredFlashVersion: 0,
    size: {},
    skipOffset: {},
    skippable: false,
    sslCompliant: false,
    sslOverride: false,
    studioAdvertiserId: '',
    studioCreativeId: '',
    studioTraffickedCreativeId: '',
    subaccountId: '',
    thirdPartyBackupImageImpressionsUrl: '',
    thirdPartyRichMediaImpressionsUrl: '',
    thirdPartyUrls: [{thirdPartyUrlType: '', url: ''}],
    timerCustomEvents: [{}],
    totalFileSize: '',
    type: '',
    universalAdId: {registry: '', value: ''},
    version: 0
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/creatives';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","active":false,"adParameters":"","adTagKeys":[],"additionalSizes":[{"height":0,"iab":false,"id":"","kind":"","width":0}],"advertiserId":"","allowScriptAccess":false,"archived":false,"artworkType":"","authoringSource":"","authoringTool":"","autoAdvanceImages":false,"backgroundColor":"","backupImageClickThroughUrl":{"computedClickThroughUrl":"","customClickThroughUrl":"","landingPageId":""},"backupImageFeatures":[],"backupImageReportingLabel":"","backupImageTargetWindow":{"customHtml":"","targetWindowOption":""},"clickTags":[{"clickThroughUrl":{},"eventName":"","name":""}],"commercialId":"","companionCreatives":[],"compatibility":[],"convertFlashToHtml5":false,"counterCustomEvents":[{"advertiserCustomEventId":"","advertiserCustomEventName":"","advertiserCustomEventType":"","artworkLabel":"","artworkType":"","exitClickThroughUrl":{},"id":"","popupWindowProperties":{"dimension":{},"offset":{"left":0,"top":0},"positionType":"","showAddressBar":false,"showMenuBar":false,"showScrollBar":false,"showStatusBar":false,"showToolBar":false,"title":""},"targetType":"","videoReportingId":""}],"creativeAssetSelection":{"defaultAssetId":"","rules":[{"assetId":"","name":"","targetingTemplateId":""}]},"creativeAssets":[{"actionScript3":false,"active":false,"additionalSizes":[{}],"alignment":"","artworkType":"","assetIdentifier":{"name":"","type":""},"audioBitRate":0,"audioSampleRate":0,"backupImageExit":{},"bitRate":0,"childAssetType":"","collapsedSize":{},"companionCreativeIds":[],"customStartTimeValue":0,"detectedFeatures":[],"displayType":"","duration":0,"durationType":"","expandedDimension":{},"fileSize":"","flashVersion":0,"frameRate":"","hideFlashObjects":false,"hideSelectionBoxes":false,"horizontallyLocked":false,"id":"","idDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"mediaDuration":"","mimeType":"","offset":{},"orientation":"","originalBackup":false,"politeLoad":false,"position":{},"positionLeftUnit":"","positionTopUnit":"","progressiveServingUrl":"","pushdown":false,"pushdownDuration":"","role":"","size":{},"sslCompliant":false,"startTimeType":"","streamingServingUrl":"","transparency":false,"verticallyLocked":false,"windowMode":"","zIndex":0,"zipFilename":"","zipFilesize":""}],"creativeFieldAssignments":[{"creativeFieldId":"","creativeFieldValueId":""}],"customKeyValues":[],"dynamicAssetSelection":false,"exitCustomEvents":[{}],"fsCommand":{"left":0,"positionOption":"","top":0,"windowHeight":0,"windowWidth":0},"htmlCode":"","htmlCodeLocked":false,"id":"","idDimensionValue":{},"kind":"","lastModifiedInfo":{"time":""},"latestTraffickedCreativeId":"","mediaDescription":"","mediaDuration":"","name":"","obaIcon":{"iconClickThroughUrl":"","iconClickTrackingUrl":"","iconViewTrackingUrl":"","program":"","resourceUrl":"","size":{},"xPosition":"","yPosition":""},"overrideCss":"","progressOffset":{"offsetPercentage":0,"offsetSeconds":0},"redirectUrl":"","renderingId":"","renderingIdDimensionValue":{},"requiredFlashPluginVersion":"","requiredFlashVersion":0,"size":{},"skipOffset":{},"skippable":false,"sslCompliant":false,"sslOverride":false,"studioAdvertiserId":"","studioCreativeId":"","studioTraffickedCreativeId":"","subaccountId":"","thirdPartyBackupImageImpressionsUrl":"","thirdPartyRichMediaImpressionsUrl":"","thirdPartyUrls":[{"thirdPartyUrlType":"","url":""}],"timerCustomEvents":[{}],"totalFileSize":"","type":"","universalAdId":{"registry":"","value":""},"version":0}'
};

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}}/userprofiles/:profileId/creatives',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "accountId": "",\n  "active": false,\n  "adParameters": "",\n  "adTagKeys": [],\n  "additionalSizes": [\n    {\n      "height": 0,\n      "iab": false,\n      "id": "",\n      "kind": "",\n      "width": 0\n    }\n  ],\n  "advertiserId": "",\n  "allowScriptAccess": false,\n  "archived": false,\n  "artworkType": "",\n  "authoringSource": "",\n  "authoringTool": "",\n  "autoAdvanceImages": false,\n  "backgroundColor": "",\n  "backupImageClickThroughUrl": {\n    "computedClickThroughUrl": "",\n    "customClickThroughUrl": "",\n    "landingPageId": ""\n  },\n  "backupImageFeatures": [],\n  "backupImageReportingLabel": "",\n  "backupImageTargetWindow": {\n    "customHtml": "",\n    "targetWindowOption": ""\n  },\n  "clickTags": [\n    {\n      "clickThroughUrl": {},\n      "eventName": "",\n      "name": ""\n    }\n  ],\n  "commercialId": "",\n  "companionCreatives": [],\n  "compatibility": [],\n  "convertFlashToHtml5": false,\n  "counterCustomEvents": [\n    {\n      "advertiserCustomEventId": "",\n      "advertiserCustomEventName": "",\n      "advertiserCustomEventType": "",\n      "artworkLabel": "",\n      "artworkType": "",\n      "exitClickThroughUrl": {},\n      "id": "",\n      "popupWindowProperties": {\n        "dimension": {},\n        "offset": {\n          "left": 0,\n          "top": 0\n        },\n        "positionType": "",\n        "showAddressBar": false,\n        "showMenuBar": false,\n        "showScrollBar": false,\n        "showStatusBar": false,\n        "showToolBar": false,\n        "title": ""\n      },\n      "targetType": "",\n      "videoReportingId": ""\n    }\n  ],\n  "creativeAssetSelection": {\n    "defaultAssetId": "",\n    "rules": [\n      {\n        "assetId": "",\n        "name": "",\n        "targetingTemplateId": ""\n      }\n    ]\n  },\n  "creativeAssets": [\n    {\n      "actionScript3": false,\n      "active": false,\n      "additionalSizes": [\n        {}\n      ],\n      "alignment": "",\n      "artworkType": "",\n      "assetIdentifier": {\n        "name": "",\n        "type": ""\n      },\n      "audioBitRate": 0,\n      "audioSampleRate": 0,\n      "backupImageExit": {},\n      "bitRate": 0,\n      "childAssetType": "",\n      "collapsedSize": {},\n      "companionCreativeIds": [],\n      "customStartTimeValue": 0,\n      "detectedFeatures": [],\n      "displayType": "",\n      "duration": 0,\n      "durationType": "",\n      "expandedDimension": {},\n      "fileSize": "",\n      "flashVersion": 0,\n      "frameRate": "",\n      "hideFlashObjects": false,\n      "hideSelectionBoxes": false,\n      "horizontallyLocked": false,\n      "id": "",\n      "idDimensionValue": {\n        "dimensionName": "",\n        "etag": "",\n        "id": "",\n        "kind": "",\n        "matchType": "",\n        "value": ""\n      },\n      "mediaDuration": "",\n      "mimeType": "",\n      "offset": {},\n      "orientation": "",\n      "originalBackup": false,\n      "politeLoad": false,\n      "position": {},\n      "positionLeftUnit": "",\n      "positionTopUnit": "",\n      "progressiveServingUrl": "",\n      "pushdown": false,\n      "pushdownDuration": "",\n      "role": "",\n      "size": {},\n      "sslCompliant": false,\n      "startTimeType": "",\n      "streamingServingUrl": "",\n      "transparency": false,\n      "verticallyLocked": false,\n      "windowMode": "",\n      "zIndex": 0,\n      "zipFilename": "",\n      "zipFilesize": ""\n    }\n  ],\n  "creativeFieldAssignments": [\n    {\n      "creativeFieldId": "",\n      "creativeFieldValueId": ""\n    }\n  ],\n  "customKeyValues": [],\n  "dynamicAssetSelection": false,\n  "exitCustomEvents": [\n    {}\n  ],\n  "fsCommand": {\n    "left": 0,\n    "positionOption": "",\n    "top": 0,\n    "windowHeight": 0,\n    "windowWidth": 0\n  },\n  "htmlCode": "",\n  "htmlCodeLocked": false,\n  "id": "",\n  "idDimensionValue": {},\n  "kind": "",\n  "lastModifiedInfo": {\n    "time": ""\n  },\n  "latestTraffickedCreativeId": "",\n  "mediaDescription": "",\n  "mediaDuration": "",\n  "name": "",\n  "obaIcon": {\n    "iconClickThroughUrl": "",\n    "iconClickTrackingUrl": "",\n    "iconViewTrackingUrl": "",\n    "program": "",\n    "resourceUrl": "",\n    "size": {},\n    "xPosition": "",\n    "yPosition": ""\n  },\n  "overrideCss": "",\n  "progressOffset": {\n    "offsetPercentage": 0,\n    "offsetSeconds": 0\n  },\n  "redirectUrl": "",\n  "renderingId": "",\n  "renderingIdDimensionValue": {},\n  "requiredFlashPluginVersion": "",\n  "requiredFlashVersion": 0,\n  "size": {},\n  "skipOffset": {},\n  "skippable": false,\n  "sslCompliant": false,\n  "sslOverride": false,\n  "studioAdvertiserId": "",\n  "studioCreativeId": "",\n  "studioTraffickedCreativeId": "",\n  "subaccountId": "",\n  "thirdPartyBackupImageImpressionsUrl": "",\n  "thirdPartyRichMediaImpressionsUrl": "",\n  "thirdPartyUrls": [\n    {\n      "thirdPartyUrlType": "",\n      "url": ""\n    }\n  ],\n  "timerCustomEvents": [\n    {}\n  ],\n  "totalFileSize": "",\n  "type": "",\n  "universalAdId": {\n    "registry": "",\n    "value": ""\n  },\n  "version": 0\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"adParameters\": \"\",\n  \"adTagKeys\": [],\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"allowScriptAccess\": false,\n  \"archived\": false,\n  \"artworkType\": \"\",\n  \"authoringSource\": \"\",\n  \"authoringTool\": \"\",\n  \"autoAdvanceImages\": false,\n  \"backgroundColor\": \"\",\n  \"backupImageClickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"landingPageId\": \"\"\n  },\n  \"backupImageFeatures\": [],\n  \"backupImageReportingLabel\": \"\",\n  \"backupImageTargetWindow\": {\n    \"customHtml\": \"\",\n    \"targetWindowOption\": \"\"\n  },\n  \"clickTags\": [\n    {\n      \"clickThroughUrl\": {},\n      \"eventName\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"commercialId\": \"\",\n  \"companionCreatives\": [],\n  \"compatibility\": [],\n  \"convertFlashToHtml5\": false,\n  \"counterCustomEvents\": [\n    {\n      \"advertiserCustomEventId\": \"\",\n      \"advertiserCustomEventName\": \"\",\n      \"advertiserCustomEventType\": \"\",\n      \"artworkLabel\": \"\",\n      \"artworkType\": \"\",\n      \"exitClickThroughUrl\": {},\n      \"id\": \"\",\n      \"popupWindowProperties\": {\n        \"dimension\": {},\n        \"offset\": {\n          \"left\": 0,\n          \"top\": 0\n        },\n        \"positionType\": \"\",\n        \"showAddressBar\": false,\n        \"showMenuBar\": false,\n        \"showScrollBar\": false,\n        \"showStatusBar\": false,\n        \"showToolBar\": false,\n        \"title\": \"\"\n      },\n      \"targetType\": \"\",\n      \"videoReportingId\": \"\"\n    }\n  ],\n  \"creativeAssetSelection\": {\n    \"defaultAssetId\": \"\",\n    \"rules\": [\n      {\n        \"assetId\": \"\",\n        \"name\": \"\",\n        \"targetingTemplateId\": \"\"\n      }\n    ]\n  },\n  \"creativeAssets\": [\n    {\n      \"actionScript3\": false,\n      \"active\": false,\n      \"additionalSizes\": [\n        {}\n      ],\n      \"alignment\": \"\",\n      \"artworkType\": \"\",\n      \"assetIdentifier\": {\n        \"name\": \"\",\n        \"type\": \"\"\n      },\n      \"audioBitRate\": 0,\n      \"audioSampleRate\": 0,\n      \"backupImageExit\": {},\n      \"bitRate\": 0,\n      \"childAssetType\": \"\",\n      \"collapsedSize\": {},\n      \"companionCreativeIds\": [],\n      \"customStartTimeValue\": 0,\n      \"detectedFeatures\": [],\n      \"displayType\": \"\",\n      \"duration\": 0,\n      \"durationType\": \"\",\n      \"expandedDimension\": {},\n      \"fileSize\": \"\",\n      \"flashVersion\": 0,\n      \"frameRate\": \"\",\n      \"hideFlashObjects\": false,\n      \"hideSelectionBoxes\": false,\n      \"horizontallyLocked\": false,\n      \"id\": \"\",\n      \"idDimensionValue\": {\n        \"dimensionName\": \"\",\n        \"etag\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"matchType\": \"\",\n        \"value\": \"\"\n      },\n      \"mediaDuration\": \"\",\n      \"mimeType\": \"\",\n      \"offset\": {},\n      \"orientation\": \"\",\n      \"originalBackup\": false,\n      \"politeLoad\": false,\n      \"position\": {},\n      \"positionLeftUnit\": \"\",\n      \"positionTopUnit\": \"\",\n      \"progressiveServingUrl\": \"\",\n      \"pushdown\": false,\n      \"pushdownDuration\": \"\",\n      \"role\": \"\",\n      \"size\": {},\n      \"sslCompliant\": false,\n      \"startTimeType\": \"\",\n      \"streamingServingUrl\": \"\",\n      \"transparency\": false,\n      \"verticallyLocked\": false,\n      \"windowMode\": \"\",\n      \"zIndex\": 0,\n      \"zipFilename\": \"\",\n      \"zipFilesize\": \"\"\n    }\n  ],\n  \"creativeFieldAssignments\": [\n    {\n      \"creativeFieldId\": \"\",\n      \"creativeFieldValueId\": \"\"\n    }\n  ],\n  \"customKeyValues\": [],\n  \"dynamicAssetSelection\": false,\n  \"exitCustomEvents\": [\n    {}\n  ],\n  \"fsCommand\": {\n    \"left\": 0,\n    \"positionOption\": \"\",\n    \"top\": 0,\n    \"windowHeight\": 0,\n    \"windowWidth\": 0\n  },\n  \"htmlCode\": \"\",\n  \"htmlCodeLocked\": false,\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {\n    \"time\": \"\"\n  },\n  \"latestTraffickedCreativeId\": \"\",\n  \"mediaDescription\": \"\",\n  \"mediaDuration\": \"\",\n  \"name\": \"\",\n  \"obaIcon\": {\n    \"iconClickThroughUrl\": \"\",\n    \"iconClickTrackingUrl\": \"\",\n    \"iconViewTrackingUrl\": \"\",\n    \"program\": \"\",\n    \"resourceUrl\": \"\",\n    \"size\": {},\n    \"xPosition\": \"\",\n    \"yPosition\": \"\"\n  },\n  \"overrideCss\": \"\",\n  \"progressOffset\": {\n    \"offsetPercentage\": 0,\n    \"offsetSeconds\": 0\n  },\n  \"redirectUrl\": \"\",\n  \"renderingId\": \"\",\n  \"renderingIdDimensionValue\": {},\n  \"requiredFlashPluginVersion\": \"\",\n  \"requiredFlashVersion\": 0,\n  \"size\": {},\n  \"skipOffset\": {},\n  \"skippable\": false,\n  \"sslCompliant\": false,\n  \"sslOverride\": false,\n  \"studioAdvertiserId\": \"\",\n  \"studioCreativeId\": \"\",\n  \"studioTraffickedCreativeId\": \"\",\n  \"subaccountId\": \"\",\n  \"thirdPartyBackupImageImpressionsUrl\": \"\",\n  \"thirdPartyRichMediaImpressionsUrl\": \"\",\n  \"thirdPartyUrls\": [\n    {\n      \"thirdPartyUrlType\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"timerCustomEvents\": [\n    {}\n  ],\n  \"totalFileSize\": \"\",\n  \"type\": \"\",\n  \"universalAdId\": {\n    \"registry\": \"\",\n    \"value\": \"\"\n  },\n  \"version\": 0\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/creatives")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/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({
  accountId: '',
  active: false,
  adParameters: '',
  adTagKeys: [],
  additionalSizes: [{height: 0, iab: false, id: '', kind: '', width: 0}],
  advertiserId: '',
  allowScriptAccess: false,
  archived: false,
  artworkType: '',
  authoringSource: '',
  authoringTool: '',
  autoAdvanceImages: false,
  backgroundColor: '',
  backupImageClickThroughUrl: {computedClickThroughUrl: '', customClickThroughUrl: '', landingPageId: ''},
  backupImageFeatures: [],
  backupImageReportingLabel: '',
  backupImageTargetWindow: {customHtml: '', targetWindowOption: ''},
  clickTags: [{clickThroughUrl: {}, eventName: '', name: ''}],
  commercialId: '',
  companionCreatives: [],
  compatibility: [],
  convertFlashToHtml5: false,
  counterCustomEvents: [
    {
      advertiserCustomEventId: '',
      advertiserCustomEventName: '',
      advertiserCustomEventType: '',
      artworkLabel: '',
      artworkType: '',
      exitClickThroughUrl: {},
      id: '',
      popupWindowProperties: {
        dimension: {},
        offset: {left: 0, top: 0},
        positionType: '',
        showAddressBar: false,
        showMenuBar: false,
        showScrollBar: false,
        showStatusBar: false,
        showToolBar: false,
        title: ''
      },
      targetType: '',
      videoReportingId: ''
    }
  ],
  creativeAssetSelection: {defaultAssetId: '', rules: [{assetId: '', name: '', targetingTemplateId: ''}]},
  creativeAssets: [
    {
      actionScript3: false,
      active: false,
      additionalSizes: [{}],
      alignment: '',
      artworkType: '',
      assetIdentifier: {name: '', type: ''},
      audioBitRate: 0,
      audioSampleRate: 0,
      backupImageExit: {},
      bitRate: 0,
      childAssetType: '',
      collapsedSize: {},
      companionCreativeIds: [],
      customStartTimeValue: 0,
      detectedFeatures: [],
      displayType: '',
      duration: 0,
      durationType: '',
      expandedDimension: {},
      fileSize: '',
      flashVersion: 0,
      frameRate: '',
      hideFlashObjects: false,
      hideSelectionBoxes: false,
      horizontallyLocked: false,
      id: '',
      idDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
      mediaDuration: '',
      mimeType: '',
      offset: {},
      orientation: '',
      originalBackup: false,
      politeLoad: false,
      position: {},
      positionLeftUnit: '',
      positionTopUnit: '',
      progressiveServingUrl: '',
      pushdown: false,
      pushdownDuration: '',
      role: '',
      size: {},
      sslCompliant: false,
      startTimeType: '',
      streamingServingUrl: '',
      transparency: false,
      verticallyLocked: false,
      windowMode: '',
      zIndex: 0,
      zipFilename: '',
      zipFilesize: ''
    }
  ],
  creativeFieldAssignments: [{creativeFieldId: '', creativeFieldValueId: ''}],
  customKeyValues: [],
  dynamicAssetSelection: false,
  exitCustomEvents: [{}],
  fsCommand: {left: 0, positionOption: '', top: 0, windowHeight: 0, windowWidth: 0},
  htmlCode: '',
  htmlCodeLocked: false,
  id: '',
  idDimensionValue: {},
  kind: '',
  lastModifiedInfo: {time: ''},
  latestTraffickedCreativeId: '',
  mediaDescription: '',
  mediaDuration: '',
  name: '',
  obaIcon: {
    iconClickThroughUrl: '',
    iconClickTrackingUrl: '',
    iconViewTrackingUrl: '',
    program: '',
    resourceUrl: '',
    size: {},
    xPosition: '',
    yPosition: ''
  },
  overrideCss: '',
  progressOffset: {offsetPercentage: 0, offsetSeconds: 0},
  redirectUrl: '',
  renderingId: '',
  renderingIdDimensionValue: {},
  requiredFlashPluginVersion: '',
  requiredFlashVersion: 0,
  size: {},
  skipOffset: {},
  skippable: false,
  sslCompliant: false,
  sslOverride: false,
  studioAdvertiserId: '',
  studioCreativeId: '',
  studioTraffickedCreativeId: '',
  subaccountId: '',
  thirdPartyBackupImageImpressionsUrl: '',
  thirdPartyRichMediaImpressionsUrl: '',
  thirdPartyUrls: [{thirdPartyUrlType: '', url: ''}],
  timerCustomEvents: [{}],
  totalFileSize: '',
  type: '',
  universalAdId: {registry: '', value: ''},
  version: 0
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/userprofiles/:profileId/creatives',
  headers: {'content-type': 'application/json'},
  body: {
    accountId: '',
    active: false,
    adParameters: '',
    adTagKeys: [],
    additionalSizes: [{height: 0, iab: false, id: '', kind: '', width: 0}],
    advertiserId: '',
    allowScriptAccess: false,
    archived: false,
    artworkType: '',
    authoringSource: '',
    authoringTool: '',
    autoAdvanceImages: false,
    backgroundColor: '',
    backupImageClickThroughUrl: {computedClickThroughUrl: '', customClickThroughUrl: '', landingPageId: ''},
    backupImageFeatures: [],
    backupImageReportingLabel: '',
    backupImageTargetWindow: {customHtml: '', targetWindowOption: ''},
    clickTags: [{clickThroughUrl: {}, eventName: '', name: ''}],
    commercialId: '',
    companionCreatives: [],
    compatibility: [],
    convertFlashToHtml5: false,
    counterCustomEvents: [
      {
        advertiserCustomEventId: '',
        advertiserCustomEventName: '',
        advertiserCustomEventType: '',
        artworkLabel: '',
        artworkType: '',
        exitClickThroughUrl: {},
        id: '',
        popupWindowProperties: {
          dimension: {},
          offset: {left: 0, top: 0},
          positionType: '',
          showAddressBar: false,
          showMenuBar: false,
          showScrollBar: false,
          showStatusBar: false,
          showToolBar: false,
          title: ''
        },
        targetType: '',
        videoReportingId: ''
      }
    ],
    creativeAssetSelection: {defaultAssetId: '', rules: [{assetId: '', name: '', targetingTemplateId: ''}]},
    creativeAssets: [
      {
        actionScript3: false,
        active: false,
        additionalSizes: [{}],
        alignment: '',
        artworkType: '',
        assetIdentifier: {name: '', type: ''},
        audioBitRate: 0,
        audioSampleRate: 0,
        backupImageExit: {},
        bitRate: 0,
        childAssetType: '',
        collapsedSize: {},
        companionCreativeIds: [],
        customStartTimeValue: 0,
        detectedFeatures: [],
        displayType: '',
        duration: 0,
        durationType: '',
        expandedDimension: {},
        fileSize: '',
        flashVersion: 0,
        frameRate: '',
        hideFlashObjects: false,
        hideSelectionBoxes: false,
        horizontallyLocked: false,
        id: '',
        idDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
        mediaDuration: '',
        mimeType: '',
        offset: {},
        orientation: '',
        originalBackup: false,
        politeLoad: false,
        position: {},
        positionLeftUnit: '',
        positionTopUnit: '',
        progressiveServingUrl: '',
        pushdown: false,
        pushdownDuration: '',
        role: '',
        size: {},
        sslCompliant: false,
        startTimeType: '',
        streamingServingUrl: '',
        transparency: false,
        verticallyLocked: false,
        windowMode: '',
        zIndex: 0,
        zipFilename: '',
        zipFilesize: ''
      }
    ],
    creativeFieldAssignments: [{creativeFieldId: '', creativeFieldValueId: ''}],
    customKeyValues: [],
    dynamicAssetSelection: false,
    exitCustomEvents: [{}],
    fsCommand: {left: 0, positionOption: '', top: 0, windowHeight: 0, windowWidth: 0},
    htmlCode: '',
    htmlCodeLocked: false,
    id: '',
    idDimensionValue: {},
    kind: '',
    lastModifiedInfo: {time: ''},
    latestTraffickedCreativeId: '',
    mediaDescription: '',
    mediaDuration: '',
    name: '',
    obaIcon: {
      iconClickThroughUrl: '',
      iconClickTrackingUrl: '',
      iconViewTrackingUrl: '',
      program: '',
      resourceUrl: '',
      size: {},
      xPosition: '',
      yPosition: ''
    },
    overrideCss: '',
    progressOffset: {offsetPercentage: 0, offsetSeconds: 0},
    redirectUrl: '',
    renderingId: '',
    renderingIdDimensionValue: {},
    requiredFlashPluginVersion: '',
    requiredFlashVersion: 0,
    size: {},
    skipOffset: {},
    skippable: false,
    sslCompliant: false,
    sslOverride: false,
    studioAdvertiserId: '',
    studioCreativeId: '',
    studioTraffickedCreativeId: '',
    subaccountId: '',
    thirdPartyBackupImageImpressionsUrl: '',
    thirdPartyRichMediaImpressionsUrl: '',
    thirdPartyUrls: [{thirdPartyUrlType: '', url: ''}],
    timerCustomEvents: [{}],
    totalFileSize: '',
    type: '',
    universalAdId: {registry: '', value: ''},
    version: 0
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/userprofiles/:profileId/creatives');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  accountId: '',
  active: false,
  adParameters: '',
  adTagKeys: [],
  additionalSizes: [
    {
      height: 0,
      iab: false,
      id: '',
      kind: '',
      width: 0
    }
  ],
  advertiserId: '',
  allowScriptAccess: false,
  archived: false,
  artworkType: '',
  authoringSource: '',
  authoringTool: '',
  autoAdvanceImages: false,
  backgroundColor: '',
  backupImageClickThroughUrl: {
    computedClickThroughUrl: '',
    customClickThroughUrl: '',
    landingPageId: ''
  },
  backupImageFeatures: [],
  backupImageReportingLabel: '',
  backupImageTargetWindow: {
    customHtml: '',
    targetWindowOption: ''
  },
  clickTags: [
    {
      clickThroughUrl: {},
      eventName: '',
      name: ''
    }
  ],
  commercialId: '',
  companionCreatives: [],
  compatibility: [],
  convertFlashToHtml5: false,
  counterCustomEvents: [
    {
      advertiserCustomEventId: '',
      advertiserCustomEventName: '',
      advertiserCustomEventType: '',
      artworkLabel: '',
      artworkType: '',
      exitClickThroughUrl: {},
      id: '',
      popupWindowProperties: {
        dimension: {},
        offset: {
          left: 0,
          top: 0
        },
        positionType: '',
        showAddressBar: false,
        showMenuBar: false,
        showScrollBar: false,
        showStatusBar: false,
        showToolBar: false,
        title: ''
      },
      targetType: '',
      videoReportingId: ''
    }
  ],
  creativeAssetSelection: {
    defaultAssetId: '',
    rules: [
      {
        assetId: '',
        name: '',
        targetingTemplateId: ''
      }
    ]
  },
  creativeAssets: [
    {
      actionScript3: false,
      active: false,
      additionalSizes: [
        {}
      ],
      alignment: '',
      artworkType: '',
      assetIdentifier: {
        name: '',
        type: ''
      },
      audioBitRate: 0,
      audioSampleRate: 0,
      backupImageExit: {},
      bitRate: 0,
      childAssetType: '',
      collapsedSize: {},
      companionCreativeIds: [],
      customStartTimeValue: 0,
      detectedFeatures: [],
      displayType: '',
      duration: 0,
      durationType: '',
      expandedDimension: {},
      fileSize: '',
      flashVersion: 0,
      frameRate: '',
      hideFlashObjects: false,
      hideSelectionBoxes: false,
      horizontallyLocked: false,
      id: '',
      idDimensionValue: {
        dimensionName: '',
        etag: '',
        id: '',
        kind: '',
        matchType: '',
        value: ''
      },
      mediaDuration: '',
      mimeType: '',
      offset: {},
      orientation: '',
      originalBackup: false,
      politeLoad: false,
      position: {},
      positionLeftUnit: '',
      positionTopUnit: '',
      progressiveServingUrl: '',
      pushdown: false,
      pushdownDuration: '',
      role: '',
      size: {},
      sslCompliant: false,
      startTimeType: '',
      streamingServingUrl: '',
      transparency: false,
      verticallyLocked: false,
      windowMode: '',
      zIndex: 0,
      zipFilename: '',
      zipFilesize: ''
    }
  ],
  creativeFieldAssignments: [
    {
      creativeFieldId: '',
      creativeFieldValueId: ''
    }
  ],
  customKeyValues: [],
  dynamicAssetSelection: false,
  exitCustomEvents: [
    {}
  ],
  fsCommand: {
    left: 0,
    positionOption: '',
    top: 0,
    windowHeight: 0,
    windowWidth: 0
  },
  htmlCode: '',
  htmlCodeLocked: false,
  id: '',
  idDimensionValue: {},
  kind: '',
  lastModifiedInfo: {
    time: ''
  },
  latestTraffickedCreativeId: '',
  mediaDescription: '',
  mediaDuration: '',
  name: '',
  obaIcon: {
    iconClickThroughUrl: '',
    iconClickTrackingUrl: '',
    iconViewTrackingUrl: '',
    program: '',
    resourceUrl: '',
    size: {},
    xPosition: '',
    yPosition: ''
  },
  overrideCss: '',
  progressOffset: {
    offsetPercentage: 0,
    offsetSeconds: 0
  },
  redirectUrl: '',
  renderingId: '',
  renderingIdDimensionValue: {},
  requiredFlashPluginVersion: '',
  requiredFlashVersion: 0,
  size: {},
  skipOffset: {},
  skippable: false,
  sslCompliant: false,
  sslOverride: false,
  studioAdvertiserId: '',
  studioCreativeId: '',
  studioTraffickedCreativeId: '',
  subaccountId: '',
  thirdPartyBackupImageImpressionsUrl: '',
  thirdPartyRichMediaImpressionsUrl: '',
  thirdPartyUrls: [
    {
      thirdPartyUrlType: '',
      url: ''
    }
  ],
  timerCustomEvents: [
    {}
  ],
  totalFileSize: '',
  type: '',
  universalAdId: {
    registry: '',
    value: ''
  },
  version: 0
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/userprofiles/:profileId/creatives',
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    active: false,
    adParameters: '',
    adTagKeys: [],
    additionalSizes: [{height: 0, iab: false, id: '', kind: '', width: 0}],
    advertiserId: '',
    allowScriptAccess: false,
    archived: false,
    artworkType: '',
    authoringSource: '',
    authoringTool: '',
    autoAdvanceImages: false,
    backgroundColor: '',
    backupImageClickThroughUrl: {computedClickThroughUrl: '', customClickThroughUrl: '', landingPageId: ''},
    backupImageFeatures: [],
    backupImageReportingLabel: '',
    backupImageTargetWindow: {customHtml: '', targetWindowOption: ''},
    clickTags: [{clickThroughUrl: {}, eventName: '', name: ''}],
    commercialId: '',
    companionCreatives: [],
    compatibility: [],
    convertFlashToHtml5: false,
    counterCustomEvents: [
      {
        advertiserCustomEventId: '',
        advertiserCustomEventName: '',
        advertiserCustomEventType: '',
        artworkLabel: '',
        artworkType: '',
        exitClickThroughUrl: {},
        id: '',
        popupWindowProperties: {
          dimension: {},
          offset: {left: 0, top: 0},
          positionType: '',
          showAddressBar: false,
          showMenuBar: false,
          showScrollBar: false,
          showStatusBar: false,
          showToolBar: false,
          title: ''
        },
        targetType: '',
        videoReportingId: ''
      }
    ],
    creativeAssetSelection: {defaultAssetId: '', rules: [{assetId: '', name: '', targetingTemplateId: ''}]},
    creativeAssets: [
      {
        actionScript3: false,
        active: false,
        additionalSizes: [{}],
        alignment: '',
        artworkType: '',
        assetIdentifier: {name: '', type: ''},
        audioBitRate: 0,
        audioSampleRate: 0,
        backupImageExit: {},
        bitRate: 0,
        childAssetType: '',
        collapsedSize: {},
        companionCreativeIds: [],
        customStartTimeValue: 0,
        detectedFeatures: [],
        displayType: '',
        duration: 0,
        durationType: '',
        expandedDimension: {},
        fileSize: '',
        flashVersion: 0,
        frameRate: '',
        hideFlashObjects: false,
        hideSelectionBoxes: false,
        horizontallyLocked: false,
        id: '',
        idDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
        mediaDuration: '',
        mimeType: '',
        offset: {},
        orientation: '',
        originalBackup: false,
        politeLoad: false,
        position: {},
        positionLeftUnit: '',
        positionTopUnit: '',
        progressiveServingUrl: '',
        pushdown: false,
        pushdownDuration: '',
        role: '',
        size: {},
        sslCompliant: false,
        startTimeType: '',
        streamingServingUrl: '',
        transparency: false,
        verticallyLocked: false,
        windowMode: '',
        zIndex: 0,
        zipFilename: '',
        zipFilesize: ''
      }
    ],
    creativeFieldAssignments: [{creativeFieldId: '', creativeFieldValueId: ''}],
    customKeyValues: [],
    dynamicAssetSelection: false,
    exitCustomEvents: [{}],
    fsCommand: {left: 0, positionOption: '', top: 0, windowHeight: 0, windowWidth: 0},
    htmlCode: '',
    htmlCodeLocked: false,
    id: '',
    idDimensionValue: {},
    kind: '',
    lastModifiedInfo: {time: ''},
    latestTraffickedCreativeId: '',
    mediaDescription: '',
    mediaDuration: '',
    name: '',
    obaIcon: {
      iconClickThroughUrl: '',
      iconClickTrackingUrl: '',
      iconViewTrackingUrl: '',
      program: '',
      resourceUrl: '',
      size: {},
      xPosition: '',
      yPosition: ''
    },
    overrideCss: '',
    progressOffset: {offsetPercentage: 0, offsetSeconds: 0},
    redirectUrl: '',
    renderingId: '',
    renderingIdDimensionValue: {},
    requiredFlashPluginVersion: '',
    requiredFlashVersion: 0,
    size: {},
    skipOffset: {},
    skippable: false,
    sslCompliant: false,
    sslOverride: false,
    studioAdvertiserId: '',
    studioCreativeId: '',
    studioTraffickedCreativeId: '',
    subaccountId: '',
    thirdPartyBackupImageImpressionsUrl: '',
    thirdPartyRichMediaImpressionsUrl: '',
    thirdPartyUrls: [{thirdPartyUrlType: '', url: ''}],
    timerCustomEvents: [{}],
    totalFileSize: '',
    type: '',
    universalAdId: {registry: '', value: ''},
    version: 0
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/creatives';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","active":false,"adParameters":"","adTagKeys":[],"additionalSizes":[{"height":0,"iab":false,"id":"","kind":"","width":0}],"advertiserId":"","allowScriptAccess":false,"archived":false,"artworkType":"","authoringSource":"","authoringTool":"","autoAdvanceImages":false,"backgroundColor":"","backupImageClickThroughUrl":{"computedClickThroughUrl":"","customClickThroughUrl":"","landingPageId":""},"backupImageFeatures":[],"backupImageReportingLabel":"","backupImageTargetWindow":{"customHtml":"","targetWindowOption":""},"clickTags":[{"clickThroughUrl":{},"eventName":"","name":""}],"commercialId":"","companionCreatives":[],"compatibility":[],"convertFlashToHtml5":false,"counterCustomEvents":[{"advertiserCustomEventId":"","advertiserCustomEventName":"","advertiserCustomEventType":"","artworkLabel":"","artworkType":"","exitClickThroughUrl":{},"id":"","popupWindowProperties":{"dimension":{},"offset":{"left":0,"top":0},"positionType":"","showAddressBar":false,"showMenuBar":false,"showScrollBar":false,"showStatusBar":false,"showToolBar":false,"title":""},"targetType":"","videoReportingId":""}],"creativeAssetSelection":{"defaultAssetId":"","rules":[{"assetId":"","name":"","targetingTemplateId":""}]},"creativeAssets":[{"actionScript3":false,"active":false,"additionalSizes":[{}],"alignment":"","artworkType":"","assetIdentifier":{"name":"","type":""},"audioBitRate":0,"audioSampleRate":0,"backupImageExit":{},"bitRate":0,"childAssetType":"","collapsedSize":{},"companionCreativeIds":[],"customStartTimeValue":0,"detectedFeatures":[],"displayType":"","duration":0,"durationType":"","expandedDimension":{},"fileSize":"","flashVersion":0,"frameRate":"","hideFlashObjects":false,"hideSelectionBoxes":false,"horizontallyLocked":false,"id":"","idDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"mediaDuration":"","mimeType":"","offset":{},"orientation":"","originalBackup":false,"politeLoad":false,"position":{},"positionLeftUnit":"","positionTopUnit":"","progressiveServingUrl":"","pushdown":false,"pushdownDuration":"","role":"","size":{},"sslCompliant":false,"startTimeType":"","streamingServingUrl":"","transparency":false,"verticallyLocked":false,"windowMode":"","zIndex":0,"zipFilename":"","zipFilesize":""}],"creativeFieldAssignments":[{"creativeFieldId":"","creativeFieldValueId":""}],"customKeyValues":[],"dynamicAssetSelection":false,"exitCustomEvents":[{}],"fsCommand":{"left":0,"positionOption":"","top":0,"windowHeight":0,"windowWidth":0},"htmlCode":"","htmlCodeLocked":false,"id":"","idDimensionValue":{},"kind":"","lastModifiedInfo":{"time":""},"latestTraffickedCreativeId":"","mediaDescription":"","mediaDuration":"","name":"","obaIcon":{"iconClickThroughUrl":"","iconClickTrackingUrl":"","iconViewTrackingUrl":"","program":"","resourceUrl":"","size":{},"xPosition":"","yPosition":""},"overrideCss":"","progressOffset":{"offsetPercentage":0,"offsetSeconds":0},"redirectUrl":"","renderingId":"","renderingIdDimensionValue":{},"requiredFlashPluginVersion":"","requiredFlashVersion":0,"size":{},"skipOffset":{},"skippable":false,"sslCompliant":false,"sslOverride":false,"studioAdvertiserId":"","studioCreativeId":"","studioTraffickedCreativeId":"","subaccountId":"","thirdPartyBackupImageImpressionsUrl":"","thirdPartyRichMediaImpressionsUrl":"","thirdPartyUrls":[{"thirdPartyUrlType":"","url":""}],"timerCustomEvents":[{}],"totalFileSize":"","type":"","universalAdId":{"registry":"","value":""},"version":0}'
};

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 = @{ @"accountId": @"",
                              @"active": @NO,
                              @"adParameters": @"",
                              @"adTagKeys": @[  ],
                              @"additionalSizes": @[ @{ @"height": @0, @"iab": @NO, @"id": @"", @"kind": @"", @"width": @0 } ],
                              @"advertiserId": @"",
                              @"allowScriptAccess": @NO,
                              @"archived": @NO,
                              @"artworkType": @"",
                              @"authoringSource": @"",
                              @"authoringTool": @"",
                              @"autoAdvanceImages": @NO,
                              @"backgroundColor": @"",
                              @"backupImageClickThroughUrl": @{ @"computedClickThroughUrl": @"", @"customClickThroughUrl": @"", @"landingPageId": @"" },
                              @"backupImageFeatures": @[  ],
                              @"backupImageReportingLabel": @"",
                              @"backupImageTargetWindow": @{ @"customHtml": @"", @"targetWindowOption": @"" },
                              @"clickTags": @[ @{ @"clickThroughUrl": @{  }, @"eventName": @"", @"name": @"" } ],
                              @"commercialId": @"",
                              @"companionCreatives": @[  ],
                              @"compatibility": @[  ],
                              @"convertFlashToHtml5": @NO,
                              @"counterCustomEvents": @[ @{ @"advertiserCustomEventId": @"", @"advertiserCustomEventName": @"", @"advertiserCustomEventType": @"", @"artworkLabel": @"", @"artworkType": @"", @"exitClickThroughUrl": @{  }, @"id": @"", @"popupWindowProperties": @{ @"dimension": @{  }, @"offset": @{ @"left": @0, @"top": @0 }, @"positionType": @"", @"showAddressBar": @NO, @"showMenuBar": @NO, @"showScrollBar": @NO, @"showStatusBar": @NO, @"showToolBar": @NO, @"title": @"" }, @"targetType": @"", @"videoReportingId": @"" } ],
                              @"creativeAssetSelection": @{ @"defaultAssetId": @"", @"rules": @[ @{ @"assetId": @"", @"name": @"", @"targetingTemplateId": @"" } ] },
                              @"creativeAssets": @[ @{ @"actionScript3": @NO, @"active": @NO, @"additionalSizes": @[ @{  } ], @"alignment": @"", @"artworkType": @"", @"assetIdentifier": @{ @"name": @"", @"type": @"" }, @"audioBitRate": @0, @"audioSampleRate": @0, @"backupImageExit": @{  }, @"bitRate": @0, @"childAssetType": @"", @"collapsedSize": @{  }, @"companionCreativeIds": @[  ], @"customStartTimeValue": @0, @"detectedFeatures": @[  ], @"displayType": @"", @"duration": @0, @"durationType": @"", @"expandedDimension": @{  }, @"fileSize": @"", @"flashVersion": @0, @"frameRate": @"", @"hideFlashObjects": @NO, @"hideSelectionBoxes": @NO, @"horizontallyLocked": @NO, @"id": @"", @"idDimensionValue": @{ @"dimensionName": @"", @"etag": @"", @"id": @"", @"kind": @"", @"matchType": @"", @"value": @"" }, @"mediaDuration": @"", @"mimeType": @"", @"offset": @{  }, @"orientation": @"", @"originalBackup": @NO, @"politeLoad": @NO, @"position": @{  }, @"positionLeftUnit": @"", @"positionTopUnit": @"", @"progressiveServingUrl": @"", @"pushdown": @NO, @"pushdownDuration": @"", @"role": @"", @"size": @{  }, @"sslCompliant": @NO, @"startTimeType": @"", @"streamingServingUrl": @"", @"transparency": @NO, @"verticallyLocked": @NO, @"windowMode": @"", @"zIndex": @0, @"zipFilename": @"", @"zipFilesize": @"" } ],
                              @"creativeFieldAssignments": @[ @{ @"creativeFieldId": @"", @"creativeFieldValueId": @"" } ],
                              @"customKeyValues": @[  ],
                              @"dynamicAssetSelection": @NO,
                              @"exitCustomEvents": @[ @{  } ],
                              @"fsCommand": @{ @"left": @0, @"positionOption": @"", @"top": @0, @"windowHeight": @0, @"windowWidth": @0 },
                              @"htmlCode": @"",
                              @"htmlCodeLocked": @NO,
                              @"id": @"",
                              @"idDimensionValue": @{  },
                              @"kind": @"",
                              @"lastModifiedInfo": @{ @"time": @"" },
                              @"latestTraffickedCreativeId": @"",
                              @"mediaDescription": @"",
                              @"mediaDuration": @"",
                              @"name": @"",
                              @"obaIcon": @{ @"iconClickThroughUrl": @"", @"iconClickTrackingUrl": @"", @"iconViewTrackingUrl": @"", @"program": @"", @"resourceUrl": @"", @"size": @{  }, @"xPosition": @"", @"yPosition": @"" },
                              @"overrideCss": @"",
                              @"progressOffset": @{ @"offsetPercentage": @0, @"offsetSeconds": @0 },
                              @"redirectUrl": @"",
                              @"renderingId": @"",
                              @"renderingIdDimensionValue": @{  },
                              @"requiredFlashPluginVersion": @"",
                              @"requiredFlashVersion": @0,
                              @"size": @{  },
                              @"skipOffset": @{  },
                              @"skippable": @NO,
                              @"sslCompliant": @NO,
                              @"sslOverride": @NO,
                              @"studioAdvertiserId": @"",
                              @"studioCreativeId": @"",
                              @"studioTraffickedCreativeId": @"",
                              @"subaccountId": @"",
                              @"thirdPartyBackupImageImpressionsUrl": @"",
                              @"thirdPartyRichMediaImpressionsUrl": @"",
                              @"thirdPartyUrls": @[ @{ @"thirdPartyUrlType": @"", @"url": @"" } ],
                              @"timerCustomEvents": @[ @{  } ],
                              @"totalFileSize": @"",
                              @"type": @"",
                              @"universalAdId": @{ @"registry": @"", @"value": @"" },
                              @"version": @0 };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/userprofiles/:profileId/creatives"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/userprofiles/:profileId/creatives" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"adParameters\": \"\",\n  \"adTagKeys\": [],\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"allowScriptAccess\": false,\n  \"archived\": false,\n  \"artworkType\": \"\",\n  \"authoringSource\": \"\",\n  \"authoringTool\": \"\",\n  \"autoAdvanceImages\": false,\n  \"backgroundColor\": \"\",\n  \"backupImageClickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"landingPageId\": \"\"\n  },\n  \"backupImageFeatures\": [],\n  \"backupImageReportingLabel\": \"\",\n  \"backupImageTargetWindow\": {\n    \"customHtml\": \"\",\n    \"targetWindowOption\": \"\"\n  },\n  \"clickTags\": [\n    {\n      \"clickThroughUrl\": {},\n      \"eventName\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"commercialId\": \"\",\n  \"companionCreatives\": [],\n  \"compatibility\": [],\n  \"convertFlashToHtml5\": false,\n  \"counterCustomEvents\": [\n    {\n      \"advertiserCustomEventId\": \"\",\n      \"advertiserCustomEventName\": \"\",\n      \"advertiserCustomEventType\": \"\",\n      \"artworkLabel\": \"\",\n      \"artworkType\": \"\",\n      \"exitClickThroughUrl\": {},\n      \"id\": \"\",\n      \"popupWindowProperties\": {\n        \"dimension\": {},\n        \"offset\": {\n          \"left\": 0,\n          \"top\": 0\n        },\n        \"positionType\": \"\",\n        \"showAddressBar\": false,\n        \"showMenuBar\": false,\n        \"showScrollBar\": false,\n        \"showStatusBar\": false,\n        \"showToolBar\": false,\n        \"title\": \"\"\n      },\n      \"targetType\": \"\",\n      \"videoReportingId\": \"\"\n    }\n  ],\n  \"creativeAssetSelection\": {\n    \"defaultAssetId\": \"\",\n    \"rules\": [\n      {\n        \"assetId\": \"\",\n        \"name\": \"\",\n        \"targetingTemplateId\": \"\"\n      }\n    ]\n  },\n  \"creativeAssets\": [\n    {\n      \"actionScript3\": false,\n      \"active\": false,\n      \"additionalSizes\": [\n        {}\n      ],\n      \"alignment\": \"\",\n      \"artworkType\": \"\",\n      \"assetIdentifier\": {\n        \"name\": \"\",\n        \"type\": \"\"\n      },\n      \"audioBitRate\": 0,\n      \"audioSampleRate\": 0,\n      \"backupImageExit\": {},\n      \"bitRate\": 0,\n      \"childAssetType\": \"\",\n      \"collapsedSize\": {},\n      \"companionCreativeIds\": [],\n      \"customStartTimeValue\": 0,\n      \"detectedFeatures\": [],\n      \"displayType\": \"\",\n      \"duration\": 0,\n      \"durationType\": \"\",\n      \"expandedDimension\": {},\n      \"fileSize\": \"\",\n      \"flashVersion\": 0,\n      \"frameRate\": \"\",\n      \"hideFlashObjects\": false,\n      \"hideSelectionBoxes\": false,\n      \"horizontallyLocked\": false,\n      \"id\": \"\",\n      \"idDimensionValue\": {\n        \"dimensionName\": \"\",\n        \"etag\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"matchType\": \"\",\n        \"value\": \"\"\n      },\n      \"mediaDuration\": \"\",\n      \"mimeType\": \"\",\n      \"offset\": {},\n      \"orientation\": \"\",\n      \"originalBackup\": false,\n      \"politeLoad\": false,\n      \"position\": {},\n      \"positionLeftUnit\": \"\",\n      \"positionTopUnit\": \"\",\n      \"progressiveServingUrl\": \"\",\n      \"pushdown\": false,\n      \"pushdownDuration\": \"\",\n      \"role\": \"\",\n      \"size\": {},\n      \"sslCompliant\": false,\n      \"startTimeType\": \"\",\n      \"streamingServingUrl\": \"\",\n      \"transparency\": false,\n      \"verticallyLocked\": false,\n      \"windowMode\": \"\",\n      \"zIndex\": 0,\n      \"zipFilename\": \"\",\n      \"zipFilesize\": \"\"\n    }\n  ],\n  \"creativeFieldAssignments\": [\n    {\n      \"creativeFieldId\": \"\",\n      \"creativeFieldValueId\": \"\"\n    }\n  ],\n  \"customKeyValues\": [],\n  \"dynamicAssetSelection\": false,\n  \"exitCustomEvents\": [\n    {}\n  ],\n  \"fsCommand\": {\n    \"left\": 0,\n    \"positionOption\": \"\",\n    \"top\": 0,\n    \"windowHeight\": 0,\n    \"windowWidth\": 0\n  },\n  \"htmlCode\": \"\",\n  \"htmlCodeLocked\": false,\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {\n    \"time\": \"\"\n  },\n  \"latestTraffickedCreativeId\": \"\",\n  \"mediaDescription\": \"\",\n  \"mediaDuration\": \"\",\n  \"name\": \"\",\n  \"obaIcon\": {\n    \"iconClickThroughUrl\": \"\",\n    \"iconClickTrackingUrl\": \"\",\n    \"iconViewTrackingUrl\": \"\",\n    \"program\": \"\",\n    \"resourceUrl\": \"\",\n    \"size\": {},\n    \"xPosition\": \"\",\n    \"yPosition\": \"\"\n  },\n  \"overrideCss\": \"\",\n  \"progressOffset\": {\n    \"offsetPercentage\": 0,\n    \"offsetSeconds\": 0\n  },\n  \"redirectUrl\": \"\",\n  \"renderingId\": \"\",\n  \"renderingIdDimensionValue\": {},\n  \"requiredFlashPluginVersion\": \"\",\n  \"requiredFlashVersion\": 0,\n  \"size\": {},\n  \"skipOffset\": {},\n  \"skippable\": false,\n  \"sslCompliant\": false,\n  \"sslOverride\": false,\n  \"studioAdvertiserId\": \"\",\n  \"studioCreativeId\": \"\",\n  \"studioTraffickedCreativeId\": \"\",\n  \"subaccountId\": \"\",\n  \"thirdPartyBackupImageImpressionsUrl\": \"\",\n  \"thirdPartyRichMediaImpressionsUrl\": \"\",\n  \"thirdPartyUrls\": [\n    {\n      \"thirdPartyUrlType\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"timerCustomEvents\": [\n    {}\n  ],\n  \"totalFileSize\": \"\",\n  \"type\": \"\",\n  \"universalAdId\": {\n    \"registry\": \"\",\n    \"value\": \"\"\n  },\n  \"version\": 0\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/creatives",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'accountId' => '',
    'active' => null,
    'adParameters' => '',
    'adTagKeys' => [
        
    ],
    'additionalSizes' => [
        [
                'height' => 0,
                'iab' => null,
                'id' => '',
                'kind' => '',
                'width' => 0
        ]
    ],
    'advertiserId' => '',
    'allowScriptAccess' => null,
    'archived' => null,
    'artworkType' => '',
    'authoringSource' => '',
    'authoringTool' => '',
    'autoAdvanceImages' => null,
    'backgroundColor' => '',
    'backupImageClickThroughUrl' => [
        'computedClickThroughUrl' => '',
        'customClickThroughUrl' => '',
        'landingPageId' => ''
    ],
    'backupImageFeatures' => [
        
    ],
    'backupImageReportingLabel' => '',
    'backupImageTargetWindow' => [
        'customHtml' => '',
        'targetWindowOption' => ''
    ],
    'clickTags' => [
        [
                'clickThroughUrl' => [
                                
                ],
                'eventName' => '',
                'name' => ''
        ]
    ],
    'commercialId' => '',
    'companionCreatives' => [
        
    ],
    'compatibility' => [
        
    ],
    'convertFlashToHtml5' => null,
    'counterCustomEvents' => [
        [
                'advertiserCustomEventId' => '',
                'advertiserCustomEventName' => '',
                'advertiserCustomEventType' => '',
                'artworkLabel' => '',
                'artworkType' => '',
                'exitClickThroughUrl' => [
                                
                ],
                'id' => '',
                'popupWindowProperties' => [
                                'dimension' => [
                                                                
                                ],
                                'offset' => [
                                                                'left' => 0,
                                                                'top' => 0
                                ],
                                'positionType' => '',
                                'showAddressBar' => null,
                                'showMenuBar' => null,
                                'showScrollBar' => null,
                                'showStatusBar' => null,
                                'showToolBar' => null,
                                'title' => ''
                ],
                'targetType' => '',
                'videoReportingId' => ''
        ]
    ],
    'creativeAssetSelection' => [
        'defaultAssetId' => '',
        'rules' => [
                [
                                'assetId' => '',
                                'name' => '',
                                'targetingTemplateId' => ''
                ]
        ]
    ],
    'creativeAssets' => [
        [
                'actionScript3' => null,
                'active' => null,
                'additionalSizes' => [
                                [
                                                                
                                ]
                ],
                'alignment' => '',
                'artworkType' => '',
                'assetIdentifier' => [
                                'name' => '',
                                'type' => ''
                ],
                'audioBitRate' => 0,
                'audioSampleRate' => 0,
                'backupImageExit' => [
                                
                ],
                'bitRate' => 0,
                'childAssetType' => '',
                'collapsedSize' => [
                                
                ],
                'companionCreativeIds' => [
                                
                ],
                'customStartTimeValue' => 0,
                'detectedFeatures' => [
                                
                ],
                'displayType' => '',
                'duration' => 0,
                'durationType' => '',
                'expandedDimension' => [
                                
                ],
                'fileSize' => '',
                'flashVersion' => 0,
                'frameRate' => '',
                'hideFlashObjects' => null,
                'hideSelectionBoxes' => null,
                'horizontallyLocked' => null,
                'id' => '',
                'idDimensionValue' => [
                                'dimensionName' => '',
                                'etag' => '',
                                'id' => '',
                                'kind' => '',
                                'matchType' => '',
                                'value' => ''
                ],
                'mediaDuration' => '',
                'mimeType' => '',
                'offset' => [
                                
                ],
                'orientation' => '',
                'originalBackup' => null,
                'politeLoad' => null,
                'position' => [
                                
                ],
                'positionLeftUnit' => '',
                'positionTopUnit' => '',
                'progressiveServingUrl' => '',
                'pushdown' => null,
                'pushdownDuration' => '',
                'role' => '',
                'size' => [
                                
                ],
                'sslCompliant' => null,
                'startTimeType' => '',
                'streamingServingUrl' => '',
                'transparency' => null,
                'verticallyLocked' => null,
                'windowMode' => '',
                'zIndex' => 0,
                'zipFilename' => '',
                'zipFilesize' => ''
        ]
    ],
    'creativeFieldAssignments' => [
        [
                'creativeFieldId' => '',
                'creativeFieldValueId' => ''
        ]
    ],
    'customKeyValues' => [
        
    ],
    'dynamicAssetSelection' => null,
    'exitCustomEvents' => [
        [
                
        ]
    ],
    'fsCommand' => [
        'left' => 0,
        'positionOption' => '',
        'top' => 0,
        'windowHeight' => 0,
        'windowWidth' => 0
    ],
    'htmlCode' => '',
    'htmlCodeLocked' => null,
    'id' => '',
    'idDimensionValue' => [
        
    ],
    'kind' => '',
    'lastModifiedInfo' => [
        'time' => ''
    ],
    'latestTraffickedCreativeId' => '',
    'mediaDescription' => '',
    'mediaDuration' => '',
    'name' => '',
    'obaIcon' => [
        'iconClickThroughUrl' => '',
        'iconClickTrackingUrl' => '',
        'iconViewTrackingUrl' => '',
        'program' => '',
        'resourceUrl' => '',
        'size' => [
                
        ],
        'xPosition' => '',
        'yPosition' => ''
    ],
    'overrideCss' => '',
    'progressOffset' => [
        'offsetPercentage' => 0,
        'offsetSeconds' => 0
    ],
    'redirectUrl' => '',
    'renderingId' => '',
    'renderingIdDimensionValue' => [
        
    ],
    'requiredFlashPluginVersion' => '',
    'requiredFlashVersion' => 0,
    'size' => [
        
    ],
    'skipOffset' => [
        
    ],
    'skippable' => null,
    'sslCompliant' => null,
    'sslOverride' => null,
    'studioAdvertiserId' => '',
    'studioCreativeId' => '',
    'studioTraffickedCreativeId' => '',
    'subaccountId' => '',
    'thirdPartyBackupImageImpressionsUrl' => '',
    'thirdPartyRichMediaImpressionsUrl' => '',
    'thirdPartyUrls' => [
        [
                'thirdPartyUrlType' => '',
                'url' => ''
        ]
    ],
    'timerCustomEvents' => [
        [
                
        ]
    ],
    'totalFileSize' => '',
    'type' => '',
    'universalAdId' => [
        'registry' => '',
        'value' => ''
    ],
    'version' => 0
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/userprofiles/:profileId/creatives', [
  'body' => '{
  "accountId": "",
  "active": false,
  "adParameters": "",
  "adTagKeys": [],
  "additionalSizes": [
    {
      "height": 0,
      "iab": false,
      "id": "",
      "kind": "",
      "width": 0
    }
  ],
  "advertiserId": "",
  "allowScriptAccess": false,
  "archived": false,
  "artworkType": "",
  "authoringSource": "",
  "authoringTool": "",
  "autoAdvanceImages": false,
  "backgroundColor": "",
  "backupImageClickThroughUrl": {
    "computedClickThroughUrl": "",
    "customClickThroughUrl": "",
    "landingPageId": ""
  },
  "backupImageFeatures": [],
  "backupImageReportingLabel": "",
  "backupImageTargetWindow": {
    "customHtml": "",
    "targetWindowOption": ""
  },
  "clickTags": [
    {
      "clickThroughUrl": {},
      "eventName": "",
      "name": ""
    }
  ],
  "commercialId": "",
  "companionCreatives": [],
  "compatibility": [],
  "convertFlashToHtml5": false,
  "counterCustomEvents": [
    {
      "advertiserCustomEventId": "",
      "advertiserCustomEventName": "",
      "advertiserCustomEventType": "",
      "artworkLabel": "",
      "artworkType": "",
      "exitClickThroughUrl": {},
      "id": "",
      "popupWindowProperties": {
        "dimension": {},
        "offset": {
          "left": 0,
          "top": 0
        },
        "positionType": "",
        "showAddressBar": false,
        "showMenuBar": false,
        "showScrollBar": false,
        "showStatusBar": false,
        "showToolBar": false,
        "title": ""
      },
      "targetType": "",
      "videoReportingId": ""
    }
  ],
  "creativeAssetSelection": {
    "defaultAssetId": "",
    "rules": [
      {
        "assetId": "",
        "name": "",
        "targetingTemplateId": ""
      }
    ]
  },
  "creativeAssets": [
    {
      "actionScript3": false,
      "active": false,
      "additionalSizes": [
        {}
      ],
      "alignment": "",
      "artworkType": "",
      "assetIdentifier": {
        "name": "",
        "type": ""
      },
      "audioBitRate": 0,
      "audioSampleRate": 0,
      "backupImageExit": {},
      "bitRate": 0,
      "childAssetType": "",
      "collapsedSize": {},
      "companionCreativeIds": [],
      "customStartTimeValue": 0,
      "detectedFeatures": [],
      "displayType": "",
      "duration": 0,
      "durationType": "",
      "expandedDimension": {},
      "fileSize": "",
      "flashVersion": 0,
      "frameRate": "",
      "hideFlashObjects": false,
      "hideSelectionBoxes": false,
      "horizontallyLocked": false,
      "id": "",
      "idDimensionValue": {
        "dimensionName": "",
        "etag": "",
        "id": "",
        "kind": "",
        "matchType": "",
        "value": ""
      },
      "mediaDuration": "",
      "mimeType": "",
      "offset": {},
      "orientation": "",
      "originalBackup": false,
      "politeLoad": false,
      "position": {},
      "positionLeftUnit": "",
      "positionTopUnit": "",
      "progressiveServingUrl": "",
      "pushdown": false,
      "pushdownDuration": "",
      "role": "",
      "size": {},
      "sslCompliant": false,
      "startTimeType": "",
      "streamingServingUrl": "",
      "transparency": false,
      "verticallyLocked": false,
      "windowMode": "",
      "zIndex": 0,
      "zipFilename": "",
      "zipFilesize": ""
    }
  ],
  "creativeFieldAssignments": [
    {
      "creativeFieldId": "",
      "creativeFieldValueId": ""
    }
  ],
  "customKeyValues": [],
  "dynamicAssetSelection": false,
  "exitCustomEvents": [
    {}
  ],
  "fsCommand": {
    "left": 0,
    "positionOption": "",
    "top": 0,
    "windowHeight": 0,
    "windowWidth": 0
  },
  "htmlCode": "",
  "htmlCodeLocked": false,
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "lastModifiedInfo": {
    "time": ""
  },
  "latestTraffickedCreativeId": "",
  "mediaDescription": "",
  "mediaDuration": "",
  "name": "",
  "obaIcon": {
    "iconClickThroughUrl": "",
    "iconClickTrackingUrl": "",
    "iconViewTrackingUrl": "",
    "program": "",
    "resourceUrl": "",
    "size": {},
    "xPosition": "",
    "yPosition": ""
  },
  "overrideCss": "",
  "progressOffset": {
    "offsetPercentage": 0,
    "offsetSeconds": 0
  },
  "redirectUrl": "",
  "renderingId": "",
  "renderingIdDimensionValue": {},
  "requiredFlashPluginVersion": "",
  "requiredFlashVersion": 0,
  "size": {},
  "skipOffset": {},
  "skippable": false,
  "sslCompliant": false,
  "sslOverride": false,
  "studioAdvertiserId": "",
  "studioCreativeId": "",
  "studioTraffickedCreativeId": "",
  "subaccountId": "",
  "thirdPartyBackupImageImpressionsUrl": "",
  "thirdPartyRichMediaImpressionsUrl": "",
  "thirdPartyUrls": [
    {
      "thirdPartyUrlType": "",
      "url": ""
    }
  ],
  "timerCustomEvents": [
    {}
  ],
  "totalFileSize": "",
  "type": "",
  "universalAdId": {
    "registry": "",
    "value": ""
  },
  "version": 0
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/creatives');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'accountId' => '',
  'active' => null,
  'adParameters' => '',
  'adTagKeys' => [
    
  ],
  'additionalSizes' => [
    [
        'height' => 0,
        'iab' => null,
        'id' => '',
        'kind' => '',
        'width' => 0
    ]
  ],
  'advertiserId' => '',
  'allowScriptAccess' => null,
  'archived' => null,
  'artworkType' => '',
  'authoringSource' => '',
  'authoringTool' => '',
  'autoAdvanceImages' => null,
  'backgroundColor' => '',
  'backupImageClickThroughUrl' => [
    'computedClickThroughUrl' => '',
    'customClickThroughUrl' => '',
    'landingPageId' => ''
  ],
  'backupImageFeatures' => [
    
  ],
  'backupImageReportingLabel' => '',
  'backupImageTargetWindow' => [
    'customHtml' => '',
    'targetWindowOption' => ''
  ],
  'clickTags' => [
    [
        'clickThroughUrl' => [
                
        ],
        'eventName' => '',
        'name' => ''
    ]
  ],
  'commercialId' => '',
  'companionCreatives' => [
    
  ],
  'compatibility' => [
    
  ],
  'convertFlashToHtml5' => null,
  'counterCustomEvents' => [
    [
        'advertiserCustomEventId' => '',
        'advertiserCustomEventName' => '',
        'advertiserCustomEventType' => '',
        'artworkLabel' => '',
        'artworkType' => '',
        'exitClickThroughUrl' => [
                
        ],
        'id' => '',
        'popupWindowProperties' => [
                'dimension' => [
                                
                ],
                'offset' => [
                                'left' => 0,
                                'top' => 0
                ],
                'positionType' => '',
                'showAddressBar' => null,
                'showMenuBar' => null,
                'showScrollBar' => null,
                'showStatusBar' => null,
                'showToolBar' => null,
                'title' => ''
        ],
        'targetType' => '',
        'videoReportingId' => ''
    ]
  ],
  'creativeAssetSelection' => [
    'defaultAssetId' => '',
    'rules' => [
        [
                'assetId' => '',
                'name' => '',
                'targetingTemplateId' => ''
        ]
    ]
  ],
  'creativeAssets' => [
    [
        'actionScript3' => null,
        'active' => null,
        'additionalSizes' => [
                [
                                
                ]
        ],
        'alignment' => '',
        'artworkType' => '',
        'assetIdentifier' => [
                'name' => '',
                'type' => ''
        ],
        'audioBitRate' => 0,
        'audioSampleRate' => 0,
        'backupImageExit' => [
                
        ],
        'bitRate' => 0,
        'childAssetType' => '',
        'collapsedSize' => [
                
        ],
        'companionCreativeIds' => [
                
        ],
        'customStartTimeValue' => 0,
        'detectedFeatures' => [
                
        ],
        'displayType' => '',
        'duration' => 0,
        'durationType' => '',
        'expandedDimension' => [
                
        ],
        'fileSize' => '',
        'flashVersion' => 0,
        'frameRate' => '',
        'hideFlashObjects' => null,
        'hideSelectionBoxes' => null,
        'horizontallyLocked' => null,
        'id' => '',
        'idDimensionValue' => [
                'dimensionName' => '',
                'etag' => '',
                'id' => '',
                'kind' => '',
                'matchType' => '',
                'value' => ''
        ],
        'mediaDuration' => '',
        'mimeType' => '',
        'offset' => [
                
        ],
        'orientation' => '',
        'originalBackup' => null,
        'politeLoad' => null,
        'position' => [
                
        ],
        'positionLeftUnit' => '',
        'positionTopUnit' => '',
        'progressiveServingUrl' => '',
        'pushdown' => null,
        'pushdownDuration' => '',
        'role' => '',
        'size' => [
                
        ],
        'sslCompliant' => null,
        'startTimeType' => '',
        'streamingServingUrl' => '',
        'transparency' => null,
        'verticallyLocked' => null,
        'windowMode' => '',
        'zIndex' => 0,
        'zipFilename' => '',
        'zipFilesize' => ''
    ]
  ],
  'creativeFieldAssignments' => [
    [
        'creativeFieldId' => '',
        'creativeFieldValueId' => ''
    ]
  ],
  'customKeyValues' => [
    
  ],
  'dynamicAssetSelection' => null,
  'exitCustomEvents' => [
    [
        
    ]
  ],
  'fsCommand' => [
    'left' => 0,
    'positionOption' => '',
    'top' => 0,
    'windowHeight' => 0,
    'windowWidth' => 0
  ],
  'htmlCode' => '',
  'htmlCodeLocked' => null,
  'id' => '',
  'idDimensionValue' => [
    
  ],
  'kind' => '',
  'lastModifiedInfo' => [
    'time' => ''
  ],
  'latestTraffickedCreativeId' => '',
  'mediaDescription' => '',
  'mediaDuration' => '',
  'name' => '',
  'obaIcon' => [
    'iconClickThroughUrl' => '',
    'iconClickTrackingUrl' => '',
    'iconViewTrackingUrl' => '',
    'program' => '',
    'resourceUrl' => '',
    'size' => [
        
    ],
    'xPosition' => '',
    'yPosition' => ''
  ],
  'overrideCss' => '',
  'progressOffset' => [
    'offsetPercentage' => 0,
    'offsetSeconds' => 0
  ],
  'redirectUrl' => '',
  'renderingId' => '',
  'renderingIdDimensionValue' => [
    
  ],
  'requiredFlashPluginVersion' => '',
  'requiredFlashVersion' => 0,
  'size' => [
    
  ],
  'skipOffset' => [
    
  ],
  'skippable' => null,
  'sslCompliant' => null,
  'sslOverride' => null,
  'studioAdvertiserId' => '',
  'studioCreativeId' => '',
  'studioTraffickedCreativeId' => '',
  'subaccountId' => '',
  'thirdPartyBackupImageImpressionsUrl' => '',
  'thirdPartyRichMediaImpressionsUrl' => '',
  'thirdPartyUrls' => [
    [
        'thirdPartyUrlType' => '',
        'url' => ''
    ]
  ],
  'timerCustomEvents' => [
    [
        
    ]
  ],
  'totalFileSize' => '',
  'type' => '',
  'universalAdId' => [
    'registry' => '',
    'value' => ''
  ],
  'version' => 0
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'accountId' => '',
  'active' => null,
  'adParameters' => '',
  'adTagKeys' => [
    
  ],
  'additionalSizes' => [
    [
        'height' => 0,
        'iab' => null,
        'id' => '',
        'kind' => '',
        'width' => 0
    ]
  ],
  'advertiserId' => '',
  'allowScriptAccess' => null,
  'archived' => null,
  'artworkType' => '',
  'authoringSource' => '',
  'authoringTool' => '',
  'autoAdvanceImages' => null,
  'backgroundColor' => '',
  'backupImageClickThroughUrl' => [
    'computedClickThroughUrl' => '',
    'customClickThroughUrl' => '',
    'landingPageId' => ''
  ],
  'backupImageFeatures' => [
    
  ],
  'backupImageReportingLabel' => '',
  'backupImageTargetWindow' => [
    'customHtml' => '',
    'targetWindowOption' => ''
  ],
  'clickTags' => [
    [
        'clickThroughUrl' => [
                
        ],
        'eventName' => '',
        'name' => ''
    ]
  ],
  'commercialId' => '',
  'companionCreatives' => [
    
  ],
  'compatibility' => [
    
  ],
  'convertFlashToHtml5' => null,
  'counterCustomEvents' => [
    [
        'advertiserCustomEventId' => '',
        'advertiserCustomEventName' => '',
        'advertiserCustomEventType' => '',
        'artworkLabel' => '',
        'artworkType' => '',
        'exitClickThroughUrl' => [
                
        ],
        'id' => '',
        'popupWindowProperties' => [
                'dimension' => [
                                
                ],
                'offset' => [
                                'left' => 0,
                                'top' => 0
                ],
                'positionType' => '',
                'showAddressBar' => null,
                'showMenuBar' => null,
                'showScrollBar' => null,
                'showStatusBar' => null,
                'showToolBar' => null,
                'title' => ''
        ],
        'targetType' => '',
        'videoReportingId' => ''
    ]
  ],
  'creativeAssetSelection' => [
    'defaultAssetId' => '',
    'rules' => [
        [
                'assetId' => '',
                'name' => '',
                'targetingTemplateId' => ''
        ]
    ]
  ],
  'creativeAssets' => [
    [
        'actionScript3' => null,
        'active' => null,
        'additionalSizes' => [
                [
                                
                ]
        ],
        'alignment' => '',
        'artworkType' => '',
        'assetIdentifier' => [
                'name' => '',
                'type' => ''
        ],
        'audioBitRate' => 0,
        'audioSampleRate' => 0,
        'backupImageExit' => [
                
        ],
        'bitRate' => 0,
        'childAssetType' => '',
        'collapsedSize' => [
                
        ],
        'companionCreativeIds' => [
                
        ],
        'customStartTimeValue' => 0,
        'detectedFeatures' => [
                
        ],
        'displayType' => '',
        'duration' => 0,
        'durationType' => '',
        'expandedDimension' => [
                
        ],
        'fileSize' => '',
        'flashVersion' => 0,
        'frameRate' => '',
        'hideFlashObjects' => null,
        'hideSelectionBoxes' => null,
        'horizontallyLocked' => null,
        'id' => '',
        'idDimensionValue' => [
                'dimensionName' => '',
                'etag' => '',
                'id' => '',
                'kind' => '',
                'matchType' => '',
                'value' => ''
        ],
        'mediaDuration' => '',
        'mimeType' => '',
        'offset' => [
                
        ],
        'orientation' => '',
        'originalBackup' => null,
        'politeLoad' => null,
        'position' => [
                
        ],
        'positionLeftUnit' => '',
        'positionTopUnit' => '',
        'progressiveServingUrl' => '',
        'pushdown' => null,
        'pushdownDuration' => '',
        'role' => '',
        'size' => [
                
        ],
        'sslCompliant' => null,
        'startTimeType' => '',
        'streamingServingUrl' => '',
        'transparency' => null,
        'verticallyLocked' => null,
        'windowMode' => '',
        'zIndex' => 0,
        'zipFilename' => '',
        'zipFilesize' => ''
    ]
  ],
  'creativeFieldAssignments' => [
    [
        'creativeFieldId' => '',
        'creativeFieldValueId' => ''
    ]
  ],
  'customKeyValues' => [
    
  ],
  'dynamicAssetSelection' => null,
  'exitCustomEvents' => [
    [
        
    ]
  ],
  'fsCommand' => [
    'left' => 0,
    'positionOption' => '',
    'top' => 0,
    'windowHeight' => 0,
    'windowWidth' => 0
  ],
  'htmlCode' => '',
  'htmlCodeLocked' => null,
  'id' => '',
  'idDimensionValue' => [
    
  ],
  'kind' => '',
  'lastModifiedInfo' => [
    'time' => ''
  ],
  'latestTraffickedCreativeId' => '',
  'mediaDescription' => '',
  'mediaDuration' => '',
  'name' => '',
  'obaIcon' => [
    'iconClickThroughUrl' => '',
    'iconClickTrackingUrl' => '',
    'iconViewTrackingUrl' => '',
    'program' => '',
    'resourceUrl' => '',
    'size' => [
        
    ],
    'xPosition' => '',
    'yPosition' => ''
  ],
  'overrideCss' => '',
  'progressOffset' => [
    'offsetPercentage' => 0,
    'offsetSeconds' => 0
  ],
  'redirectUrl' => '',
  'renderingId' => '',
  'renderingIdDimensionValue' => [
    
  ],
  'requiredFlashPluginVersion' => '',
  'requiredFlashVersion' => 0,
  'size' => [
    
  ],
  'skipOffset' => [
    
  ],
  'skippable' => null,
  'sslCompliant' => null,
  'sslOverride' => null,
  'studioAdvertiserId' => '',
  'studioCreativeId' => '',
  'studioTraffickedCreativeId' => '',
  'subaccountId' => '',
  'thirdPartyBackupImageImpressionsUrl' => '',
  'thirdPartyRichMediaImpressionsUrl' => '',
  'thirdPartyUrls' => [
    [
        'thirdPartyUrlType' => '',
        'url' => ''
    ]
  ],
  'timerCustomEvents' => [
    [
        
    ]
  ],
  'totalFileSize' => '',
  'type' => '',
  'universalAdId' => [
    'registry' => '',
    'value' => ''
  ],
  'version' => 0
]));
$request->setRequestUrl('{{baseUrl}}/userprofiles/:profileId/creatives');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/creatives' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "active": false,
  "adParameters": "",
  "adTagKeys": [],
  "additionalSizes": [
    {
      "height": 0,
      "iab": false,
      "id": "",
      "kind": "",
      "width": 0
    }
  ],
  "advertiserId": "",
  "allowScriptAccess": false,
  "archived": false,
  "artworkType": "",
  "authoringSource": "",
  "authoringTool": "",
  "autoAdvanceImages": false,
  "backgroundColor": "",
  "backupImageClickThroughUrl": {
    "computedClickThroughUrl": "",
    "customClickThroughUrl": "",
    "landingPageId": ""
  },
  "backupImageFeatures": [],
  "backupImageReportingLabel": "",
  "backupImageTargetWindow": {
    "customHtml": "",
    "targetWindowOption": ""
  },
  "clickTags": [
    {
      "clickThroughUrl": {},
      "eventName": "",
      "name": ""
    }
  ],
  "commercialId": "",
  "companionCreatives": [],
  "compatibility": [],
  "convertFlashToHtml5": false,
  "counterCustomEvents": [
    {
      "advertiserCustomEventId": "",
      "advertiserCustomEventName": "",
      "advertiserCustomEventType": "",
      "artworkLabel": "",
      "artworkType": "",
      "exitClickThroughUrl": {},
      "id": "",
      "popupWindowProperties": {
        "dimension": {},
        "offset": {
          "left": 0,
          "top": 0
        },
        "positionType": "",
        "showAddressBar": false,
        "showMenuBar": false,
        "showScrollBar": false,
        "showStatusBar": false,
        "showToolBar": false,
        "title": ""
      },
      "targetType": "",
      "videoReportingId": ""
    }
  ],
  "creativeAssetSelection": {
    "defaultAssetId": "",
    "rules": [
      {
        "assetId": "",
        "name": "",
        "targetingTemplateId": ""
      }
    ]
  },
  "creativeAssets": [
    {
      "actionScript3": false,
      "active": false,
      "additionalSizes": [
        {}
      ],
      "alignment": "",
      "artworkType": "",
      "assetIdentifier": {
        "name": "",
        "type": ""
      },
      "audioBitRate": 0,
      "audioSampleRate": 0,
      "backupImageExit": {},
      "bitRate": 0,
      "childAssetType": "",
      "collapsedSize": {},
      "companionCreativeIds": [],
      "customStartTimeValue": 0,
      "detectedFeatures": [],
      "displayType": "",
      "duration": 0,
      "durationType": "",
      "expandedDimension": {},
      "fileSize": "",
      "flashVersion": 0,
      "frameRate": "",
      "hideFlashObjects": false,
      "hideSelectionBoxes": false,
      "horizontallyLocked": false,
      "id": "",
      "idDimensionValue": {
        "dimensionName": "",
        "etag": "",
        "id": "",
        "kind": "",
        "matchType": "",
        "value": ""
      },
      "mediaDuration": "",
      "mimeType": "",
      "offset": {},
      "orientation": "",
      "originalBackup": false,
      "politeLoad": false,
      "position": {},
      "positionLeftUnit": "",
      "positionTopUnit": "",
      "progressiveServingUrl": "",
      "pushdown": false,
      "pushdownDuration": "",
      "role": "",
      "size": {},
      "sslCompliant": false,
      "startTimeType": "",
      "streamingServingUrl": "",
      "transparency": false,
      "verticallyLocked": false,
      "windowMode": "",
      "zIndex": 0,
      "zipFilename": "",
      "zipFilesize": ""
    }
  ],
  "creativeFieldAssignments": [
    {
      "creativeFieldId": "",
      "creativeFieldValueId": ""
    }
  ],
  "customKeyValues": [],
  "dynamicAssetSelection": false,
  "exitCustomEvents": [
    {}
  ],
  "fsCommand": {
    "left": 0,
    "positionOption": "",
    "top": 0,
    "windowHeight": 0,
    "windowWidth": 0
  },
  "htmlCode": "",
  "htmlCodeLocked": false,
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "lastModifiedInfo": {
    "time": ""
  },
  "latestTraffickedCreativeId": "",
  "mediaDescription": "",
  "mediaDuration": "",
  "name": "",
  "obaIcon": {
    "iconClickThroughUrl": "",
    "iconClickTrackingUrl": "",
    "iconViewTrackingUrl": "",
    "program": "",
    "resourceUrl": "",
    "size": {},
    "xPosition": "",
    "yPosition": ""
  },
  "overrideCss": "",
  "progressOffset": {
    "offsetPercentage": 0,
    "offsetSeconds": 0
  },
  "redirectUrl": "",
  "renderingId": "",
  "renderingIdDimensionValue": {},
  "requiredFlashPluginVersion": "",
  "requiredFlashVersion": 0,
  "size": {},
  "skipOffset": {},
  "skippable": false,
  "sslCompliant": false,
  "sslOverride": false,
  "studioAdvertiserId": "",
  "studioCreativeId": "",
  "studioTraffickedCreativeId": "",
  "subaccountId": "",
  "thirdPartyBackupImageImpressionsUrl": "",
  "thirdPartyRichMediaImpressionsUrl": "",
  "thirdPartyUrls": [
    {
      "thirdPartyUrlType": "",
      "url": ""
    }
  ],
  "timerCustomEvents": [
    {}
  ],
  "totalFileSize": "",
  "type": "",
  "universalAdId": {
    "registry": "",
    "value": ""
  },
  "version": 0
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/creatives' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "active": false,
  "adParameters": "",
  "adTagKeys": [],
  "additionalSizes": [
    {
      "height": 0,
      "iab": false,
      "id": "",
      "kind": "",
      "width": 0
    }
  ],
  "advertiserId": "",
  "allowScriptAccess": false,
  "archived": false,
  "artworkType": "",
  "authoringSource": "",
  "authoringTool": "",
  "autoAdvanceImages": false,
  "backgroundColor": "",
  "backupImageClickThroughUrl": {
    "computedClickThroughUrl": "",
    "customClickThroughUrl": "",
    "landingPageId": ""
  },
  "backupImageFeatures": [],
  "backupImageReportingLabel": "",
  "backupImageTargetWindow": {
    "customHtml": "",
    "targetWindowOption": ""
  },
  "clickTags": [
    {
      "clickThroughUrl": {},
      "eventName": "",
      "name": ""
    }
  ],
  "commercialId": "",
  "companionCreatives": [],
  "compatibility": [],
  "convertFlashToHtml5": false,
  "counterCustomEvents": [
    {
      "advertiserCustomEventId": "",
      "advertiserCustomEventName": "",
      "advertiserCustomEventType": "",
      "artworkLabel": "",
      "artworkType": "",
      "exitClickThroughUrl": {},
      "id": "",
      "popupWindowProperties": {
        "dimension": {},
        "offset": {
          "left": 0,
          "top": 0
        },
        "positionType": "",
        "showAddressBar": false,
        "showMenuBar": false,
        "showScrollBar": false,
        "showStatusBar": false,
        "showToolBar": false,
        "title": ""
      },
      "targetType": "",
      "videoReportingId": ""
    }
  ],
  "creativeAssetSelection": {
    "defaultAssetId": "",
    "rules": [
      {
        "assetId": "",
        "name": "",
        "targetingTemplateId": ""
      }
    ]
  },
  "creativeAssets": [
    {
      "actionScript3": false,
      "active": false,
      "additionalSizes": [
        {}
      ],
      "alignment": "",
      "artworkType": "",
      "assetIdentifier": {
        "name": "",
        "type": ""
      },
      "audioBitRate": 0,
      "audioSampleRate": 0,
      "backupImageExit": {},
      "bitRate": 0,
      "childAssetType": "",
      "collapsedSize": {},
      "companionCreativeIds": [],
      "customStartTimeValue": 0,
      "detectedFeatures": [],
      "displayType": "",
      "duration": 0,
      "durationType": "",
      "expandedDimension": {},
      "fileSize": "",
      "flashVersion": 0,
      "frameRate": "",
      "hideFlashObjects": false,
      "hideSelectionBoxes": false,
      "horizontallyLocked": false,
      "id": "",
      "idDimensionValue": {
        "dimensionName": "",
        "etag": "",
        "id": "",
        "kind": "",
        "matchType": "",
        "value": ""
      },
      "mediaDuration": "",
      "mimeType": "",
      "offset": {},
      "orientation": "",
      "originalBackup": false,
      "politeLoad": false,
      "position": {},
      "positionLeftUnit": "",
      "positionTopUnit": "",
      "progressiveServingUrl": "",
      "pushdown": false,
      "pushdownDuration": "",
      "role": "",
      "size": {},
      "sslCompliant": false,
      "startTimeType": "",
      "streamingServingUrl": "",
      "transparency": false,
      "verticallyLocked": false,
      "windowMode": "",
      "zIndex": 0,
      "zipFilename": "",
      "zipFilesize": ""
    }
  ],
  "creativeFieldAssignments": [
    {
      "creativeFieldId": "",
      "creativeFieldValueId": ""
    }
  ],
  "customKeyValues": [],
  "dynamicAssetSelection": false,
  "exitCustomEvents": [
    {}
  ],
  "fsCommand": {
    "left": 0,
    "positionOption": "",
    "top": 0,
    "windowHeight": 0,
    "windowWidth": 0
  },
  "htmlCode": "",
  "htmlCodeLocked": false,
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "lastModifiedInfo": {
    "time": ""
  },
  "latestTraffickedCreativeId": "",
  "mediaDescription": "",
  "mediaDuration": "",
  "name": "",
  "obaIcon": {
    "iconClickThroughUrl": "",
    "iconClickTrackingUrl": "",
    "iconViewTrackingUrl": "",
    "program": "",
    "resourceUrl": "",
    "size": {},
    "xPosition": "",
    "yPosition": ""
  },
  "overrideCss": "",
  "progressOffset": {
    "offsetPercentage": 0,
    "offsetSeconds": 0
  },
  "redirectUrl": "",
  "renderingId": "",
  "renderingIdDimensionValue": {},
  "requiredFlashPluginVersion": "",
  "requiredFlashVersion": 0,
  "size": {},
  "skipOffset": {},
  "skippable": false,
  "sslCompliant": false,
  "sslOverride": false,
  "studioAdvertiserId": "",
  "studioCreativeId": "",
  "studioTraffickedCreativeId": "",
  "subaccountId": "",
  "thirdPartyBackupImageImpressionsUrl": "",
  "thirdPartyRichMediaImpressionsUrl": "",
  "thirdPartyUrls": [
    {
      "thirdPartyUrlType": "",
      "url": ""
    }
  ],
  "timerCustomEvents": [
    {}
  ],
  "totalFileSize": "",
  "type": "",
  "universalAdId": {
    "registry": "",
    "value": ""
  },
  "version": 0
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"adParameters\": \"\",\n  \"adTagKeys\": [],\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"allowScriptAccess\": false,\n  \"archived\": false,\n  \"artworkType\": \"\",\n  \"authoringSource\": \"\",\n  \"authoringTool\": \"\",\n  \"autoAdvanceImages\": false,\n  \"backgroundColor\": \"\",\n  \"backupImageClickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"landingPageId\": \"\"\n  },\n  \"backupImageFeatures\": [],\n  \"backupImageReportingLabel\": \"\",\n  \"backupImageTargetWindow\": {\n    \"customHtml\": \"\",\n    \"targetWindowOption\": \"\"\n  },\n  \"clickTags\": [\n    {\n      \"clickThroughUrl\": {},\n      \"eventName\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"commercialId\": \"\",\n  \"companionCreatives\": [],\n  \"compatibility\": [],\n  \"convertFlashToHtml5\": false,\n  \"counterCustomEvents\": [\n    {\n      \"advertiserCustomEventId\": \"\",\n      \"advertiserCustomEventName\": \"\",\n      \"advertiserCustomEventType\": \"\",\n      \"artworkLabel\": \"\",\n      \"artworkType\": \"\",\n      \"exitClickThroughUrl\": {},\n      \"id\": \"\",\n      \"popupWindowProperties\": {\n        \"dimension\": {},\n        \"offset\": {\n          \"left\": 0,\n          \"top\": 0\n        },\n        \"positionType\": \"\",\n        \"showAddressBar\": false,\n        \"showMenuBar\": false,\n        \"showScrollBar\": false,\n        \"showStatusBar\": false,\n        \"showToolBar\": false,\n        \"title\": \"\"\n      },\n      \"targetType\": \"\",\n      \"videoReportingId\": \"\"\n    }\n  ],\n  \"creativeAssetSelection\": {\n    \"defaultAssetId\": \"\",\n    \"rules\": [\n      {\n        \"assetId\": \"\",\n        \"name\": \"\",\n        \"targetingTemplateId\": \"\"\n      }\n    ]\n  },\n  \"creativeAssets\": [\n    {\n      \"actionScript3\": false,\n      \"active\": false,\n      \"additionalSizes\": [\n        {}\n      ],\n      \"alignment\": \"\",\n      \"artworkType\": \"\",\n      \"assetIdentifier\": {\n        \"name\": \"\",\n        \"type\": \"\"\n      },\n      \"audioBitRate\": 0,\n      \"audioSampleRate\": 0,\n      \"backupImageExit\": {},\n      \"bitRate\": 0,\n      \"childAssetType\": \"\",\n      \"collapsedSize\": {},\n      \"companionCreativeIds\": [],\n      \"customStartTimeValue\": 0,\n      \"detectedFeatures\": [],\n      \"displayType\": \"\",\n      \"duration\": 0,\n      \"durationType\": \"\",\n      \"expandedDimension\": {},\n      \"fileSize\": \"\",\n      \"flashVersion\": 0,\n      \"frameRate\": \"\",\n      \"hideFlashObjects\": false,\n      \"hideSelectionBoxes\": false,\n      \"horizontallyLocked\": false,\n      \"id\": \"\",\n      \"idDimensionValue\": {\n        \"dimensionName\": \"\",\n        \"etag\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"matchType\": \"\",\n        \"value\": \"\"\n      },\n      \"mediaDuration\": \"\",\n      \"mimeType\": \"\",\n      \"offset\": {},\n      \"orientation\": \"\",\n      \"originalBackup\": false,\n      \"politeLoad\": false,\n      \"position\": {},\n      \"positionLeftUnit\": \"\",\n      \"positionTopUnit\": \"\",\n      \"progressiveServingUrl\": \"\",\n      \"pushdown\": false,\n      \"pushdownDuration\": \"\",\n      \"role\": \"\",\n      \"size\": {},\n      \"sslCompliant\": false,\n      \"startTimeType\": \"\",\n      \"streamingServingUrl\": \"\",\n      \"transparency\": false,\n      \"verticallyLocked\": false,\n      \"windowMode\": \"\",\n      \"zIndex\": 0,\n      \"zipFilename\": \"\",\n      \"zipFilesize\": \"\"\n    }\n  ],\n  \"creativeFieldAssignments\": [\n    {\n      \"creativeFieldId\": \"\",\n      \"creativeFieldValueId\": \"\"\n    }\n  ],\n  \"customKeyValues\": [],\n  \"dynamicAssetSelection\": false,\n  \"exitCustomEvents\": [\n    {}\n  ],\n  \"fsCommand\": {\n    \"left\": 0,\n    \"positionOption\": \"\",\n    \"top\": 0,\n    \"windowHeight\": 0,\n    \"windowWidth\": 0\n  },\n  \"htmlCode\": \"\",\n  \"htmlCodeLocked\": false,\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {\n    \"time\": \"\"\n  },\n  \"latestTraffickedCreativeId\": \"\",\n  \"mediaDescription\": \"\",\n  \"mediaDuration\": \"\",\n  \"name\": \"\",\n  \"obaIcon\": {\n    \"iconClickThroughUrl\": \"\",\n    \"iconClickTrackingUrl\": \"\",\n    \"iconViewTrackingUrl\": \"\",\n    \"program\": \"\",\n    \"resourceUrl\": \"\",\n    \"size\": {},\n    \"xPosition\": \"\",\n    \"yPosition\": \"\"\n  },\n  \"overrideCss\": \"\",\n  \"progressOffset\": {\n    \"offsetPercentage\": 0,\n    \"offsetSeconds\": 0\n  },\n  \"redirectUrl\": \"\",\n  \"renderingId\": \"\",\n  \"renderingIdDimensionValue\": {},\n  \"requiredFlashPluginVersion\": \"\",\n  \"requiredFlashVersion\": 0,\n  \"size\": {},\n  \"skipOffset\": {},\n  \"skippable\": false,\n  \"sslCompliant\": false,\n  \"sslOverride\": false,\n  \"studioAdvertiserId\": \"\",\n  \"studioCreativeId\": \"\",\n  \"studioTraffickedCreativeId\": \"\",\n  \"subaccountId\": \"\",\n  \"thirdPartyBackupImageImpressionsUrl\": \"\",\n  \"thirdPartyRichMediaImpressionsUrl\": \"\",\n  \"thirdPartyUrls\": [\n    {\n      \"thirdPartyUrlType\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"timerCustomEvents\": [\n    {}\n  ],\n  \"totalFileSize\": \"\",\n  \"type\": \"\",\n  \"universalAdId\": {\n    \"registry\": \"\",\n    \"value\": \"\"\n  },\n  \"version\": 0\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/userprofiles/:profileId/creatives", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/creatives"

payload = {
    "accountId": "",
    "active": False,
    "adParameters": "",
    "adTagKeys": [],
    "additionalSizes": [
        {
            "height": 0,
            "iab": False,
            "id": "",
            "kind": "",
            "width": 0
        }
    ],
    "advertiserId": "",
    "allowScriptAccess": False,
    "archived": False,
    "artworkType": "",
    "authoringSource": "",
    "authoringTool": "",
    "autoAdvanceImages": False,
    "backgroundColor": "",
    "backupImageClickThroughUrl": {
        "computedClickThroughUrl": "",
        "customClickThroughUrl": "",
        "landingPageId": ""
    },
    "backupImageFeatures": [],
    "backupImageReportingLabel": "",
    "backupImageTargetWindow": {
        "customHtml": "",
        "targetWindowOption": ""
    },
    "clickTags": [
        {
            "clickThroughUrl": {},
            "eventName": "",
            "name": ""
        }
    ],
    "commercialId": "",
    "companionCreatives": [],
    "compatibility": [],
    "convertFlashToHtml5": False,
    "counterCustomEvents": [
        {
            "advertiserCustomEventId": "",
            "advertiserCustomEventName": "",
            "advertiserCustomEventType": "",
            "artworkLabel": "",
            "artworkType": "",
            "exitClickThroughUrl": {},
            "id": "",
            "popupWindowProperties": {
                "dimension": {},
                "offset": {
                    "left": 0,
                    "top": 0
                },
                "positionType": "",
                "showAddressBar": False,
                "showMenuBar": False,
                "showScrollBar": False,
                "showStatusBar": False,
                "showToolBar": False,
                "title": ""
            },
            "targetType": "",
            "videoReportingId": ""
        }
    ],
    "creativeAssetSelection": {
        "defaultAssetId": "",
        "rules": [
            {
                "assetId": "",
                "name": "",
                "targetingTemplateId": ""
            }
        ]
    },
    "creativeAssets": [
        {
            "actionScript3": False,
            "active": False,
            "additionalSizes": [{}],
            "alignment": "",
            "artworkType": "",
            "assetIdentifier": {
                "name": "",
                "type": ""
            },
            "audioBitRate": 0,
            "audioSampleRate": 0,
            "backupImageExit": {},
            "bitRate": 0,
            "childAssetType": "",
            "collapsedSize": {},
            "companionCreativeIds": [],
            "customStartTimeValue": 0,
            "detectedFeatures": [],
            "displayType": "",
            "duration": 0,
            "durationType": "",
            "expandedDimension": {},
            "fileSize": "",
            "flashVersion": 0,
            "frameRate": "",
            "hideFlashObjects": False,
            "hideSelectionBoxes": False,
            "horizontallyLocked": False,
            "id": "",
            "idDimensionValue": {
                "dimensionName": "",
                "etag": "",
                "id": "",
                "kind": "",
                "matchType": "",
                "value": ""
            },
            "mediaDuration": "",
            "mimeType": "",
            "offset": {},
            "orientation": "",
            "originalBackup": False,
            "politeLoad": False,
            "position": {},
            "positionLeftUnit": "",
            "positionTopUnit": "",
            "progressiveServingUrl": "",
            "pushdown": False,
            "pushdownDuration": "",
            "role": "",
            "size": {},
            "sslCompliant": False,
            "startTimeType": "",
            "streamingServingUrl": "",
            "transparency": False,
            "verticallyLocked": False,
            "windowMode": "",
            "zIndex": 0,
            "zipFilename": "",
            "zipFilesize": ""
        }
    ],
    "creativeFieldAssignments": [
        {
            "creativeFieldId": "",
            "creativeFieldValueId": ""
        }
    ],
    "customKeyValues": [],
    "dynamicAssetSelection": False,
    "exitCustomEvents": [{}],
    "fsCommand": {
        "left": 0,
        "positionOption": "",
        "top": 0,
        "windowHeight": 0,
        "windowWidth": 0
    },
    "htmlCode": "",
    "htmlCodeLocked": False,
    "id": "",
    "idDimensionValue": {},
    "kind": "",
    "lastModifiedInfo": { "time": "" },
    "latestTraffickedCreativeId": "",
    "mediaDescription": "",
    "mediaDuration": "",
    "name": "",
    "obaIcon": {
        "iconClickThroughUrl": "",
        "iconClickTrackingUrl": "",
        "iconViewTrackingUrl": "",
        "program": "",
        "resourceUrl": "",
        "size": {},
        "xPosition": "",
        "yPosition": ""
    },
    "overrideCss": "",
    "progressOffset": {
        "offsetPercentage": 0,
        "offsetSeconds": 0
    },
    "redirectUrl": "",
    "renderingId": "",
    "renderingIdDimensionValue": {},
    "requiredFlashPluginVersion": "",
    "requiredFlashVersion": 0,
    "size": {},
    "skipOffset": {},
    "skippable": False,
    "sslCompliant": False,
    "sslOverride": False,
    "studioAdvertiserId": "",
    "studioCreativeId": "",
    "studioTraffickedCreativeId": "",
    "subaccountId": "",
    "thirdPartyBackupImageImpressionsUrl": "",
    "thirdPartyRichMediaImpressionsUrl": "",
    "thirdPartyUrls": [
        {
            "thirdPartyUrlType": "",
            "url": ""
        }
    ],
    "timerCustomEvents": [{}],
    "totalFileSize": "",
    "type": "",
    "universalAdId": {
        "registry": "",
        "value": ""
    },
    "version": 0
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/creatives"

payload <- "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"adParameters\": \"\",\n  \"adTagKeys\": [],\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"allowScriptAccess\": false,\n  \"archived\": false,\n  \"artworkType\": \"\",\n  \"authoringSource\": \"\",\n  \"authoringTool\": \"\",\n  \"autoAdvanceImages\": false,\n  \"backgroundColor\": \"\",\n  \"backupImageClickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"landingPageId\": \"\"\n  },\n  \"backupImageFeatures\": [],\n  \"backupImageReportingLabel\": \"\",\n  \"backupImageTargetWindow\": {\n    \"customHtml\": \"\",\n    \"targetWindowOption\": \"\"\n  },\n  \"clickTags\": [\n    {\n      \"clickThroughUrl\": {},\n      \"eventName\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"commercialId\": \"\",\n  \"companionCreatives\": [],\n  \"compatibility\": [],\n  \"convertFlashToHtml5\": false,\n  \"counterCustomEvents\": [\n    {\n      \"advertiserCustomEventId\": \"\",\n      \"advertiserCustomEventName\": \"\",\n      \"advertiserCustomEventType\": \"\",\n      \"artworkLabel\": \"\",\n      \"artworkType\": \"\",\n      \"exitClickThroughUrl\": {},\n      \"id\": \"\",\n      \"popupWindowProperties\": {\n        \"dimension\": {},\n        \"offset\": {\n          \"left\": 0,\n          \"top\": 0\n        },\n        \"positionType\": \"\",\n        \"showAddressBar\": false,\n        \"showMenuBar\": false,\n        \"showScrollBar\": false,\n        \"showStatusBar\": false,\n        \"showToolBar\": false,\n        \"title\": \"\"\n      },\n      \"targetType\": \"\",\n      \"videoReportingId\": \"\"\n    }\n  ],\n  \"creativeAssetSelection\": {\n    \"defaultAssetId\": \"\",\n    \"rules\": [\n      {\n        \"assetId\": \"\",\n        \"name\": \"\",\n        \"targetingTemplateId\": \"\"\n      }\n    ]\n  },\n  \"creativeAssets\": [\n    {\n      \"actionScript3\": false,\n      \"active\": false,\n      \"additionalSizes\": [\n        {}\n      ],\n      \"alignment\": \"\",\n      \"artworkType\": \"\",\n      \"assetIdentifier\": {\n        \"name\": \"\",\n        \"type\": \"\"\n      },\n      \"audioBitRate\": 0,\n      \"audioSampleRate\": 0,\n      \"backupImageExit\": {},\n      \"bitRate\": 0,\n      \"childAssetType\": \"\",\n      \"collapsedSize\": {},\n      \"companionCreativeIds\": [],\n      \"customStartTimeValue\": 0,\n      \"detectedFeatures\": [],\n      \"displayType\": \"\",\n      \"duration\": 0,\n      \"durationType\": \"\",\n      \"expandedDimension\": {},\n      \"fileSize\": \"\",\n      \"flashVersion\": 0,\n      \"frameRate\": \"\",\n      \"hideFlashObjects\": false,\n      \"hideSelectionBoxes\": false,\n      \"horizontallyLocked\": false,\n      \"id\": \"\",\n      \"idDimensionValue\": {\n        \"dimensionName\": \"\",\n        \"etag\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"matchType\": \"\",\n        \"value\": \"\"\n      },\n      \"mediaDuration\": \"\",\n      \"mimeType\": \"\",\n      \"offset\": {},\n      \"orientation\": \"\",\n      \"originalBackup\": false,\n      \"politeLoad\": false,\n      \"position\": {},\n      \"positionLeftUnit\": \"\",\n      \"positionTopUnit\": \"\",\n      \"progressiveServingUrl\": \"\",\n      \"pushdown\": false,\n      \"pushdownDuration\": \"\",\n      \"role\": \"\",\n      \"size\": {},\n      \"sslCompliant\": false,\n      \"startTimeType\": \"\",\n      \"streamingServingUrl\": \"\",\n      \"transparency\": false,\n      \"verticallyLocked\": false,\n      \"windowMode\": \"\",\n      \"zIndex\": 0,\n      \"zipFilename\": \"\",\n      \"zipFilesize\": \"\"\n    }\n  ],\n  \"creativeFieldAssignments\": [\n    {\n      \"creativeFieldId\": \"\",\n      \"creativeFieldValueId\": \"\"\n    }\n  ],\n  \"customKeyValues\": [],\n  \"dynamicAssetSelection\": false,\n  \"exitCustomEvents\": [\n    {}\n  ],\n  \"fsCommand\": {\n    \"left\": 0,\n    \"positionOption\": \"\",\n    \"top\": 0,\n    \"windowHeight\": 0,\n    \"windowWidth\": 0\n  },\n  \"htmlCode\": \"\",\n  \"htmlCodeLocked\": false,\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {\n    \"time\": \"\"\n  },\n  \"latestTraffickedCreativeId\": \"\",\n  \"mediaDescription\": \"\",\n  \"mediaDuration\": \"\",\n  \"name\": \"\",\n  \"obaIcon\": {\n    \"iconClickThroughUrl\": \"\",\n    \"iconClickTrackingUrl\": \"\",\n    \"iconViewTrackingUrl\": \"\",\n    \"program\": \"\",\n    \"resourceUrl\": \"\",\n    \"size\": {},\n    \"xPosition\": \"\",\n    \"yPosition\": \"\"\n  },\n  \"overrideCss\": \"\",\n  \"progressOffset\": {\n    \"offsetPercentage\": 0,\n    \"offsetSeconds\": 0\n  },\n  \"redirectUrl\": \"\",\n  \"renderingId\": \"\",\n  \"renderingIdDimensionValue\": {},\n  \"requiredFlashPluginVersion\": \"\",\n  \"requiredFlashVersion\": 0,\n  \"size\": {},\n  \"skipOffset\": {},\n  \"skippable\": false,\n  \"sslCompliant\": false,\n  \"sslOverride\": false,\n  \"studioAdvertiserId\": \"\",\n  \"studioCreativeId\": \"\",\n  \"studioTraffickedCreativeId\": \"\",\n  \"subaccountId\": \"\",\n  \"thirdPartyBackupImageImpressionsUrl\": \"\",\n  \"thirdPartyRichMediaImpressionsUrl\": \"\",\n  \"thirdPartyUrls\": [\n    {\n      \"thirdPartyUrlType\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"timerCustomEvents\": [\n    {}\n  ],\n  \"totalFileSize\": \"\",\n  \"type\": \"\",\n  \"universalAdId\": {\n    \"registry\": \"\",\n    \"value\": \"\"\n  },\n  \"version\": 0\n}"

encode <- "json"

response <- VERB("PUT", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/creatives")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"adParameters\": \"\",\n  \"adTagKeys\": [],\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"allowScriptAccess\": false,\n  \"archived\": false,\n  \"artworkType\": \"\",\n  \"authoringSource\": \"\",\n  \"authoringTool\": \"\",\n  \"autoAdvanceImages\": false,\n  \"backgroundColor\": \"\",\n  \"backupImageClickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"landingPageId\": \"\"\n  },\n  \"backupImageFeatures\": [],\n  \"backupImageReportingLabel\": \"\",\n  \"backupImageTargetWindow\": {\n    \"customHtml\": \"\",\n    \"targetWindowOption\": \"\"\n  },\n  \"clickTags\": [\n    {\n      \"clickThroughUrl\": {},\n      \"eventName\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"commercialId\": \"\",\n  \"companionCreatives\": [],\n  \"compatibility\": [],\n  \"convertFlashToHtml5\": false,\n  \"counterCustomEvents\": [\n    {\n      \"advertiserCustomEventId\": \"\",\n      \"advertiserCustomEventName\": \"\",\n      \"advertiserCustomEventType\": \"\",\n      \"artworkLabel\": \"\",\n      \"artworkType\": \"\",\n      \"exitClickThroughUrl\": {},\n      \"id\": \"\",\n      \"popupWindowProperties\": {\n        \"dimension\": {},\n        \"offset\": {\n          \"left\": 0,\n          \"top\": 0\n        },\n        \"positionType\": \"\",\n        \"showAddressBar\": false,\n        \"showMenuBar\": false,\n        \"showScrollBar\": false,\n        \"showStatusBar\": false,\n        \"showToolBar\": false,\n        \"title\": \"\"\n      },\n      \"targetType\": \"\",\n      \"videoReportingId\": \"\"\n    }\n  ],\n  \"creativeAssetSelection\": {\n    \"defaultAssetId\": \"\",\n    \"rules\": [\n      {\n        \"assetId\": \"\",\n        \"name\": \"\",\n        \"targetingTemplateId\": \"\"\n      }\n    ]\n  },\n  \"creativeAssets\": [\n    {\n      \"actionScript3\": false,\n      \"active\": false,\n      \"additionalSizes\": [\n        {}\n      ],\n      \"alignment\": \"\",\n      \"artworkType\": \"\",\n      \"assetIdentifier\": {\n        \"name\": \"\",\n        \"type\": \"\"\n      },\n      \"audioBitRate\": 0,\n      \"audioSampleRate\": 0,\n      \"backupImageExit\": {},\n      \"bitRate\": 0,\n      \"childAssetType\": \"\",\n      \"collapsedSize\": {},\n      \"companionCreativeIds\": [],\n      \"customStartTimeValue\": 0,\n      \"detectedFeatures\": [],\n      \"displayType\": \"\",\n      \"duration\": 0,\n      \"durationType\": \"\",\n      \"expandedDimension\": {},\n      \"fileSize\": \"\",\n      \"flashVersion\": 0,\n      \"frameRate\": \"\",\n      \"hideFlashObjects\": false,\n      \"hideSelectionBoxes\": false,\n      \"horizontallyLocked\": false,\n      \"id\": \"\",\n      \"idDimensionValue\": {\n        \"dimensionName\": \"\",\n        \"etag\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"matchType\": \"\",\n        \"value\": \"\"\n      },\n      \"mediaDuration\": \"\",\n      \"mimeType\": \"\",\n      \"offset\": {},\n      \"orientation\": \"\",\n      \"originalBackup\": false,\n      \"politeLoad\": false,\n      \"position\": {},\n      \"positionLeftUnit\": \"\",\n      \"positionTopUnit\": \"\",\n      \"progressiveServingUrl\": \"\",\n      \"pushdown\": false,\n      \"pushdownDuration\": \"\",\n      \"role\": \"\",\n      \"size\": {},\n      \"sslCompliant\": false,\n      \"startTimeType\": \"\",\n      \"streamingServingUrl\": \"\",\n      \"transparency\": false,\n      \"verticallyLocked\": false,\n      \"windowMode\": \"\",\n      \"zIndex\": 0,\n      \"zipFilename\": \"\",\n      \"zipFilesize\": \"\"\n    }\n  ],\n  \"creativeFieldAssignments\": [\n    {\n      \"creativeFieldId\": \"\",\n      \"creativeFieldValueId\": \"\"\n    }\n  ],\n  \"customKeyValues\": [],\n  \"dynamicAssetSelection\": false,\n  \"exitCustomEvents\": [\n    {}\n  ],\n  \"fsCommand\": {\n    \"left\": 0,\n    \"positionOption\": \"\",\n    \"top\": 0,\n    \"windowHeight\": 0,\n    \"windowWidth\": 0\n  },\n  \"htmlCode\": \"\",\n  \"htmlCodeLocked\": false,\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {\n    \"time\": \"\"\n  },\n  \"latestTraffickedCreativeId\": \"\",\n  \"mediaDescription\": \"\",\n  \"mediaDuration\": \"\",\n  \"name\": \"\",\n  \"obaIcon\": {\n    \"iconClickThroughUrl\": \"\",\n    \"iconClickTrackingUrl\": \"\",\n    \"iconViewTrackingUrl\": \"\",\n    \"program\": \"\",\n    \"resourceUrl\": \"\",\n    \"size\": {},\n    \"xPosition\": \"\",\n    \"yPosition\": \"\"\n  },\n  \"overrideCss\": \"\",\n  \"progressOffset\": {\n    \"offsetPercentage\": 0,\n    \"offsetSeconds\": 0\n  },\n  \"redirectUrl\": \"\",\n  \"renderingId\": \"\",\n  \"renderingIdDimensionValue\": {},\n  \"requiredFlashPluginVersion\": \"\",\n  \"requiredFlashVersion\": 0,\n  \"size\": {},\n  \"skipOffset\": {},\n  \"skippable\": false,\n  \"sslCompliant\": false,\n  \"sslOverride\": false,\n  \"studioAdvertiserId\": \"\",\n  \"studioCreativeId\": \"\",\n  \"studioTraffickedCreativeId\": \"\",\n  \"subaccountId\": \"\",\n  \"thirdPartyBackupImageImpressionsUrl\": \"\",\n  \"thirdPartyRichMediaImpressionsUrl\": \"\",\n  \"thirdPartyUrls\": [\n    {\n      \"thirdPartyUrlType\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"timerCustomEvents\": [\n    {}\n  ],\n  \"totalFileSize\": \"\",\n  \"type\": \"\",\n  \"universalAdId\": {\n    \"registry\": \"\",\n    \"value\": \"\"\n  },\n  \"version\": 0\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.put('/baseUrl/userprofiles/:profileId/creatives') do |req|
  req.body = "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"adParameters\": \"\",\n  \"adTagKeys\": [],\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"allowScriptAccess\": false,\n  \"archived\": false,\n  \"artworkType\": \"\",\n  \"authoringSource\": \"\",\n  \"authoringTool\": \"\",\n  \"autoAdvanceImages\": false,\n  \"backgroundColor\": \"\",\n  \"backupImageClickThroughUrl\": {\n    \"computedClickThroughUrl\": \"\",\n    \"customClickThroughUrl\": \"\",\n    \"landingPageId\": \"\"\n  },\n  \"backupImageFeatures\": [],\n  \"backupImageReportingLabel\": \"\",\n  \"backupImageTargetWindow\": {\n    \"customHtml\": \"\",\n    \"targetWindowOption\": \"\"\n  },\n  \"clickTags\": [\n    {\n      \"clickThroughUrl\": {},\n      \"eventName\": \"\",\n      \"name\": \"\"\n    }\n  ],\n  \"commercialId\": \"\",\n  \"companionCreatives\": [],\n  \"compatibility\": [],\n  \"convertFlashToHtml5\": false,\n  \"counterCustomEvents\": [\n    {\n      \"advertiserCustomEventId\": \"\",\n      \"advertiserCustomEventName\": \"\",\n      \"advertiserCustomEventType\": \"\",\n      \"artworkLabel\": \"\",\n      \"artworkType\": \"\",\n      \"exitClickThroughUrl\": {},\n      \"id\": \"\",\n      \"popupWindowProperties\": {\n        \"dimension\": {},\n        \"offset\": {\n          \"left\": 0,\n          \"top\": 0\n        },\n        \"positionType\": \"\",\n        \"showAddressBar\": false,\n        \"showMenuBar\": false,\n        \"showScrollBar\": false,\n        \"showStatusBar\": false,\n        \"showToolBar\": false,\n        \"title\": \"\"\n      },\n      \"targetType\": \"\",\n      \"videoReportingId\": \"\"\n    }\n  ],\n  \"creativeAssetSelection\": {\n    \"defaultAssetId\": \"\",\n    \"rules\": [\n      {\n        \"assetId\": \"\",\n        \"name\": \"\",\n        \"targetingTemplateId\": \"\"\n      }\n    ]\n  },\n  \"creativeAssets\": [\n    {\n      \"actionScript3\": false,\n      \"active\": false,\n      \"additionalSizes\": [\n        {}\n      ],\n      \"alignment\": \"\",\n      \"artworkType\": \"\",\n      \"assetIdentifier\": {\n        \"name\": \"\",\n        \"type\": \"\"\n      },\n      \"audioBitRate\": 0,\n      \"audioSampleRate\": 0,\n      \"backupImageExit\": {},\n      \"bitRate\": 0,\n      \"childAssetType\": \"\",\n      \"collapsedSize\": {},\n      \"companionCreativeIds\": [],\n      \"customStartTimeValue\": 0,\n      \"detectedFeatures\": [],\n      \"displayType\": \"\",\n      \"duration\": 0,\n      \"durationType\": \"\",\n      \"expandedDimension\": {},\n      \"fileSize\": \"\",\n      \"flashVersion\": 0,\n      \"frameRate\": \"\",\n      \"hideFlashObjects\": false,\n      \"hideSelectionBoxes\": false,\n      \"horizontallyLocked\": false,\n      \"id\": \"\",\n      \"idDimensionValue\": {\n        \"dimensionName\": \"\",\n        \"etag\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"matchType\": \"\",\n        \"value\": \"\"\n      },\n      \"mediaDuration\": \"\",\n      \"mimeType\": \"\",\n      \"offset\": {},\n      \"orientation\": \"\",\n      \"originalBackup\": false,\n      \"politeLoad\": false,\n      \"position\": {},\n      \"positionLeftUnit\": \"\",\n      \"positionTopUnit\": \"\",\n      \"progressiveServingUrl\": \"\",\n      \"pushdown\": false,\n      \"pushdownDuration\": \"\",\n      \"role\": \"\",\n      \"size\": {},\n      \"sslCompliant\": false,\n      \"startTimeType\": \"\",\n      \"streamingServingUrl\": \"\",\n      \"transparency\": false,\n      \"verticallyLocked\": false,\n      \"windowMode\": \"\",\n      \"zIndex\": 0,\n      \"zipFilename\": \"\",\n      \"zipFilesize\": \"\"\n    }\n  ],\n  \"creativeFieldAssignments\": [\n    {\n      \"creativeFieldId\": \"\",\n      \"creativeFieldValueId\": \"\"\n    }\n  ],\n  \"customKeyValues\": [],\n  \"dynamicAssetSelection\": false,\n  \"exitCustomEvents\": [\n    {}\n  ],\n  \"fsCommand\": {\n    \"left\": 0,\n    \"positionOption\": \"\",\n    \"top\": 0,\n    \"windowHeight\": 0,\n    \"windowWidth\": 0\n  },\n  \"htmlCode\": \"\",\n  \"htmlCodeLocked\": false,\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {\n    \"time\": \"\"\n  },\n  \"latestTraffickedCreativeId\": \"\",\n  \"mediaDescription\": \"\",\n  \"mediaDuration\": \"\",\n  \"name\": \"\",\n  \"obaIcon\": {\n    \"iconClickThroughUrl\": \"\",\n    \"iconClickTrackingUrl\": \"\",\n    \"iconViewTrackingUrl\": \"\",\n    \"program\": \"\",\n    \"resourceUrl\": \"\",\n    \"size\": {},\n    \"xPosition\": \"\",\n    \"yPosition\": \"\"\n  },\n  \"overrideCss\": \"\",\n  \"progressOffset\": {\n    \"offsetPercentage\": 0,\n    \"offsetSeconds\": 0\n  },\n  \"redirectUrl\": \"\",\n  \"renderingId\": \"\",\n  \"renderingIdDimensionValue\": {},\n  \"requiredFlashPluginVersion\": \"\",\n  \"requiredFlashVersion\": 0,\n  \"size\": {},\n  \"skipOffset\": {},\n  \"skippable\": false,\n  \"sslCompliant\": false,\n  \"sslOverride\": false,\n  \"studioAdvertiserId\": \"\",\n  \"studioCreativeId\": \"\",\n  \"studioTraffickedCreativeId\": \"\",\n  \"subaccountId\": \"\",\n  \"thirdPartyBackupImageImpressionsUrl\": \"\",\n  \"thirdPartyRichMediaImpressionsUrl\": \"\",\n  \"thirdPartyUrls\": [\n    {\n      \"thirdPartyUrlType\": \"\",\n      \"url\": \"\"\n    }\n  ],\n  \"timerCustomEvents\": [\n    {}\n  ],\n  \"totalFileSize\": \"\",\n  \"type\": \"\",\n  \"universalAdId\": {\n    \"registry\": \"\",\n    \"value\": \"\"\n  },\n  \"version\": 0\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}}/userprofiles/:profileId/creatives";

    let payload = json!({
        "accountId": "",
        "active": false,
        "adParameters": "",
        "adTagKeys": (),
        "additionalSizes": (
            json!({
                "height": 0,
                "iab": false,
                "id": "",
                "kind": "",
                "width": 0
            })
        ),
        "advertiserId": "",
        "allowScriptAccess": false,
        "archived": false,
        "artworkType": "",
        "authoringSource": "",
        "authoringTool": "",
        "autoAdvanceImages": false,
        "backgroundColor": "",
        "backupImageClickThroughUrl": json!({
            "computedClickThroughUrl": "",
            "customClickThroughUrl": "",
            "landingPageId": ""
        }),
        "backupImageFeatures": (),
        "backupImageReportingLabel": "",
        "backupImageTargetWindow": json!({
            "customHtml": "",
            "targetWindowOption": ""
        }),
        "clickTags": (
            json!({
                "clickThroughUrl": json!({}),
                "eventName": "",
                "name": ""
            })
        ),
        "commercialId": "",
        "companionCreatives": (),
        "compatibility": (),
        "convertFlashToHtml5": false,
        "counterCustomEvents": (
            json!({
                "advertiserCustomEventId": "",
                "advertiserCustomEventName": "",
                "advertiserCustomEventType": "",
                "artworkLabel": "",
                "artworkType": "",
                "exitClickThroughUrl": json!({}),
                "id": "",
                "popupWindowProperties": json!({
                    "dimension": json!({}),
                    "offset": json!({
                        "left": 0,
                        "top": 0
                    }),
                    "positionType": "",
                    "showAddressBar": false,
                    "showMenuBar": false,
                    "showScrollBar": false,
                    "showStatusBar": false,
                    "showToolBar": false,
                    "title": ""
                }),
                "targetType": "",
                "videoReportingId": ""
            })
        ),
        "creativeAssetSelection": json!({
            "defaultAssetId": "",
            "rules": (
                json!({
                    "assetId": "",
                    "name": "",
                    "targetingTemplateId": ""
                })
            )
        }),
        "creativeAssets": (
            json!({
                "actionScript3": false,
                "active": false,
                "additionalSizes": (json!({})),
                "alignment": "",
                "artworkType": "",
                "assetIdentifier": json!({
                    "name": "",
                    "type": ""
                }),
                "audioBitRate": 0,
                "audioSampleRate": 0,
                "backupImageExit": json!({}),
                "bitRate": 0,
                "childAssetType": "",
                "collapsedSize": json!({}),
                "companionCreativeIds": (),
                "customStartTimeValue": 0,
                "detectedFeatures": (),
                "displayType": "",
                "duration": 0,
                "durationType": "",
                "expandedDimension": json!({}),
                "fileSize": "",
                "flashVersion": 0,
                "frameRate": "",
                "hideFlashObjects": false,
                "hideSelectionBoxes": false,
                "horizontallyLocked": false,
                "id": "",
                "idDimensionValue": json!({
                    "dimensionName": "",
                    "etag": "",
                    "id": "",
                    "kind": "",
                    "matchType": "",
                    "value": ""
                }),
                "mediaDuration": "",
                "mimeType": "",
                "offset": json!({}),
                "orientation": "",
                "originalBackup": false,
                "politeLoad": false,
                "position": json!({}),
                "positionLeftUnit": "",
                "positionTopUnit": "",
                "progressiveServingUrl": "",
                "pushdown": false,
                "pushdownDuration": "",
                "role": "",
                "size": json!({}),
                "sslCompliant": false,
                "startTimeType": "",
                "streamingServingUrl": "",
                "transparency": false,
                "verticallyLocked": false,
                "windowMode": "",
                "zIndex": 0,
                "zipFilename": "",
                "zipFilesize": ""
            })
        ),
        "creativeFieldAssignments": (
            json!({
                "creativeFieldId": "",
                "creativeFieldValueId": ""
            })
        ),
        "customKeyValues": (),
        "dynamicAssetSelection": false,
        "exitCustomEvents": (json!({})),
        "fsCommand": json!({
            "left": 0,
            "positionOption": "",
            "top": 0,
            "windowHeight": 0,
            "windowWidth": 0
        }),
        "htmlCode": "",
        "htmlCodeLocked": false,
        "id": "",
        "idDimensionValue": json!({}),
        "kind": "",
        "lastModifiedInfo": json!({"time": ""}),
        "latestTraffickedCreativeId": "",
        "mediaDescription": "",
        "mediaDuration": "",
        "name": "",
        "obaIcon": json!({
            "iconClickThroughUrl": "",
            "iconClickTrackingUrl": "",
            "iconViewTrackingUrl": "",
            "program": "",
            "resourceUrl": "",
            "size": json!({}),
            "xPosition": "",
            "yPosition": ""
        }),
        "overrideCss": "",
        "progressOffset": json!({
            "offsetPercentage": 0,
            "offsetSeconds": 0
        }),
        "redirectUrl": "",
        "renderingId": "",
        "renderingIdDimensionValue": json!({}),
        "requiredFlashPluginVersion": "",
        "requiredFlashVersion": 0,
        "size": json!({}),
        "skipOffset": json!({}),
        "skippable": false,
        "sslCompliant": false,
        "sslOverride": false,
        "studioAdvertiserId": "",
        "studioCreativeId": "",
        "studioTraffickedCreativeId": "",
        "subaccountId": "",
        "thirdPartyBackupImageImpressionsUrl": "",
        "thirdPartyRichMediaImpressionsUrl": "",
        "thirdPartyUrls": (
            json!({
                "thirdPartyUrlType": "",
                "url": ""
            })
        ),
        "timerCustomEvents": (json!({})),
        "totalFileSize": "",
        "type": "",
        "universalAdId": json!({
            "registry": "",
            "value": ""
        }),
        "version": 0
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/userprofiles/:profileId/creatives \
  --header 'content-type: application/json' \
  --data '{
  "accountId": "",
  "active": false,
  "adParameters": "",
  "adTagKeys": [],
  "additionalSizes": [
    {
      "height": 0,
      "iab": false,
      "id": "",
      "kind": "",
      "width": 0
    }
  ],
  "advertiserId": "",
  "allowScriptAccess": false,
  "archived": false,
  "artworkType": "",
  "authoringSource": "",
  "authoringTool": "",
  "autoAdvanceImages": false,
  "backgroundColor": "",
  "backupImageClickThroughUrl": {
    "computedClickThroughUrl": "",
    "customClickThroughUrl": "",
    "landingPageId": ""
  },
  "backupImageFeatures": [],
  "backupImageReportingLabel": "",
  "backupImageTargetWindow": {
    "customHtml": "",
    "targetWindowOption": ""
  },
  "clickTags": [
    {
      "clickThroughUrl": {},
      "eventName": "",
      "name": ""
    }
  ],
  "commercialId": "",
  "companionCreatives": [],
  "compatibility": [],
  "convertFlashToHtml5": false,
  "counterCustomEvents": [
    {
      "advertiserCustomEventId": "",
      "advertiserCustomEventName": "",
      "advertiserCustomEventType": "",
      "artworkLabel": "",
      "artworkType": "",
      "exitClickThroughUrl": {},
      "id": "",
      "popupWindowProperties": {
        "dimension": {},
        "offset": {
          "left": 0,
          "top": 0
        },
        "positionType": "",
        "showAddressBar": false,
        "showMenuBar": false,
        "showScrollBar": false,
        "showStatusBar": false,
        "showToolBar": false,
        "title": ""
      },
      "targetType": "",
      "videoReportingId": ""
    }
  ],
  "creativeAssetSelection": {
    "defaultAssetId": "",
    "rules": [
      {
        "assetId": "",
        "name": "",
        "targetingTemplateId": ""
      }
    ]
  },
  "creativeAssets": [
    {
      "actionScript3": false,
      "active": false,
      "additionalSizes": [
        {}
      ],
      "alignment": "",
      "artworkType": "",
      "assetIdentifier": {
        "name": "",
        "type": ""
      },
      "audioBitRate": 0,
      "audioSampleRate": 0,
      "backupImageExit": {},
      "bitRate": 0,
      "childAssetType": "",
      "collapsedSize": {},
      "companionCreativeIds": [],
      "customStartTimeValue": 0,
      "detectedFeatures": [],
      "displayType": "",
      "duration": 0,
      "durationType": "",
      "expandedDimension": {},
      "fileSize": "",
      "flashVersion": 0,
      "frameRate": "",
      "hideFlashObjects": false,
      "hideSelectionBoxes": false,
      "horizontallyLocked": false,
      "id": "",
      "idDimensionValue": {
        "dimensionName": "",
        "etag": "",
        "id": "",
        "kind": "",
        "matchType": "",
        "value": ""
      },
      "mediaDuration": "",
      "mimeType": "",
      "offset": {},
      "orientation": "",
      "originalBackup": false,
      "politeLoad": false,
      "position": {},
      "positionLeftUnit": "",
      "positionTopUnit": "",
      "progressiveServingUrl": "",
      "pushdown": false,
      "pushdownDuration": "",
      "role": "",
      "size": {},
      "sslCompliant": false,
      "startTimeType": "",
      "streamingServingUrl": "",
      "transparency": false,
      "verticallyLocked": false,
      "windowMode": "",
      "zIndex": 0,
      "zipFilename": "",
      "zipFilesize": ""
    }
  ],
  "creativeFieldAssignments": [
    {
      "creativeFieldId": "",
      "creativeFieldValueId": ""
    }
  ],
  "customKeyValues": [],
  "dynamicAssetSelection": false,
  "exitCustomEvents": [
    {}
  ],
  "fsCommand": {
    "left": 0,
    "positionOption": "",
    "top": 0,
    "windowHeight": 0,
    "windowWidth": 0
  },
  "htmlCode": "",
  "htmlCodeLocked": false,
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "lastModifiedInfo": {
    "time": ""
  },
  "latestTraffickedCreativeId": "",
  "mediaDescription": "",
  "mediaDuration": "",
  "name": "",
  "obaIcon": {
    "iconClickThroughUrl": "",
    "iconClickTrackingUrl": "",
    "iconViewTrackingUrl": "",
    "program": "",
    "resourceUrl": "",
    "size": {},
    "xPosition": "",
    "yPosition": ""
  },
  "overrideCss": "",
  "progressOffset": {
    "offsetPercentage": 0,
    "offsetSeconds": 0
  },
  "redirectUrl": "",
  "renderingId": "",
  "renderingIdDimensionValue": {},
  "requiredFlashPluginVersion": "",
  "requiredFlashVersion": 0,
  "size": {},
  "skipOffset": {},
  "skippable": false,
  "sslCompliant": false,
  "sslOverride": false,
  "studioAdvertiserId": "",
  "studioCreativeId": "",
  "studioTraffickedCreativeId": "",
  "subaccountId": "",
  "thirdPartyBackupImageImpressionsUrl": "",
  "thirdPartyRichMediaImpressionsUrl": "",
  "thirdPartyUrls": [
    {
      "thirdPartyUrlType": "",
      "url": ""
    }
  ],
  "timerCustomEvents": [
    {}
  ],
  "totalFileSize": "",
  "type": "",
  "universalAdId": {
    "registry": "",
    "value": ""
  },
  "version": 0
}'
echo '{
  "accountId": "",
  "active": false,
  "adParameters": "",
  "adTagKeys": [],
  "additionalSizes": [
    {
      "height": 0,
      "iab": false,
      "id": "",
      "kind": "",
      "width": 0
    }
  ],
  "advertiserId": "",
  "allowScriptAccess": false,
  "archived": false,
  "artworkType": "",
  "authoringSource": "",
  "authoringTool": "",
  "autoAdvanceImages": false,
  "backgroundColor": "",
  "backupImageClickThroughUrl": {
    "computedClickThroughUrl": "",
    "customClickThroughUrl": "",
    "landingPageId": ""
  },
  "backupImageFeatures": [],
  "backupImageReportingLabel": "",
  "backupImageTargetWindow": {
    "customHtml": "",
    "targetWindowOption": ""
  },
  "clickTags": [
    {
      "clickThroughUrl": {},
      "eventName": "",
      "name": ""
    }
  ],
  "commercialId": "",
  "companionCreatives": [],
  "compatibility": [],
  "convertFlashToHtml5": false,
  "counterCustomEvents": [
    {
      "advertiserCustomEventId": "",
      "advertiserCustomEventName": "",
      "advertiserCustomEventType": "",
      "artworkLabel": "",
      "artworkType": "",
      "exitClickThroughUrl": {},
      "id": "",
      "popupWindowProperties": {
        "dimension": {},
        "offset": {
          "left": 0,
          "top": 0
        },
        "positionType": "",
        "showAddressBar": false,
        "showMenuBar": false,
        "showScrollBar": false,
        "showStatusBar": false,
        "showToolBar": false,
        "title": ""
      },
      "targetType": "",
      "videoReportingId": ""
    }
  ],
  "creativeAssetSelection": {
    "defaultAssetId": "",
    "rules": [
      {
        "assetId": "",
        "name": "",
        "targetingTemplateId": ""
      }
    ]
  },
  "creativeAssets": [
    {
      "actionScript3": false,
      "active": false,
      "additionalSizes": [
        {}
      ],
      "alignment": "",
      "artworkType": "",
      "assetIdentifier": {
        "name": "",
        "type": ""
      },
      "audioBitRate": 0,
      "audioSampleRate": 0,
      "backupImageExit": {},
      "bitRate": 0,
      "childAssetType": "",
      "collapsedSize": {},
      "companionCreativeIds": [],
      "customStartTimeValue": 0,
      "detectedFeatures": [],
      "displayType": "",
      "duration": 0,
      "durationType": "",
      "expandedDimension": {},
      "fileSize": "",
      "flashVersion": 0,
      "frameRate": "",
      "hideFlashObjects": false,
      "hideSelectionBoxes": false,
      "horizontallyLocked": false,
      "id": "",
      "idDimensionValue": {
        "dimensionName": "",
        "etag": "",
        "id": "",
        "kind": "",
        "matchType": "",
        "value": ""
      },
      "mediaDuration": "",
      "mimeType": "",
      "offset": {},
      "orientation": "",
      "originalBackup": false,
      "politeLoad": false,
      "position": {},
      "positionLeftUnit": "",
      "positionTopUnit": "",
      "progressiveServingUrl": "",
      "pushdown": false,
      "pushdownDuration": "",
      "role": "",
      "size": {},
      "sslCompliant": false,
      "startTimeType": "",
      "streamingServingUrl": "",
      "transparency": false,
      "verticallyLocked": false,
      "windowMode": "",
      "zIndex": 0,
      "zipFilename": "",
      "zipFilesize": ""
    }
  ],
  "creativeFieldAssignments": [
    {
      "creativeFieldId": "",
      "creativeFieldValueId": ""
    }
  ],
  "customKeyValues": [],
  "dynamicAssetSelection": false,
  "exitCustomEvents": [
    {}
  ],
  "fsCommand": {
    "left": 0,
    "positionOption": "",
    "top": 0,
    "windowHeight": 0,
    "windowWidth": 0
  },
  "htmlCode": "",
  "htmlCodeLocked": false,
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "lastModifiedInfo": {
    "time": ""
  },
  "latestTraffickedCreativeId": "",
  "mediaDescription": "",
  "mediaDuration": "",
  "name": "",
  "obaIcon": {
    "iconClickThroughUrl": "",
    "iconClickTrackingUrl": "",
    "iconViewTrackingUrl": "",
    "program": "",
    "resourceUrl": "",
    "size": {},
    "xPosition": "",
    "yPosition": ""
  },
  "overrideCss": "",
  "progressOffset": {
    "offsetPercentage": 0,
    "offsetSeconds": 0
  },
  "redirectUrl": "",
  "renderingId": "",
  "renderingIdDimensionValue": {},
  "requiredFlashPluginVersion": "",
  "requiredFlashVersion": 0,
  "size": {},
  "skipOffset": {},
  "skippable": false,
  "sslCompliant": false,
  "sslOverride": false,
  "studioAdvertiserId": "",
  "studioCreativeId": "",
  "studioTraffickedCreativeId": "",
  "subaccountId": "",
  "thirdPartyBackupImageImpressionsUrl": "",
  "thirdPartyRichMediaImpressionsUrl": "",
  "thirdPartyUrls": [
    {
      "thirdPartyUrlType": "",
      "url": ""
    }
  ],
  "timerCustomEvents": [
    {}
  ],
  "totalFileSize": "",
  "type": "",
  "universalAdId": {
    "registry": "",
    "value": ""
  },
  "version": 0
}' |  \
  http PUT {{baseUrl}}/userprofiles/:profileId/creatives \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "accountId": "",\n  "active": false,\n  "adParameters": "",\n  "adTagKeys": [],\n  "additionalSizes": [\n    {\n      "height": 0,\n      "iab": false,\n      "id": "",\n      "kind": "",\n      "width": 0\n    }\n  ],\n  "advertiserId": "",\n  "allowScriptAccess": false,\n  "archived": false,\n  "artworkType": "",\n  "authoringSource": "",\n  "authoringTool": "",\n  "autoAdvanceImages": false,\n  "backgroundColor": "",\n  "backupImageClickThroughUrl": {\n    "computedClickThroughUrl": "",\n    "customClickThroughUrl": "",\n    "landingPageId": ""\n  },\n  "backupImageFeatures": [],\n  "backupImageReportingLabel": "",\n  "backupImageTargetWindow": {\n    "customHtml": "",\n    "targetWindowOption": ""\n  },\n  "clickTags": [\n    {\n      "clickThroughUrl": {},\n      "eventName": "",\n      "name": ""\n    }\n  ],\n  "commercialId": "",\n  "companionCreatives": [],\n  "compatibility": [],\n  "convertFlashToHtml5": false,\n  "counterCustomEvents": [\n    {\n      "advertiserCustomEventId": "",\n      "advertiserCustomEventName": "",\n      "advertiserCustomEventType": "",\n      "artworkLabel": "",\n      "artworkType": "",\n      "exitClickThroughUrl": {},\n      "id": "",\n      "popupWindowProperties": {\n        "dimension": {},\n        "offset": {\n          "left": 0,\n          "top": 0\n        },\n        "positionType": "",\n        "showAddressBar": false,\n        "showMenuBar": false,\n        "showScrollBar": false,\n        "showStatusBar": false,\n        "showToolBar": false,\n        "title": ""\n      },\n      "targetType": "",\n      "videoReportingId": ""\n    }\n  ],\n  "creativeAssetSelection": {\n    "defaultAssetId": "",\n    "rules": [\n      {\n        "assetId": "",\n        "name": "",\n        "targetingTemplateId": ""\n      }\n    ]\n  },\n  "creativeAssets": [\n    {\n      "actionScript3": false,\n      "active": false,\n      "additionalSizes": [\n        {}\n      ],\n      "alignment": "",\n      "artworkType": "",\n      "assetIdentifier": {\n        "name": "",\n        "type": ""\n      },\n      "audioBitRate": 0,\n      "audioSampleRate": 0,\n      "backupImageExit": {},\n      "bitRate": 0,\n      "childAssetType": "",\n      "collapsedSize": {},\n      "companionCreativeIds": [],\n      "customStartTimeValue": 0,\n      "detectedFeatures": [],\n      "displayType": "",\n      "duration": 0,\n      "durationType": "",\n      "expandedDimension": {},\n      "fileSize": "",\n      "flashVersion": 0,\n      "frameRate": "",\n      "hideFlashObjects": false,\n      "hideSelectionBoxes": false,\n      "horizontallyLocked": false,\n      "id": "",\n      "idDimensionValue": {\n        "dimensionName": "",\n        "etag": "",\n        "id": "",\n        "kind": "",\n        "matchType": "",\n        "value": ""\n      },\n      "mediaDuration": "",\n      "mimeType": "",\n      "offset": {},\n      "orientation": "",\n      "originalBackup": false,\n      "politeLoad": false,\n      "position": {},\n      "positionLeftUnit": "",\n      "positionTopUnit": "",\n      "progressiveServingUrl": "",\n      "pushdown": false,\n      "pushdownDuration": "",\n      "role": "",\n      "size": {},\n      "sslCompliant": false,\n      "startTimeType": "",\n      "streamingServingUrl": "",\n      "transparency": false,\n      "verticallyLocked": false,\n      "windowMode": "",\n      "zIndex": 0,\n      "zipFilename": "",\n      "zipFilesize": ""\n    }\n  ],\n  "creativeFieldAssignments": [\n    {\n      "creativeFieldId": "",\n      "creativeFieldValueId": ""\n    }\n  ],\n  "customKeyValues": [],\n  "dynamicAssetSelection": false,\n  "exitCustomEvents": [\n    {}\n  ],\n  "fsCommand": {\n    "left": 0,\n    "positionOption": "",\n    "top": 0,\n    "windowHeight": 0,\n    "windowWidth": 0\n  },\n  "htmlCode": "",\n  "htmlCodeLocked": false,\n  "id": "",\n  "idDimensionValue": {},\n  "kind": "",\n  "lastModifiedInfo": {\n    "time": ""\n  },\n  "latestTraffickedCreativeId": "",\n  "mediaDescription": "",\n  "mediaDuration": "",\n  "name": "",\n  "obaIcon": {\n    "iconClickThroughUrl": "",\n    "iconClickTrackingUrl": "",\n    "iconViewTrackingUrl": "",\n    "program": "",\n    "resourceUrl": "",\n    "size": {},\n    "xPosition": "",\n    "yPosition": ""\n  },\n  "overrideCss": "",\n  "progressOffset": {\n    "offsetPercentage": 0,\n    "offsetSeconds": 0\n  },\n  "redirectUrl": "",\n  "renderingId": "",\n  "renderingIdDimensionValue": {},\n  "requiredFlashPluginVersion": "",\n  "requiredFlashVersion": 0,\n  "size": {},\n  "skipOffset": {},\n  "skippable": false,\n  "sslCompliant": false,\n  "sslOverride": false,\n  "studioAdvertiserId": "",\n  "studioCreativeId": "",\n  "studioTraffickedCreativeId": "",\n  "subaccountId": "",\n  "thirdPartyBackupImageImpressionsUrl": "",\n  "thirdPartyRichMediaImpressionsUrl": "",\n  "thirdPartyUrls": [\n    {\n      "thirdPartyUrlType": "",\n      "url": ""\n    }\n  ],\n  "timerCustomEvents": [\n    {}\n  ],\n  "totalFileSize": "",\n  "type": "",\n  "universalAdId": {\n    "registry": "",\n    "value": ""\n  },\n  "version": 0\n}' \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/creatives
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "accountId": "",
  "active": false,
  "adParameters": "",
  "adTagKeys": [],
  "additionalSizes": [
    [
      "height": 0,
      "iab": false,
      "id": "",
      "kind": "",
      "width": 0
    ]
  ],
  "advertiserId": "",
  "allowScriptAccess": false,
  "archived": false,
  "artworkType": "",
  "authoringSource": "",
  "authoringTool": "",
  "autoAdvanceImages": false,
  "backgroundColor": "",
  "backupImageClickThroughUrl": [
    "computedClickThroughUrl": "",
    "customClickThroughUrl": "",
    "landingPageId": ""
  ],
  "backupImageFeatures": [],
  "backupImageReportingLabel": "",
  "backupImageTargetWindow": [
    "customHtml": "",
    "targetWindowOption": ""
  ],
  "clickTags": [
    [
      "clickThroughUrl": [],
      "eventName": "",
      "name": ""
    ]
  ],
  "commercialId": "",
  "companionCreatives": [],
  "compatibility": [],
  "convertFlashToHtml5": false,
  "counterCustomEvents": [
    [
      "advertiserCustomEventId": "",
      "advertiserCustomEventName": "",
      "advertiserCustomEventType": "",
      "artworkLabel": "",
      "artworkType": "",
      "exitClickThroughUrl": [],
      "id": "",
      "popupWindowProperties": [
        "dimension": [],
        "offset": [
          "left": 0,
          "top": 0
        ],
        "positionType": "",
        "showAddressBar": false,
        "showMenuBar": false,
        "showScrollBar": false,
        "showStatusBar": false,
        "showToolBar": false,
        "title": ""
      ],
      "targetType": "",
      "videoReportingId": ""
    ]
  ],
  "creativeAssetSelection": [
    "defaultAssetId": "",
    "rules": [
      [
        "assetId": "",
        "name": "",
        "targetingTemplateId": ""
      ]
    ]
  ],
  "creativeAssets": [
    [
      "actionScript3": false,
      "active": false,
      "additionalSizes": [[]],
      "alignment": "",
      "artworkType": "",
      "assetIdentifier": [
        "name": "",
        "type": ""
      ],
      "audioBitRate": 0,
      "audioSampleRate": 0,
      "backupImageExit": [],
      "bitRate": 0,
      "childAssetType": "",
      "collapsedSize": [],
      "companionCreativeIds": [],
      "customStartTimeValue": 0,
      "detectedFeatures": [],
      "displayType": "",
      "duration": 0,
      "durationType": "",
      "expandedDimension": [],
      "fileSize": "",
      "flashVersion": 0,
      "frameRate": "",
      "hideFlashObjects": false,
      "hideSelectionBoxes": false,
      "horizontallyLocked": false,
      "id": "",
      "idDimensionValue": [
        "dimensionName": "",
        "etag": "",
        "id": "",
        "kind": "",
        "matchType": "",
        "value": ""
      ],
      "mediaDuration": "",
      "mimeType": "",
      "offset": [],
      "orientation": "",
      "originalBackup": false,
      "politeLoad": false,
      "position": [],
      "positionLeftUnit": "",
      "positionTopUnit": "",
      "progressiveServingUrl": "",
      "pushdown": false,
      "pushdownDuration": "",
      "role": "",
      "size": [],
      "sslCompliant": false,
      "startTimeType": "",
      "streamingServingUrl": "",
      "transparency": false,
      "verticallyLocked": false,
      "windowMode": "",
      "zIndex": 0,
      "zipFilename": "",
      "zipFilesize": ""
    ]
  ],
  "creativeFieldAssignments": [
    [
      "creativeFieldId": "",
      "creativeFieldValueId": ""
    ]
  ],
  "customKeyValues": [],
  "dynamicAssetSelection": false,
  "exitCustomEvents": [[]],
  "fsCommand": [
    "left": 0,
    "positionOption": "",
    "top": 0,
    "windowHeight": 0,
    "windowWidth": 0
  ],
  "htmlCode": "",
  "htmlCodeLocked": false,
  "id": "",
  "idDimensionValue": [],
  "kind": "",
  "lastModifiedInfo": ["time": ""],
  "latestTraffickedCreativeId": "",
  "mediaDescription": "",
  "mediaDuration": "",
  "name": "",
  "obaIcon": [
    "iconClickThroughUrl": "",
    "iconClickTrackingUrl": "",
    "iconViewTrackingUrl": "",
    "program": "",
    "resourceUrl": "",
    "size": [],
    "xPosition": "",
    "yPosition": ""
  ],
  "overrideCss": "",
  "progressOffset": [
    "offsetPercentage": 0,
    "offsetSeconds": 0
  ],
  "redirectUrl": "",
  "renderingId": "",
  "renderingIdDimensionValue": [],
  "requiredFlashPluginVersion": "",
  "requiredFlashVersion": 0,
  "size": [],
  "skipOffset": [],
  "skippable": false,
  "sslCompliant": false,
  "sslOverride": false,
  "studioAdvertiserId": "",
  "studioCreativeId": "",
  "studioTraffickedCreativeId": "",
  "subaccountId": "",
  "thirdPartyBackupImageImpressionsUrl": "",
  "thirdPartyRichMediaImpressionsUrl": "",
  "thirdPartyUrls": [
    [
      "thirdPartyUrlType": "",
      "url": ""
    ]
  ],
  "timerCustomEvents": [[]],
  "totalFileSize": "",
  "type": "",
  "universalAdId": [
    "registry": "",
    "value": ""
  ],
  "version": 0
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/creatives")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST dfareporting.customEvents.batchinsert
{{baseUrl}}/userprofiles/:profileId/customEvents/batchinsert
QUERY PARAMS

profileId
BODY json

{
  "customEvents": [
    {
      "annotateClickEvent": {
        "gclid": "",
        "kind": ""
      },
      "annotateImpressionEvent": {
        "kind": "",
        "pathImpressionId": ""
      },
      "customVariables": [
        {
          "index": "",
          "kind": "",
          "value": ""
        }
      ],
      "eventType": "",
      "floodlightConfigurationId": "",
      "insertEvent": {
        "cmDimensions": {
          "adId": "",
          "campaignId": "",
          "creativeId": "",
          "kind": "",
          "placementId": "",
          "siteId": ""
        },
        "dv3Dimensions": {
          "dvCampaignId": "",
          "dvCreativeId": "",
          "dvInsertionOrderId": "",
          "dvLineItemId": "",
          "dvSiteId": "",
          "kind": ""
        },
        "insertEventType": "",
        "kind": "",
        "matchId": "",
        "mobileDeviceId": ""
      },
      "kind": "",
      "ordinal": "",
      "timestampMicros": ""
    }
  ],
  "kind": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/customEvents/batchinsert");

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  \"customEvents\": [\n    {\n      \"annotateClickEvent\": {\n        \"gclid\": \"\",\n        \"kind\": \"\"\n      },\n      \"annotateImpressionEvent\": {\n        \"kind\": \"\",\n        \"pathImpressionId\": \"\"\n      },\n      \"customVariables\": [\n        {\n          \"index\": \"\",\n          \"kind\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"eventType\": \"\",\n      \"floodlightConfigurationId\": \"\",\n      \"insertEvent\": {\n        \"cmDimensions\": {\n          \"adId\": \"\",\n          \"campaignId\": \"\",\n          \"creativeId\": \"\",\n          \"kind\": \"\",\n          \"placementId\": \"\",\n          \"siteId\": \"\"\n        },\n        \"dv3Dimensions\": {\n          \"dvCampaignId\": \"\",\n          \"dvCreativeId\": \"\",\n          \"dvInsertionOrderId\": \"\",\n          \"dvLineItemId\": \"\",\n          \"dvSiteId\": \"\",\n          \"kind\": \"\"\n        },\n        \"insertEventType\": \"\",\n        \"kind\": \"\",\n        \"matchId\": \"\",\n        \"mobileDeviceId\": \"\"\n      },\n      \"kind\": \"\",\n      \"ordinal\": \"\",\n      \"timestampMicros\": \"\"\n    }\n  ],\n  \"kind\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/userprofiles/:profileId/customEvents/batchinsert" {:content-type :json
                                                                                             :form-params {:customEvents [{:annotateClickEvent {:gclid ""
                                                                                                                                                :kind ""}
                                                                                                                           :annotateImpressionEvent {:kind ""
                                                                                                                                                     :pathImpressionId ""}
                                                                                                                           :customVariables [{:index ""
                                                                                                                                              :kind ""
                                                                                                                                              :value ""}]
                                                                                                                           :eventType ""
                                                                                                                           :floodlightConfigurationId ""
                                                                                                                           :insertEvent {:cmDimensions {:adId ""
                                                                                                                                                        :campaignId ""
                                                                                                                                                        :creativeId ""
                                                                                                                                                        :kind ""
                                                                                                                                                        :placementId ""
                                                                                                                                                        :siteId ""}
                                                                                                                                         :dv3Dimensions {:dvCampaignId ""
                                                                                                                                                         :dvCreativeId ""
                                                                                                                                                         :dvInsertionOrderId ""
                                                                                                                                                         :dvLineItemId ""
                                                                                                                                                         :dvSiteId ""
                                                                                                                                                         :kind ""}
                                                                                                                                         :insertEventType ""
                                                                                                                                         :kind ""
                                                                                                                                         :matchId ""
                                                                                                                                         :mobileDeviceId ""}
                                                                                                                           :kind ""
                                                                                                                           :ordinal ""
                                                                                                                           :timestampMicros ""}]
                                                                                                           :kind ""}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/customEvents/batchinsert"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"customEvents\": [\n    {\n      \"annotateClickEvent\": {\n        \"gclid\": \"\",\n        \"kind\": \"\"\n      },\n      \"annotateImpressionEvent\": {\n        \"kind\": \"\",\n        \"pathImpressionId\": \"\"\n      },\n      \"customVariables\": [\n        {\n          \"index\": \"\",\n          \"kind\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"eventType\": \"\",\n      \"floodlightConfigurationId\": \"\",\n      \"insertEvent\": {\n        \"cmDimensions\": {\n          \"adId\": \"\",\n          \"campaignId\": \"\",\n          \"creativeId\": \"\",\n          \"kind\": \"\",\n          \"placementId\": \"\",\n          \"siteId\": \"\"\n        },\n        \"dv3Dimensions\": {\n          \"dvCampaignId\": \"\",\n          \"dvCreativeId\": \"\",\n          \"dvInsertionOrderId\": \"\",\n          \"dvLineItemId\": \"\",\n          \"dvSiteId\": \"\",\n          \"kind\": \"\"\n        },\n        \"insertEventType\": \"\",\n        \"kind\": \"\",\n        \"matchId\": \"\",\n        \"mobileDeviceId\": \"\"\n      },\n      \"kind\": \"\",\n      \"ordinal\": \"\",\n      \"timestampMicros\": \"\"\n    }\n  ],\n  \"kind\": \"\"\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}}/userprofiles/:profileId/customEvents/batchinsert"),
    Content = new StringContent("{\n  \"customEvents\": [\n    {\n      \"annotateClickEvent\": {\n        \"gclid\": \"\",\n        \"kind\": \"\"\n      },\n      \"annotateImpressionEvent\": {\n        \"kind\": \"\",\n        \"pathImpressionId\": \"\"\n      },\n      \"customVariables\": [\n        {\n          \"index\": \"\",\n          \"kind\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"eventType\": \"\",\n      \"floodlightConfigurationId\": \"\",\n      \"insertEvent\": {\n        \"cmDimensions\": {\n          \"adId\": \"\",\n          \"campaignId\": \"\",\n          \"creativeId\": \"\",\n          \"kind\": \"\",\n          \"placementId\": \"\",\n          \"siteId\": \"\"\n        },\n        \"dv3Dimensions\": {\n          \"dvCampaignId\": \"\",\n          \"dvCreativeId\": \"\",\n          \"dvInsertionOrderId\": \"\",\n          \"dvLineItemId\": \"\",\n          \"dvSiteId\": \"\",\n          \"kind\": \"\"\n        },\n        \"insertEventType\": \"\",\n        \"kind\": \"\",\n        \"matchId\": \"\",\n        \"mobileDeviceId\": \"\"\n      },\n      \"kind\": \"\",\n      \"ordinal\": \"\",\n      \"timestampMicros\": \"\"\n    }\n  ],\n  \"kind\": \"\"\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}}/userprofiles/:profileId/customEvents/batchinsert");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"customEvents\": [\n    {\n      \"annotateClickEvent\": {\n        \"gclid\": \"\",\n        \"kind\": \"\"\n      },\n      \"annotateImpressionEvent\": {\n        \"kind\": \"\",\n        \"pathImpressionId\": \"\"\n      },\n      \"customVariables\": [\n        {\n          \"index\": \"\",\n          \"kind\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"eventType\": \"\",\n      \"floodlightConfigurationId\": \"\",\n      \"insertEvent\": {\n        \"cmDimensions\": {\n          \"adId\": \"\",\n          \"campaignId\": \"\",\n          \"creativeId\": \"\",\n          \"kind\": \"\",\n          \"placementId\": \"\",\n          \"siteId\": \"\"\n        },\n        \"dv3Dimensions\": {\n          \"dvCampaignId\": \"\",\n          \"dvCreativeId\": \"\",\n          \"dvInsertionOrderId\": \"\",\n          \"dvLineItemId\": \"\",\n          \"dvSiteId\": \"\",\n          \"kind\": \"\"\n        },\n        \"insertEventType\": \"\",\n        \"kind\": \"\",\n        \"matchId\": \"\",\n        \"mobileDeviceId\": \"\"\n      },\n      \"kind\": \"\",\n      \"ordinal\": \"\",\n      \"timestampMicros\": \"\"\n    }\n  ],\n  \"kind\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/customEvents/batchinsert"

	payload := strings.NewReader("{\n  \"customEvents\": [\n    {\n      \"annotateClickEvent\": {\n        \"gclid\": \"\",\n        \"kind\": \"\"\n      },\n      \"annotateImpressionEvent\": {\n        \"kind\": \"\",\n        \"pathImpressionId\": \"\"\n      },\n      \"customVariables\": [\n        {\n          \"index\": \"\",\n          \"kind\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"eventType\": \"\",\n      \"floodlightConfigurationId\": \"\",\n      \"insertEvent\": {\n        \"cmDimensions\": {\n          \"adId\": \"\",\n          \"campaignId\": \"\",\n          \"creativeId\": \"\",\n          \"kind\": \"\",\n          \"placementId\": \"\",\n          \"siteId\": \"\"\n        },\n        \"dv3Dimensions\": {\n          \"dvCampaignId\": \"\",\n          \"dvCreativeId\": \"\",\n          \"dvInsertionOrderId\": \"\",\n          \"dvLineItemId\": \"\",\n          \"dvSiteId\": \"\",\n          \"kind\": \"\"\n        },\n        \"insertEventType\": \"\",\n        \"kind\": \"\",\n        \"matchId\": \"\",\n        \"mobileDeviceId\": \"\"\n      },\n      \"kind\": \"\",\n      \"ordinal\": \"\",\n      \"timestampMicros\": \"\"\n    }\n  ],\n  \"kind\": \"\"\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/userprofiles/:profileId/customEvents/batchinsert HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 1014

{
  "customEvents": [
    {
      "annotateClickEvent": {
        "gclid": "",
        "kind": ""
      },
      "annotateImpressionEvent": {
        "kind": "",
        "pathImpressionId": ""
      },
      "customVariables": [
        {
          "index": "",
          "kind": "",
          "value": ""
        }
      ],
      "eventType": "",
      "floodlightConfigurationId": "",
      "insertEvent": {
        "cmDimensions": {
          "adId": "",
          "campaignId": "",
          "creativeId": "",
          "kind": "",
          "placementId": "",
          "siteId": ""
        },
        "dv3Dimensions": {
          "dvCampaignId": "",
          "dvCreativeId": "",
          "dvInsertionOrderId": "",
          "dvLineItemId": "",
          "dvSiteId": "",
          "kind": ""
        },
        "insertEventType": "",
        "kind": "",
        "matchId": "",
        "mobileDeviceId": ""
      },
      "kind": "",
      "ordinal": "",
      "timestampMicros": ""
    }
  ],
  "kind": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/userprofiles/:profileId/customEvents/batchinsert")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"customEvents\": [\n    {\n      \"annotateClickEvent\": {\n        \"gclid\": \"\",\n        \"kind\": \"\"\n      },\n      \"annotateImpressionEvent\": {\n        \"kind\": \"\",\n        \"pathImpressionId\": \"\"\n      },\n      \"customVariables\": [\n        {\n          \"index\": \"\",\n          \"kind\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"eventType\": \"\",\n      \"floodlightConfigurationId\": \"\",\n      \"insertEvent\": {\n        \"cmDimensions\": {\n          \"adId\": \"\",\n          \"campaignId\": \"\",\n          \"creativeId\": \"\",\n          \"kind\": \"\",\n          \"placementId\": \"\",\n          \"siteId\": \"\"\n        },\n        \"dv3Dimensions\": {\n          \"dvCampaignId\": \"\",\n          \"dvCreativeId\": \"\",\n          \"dvInsertionOrderId\": \"\",\n          \"dvLineItemId\": \"\",\n          \"dvSiteId\": \"\",\n          \"kind\": \"\"\n        },\n        \"insertEventType\": \"\",\n        \"kind\": \"\",\n        \"matchId\": \"\",\n        \"mobileDeviceId\": \"\"\n      },\n      \"kind\": \"\",\n      \"ordinal\": \"\",\n      \"timestampMicros\": \"\"\n    }\n  ],\n  \"kind\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/customEvents/batchinsert"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"customEvents\": [\n    {\n      \"annotateClickEvent\": {\n        \"gclid\": \"\",\n        \"kind\": \"\"\n      },\n      \"annotateImpressionEvent\": {\n        \"kind\": \"\",\n        \"pathImpressionId\": \"\"\n      },\n      \"customVariables\": [\n        {\n          \"index\": \"\",\n          \"kind\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"eventType\": \"\",\n      \"floodlightConfigurationId\": \"\",\n      \"insertEvent\": {\n        \"cmDimensions\": {\n          \"adId\": \"\",\n          \"campaignId\": \"\",\n          \"creativeId\": \"\",\n          \"kind\": \"\",\n          \"placementId\": \"\",\n          \"siteId\": \"\"\n        },\n        \"dv3Dimensions\": {\n          \"dvCampaignId\": \"\",\n          \"dvCreativeId\": \"\",\n          \"dvInsertionOrderId\": \"\",\n          \"dvLineItemId\": \"\",\n          \"dvSiteId\": \"\",\n          \"kind\": \"\"\n        },\n        \"insertEventType\": \"\",\n        \"kind\": \"\",\n        \"matchId\": \"\",\n        \"mobileDeviceId\": \"\"\n      },\n      \"kind\": \"\",\n      \"ordinal\": \"\",\n      \"timestampMicros\": \"\"\n    }\n  ],\n  \"kind\": \"\"\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  \"customEvents\": [\n    {\n      \"annotateClickEvent\": {\n        \"gclid\": \"\",\n        \"kind\": \"\"\n      },\n      \"annotateImpressionEvent\": {\n        \"kind\": \"\",\n        \"pathImpressionId\": \"\"\n      },\n      \"customVariables\": [\n        {\n          \"index\": \"\",\n          \"kind\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"eventType\": \"\",\n      \"floodlightConfigurationId\": \"\",\n      \"insertEvent\": {\n        \"cmDimensions\": {\n          \"adId\": \"\",\n          \"campaignId\": \"\",\n          \"creativeId\": \"\",\n          \"kind\": \"\",\n          \"placementId\": \"\",\n          \"siteId\": \"\"\n        },\n        \"dv3Dimensions\": {\n          \"dvCampaignId\": \"\",\n          \"dvCreativeId\": \"\",\n          \"dvInsertionOrderId\": \"\",\n          \"dvLineItemId\": \"\",\n          \"dvSiteId\": \"\",\n          \"kind\": \"\"\n        },\n        \"insertEventType\": \"\",\n        \"kind\": \"\",\n        \"matchId\": \"\",\n        \"mobileDeviceId\": \"\"\n      },\n      \"kind\": \"\",\n      \"ordinal\": \"\",\n      \"timestampMicros\": \"\"\n    }\n  ],\n  \"kind\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/customEvents/batchinsert")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/userprofiles/:profileId/customEvents/batchinsert")
  .header("content-type", "application/json")
  .body("{\n  \"customEvents\": [\n    {\n      \"annotateClickEvent\": {\n        \"gclid\": \"\",\n        \"kind\": \"\"\n      },\n      \"annotateImpressionEvent\": {\n        \"kind\": \"\",\n        \"pathImpressionId\": \"\"\n      },\n      \"customVariables\": [\n        {\n          \"index\": \"\",\n          \"kind\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"eventType\": \"\",\n      \"floodlightConfigurationId\": \"\",\n      \"insertEvent\": {\n        \"cmDimensions\": {\n          \"adId\": \"\",\n          \"campaignId\": \"\",\n          \"creativeId\": \"\",\n          \"kind\": \"\",\n          \"placementId\": \"\",\n          \"siteId\": \"\"\n        },\n        \"dv3Dimensions\": {\n          \"dvCampaignId\": \"\",\n          \"dvCreativeId\": \"\",\n          \"dvInsertionOrderId\": \"\",\n          \"dvLineItemId\": \"\",\n          \"dvSiteId\": \"\",\n          \"kind\": \"\"\n        },\n        \"insertEventType\": \"\",\n        \"kind\": \"\",\n        \"matchId\": \"\",\n        \"mobileDeviceId\": \"\"\n      },\n      \"kind\": \"\",\n      \"ordinal\": \"\",\n      \"timestampMicros\": \"\"\n    }\n  ],\n  \"kind\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  customEvents: [
    {
      annotateClickEvent: {
        gclid: '',
        kind: ''
      },
      annotateImpressionEvent: {
        kind: '',
        pathImpressionId: ''
      },
      customVariables: [
        {
          index: '',
          kind: '',
          value: ''
        }
      ],
      eventType: '',
      floodlightConfigurationId: '',
      insertEvent: {
        cmDimensions: {
          adId: '',
          campaignId: '',
          creativeId: '',
          kind: '',
          placementId: '',
          siteId: ''
        },
        dv3Dimensions: {
          dvCampaignId: '',
          dvCreativeId: '',
          dvInsertionOrderId: '',
          dvLineItemId: '',
          dvSiteId: '',
          kind: ''
        },
        insertEventType: '',
        kind: '',
        matchId: '',
        mobileDeviceId: ''
      },
      kind: '',
      ordinal: '',
      timestampMicros: ''
    }
  ],
  kind: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/userprofiles/:profileId/customEvents/batchinsert');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/userprofiles/:profileId/customEvents/batchinsert',
  headers: {'content-type': 'application/json'},
  data: {
    customEvents: [
      {
        annotateClickEvent: {gclid: '', kind: ''},
        annotateImpressionEvent: {kind: '', pathImpressionId: ''},
        customVariables: [{index: '', kind: '', value: ''}],
        eventType: '',
        floodlightConfigurationId: '',
        insertEvent: {
          cmDimensions: {
            adId: '',
            campaignId: '',
            creativeId: '',
            kind: '',
            placementId: '',
            siteId: ''
          },
          dv3Dimensions: {
            dvCampaignId: '',
            dvCreativeId: '',
            dvInsertionOrderId: '',
            dvLineItemId: '',
            dvSiteId: '',
            kind: ''
          },
          insertEventType: '',
          kind: '',
          matchId: '',
          mobileDeviceId: ''
        },
        kind: '',
        ordinal: '',
        timestampMicros: ''
      }
    ],
    kind: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/customEvents/batchinsert';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"customEvents":[{"annotateClickEvent":{"gclid":"","kind":""},"annotateImpressionEvent":{"kind":"","pathImpressionId":""},"customVariables":[{"index":"","kind":"","value":""}],"eventType":"","floodlightConfigurationId":"","insertEvent":{"cmDimensions":{"adId":"","campaignId":"","creativeId":"","kind":"","placementId":"","siteId":""},"dv3Dimensions":{"dvCampaignId":"","dvCreativeId":"","dvInsertionOrderId":"","dvLineItemId":"","dvSiteId":"","kind":""},"insertEventType":"","kind":"","matchId":"","mobileDeviceId":""},"kind":"","ordinal":"","timestampMicros":""}],"kind":""}'
};

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}}/userprofiles/:profileId/customEvents/batchinsert',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "customEvents": [\n    {\n      "annotateClickEvent": {\n        "gclid": "",\n        "kind": ""\n      },\n      "annotateImpressionEvent": {\n        "kind": "",\n        "pathImpressionId": ""\n      },\n      "customVariables": [\n        {\n          "index": "",\n          "kind": "",\n          "value": ""\n        }\n      ],\n      "eventType": "",\n      "floodlightConfigurationId": "",\n      "insertEvent": {\n        "cmDimensions": {\n          "adId": "",\n          "campaignId": "",\n          "creativeId": "",\n          "kind": "",\n          "placementId": "",\n          "siteId": ""\n        },\n        "dv3Dimensions": {\n          "dvCampaignId": "",\n          "dvCreativeId": "",\n          "dvInsertionOrderId": "",\n          "dvLineItemId": "",\n          "dvSiteId": "",\n          "kind": ""\n        },\n        "insertEventType": "",\n        "kind": "",\n        "matchId": "",\n        "mobileDeviceId": ""\n      },\n      "kind": "",\n      "ordinal": "",\n      "timestampMicros": ""\n    }\n  ],\n  "kind": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"customEvents\": [\n    {\n      \"annotateClickEvent\": {\n        \"gclid\": \"\",\n        \"kind\": \"\"\n      },\n      \"annotateImpressionEvent\": {\n        \"kind\": \"\",\n        \"pathImpressionId\": \"\"\n      },\n      \"customVariables\": [\n        {\n          \"index\": \"\",\n          \"kind\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"eventType\": \"\",\n      \"floodlightConfigurationId\": \"\",\n      \"insertEvent\": {\n        \"cmDimensions\": {\n          \"adId\": \"\",\n          \"campaignId\": \"\",\n          \"creativeId\": \"\",\n          \"kind\": \"\",\n          \"placementId\": \"\",\n          \"siteId\": \"\"\n        },\n        \"dv3Dimensions\": {\n          \"dvCampaignId\": \"\",\n          \"dvCreativeId\": \"\",\n          \"dvInsertionOrderId\": \"\",\n          \"dvLineItemId\": \"\",\n          \"dvSiteId\": \"\",\n          \"kind\": \"\"\n        },\n        \"insertEventType\": \"\",\n        \"kind\": \"\",\n        \"matchId\": \"\",\n        \"mobileDeviceId\": \"\"\n      },\n      \"kind\": \"\",\n      \"ordinal\": \"\",\n      \"timestampMicros\": \"\"\n    }\n  ],\n  \"kind\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/customEvents/batchinsert")
  .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/userprofiles/:profileId/customEvents/batchinsert',
  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({
  customEvents: [
    {
      annotateClickEvent: {gclid: '', kind: ''},
      annotateImpressionEvent: {kind: '', pathImpressionId: ''},
      customVariables: [{index: '', kind: '', value: ''}],
      eventType: '',
      floodlightConfigurationId: '',
      insertEvent: {
        cmDimensions: {
          adId: '',
          campaignId: '',
          creativeId: '',
          kind: '',
          placementId: '',
          siteId: ''
        },
        dv3Dimensions: {
          dvCampaignId: '',
          dvCreativeId: '',
          dvInsertionOrderId: '',
          dvLineItemId: '',
          dvSiteId: '',
          kind: ''
        },
        insertEventType: '',
        kind: '',
        matchId: '',
        mobileDeviceId: ''
      },
      kind: '',
      ordinal: '',
      timestampMicros: ''
    }
  ],
  kind: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/userprofiles/:profileId/customEvents/batchinsert',
  headers: {'content-type': 'application/json'},
  body: {
    customEvents: [
      {
        annotateClickEvent: {gclid: '', kind: ''},
        annotateImpressionEvent: {kind: '', pathImpressionId: ''},
        customVariables: [{index: '', kind: '', value: ''}],
        eventType: '',
        floodlightConfigurationId: '',
        insertEvent: {
          cmDimensions: {
            adId: '',
            campaignId: '',
            creativeId: '',
            kind: '',
            placementId: '',
            siteId: ''
          },
          dv3Dimensions: {
            dvCampaignId: '',
            dvCreativeId: '',
            dvInsertionOrderId: '',
            dvLineItemId: '',
            dvSiteId: '',
            kind: ''
          },
          insertEventType: '',
          kind: '',
          matchId: '',
          mobileDeviceId: ''
        },
        kind: '',
        ordinal: '',
        timestampMicros: ''
      }
    ],
    kind: ''
  },
  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}}/userprofiles/:profileId/customEvents/batchinsert');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  customEvents: [
    {
      annotateClickEvent: {
        gclid: '',
        kind: ''
      },
      annotateImpressionEvent: {
        kind: '',
        pathImpressionId: ''
      },
      customVariables: [
        {
          index: '',
          kind: '',
          value: ''
        }
      ],
      eventType: '',
      floodlightConfigurationId: '',
      insertEvent: {
        cmDimensions: {
          adId: '',
          campaignId: '',
          creativeId: '',
          kind: '',
          placementId: '',
          siteId: ''
        },
        dv3Dimensions: {
          dvCampaignId: '',
          dvCreativeId: '',
          dvInsertionOrderId: '',
          dvLineItemId: '',
          dvSiteId: '',
          kind: ''
        },
        insertEventType: '',
        kind: '',
        matchId: '',
        mobileDeviceId: ''
      },
      kind: '',
      ordinal: '',
      timestampMicros: ''
    }
  ],
  kind: ''
});

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}}/userprofiles/:profileId/customEvents/batchinsert',
  headers: {'content-type': 'application/json'},
  data: {
    customEvents: [
      {
        annotateClickEvent: {gclid: '', kind: ''},
        annotateImpressionEvent: {kind: '', pathImpressionId: ''},
        customVariables: [{index: '', kind: '', value: ''}],
        eventType: '',
        floodlightConfigurationId: '',
        insertEvent: {
          cmDimensions: {
            adId: '',
            campaignId: '',
            creativeId: '',
            kind: '',
            placementId: '',
            siteId: ''
          },
          dv3Dimensions: {
            dvCampaignId: '',
            dvCreativeId: '',
            dvInsertionOrderId: '',
            dvLineItemId: '',
            dvSiteId: '',
            kind: ''
          },
          insertEventType: '',
          kind: '',
          matchId: '',
          mobileDeviceId: ''
        },
        kind: '',
        ordinal: '',
        timestampMicros: ''
      }
    ],
    kind: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/customEvents/batchinsert';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"customEvents":[{"annotateClickEvent":{"gclid":"","kind":""},"annotateImpressionEvent":{"kind":"","pathImpressionId":""},"customVariables":[{"index":"","kind":"","value":""}],"eventType":"","floodlightConfigurationId":"","insertEvent":{"cmDimensions":{"adId":"","campaignId":"","creativeId":"","kind":"","placementId":"","siteId":""},"dv3Dimensions":{"dvCampaignId":"","dvCreativeId":"","dvInsertionOrderId":"","dvLineItemId":"","dvSiteId":"","kind":""},"insertEventType":"","kind":"","matchId":"","mobileDeviceId":""},"kind":"","ordinal":"","timestampMicros":""}],"kind":""}'
};

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 = @{ @"customEvents": @[ @{ @"annotateClickEvent": @{ @"gclid": @"", @"kind": @"" }, @"annotateImpressionEvent": @{ @"kind": @"", @"pathImpressionId": @"" }, @"customVariables": @[ @{ @"index": @"", @"kind": @"", @"value": @"" } ], @"eventType": @"", @"floodlightConfigurationId": @"", @"insertEvent": @{ @"cmDimensions": @{ @"adId": @"", @"campaignId": @"", @"creativeId": @"", @"kind": @"", @"placementId": @"", @"siteId": @"" }, @"dv3Dimensions": @{ @"dvCampaignId": @"", @"dvCreativeId": @"", @"dvInsertionOrderId": @"", @"dvLineItemId": @"", @"dvSiteId": @"", @"kind": @"" }, @"insertEventType": @"", @"kind": @"", @"matchId": @"", @"mobileDeviceId": @"" }, @"kind": @"", @"ordinal": @"", @"timestampMicros": @"" } ],
                              @"kind": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/userprofiles/:profileId/customEvents/batchinsert"]
                                                       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}}/userprofiles/:profileId/customEvents/batchinsert" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"customEvents\": [\n    {\n      \"annotateClickEvent\": {\n        \"gclid\": \"\",\n        \"kind\": \"\"\n      },\n      \"annotateImpressionEvent\": {\n        \"kind\": \"\",\n        \"pathImpressionId\": \"\"\n      },\n      \"customVariables\": [\n        {\n          \"index\": \"\",\n          \"kind\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"eventType\": \"\",\n      \"floodlightConfigurationId\": \"\",\n      \"insertEvent\": {\n        \"cmDimensions\": {\n          \"adId\": \"\",\n          \"campaignId\": \"\",\n          \"creativeId\": \"\",\n          \"kind\": \"\",\n          \"placementId\": \"\",\n          \"siteId\": \"\"\n        },\n        \"dv3Dimensions\": {\n          \"dvCampaignId\": \"\",\n          \"dvCreativeId\": \"\",\n          \"dvInsertionOrderId\": \"\",\n          \"dvLineItemId\": \"\",\n          \"dvSiteId\": \"\",\n          \"kind\": \"\"\n        },\n        \"insertEventType\": \"\",\n        \"kind\": \"\",\n        \"matchId\": \"\",\n        \"mobileDeviceId\": \"\"\n      },\n      \"kind\": \"\",\n      \"ordinal\": \"\",\n      \"timestampMicros\": \"\"\n    }\n  ],\n  \"kind\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/customEvents/batchinsert",
  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([
    'customEvents' => [
        [
                'annotateClickEvent' => [
                                'gclid' => '',
                                'kind' => ''
                ],
                'annotateImpressionEvent' => [
                                'kind' => '',
                                'pathImpressionId' => ''
                ],
                'customVariables' => [
                                [
                                                                'index' => '',
                                                                'kind' => '',
                                                                'value' => ''
                                ]
                ],
                'eventType' => '',
                'floodlightConfigurationId' => '',
                'insertEvent' => [
                                'cmDimensions' => [
                                                                'adId' => '',
                                                                'campaignId' => '',
                                                                'creativeId' => '',
                                                                'kind' => '',
                                                                'placementId' => '',
                                                                'siteId' => ''
                                ],
                                'dv3Dimensions' => [
                                                                'dvCampaignId' => '',
                                                                'dvCreativeId' => '',
                                                                'dvInsertionOrderId' => '',
                                                                'dvLineItemId' => '',
                                                                'dvSiteId' => '',
                                                                'kind' => ''
                                ],
                                'insertEventType' => '',
                                'kind' => '',
                                'matchId' => '',
                                'mobileDeviceId' => ''
                ],
                'kind' => '',
                'ordinal' => '',
                'timestampMicros' => ''
        ]
    ],
    'kind' => ''
  ]),
  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}}/userprofiles/:profileId/customEvents/batchinsert', [
  'body' => '{
  "customEvents": [
    {
      "annotateClickEvent": {
        "gclid": "",
        "kind": ""
      },
      "annotateImpressionEvent": {
        "kind": "",
        "pathImpressionId": ""
      },
      "customVariables": [
        {
          "index": "",
          "kind": "",
          "value": ""
        }
      ],
      "eventType": "",
      "floodlightConfigurationId": "",
      "insertEvent": {
        "cmDimensions": {
          "adId": "",
          "campaignId": "",
          "creativeId": "",
          "kind": "",
          "placementId": "",
          "siteId": ""
        },
        "dv3Dimensions": {
          "dvCampaignId": "",
          "dvCreativeId": "",
          "dvInsertionOrderId": "",
          "dvLineItemId": "",
          "dvSiteId": "",
          "kind": ""
        },
        "insertEventType": "",
        "kind": "",
        "matchId": "",
        "mobileDeviceId": ""
      },
      "kind": "",
      "ordinal": "",
      "timestampMicros": ""
    }
  ],
  "kind": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/customEvents/batchinsert');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'customEvents' => [
    [
        'annotateClickEvent' => [
                'gclid' => '',
                'kind' => ''
        ],
        'annotateImpressionEvent' => [
                'kind' => '',
                'pathImpressionId' => ''
        ],
        'customVariables' => [
                [
                                'index' => '',
                                'kind' => '',
                                'value' => ''
                ]
        ],
        'eventType' => '',
        'floodlightConfigurationId' => '',
        'insertEvent' => [
                'cmDimensions' => [
                                'adId' => '',
                                'campaignId' => '',
                                'creativeId' => '',
                                'kind' => '',
                                'placementId' => '',
                                'siteId' => ''
                ],
                'dv3Dimensions' => [
                                'dvCampaignId' => '',
                                'dvCreativeId' => '',
                                'dvInsertionOrderId' => '',
                                'dvLineItemId' => '',
                                'dvSiteId' => '',
                                'kind' => ''
                ],
                'insertEventType' => '',
                'kind' => '',
                'matchId' => '',
                'mobileDeviceId' => ''
        ],
        'kind' => '',
        'ordinal' => '',
        'timestampMicros' => ''
    ]
  ],
  'kind' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'customEvents' => [
    [
        'annotateClickEvent' => [
                'gclid' => '',
                'kind' => ''
        ],
        'annotateImpressionEvent' => [
                'kind' => '',
                'pathImpressionId' => ''
        ],
        'customVariables' => [
                [
                                'index' => '',
                                'kind' => '',
                                'value' => ''
                ]
        ],
        'eventType' => '',
        'floodlightConfigurationId' => '',
        'insertEvent' => [
                'cmDimensions' => [
                                'adId' => '',
                                'campaignId' => '',
                                'creativeId' => '',
                                'kind' => '',
                                'placementId' => '',
                                'siteId' => ''
                ],
                'dv3Dimensions' => [
                                'dvCampaignId' => '',
                                'dvCreativeId' => '',
                                'dvInsertionOrderId' => '',
                                'dvLineItemId' => '',
                                'dvSiteId' => '',
                                'kind' => ''
                ],
                'insertEventType' => '',
                'kind' => '',
                'matchId' => '',
                'mobileDeviceId' => ''
        ],
        'kind' => '',
        'ordinal' => '',
        'timestampMicros' => ''
    ]
  ],
  'kind' => ''
]));
$request->setRequestUrl('{{baseUrl}}/userprofiles/:profileId/customEvents/batchinsert');
$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}}/userprofiles/:profileId/customEvents/batchinsert' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "customEvents": [
    {
      "annotateClickEvent": {
        "gclid": "",
        "kind": ""
      },
      "annotateImpressionEvent": {
        "kind": "",
        "pathImpressionId": ""
      },
      "customVariables": [
        {
          "index": "",
          "kind": "",
          "value": ""
        }
      ],
      "eventType": "",
      "floodlightConfigurationId": "",
      "insertEvent": {
        "cmDimensions": {
          "adId": "",
          "campaignId": "",
          "creativeId": "",
          "kind": "",
          "placementId": "",
          "siteId": ""
        },
        "dv3Dimensions": {
          "dvCampaignId": "",
          "dvCreativeId": "",
          "dvInsertionOrderId": "",
          "dvLineItemId": "",
          "dvSiteId": "",
          "kind": ""
        },
        "insertEventType": "",
        "kind": "",
        "matchId": "",
        "mobileDeviceId": ""
      },
      "kind": "",
      "ordinal": "",
      "timestampMicros": ""
    }
  ],
  "kind": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/customEvents/batchinsert' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "customEvents": [
    {
      "annotateClickEvent": {
        "gclid": "",
        "kind": ""
      },
      "annotateImpressionEvent": {
        "kind": "",
        "pathImpressionId": ""
      },
      "customVariables": [
        {
          "index": "",
          "kind": "",
          "value": ""
        }
      ],
      "eventType": "",
      "floodlightConfigurationId": "",
      "insertEvent": {
        "cmDimensions": {
          "adId": "",
          "campaignId": "",
          "creativeId": "",
          "kind": "",
          "placementId": "",
          "siteId": ""
        },
        "dv3Dimensions": {
          "dvCampaignId": "",
          "dvCreativeId": "",
          "dvInsertionOrderId": "",
          "dvLineItemId": "",
          "dvSiteId": "",
          "kind": ""
        },
        "insertEventType": "",
        "kind": "",
        "matchId": "",
        "mobileDeviceId": ""
      },
      "kind": "",
      "ordinal": "",
      "timestampMicros": ""
    }
  ],
  "kind": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"customEvents\": [\n    {\n      \"annotateClickEvent\": {\n        \"gclid\": \"\",\n        \"kind\": \"\"\n      },\n      \"annotateImpressionEvent\": {\n        \"kind\": \"\",\n        \"pathImpressionId\": \"\"\n      },\n      \"customVariables\": [\n        {\n          \"index\": \"\",\n          \"kind\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"eventType\": \"\",\n      \"floodlightConfigurationId\": \"\",\n      \"insertEvent\": {\n        \"cmDimensions\": {\n          \"adId\": \"\",\n          \"campaignId\": \"\",\n          \"creativeId\": \"\",\n          \"kind\": \"\",\n          \"placementId\": \"\",\n          \"siteId\": \"\"\n        },\n        \"dv3Dimensions\": {\n          \"dvCampaignId\": \"\",\n          \"dvCreativeId\": \"\",\n          \"dvInsertionOrderId\": \"\",\n          \"dvLineItemId\": \"\",\n          \"dvSiteId\": \"\",\n          \"kind\": \"\"\n        },\n        \"insertEventType\": \"\",\n        \"kind\": \"\",\n        \"matchId\": \"\",\n        \"mobileDeviceId\": \"\"\n      },\n      \"kind\": \"\",\n      \"ordinal\": \"\",\n      \"timestampMicros\": \"\"\n    }\n  ],\n  \"kind\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/userprofiles/:profileId/customEvents/batchinsert", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/customEvents/batchinsert"

payload = {
    "customEvents": [
        {
            "annotateClickEvent": {
                "gclid": "",
                "kind": ""
            },
            "annotateImpressionEvent": {
                "kind": "",
                "pathImpressionId": ""
            },
            "customVariables": [
                {
                    "index": "",
                    "kind": "",
                    "value": ""
                }
            ],
            "eventType": "",
            "floodlightConfigurationId": "",
            "insertEvent": {
                "cmDimensions": {
                    "adId": "",
                    "campaignId": "",
                    "creativeId": "",
                    "kind": "",
                    "placementId": "",
                    "siteId": ""
                },
                "dv3Dimensions": {
                    "dvCampaignId": "",
                    "dvCreativeId": "",
                    "dvInsertionOrderId": "",
                    "dvLineItemId": "",
                    "dvSiteId": "",
                    "kind": ""
                },
                "insertEventType": "",
                "kind": "",
                "matchId": "",
                "mobileDeviceId": ""
            },
            "kind": "",
            "ordinal": "",
            "timestampMicros": ""
        }
    ],
    "kind": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/customEvents/batchinsert"

payload <- "{\n  \"customEvents\": [\n    {\n      \"annotateClickEvent\": {\n        \"gclid\": \"\",\n        \"kind\": \"\"\n      },\n      \"annotateImpressionEvent\": {\n        \"kind\": \"\",\n        \"pathImpressionId\": \"\"\n      },\n      \"customVariables\": [\n        {\n          \"index\": \"\",\n          \"kind\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"eventType\": \"\",\n      \"floodlightConfigurationId\": \"\",\n      \"insertEvent\": {\n        \"cmDimensions\": {\n          \"adId\": \"\",\n          \"campaignId\": \"\",\n          \"creativeId\": \"\",\n          \"kind\": \"\",\n          \"placementId\": \"\",\n          \"siteId\": \"\"\n        },\n        \"dv3Dimensions\": {\n          \"dvCampaignId\": \"\",\n          \"dvCreativeId\": \"\",\n          \"dvInsertionOrderId\": \"\",\n          \"dvLineItemId\": \"\",\n          \"dvSiteId\": \"\",\n          \"kind\": \"\"\n        },\n        \"insertEventType\": \"\",\n        \"kind\": \"\",\n        \"matchId\": \"\",\n        \"mobileDeviceId\": \"\"\n      },\n      \"kind\": \"\",\n      \"ordinal\": \"\",\n      \"timestampMicros\": \"\"\n    }\n  ],\n  \"kind\": \"\"\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}}/userprofiles/:profileId/customEvents/batchinsert")

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  \"customEvents\": [\n    {\n      \"annotateClickEvent\": {\n        \"gclid\": \"\",\n        \"kind\": \"\"\n      },\n      \"annotateImpressionEvent\": {\n        \"kind\": \"\",\n        \"pathImpressionId\": \"\"\n      },\n      \"customVariables\": [\n        {\n          \"index\": \"\",\n          \"kind\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"eventType\": \"\",\n      \"floodlightConfigurationId\": \"\",\n      \"insertEvent\": {\n        \"cmDimensions\": {\n          \"adId\": \"\",\n          \"campaignId\": \"\",\n          \"creativeId\": \"\",\n          \"kind\": \"\",\n          \"placementId\": \"\",\n          \"siteId\": \"\"\n        },\n        \"dv3Dimensions\": {\n          \"dvCampaignId\": \"\",\n          \"dvCreativeId\": \"\",\n          \"dvInsertionOrderId\": \"\",\n          \"dvLineItemId\": \"\",\n          \"dvSiteId\": \"\",\n          \"kind\": \"\"\n        },\n        \"insertEventType\": \"\",\n        \"kind\": \"\",\n        \"matchId\": \"\",\n        \"mobileDeviceId\": \"\"\n      },\n      \"kind\": \"\",\n      \"ordinal\": \"\",\n      \"timestampMicros\": \"\"\n    }\n  ],\n  \"kind\": \"\"\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/userprofiles/:profileId/customEvents/batchinsert') do |req|
  req.body = "{\n  \"customEvents\": [\n    {\n      \"annotateClickEvent\": {\n        \"gclid\": \"\",\n        \"kind\": \"\"\n      },\n      \"annotateImpressionEvent\": {\n        \"kind\": \"\",\n        \"pathImpressionId\": \"\"\n      },\n      \"customVariables\": [\n        {\n          \"index\": \"\",\n          \"kind\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"eventType\": \"\",\n      \"floodlightConfigurationId\": \"\",\n      \"insertEvent\": {\n        \"cmDimensions\": {\n          \"adId\": \"\",\n          \"campaignId\": \"\",\n          \"creativeId\": \"\",\n          \"kind\": \"\",\n          \"placementId\": \"\",\n          \"siteId\": \"\"\n        },\n        \"dv3Dimensions\": {\n          \"dvCampaignId\": \"\",\n          \"dvCreativeId\": \"\",\n          \"dvInsertionOrderId\": \"\",\n          \"dvLineItemId\": \"\",\n          \"dvSiteId\": \"\",\n          \"kind\": \"\"\n        },\n        \"insertEventType\": \"\",\n        \"kind\": \"\",\n        \"matchId\": \"\",\n        \"mobileDeviceId\": \"\"\n      },\n      \"kind\": \"\",\n      \"ordinal\": \"\",\n      \"timestampMicros\": \"\"\n    }\n  ],\n  \"kind\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/customEvents/batchinsert";

    let payload = json!({
        "customEvents": (
            json!({
                "annotateClickEvent": json!({
                    "gclid": "",
                    "kind": ""
                }),
                "annotateImpressionEvent": json!({
                    "kind": "",
                    "pathImpressionId": ""
                }),
                "customVariables": (
                    json!({
                        "index": "",
                        "kind": "",
                        "value": ""
                    })
                ),
                "eventType": "",
                "floodlightConfigurationId": "",
                "insertEvent": json!({
                    "cmDimensions": json!({
                        "adId": "",
                        "campaignId": "",
                        "creativeId": "",
                        "kind": "",
                        "placementId": "",
                        "siteId": ""
                    }),
                    "dv3Dimensions": json!({
                        "dvCampaignId": "",
                        "dvCreativeId": "",
                        "dvInsertionOrderId": "",
                        "dvLineItemId": "",
                        "dvSiteId": "",
                        "kind": ""
                    }),
                    "insertEventType": "",
                    "kind": "",
                    "matchId": "",
                    "mobileDeviceId": ""
                }),
                "kind": "",
                "ordinal": "",
                "timestampMicros": ""
            })
        ),
        "kind": ""
    });

    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}}/userprofiles/:profileId/customEvents/batchinsert \
  --header 'content-type: application/json' \
  --data '{
  "customEvents": [
    {
      "annotateClickEvent": {
        "gclid": "",
        "kind": ""
      },
      "annotateImpressionEvent": {
        "kind": "",
        "pathImpressionId": ""
      },
      "customVariables": [
        {
          "index": "",
          "kind": "",
          "value": ""
        }
      ],
      "eventType": "",
      "floodlightConfigurationId": "",
      "insertEvent": {
        "cmDimensions": {
          "adId": "",
          "campaignId": "",
          "creativeId": "",
          "kind": "",
          "placementId": "",
          "siteId": ""
        },
        "dv3Dimensions": {
          "dvCampaignId": "",
          "dvCreativeId": "",
          "dvInsertionOrderId": "",
          "dvLineItemId": "",
          "dvSiteId": "",
          "kind": ""
        },
        "insertEventType": "",
        "kind": "",
        "matchId": "",
        "mobileDeviceId": ""
      },
      "kind": "",
      "ordinal": "",
      "timestampMicros": ""
    }
  ],
  "kind": ""
}'
echo '{
  "customEvents": [
    {
      "annotateClickEvent": {
        "gclid": "",
        "kind": ""
      },
      "annotateImpressionEvent": {
        "kind": "",
        "pathImpressionId": ""
      },
      "customVariables": [
        {
          "index": "",
          "kind": "",
          "value": ""
        }
      ],
      "eventType": "",
      "floodlightConfigurationId": "",
      "insertEvent": {
        "cmDimensions": {
          "adId": "",
          "campaignId": "",
          "creativeId": "",
          "kind": "",
          "placementId": "",
          "siteId": ""
        },
        "dv3Dimensions": {
          "dvCampaignId": "",
          "dvCreativeId": "",
          "dvInsertionOrderId": "",
          "dvLineItemId": "",
          "dvSiteId": "",
          "kind": ""
        },
        "insertEventType": "",
        "kind": "",
        "matchId": "",
        "mobileDeviceId": ""
      },
      "kind": "",
      "ordinal": "",
      "timestampMicros": ""
    }
  ],
  "kind": ""
}' |  \
  http POST {{baseUrl}}/userprofiles/:profileId/customEvents/batchinsert \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "customEvents": [\n    {\n      "annotateClickEvent": {\n        "gclid": "",\n        "kind": ""\n      },\n      "annotateImpressionEvent": {\n        "kind": "",\n        "pathImpressionId": ""\n      },\n      "customVariables": [\n        {\n          "index": "",\n          "kind": "",\n          "value": ""\n        }\n      ],\n      "eventType": "",\n      "floodlightConfigurationId": "",\n      "insertEvent": {\n        "cmDimensions": {\n          "adId": "",\n          "campaignId": "",\n          "creativeId": "",\n          "kind": "",\n          "placementId": "",\n          "siteId": ""\n        },\n        "dv3Dimensions": {\n          "dvCampaignId": "",\n          "dvCreativeId": "",\n          "dvInsertionOrderId": "",\n          "dvLineItemId": "",\n          "dvSiteId": "",\n          "kind": ""\n        },\n        "insertEventType": "",\n        "kind": "",\n        "matchId": "",\n        "mobileDeviceId": ""\n      },\n      "kind": "",\n      "ordinal": "",\n      "timestampMicros": ""\n    }\n  ],\n  "kind": ""\n}' \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/customEvents/batchinsert
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "customEvents": [
    [
      "annotateClickEvent": [
        "gclid": "",
        "kind": ""
      ],
      "annotateImpressionEvent": [
        "kind": "",
        "pathImpressionId": ""
      ],
      "customVariables": [
        [
          "index": "",
          "kind": "",
          "value": ""
        ]
      ],
      "eventType": "",
      "floodlightConfigurationId": "",
      "insertEvent": [
        "cmDimensions": [
          "adId": "",
          "campaignId": "",
          "creativeId": "",
          "kind": "",
          "placementId": "",
          "siteId": ""
        ],
        "dv3Dimensions": [
          "dvCampaignId": "",
          "dvCreativeId": "",
          "dvInsertionOrderId": "",
          "dvLineItemId": "",
          "dvSiteId": "",
          "kind": ""
        ],
        "insertEventType": "",
        "kind": "",
        "matchId": "",
        "mobileDeviceId": ""
      ],
      "kind": "",
      "ordinal": "",
      "timestampMicros": ""
    ]
  ],
  "kind": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/customEvents/batchinsert")! 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 dfareporting.dimensionValues.query
{{baseUrl}}/userprofiles/:profileId/dimensionvalues/query
QUERY PARAMS

profileId
BODY json

{
  "dimensionName": "",
  "endDate": "",
  "filters": [
    {
      "dimensionName": "",
      "kind": "",
      "value": ""
    }
  ],
  "kind": "",
  "startDate": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/dimensionvalues/query");

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  \"dimensionName\": \"\",\n  \"endDate\": \"\",\n  \"filters\": [\n    {\n      \"dimensionName\": \"\",\n      \"kind\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"kind\": \"\",\n  \"startDate\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/userprofiles/:profileId/dimensionvalues/query" {:content-type :json
                                                                                          :form-params {:dimensionName ""
                                                                                                        :endDate ""
                                                                                                        :filters [{:dimensionName ""
                                                                                                                   :kind ""
                                                                                                                   :value ""}]
                                                                                                        :kind ""
                                                                                                        :startDate ""}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/dimensionvalues/query"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"dimensionName\": \"\",\n  \"endDate\": \"\",\n  \"filters\": [\n    {\n      \"dimensionName\": \"\",\n      \"kind\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"kind\": \"\",\n  \"startDate\": \"\"\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}}/userprofiles/:profileId/dimensionvalues/query"),
    Content = new StringContent("{\n  \"dimensionName\": \"\",\n  \"endDate\": \"\",\n  \"filters\": [\n    {\n      \"dimensionName\": \"\",\n      \"kind\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"kind\": \"\",\n  \"startDate\": \"\"\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}}/userprofiles/:profileId/dimensionvalues/query");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"dimensionName\": \"\",\n  \"endDate\": \"\",\n  \"filters\": [\n    {\n      \"dimensionName\": \"\",\n      \"kind\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"kind\": \"\",\n  \"startDate\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/dimensionvalues/query"

	payload := strings.NewReader("{\n  \"dimensionName\": \"\",\n  \"endDate\": \"\",\n  \"filters\": [\n    {\n      \"dimensionName\": \"\",\n      \"kind\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"kind\": \"\",\n  \"startDate\": \"\"\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/userprofiles/:profileId/dimensionvalues/query HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 170

{
  "dimensionName": "",
  "endDate": "",
  "filters": [
    {
      "dimensionName": "",
      "kind": "",
      "value": ""
    }
  ],
  "kind": "",
  "startDate": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/userprofiles/:profileId/dimensionvalues/query")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"dimensionName\": \"\",\n  \"endDate\": \"\",\n  \"filters\": [\n    {\n      \"dimensionName\": \"\",\n      \"kind\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"kind\": \"\",\n  \"startDate\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/dimensionvalues/query"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"dimensionName\": \"\",\n  \"endDate\": \"\",\n  \"filters\": [\n    {\n      \"dimensionName\": \"\",\n      \"kind\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"kind\": \"\",\n  \"startDate\": \"\"\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  \"dimensionName\": \"\",\n  \"endDate\": \"\",\n  \"filters\": [\n    {\n      \"dimensionName\": \"\",\n      \"kind\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"kind\": \"\",\n  \"startDate\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/dimensionvalues/query")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/userprofiles/:profileId/dimensionvalues/query")
  .header("content-type", "application/json")
  .body("{\n  \"dimensionName\": \"\",\n  \"endDate\": \"\",\n  \"filters\": [\n    {\n      \"dimensionName\": \"\",\n      \"kind\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"kind\": \"\",\n  \"startDate\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  dimensionName: '',
  endDate: '',
  filters: [
    {
      dimensionName: '',
      kind: '',
      value: ''
    }
  ],
  kind: '',
  startDate: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/userprofiles/:profileId/dimensionvalues/query');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/userprofiles/:profileId/dimensionvalues/query',
  headers: {'content-type': 'application/json'},
  data: {
    dimensionName: '',
    endDate: '',
    filters: [{dimensionName: '', kind: '', value: ''}],
    kind: '',
    startDate: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/dimensionvalues/query';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"dimensionName":"","endDate":"","filters":[{"dimensionName":"","kind":"","value":""}],"kind":"","startDate":""}'
};

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}}/userprofiles/:profileId/dimensionvalues/query',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "dimensionName": "",\n  "endDate": "",\n  "filters": [\n    {\n      "dimensionName": "",\n      "kind": "",\n      "value": ""\n    }\n  ],\n  "kind": "",\n  "startDate": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"dimensionName\": \"\",\n  \"endDate\": \"\",\n  \"filters\": [\n    {\n      \"dimensionName\": \"\",\n      \"kind\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"kind\": \"\",\n  \"startDate\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/dimensionvalues/query")
  .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/userprofiles/:profileId/dimensionvalues/query',
  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({
  dimensionName: '',
  endDate: '',
  filters: [{dimensionName: '', kind: '', value: ''}],
  kind: '',
  startDate: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/userprofiles/:profileId/dimensionvalues/query',
  headers: {'content-type': 'application/json'},
  body: {
    dimensionName: '',
    endDate: '',
    filters: [{dimensionName: '', kind: '', value: ''}],
    kind: '',
    startDate: ''
  },
  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}}/userprofiles/:profileId/dimensionvalues/query');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  dimensionName: '',
  endDate: '',
  filters: [
    {
      dimensionName: '',
      kind: '',
      value: ''
    }
  ],
  kind: '',
  startDate: ''
});

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}}/userprofiles/:profileId/dimensionvalues/query',
  headers: {'content-type': 'application/json'},
  data: {
    dimensionName: '',
    endDate: '',
    filters: [{dimensionName: '', kind: '', value: ''}],
    kind: '',
    startDate: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/dimensionvalues/query';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"dimensionName":"","endDate":"","filters":[{"dimensionName":"","kind":"","value":""}],"kind":"","startDate":""}'
};

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 = @{ @"dimensionName": @"",
                              @"endDate": @"",
                              @"filters": @[ @{ @"dimensionName": @"", @"kind": @"", @"value": @"" } ],
                              @"kind": @"",
                              @"startDate": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/userprofiles/:profileId/dimensionvalues/query"]
                                                       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}}/userprofiles/:profileId/dimensionvalues/query" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"dimensionName\": \"\",\n  \"endDate\": \"\",\n  \"filters\": [\n    {\n      \"dimensionName\": \"\",\n      \"kind\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"kind\": \"\",\n  \"startDate\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/dimensionvalues/query",
  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([
    'dimensionName' => '',
    'endDate' => '',
    'filters' => [
        [
                'dimensionName' => '',
                'kind' => '',
                'value' => ''
        ]
    ],
    'kind' => '',
    'startDate' => ''
  ]),
  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}}/userprofiles/:profileId/dimensionvalues/query', [
  'body' => '{
  "dimensionName": "",
  "endDate": "",
  "filters": [
    {
      "dimensionName": "",
      "kind": "",
      "value": ""
    }
  ],
  "kind": "",
  "startDate": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/dimensionvalues/query');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'dimensionName' => '',
  'endDate' => '',
  'filters' => [
    [
        'dimensionName' => '',
        'kind' => '',
        'value' => ''
    ]
  ],
  'kind' => '',
  'startDate' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'dimensionName' => '',
  'endDate' => '',
  'filters' => [
    [
        'dimensionName' => '',
        'kind' => '',
        'value' => ''
    ]
  ],
  'kind' => '',
  'startDate' => ''
]));
$request->setRequestUrl('{{baseUrl}}/userprofiles/:profileId/dimensionvalues/query');
$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}}/userprofiles/:profileId/dimensionvalues/query' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "dimensionName": "",
  "endDate": "",
  "filters": [
    {
      "dimensionName": "",
      "kind": "",
      "value": ""
    }
  ],
  "kind": "",
  "startDate": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/dimensionvalues/query' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "dimensionName": "",
  "endDate": "",
  "filters": [
    {
      "dimensionName": "",
      "kind": "",
      "value": ""
    }
  ],
  "kind": "",
  "startDate": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"dimensionName\": \"\",\n  \"endDate\": \"\",\n  \"filters\": [\n    {\n      \"dimensionName\": \"\",\n      \"kind\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"kind\": \"\",\n  \"startDate\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/userprofiles/:profileId/dimensionvalues/query", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/dimensionvalues/query"

payload = {
    "dimensionName": "",
    "endDate": "",
    "filters": [
        {
            "dimensionName": "",
            "kind": "",
            "value": ""
        }
    ],
    "kind": "",
    "startDate": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/dimensionvalues/query"

payload <- "{\n  \"dimensionName\": \"\",\n  \"endDate\": \"\",\n  \"filters\": [\n    {\n      \"dimensionName\": \"\",\n      \"kind\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"kind\": \"\",\n  \"startDate\": \"\"\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}}/userprofiles/:profileId/dimensionvalues/query")

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  \"dimensionName\": \"\",\n  \"endDate\": \"\",\n  \"filters\": [\n    {\n      \"dimensionName\": \"\",\n      \"kind\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"kind\": \"\",\n  \"startDate\": \"\"\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/userprofiles/:profileId/dimensionvalues/query') do |req|
  req.body = "{\n  \"dimensionName\": \"\",\n  \"endDate\": \"\",\n  \"filters\": [\n    {\n      \"dimensionName\": \"\",\n      \"kind\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"kind\": \"\",\n  \"startDate\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/dimensionvalues/query";

    let payload = json!({
        "dimensionName": "",
        "endDate": "",
        "filters": (
            json!({
                "dimensionName": "",
                "kind": "",
                "value": ""
            })
        ),
        "kind": "",
        "startDate": ""
    });

    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}}/userprofiles/:profileId/dimensionvalues/query \
  --header 'content-type: application/json' \
  --data '{
  "dimensionName": "",
  "endDate": "",
  "filters": [
    {
      "dimensionName": "",
      "kind": "",
      "value": ""
    }
  ],
  "kind": "",
  "startDate": ""
}'
echo '{
  "dimensionName": "",
  "endDate": "",
  "filters": [
    {
      "dimensionName": "",
      "kind": "",
      "value": ""
    }
  ],
  "kind": "",
  "startDate": ""
}' |  \
  http POST {{baseUrl}}/userprofiles/:profileId/dimensionvalues/query \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "dimensionName": "",\n  "endDate": "",\n  "filters": [\n    {\n      "dimensionName": "",\n      "kind": "",\n      "value": ""\n    }\n  ],\n  "kind": "",\n  "startDate": ""\n}' \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/dimensionvalues/query
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "dimensionName": "",
  "endDate": "",
  "filters": [
    [
      "dimensionName": "",
      "kind": "",
      "value": ""
    ]
  ],
  "kind": "",
  "startDate": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/dimensionvalues/query")! 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 dfareporting.directorySites.get
{{baseUrl}}/userprofiles/:profileId/directorySites/:id
QUERY PARAMS

profileId
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/directorySites/:id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/directorySites/:id")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/directorySites/:id"

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}}/userprofiles/:profileId/directorySites/:id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/directorySites/:id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/directorySites/:id"

	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/userprofiles/:profileId/directorySites/:id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/directorySites/:id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/directorySites/:id"))
    .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}}/userprofiles/:profileId/directorySites/:id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/directorySites/:id")
  .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}}/userprofiles/:profileId/directorySites/:id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/directorySites/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/directorySites/:id';
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}}/userprofiles/:profileId/directorySites/:id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/directorySites/:id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/directorySites/:id',
  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}}/userprofiles/:profileId/directorySites/:id'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/directorySites/:id');

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}}/userprofiles/:profileId/directorySites/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/directorySites/:id';
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}}/userprofiles/:profileId/directorySites/:id"]
                                                       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}}/userprofiles/:profileId/directorySites/:id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/directorySites/:id",
  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}}/userprofiles/:profileId/directorySites/:id');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/directorySites/:id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/directorySites/:id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/directorySites/:id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/directorySites/:id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/directorySites/:id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/directorySites/:id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/directorySites/:id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/directorySites/:id")

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/userprofiles/:profileId/directorySites/:id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/directorySites/:id";

    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}}/userprofiles/:profileId/directorySites/:id
http GET {{baseUrl}}/userprofiles/:profileId/directorySites/:id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/directorySites/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/directorySites/:id")! 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 dfareporting.directorySites.insert
{{baseUrl}}/userprofiles/:profileId/directorySites
QUERY PARAMS

profileId
BODY json

{
  "id": "",
  "idDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "inpageTagFormats": [],
  "interstitialTagFormats": [],
  "kind": "",
  "name": "",
  "settings": {
    "activeViewOptOut": false,
    "dfpSettings": {
      "dfpNetworkCode": "",
      "dfpNetworkName": "",
      "programmaticPlacementAccepted": false,
      "pubPaidPlacementAccepted": false,
      "publisherPortalOnly": false
    },
    "instreamVideoPlacementAccepted": false,
    "interstitialPlacementAccepted": false
  },
  "url": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/directorySites");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"id\": \"\",\n  \"idDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"inpageTagFormats\": [],\n  \"interstitialTagFormats\": [],\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"settings\": {\n    \"activeViewOptOut\": false,\n    \"dfpSettings\": {\n      \"dfpNetworkCode\": \"\",\n      \"dfpNetworkName\": \"\",\n      \"programmaticPlacementAccepted\": false,\n      \"pubPaidPlacementAccepted\": false,\n      \"publisherPortalOnly\": false\n    },\n    \"instreamVideoPlacementAccepted\": false,\n    \"interstitialPlacementAccepted\": false\n  },\n  \"url\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/userprofiles/:profileId/directorySites" {:content-type :json
                                                                                   :form-params {:id ""
                                                                                                 :idDimensionValue {:dimensionName ""
                                                                                                                    :etag ""
                                                                                                                    :id ""
                                                                                                                    :kind ""
                                                                                                                    :matchType ""
                                                                                                                    :value ""}
                                                                                                 :inpageTagFormats []
                                                                                                 :interstitialTagFormats []
                                                                                                 :kind ""
                                                                                                 :name ""
                                                                                                 :settings {:activeViewOptOut false
                                                                                                            :dfpSettings {:dfpNetworkCode ""
                                                                                                                          :dfpNetworkName ""
                                                                                                                          :programmaticPlacementAccepted false
                                                                                                                          :pubPaidPlacementAccepted false
                                                                                                                          :publisherPortalOnly false}
                                                                                                            :instreamVideoPlacementAccepted false
                                                                                                            :interstitialPlacementAccepted false}
                                                                                                 :url ""}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/directorySites"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"id\": \"\",\n  \"idDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"inpageTagFormats\": [],\n  \"interstitialTagFormats\": [],\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"settings\": {\n    \"activeViewOptOut\": false,\n    \"dfpSettings\": {\n      \"dfpNetworkCode\": \"\",\n      \"dfpNetworkName\": \"\",\n      \"programmaticPlacementAccepted\": false,\n      \"pubPaidPlacementAccepted\": false,\n      \"publisherPortalOnly\": false\n    },\n    \"instreamVideoPlacementAccepted\": false,\n    \"interstitialPlacementAccepted\": false\n  },\n  \"url\": \"\"\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}}/userprofiles/:profileId/directorySites"),
    Content = new StringContent("{\n  \"id\": \"\",\n  \"idDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"inpageTagFormats\": [],\n  \"interstitialTagFormats\": [],\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"settings\": {\n    \"activeViewOptOut\": false,\n    \"dfpSettings\": {\n      \"dfpNetworkCode\": \"\",\n      \"dfpNetworkName\": \"\",\n      \"programmaticPlacementAccepted\": false,\n      \"pubPaidPlacementAccepted\": false,\n      \"publisherPortalOnly\": false\n    },\n    \"instreamVideoPlacementAccepted\": false,\n    \"interstitialPlacementAccepted\": false\n  },\n  \"url\": \"\"\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}}/userprofiles/:profileId/directorySites");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"id\": \"\",\n  \"idDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"inpageTagFormats\": [],\n  \"interstitialTagFormats\": [],\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"settings\": {\n    \"activeViewOptOut\": false,\n    \"dfpSettings\": {\n      \"dfpNetworkCode\": \"\",\n      \"dfpNetworkName\": \"\",\n      \"programmaticPlacementAccepted\": false,\n      \"pubPaidPlacementAccepted\": false,\n      \"publisherPortalOnly\": false\n    },\n    \"instreamVideoPlacementAccepted\": false,\n    \"interstitialPlacementAccepted\": false\n  },\n  \"url\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/directorySites"

	payload := strings.NewReader("{\n  \"id\": \"\",\n  \"idDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"inpageTagFormats\": [],\n  \"interstitialTagFormats\": [],\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"settings\": {\n    \"activeViewOptOut\": false,\n    \"dfpSettings\": {\n      \"dfpNetworkCode\": \"\",\n      \"dfpNetworkName\": \"\",\n      \"programmaticPlacementAccepted\": false,\n      \"pubPaidPlacementAccepted\": false,\n      \"publisherPortalOnly\": false\n    },\n    \"instreamVideoPlacementAccepted\": false,\n    \"interstitialPlacementAccepted\": false\n  },\n  \"url\": \"\"\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/userprofiles/:profileId/directorySites HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 596

{
  "id": "",
  "idDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "inpageTagFormats": [],
  "interstitialTagFormats": [],
  "kind": "",
  "name": "",
  "settings": {
    "activeViewOptOut": false,
    "dfpSettings": {
      "dfpNetworkCode": "",
      "dfpNetworkName": "",
      "programmaticPlacementAccepted": false,
      "pubPaidPlacementAccepted": false,
      "publisherPortalOnly": false
    },
    "instreamVideoPlacementAccepted": false,
    "interstitialPlacementAccepted": false
  },
  "url": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/userprofiles/:profileId/directorySites")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"id\": \"\",\n  \"idDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"inpageTagFormats\": [],\n  \"interstitialTagFormats\": [],\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"settings\": {\n    \"activeViewOptOut\": false,\n    \"dfpSettings\": {\n      \"dfpNetworkCode\": \"\",\n      \"dfpNetworkName\": \"\",\n      \"programmaticPlacementAccepted\": false,\n      \"pubPaidPlacementAccepted\": false,\n      \"publisherPortalOnly\": false\n    },\n    \"instreamVideoPlacementAccepted\": false,\n    \"interstitialPlacementAccepted\": false\n  },\n  \"url\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/directorySites"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"id\": \"\",\n  \"idDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"inpageTagFormats\": [],\n  \"interstitialTagFormats\": [],\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"settings\": {\n    \"activeViewOptOut\": false,\n    \"dfpSettings\": {\n      \"dfpNetworkCode\": \"\",\n      \"dfpNetworkName\": \"\",\n      \"programmaticPlacementAccepted\": false,\n      \"pubPaidPlacementAccepted\": false,\n      \"publisherPortalOnly\": false\n    },\n    \"instreamVideoPlacementAccepted\": false,\n    \"interstitialPlacementAccepted\": false\n  },\n  \"url\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"id\": \"\",\n  \"idDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"inpageTagFormats\": [],\n  \"interstitialTagFormats\": [],\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"settings\": {\n    \"activeViewOptOut\": false,\n    \"dfpSettings\": {\n      \"dfpNetworkCode\": \"\",\n      \"dfpNetworkName\": \"\",\n      \"programmaticPlacementAccepted\": false,\n      \"pubPaidPlacementAccepted\": false,\n      \"publisherPortalOnly\": false\n    },\n    \"instreamVideoPlacementAccepted\": false,\n    \"interstitialPlacementAccepted\": false\n  },\n  \"url\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/directorySites")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/userprofiles/:profileId/directorySites")
  .header("content-type", "application/json")
  .body("{\n  \"id\": \"\",\n  \"idDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"inpageTagFormats\": [],\n  \"interstitialTagFormats\": [],\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"settings\": {\n    \"activeViewOptOut\": false,\n    \"dfpSettings\": {\n      \"dfpNetworkCode\": \"\",\n      \"dfpNetworkName\": \"\",\n      \"programmaticPlacementAccepted\": false,\n      \"pubPaidPlacementAccepted\": false,\n      \"publisherPortalOnly\": false\n    },\n    \"instreamVideoPlacementAccepted\": false,\n    \"interstitialPlacementAccepted\": false\n  },\n  \"url\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  id: '',
  idDimensionValue: {
    dimensionName: '',
    etag: '',
    id: '',
    kind: '',
    matchType: '',
    value: ''
  },
  inpageTagFormats: [],
  interstitialTagFormats: [],
  kind: '',
  name: '',
  settings: {
    activeViewOptOut: false,
    dfpSettings: {
      dfpNetworkCode: '',
      dfpNetworkName: '',
      programmaticPlacementAccepted: false,
      pubPaidPlacementAccepted: false,
      publisherPortalOnly: false
    },
    instreamVideoPlacementAccepted: false,
    interstitialPlacementAccepted: false
  },
  url: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/userprofiles/:profileId/directorySites');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/userprofiles/:profileId/directorySites',
  headers: {'content-type': 'application/json'},
  data: {
    id: '',
    idDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    inpageTagFormats: [],
    interstitialTagFormats: [],
    kind: '',
    name: '',
    settings: {
      activeViewOptOut: false,
      dfpSettings: {
        dfpNetworkCode: '',
        dfpNetworkName: '',
        programmaticPlacementAccepted: false,
        pubPaidPlacementAccepted: false,
        publisherPortalOnly: false
      },
      instreamVideoPlacementAccepted: false,
      interstitialPlacementAccepted: false
    },
    url: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/directorySites';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","idDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"inpageTagFormats":[],"interstitialTagFormats":[],"kind":"","name":"","settings":{"activeViewOptOut":false,"dfpSettings":{"dfpNetworkCode":"","dfpNetworkName":"","programmaticPlacementAccepted":false,"pubPaidPlacementAccepted":false,"publisherPortalOnly":false},"instreamVideoPlacementAccepted":false,"interstitialPlacementAccepted":false},"url":""}'
};

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}}/userprofiles/:profileId/directorySites',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "id": "",\n  "idDimensionValue": {\n    "dimensionName": "",\n    "etag": "",\n    "id": "",\n    "kind": "",\n    "matchType": "",\n    "value": ""\n  },\n  "inpageTagFormats": [],\n  "interstitialTagFormats": [],\n  "kind": "",\n  "name": "",\n  "settings": {\n    "activeViewOptOut": false,\n    "dfpSettings": {\n      "dfpNetworkCode": "",\n      "dfpNetworkName": "",\n      "programmaticPlacementAccepted": false,\n      "pubPaidPlacementAccepted": false,\n      "publisherPortalOnly": false\n    },\n    "instreamVideoPlacementAccepted": false,\n    "interstitialPlacementAccepted": false\n  },\n  "url": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"id\": \"\",\n  \"idDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"inpageTagFormats\": [],\n  \"interstitialTagFormats\": [],\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"settings\": {\n    \"activeViewOptOut\": false,\n    \"dfpSettings\": {\n      \"dfpNetworkCode\": \"\",\n      \"dfpNetworkName\": \"\",\n      \"programmaticPlacementAccepted\": false,\n      \"pubPaidPlacementAccepted\": false,\n      \"publisherPortalOnly\": false\n    },\n    \"instreamVideoPlacementAccepted\": false,\n    \"interstitialPlacementAccepted\": false\n  },\n  \"url\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/directorySites")
  .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/userprofiles/:profileId/directorySites',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  id: '',
  idDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
  inpageTagFormats: [],
  interstitialTagFormats: [],
  kind: '',
  name: '',
  settings: {
    activeViewOptOut: false,
    dfpSettings: {
      dfpNetworkCode: '',
      dfpNetworkName: '',
      programmaticPlacementAccepted: false,
      pubPaidPlacementAccepted: false,
      publisherPortalOnly: false
    },
    instreamVideoPlacementAccepted: false,
    interstitialPlacementAccepted: false
  },
  url: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/userprofiles/:profileId/directorySites',
  headers: {'content-type': 'application/json'},
  body: {
    id: '',
    idDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    inpageTagFormats: [],
    interstitialTagFormats: [],
    kind: '',
    name: '',
    settings: {
      activeViewOptOut: false,
      dfpSettings: {
        dfpNetworkCode: '',
        dfpNetworkName: '',
        programmaticPlacementAccepted: false,
        pubPaidPlacementAccepted: false,
        publisherPortalOnly: false
      },
      instreamVideoPlacementAccepted: false,
      interstitialPlacementAccepted: false
    },
    url: ''
  },
  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}}/userprofiles/:profileId/directorySites');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  id: '',
  idDimensionValue: {
    dimensionName: '',
    etag: '',
    id: '',
    kind: '',
    matchType: '',
    value: ''
  },
  inpageTagFormats: [],
  interstitialTagFormats: [],
  kind: '',
  name: '',
  settings: {
    activeViewOptOut: false,
    dfpSettings: {
      dfpNetworkCode: '',
      dfpNetworkName: '',
      programmaticPlacementAccepted: false,
      pubPaidPlacementAccepted: false,
      publisherPortalOnly: false
    },
    instreamVideoPlacementAccepted: false,
    interstitialPlacementAccepted: false
  },
  url: ''
});

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}}/userprofiles/:profileId/directorySites',
  headers: {'content-type': 'application/json'},
  data: {
    id: '',
    idDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    inpageTagFormats: [],
    interstitialTagFormats: [],
    kind: '',
    name: '',
    settings: {
      activeViewOptOut: false,
      dfpSettings: {
        dfpNetworkCode: '',
        dfpNetworkName: '',
        programmaticPlacementAccepted: false,
        pubPaidPlacementAccepted: false,
        publisherPortalOnly: false
      },
      instreamVideoPlacementAccepted: false,
      interstitialPlacementAccepted: false
    },
    url: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/directorySites';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"id":"","idDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"inpageTagFormats":[],"interstitialTagFormats":[],"kind":"","name":"","settings":{"activeViewOptOut":false,"dfpSettings":{"dfpNetworkCode":"","dfpNetworkName":"","programmaticPlacementAccepted":false,"pubPaidPlacementAccepted":false,"publisherPortalOnly":false},"instreamVideoPlacementAccepted":false,"interstitialPlacementAccepted":false},"url":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"id": @"",
                              @"idDimensionValue": @{ @"dimensionName": @"", @"etag": @"", @"id": @"", @"kind": @"", @"matchType": @"", @"value": @"" },
                              @"inpageTagFormats": @[  ],
                              @"interstitialTagFormats": @[  ],
                              @"kind": @"",
                              @"name": @"",
                              @"settings": @{ @"activeViewOptOut": @NO, @"dfpSettings": @{ @"dfpNetworkCode": @"", @"dfpNetworkName": @"", @"programmaticPlacementAccepted": @NO, @"pubPaidPlacementAccepted": @NO, @"publisherPortalOnly": @NO }, @"instreamVideoPlacementAccepted": @NO, @"interstitialPlacementAccepted": @NO },
                              @"url": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/userprofiles/:profileId/directorySites"]
                                                       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}}/userprofiles/:profileId/directorySites" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"id\": \"\",\n  \"idDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"inpageTagFormats\": [],\n  \"interstitialTagFormats\": [],\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"settings\": {\n    \"activeViewOptOut\": false,\n    \"dfpSettings\": {\n      \"dfpNetworkCode\": \"\",\n      \"dfpNetworkName\": \"\",\n      \"programmaticPlacementAccepted\": false,\n      \"pubPaidPlacementAccepted\": false,\n      \"publisherPortalOnly\": false\n    },\n    \"instreamVideoPlacementAccepted\": false,\n    \"interstitialPlacementAccepted\": false\n  },\n  \"url\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/directorySites",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'id' => '',
    'idDimensionValue' => [
        'dimensionName' => '',
        'etag' => '',
        'id' => '',
        'kind' => '',
        'matchType' => '',
        'value' => ''
    ],
    'inpageTagFormats' => [
        
    ],
    'interstitialTagFormats' => [
        
    ],
    'kind' => '',
    'name' => '',
    'settings' => [
        'activeViewOptOut' => null,
        'dfpSettings' => [
                'dfpNetworkCode' => '',
                'dfpNetworkName' => '',
                'programmaticPlacementAccepted' => null,
                'pubPaidPlacementAccepted' => null,
                'publisherPortalOnly' => null
        ],
        'instreamVideoPlacementAccepted' => null,
        'interstitialPlacementAccepted' => null
    ],
    'url' => ''
  ]),
  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}}/userprofiles/:profileId/directorySites', [
  'body' => '{
  "id": "",
  "idDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "inpageTagFormats": [],
  "interstitialTagFormats": [],
  "kind": "",
  "name": "",
  "settings": {
    "activeViewOptOut": false,
    "dfpSettings": {
      "dfpNetworkCode": "",
      "dfpNetworkName": "",
      "programmaticPlacementAccepted": false,
      "pubPaidPlacementAccepted": false,
      "publisherPortalOnly": false
    },
    "instreamVideoPlacementAccepted": false,
    "interstitialPlacementAccepted": false
  },
  "url": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/directorySites');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'id' => '',
  'idDimensionValue' => [
    'dimensionName' => '',
    'etag' => '',
    'id' => '',
    'kind' => '',
    'matchType' => '',
    'value' => ''
  ],
  'inpageTagFormats' => [
    
  ],
  'interstitialTagFormats' => [
    
  ],
  'kind' => '',
  'name' => '',
  'settings' => [
    'activeViewOptOut' => null,
    'dfpSettings' => [
        'dfpNetworkCode' => '',
        'dfpNetworkName' => '',
        'programmaticPlacementAccepted' => null,
        'pubPaidPlacementAccepted' => null,
        'publisherPortalOnly' => null
    ],
    'instreamVideoPlacementAccepted' => null,
    'interstitialPlacementAccepted' => null
  ],
  'url' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'id' => '',
  'idDimensionValue' => [
    'dimensionName' => '',
    'etag' => '',
    'id' => '',
    'kind' => '',
    'matchType' => '',
    'value' => ''
  ],
  'inpageTagFormats' => [
    
  ],
  'interstitialTagFormats' => [
    
  ],
  'kind' => '',
  'name' => '',
  'settings' => [
    'activeViewOptOut' => null,
    'dfpSettings' => [
        'dfpNetworkCode' => '',
        'dfpNetworkName' => '',
        'programmaticPlacementAccepted' => null,
        'pubPaidPlacementAccepted' => null,
        'publisherPortalOnly' => null
    ],
    'instreamVideoPlacementAccepted' => null,
    'interstitialPlacementAccepted' => null
  ],
  'url' => ''
]));
$request->setRequestUrl('{{baseUrl}}/userprofiles/:profileId/directorySites');
$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}}/userprofiles/:profileId/directorySites' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "idDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "inpageTagFormats": [],
  "interstitialTagFormats": [],
  "kind": "",
  "name": "",
  "settings": {
    "activeViewOptOut": false,
    "dfpSettings": {
      "dfpNetworkCode": "",
      "dfpNetworkName": "",
      "programmaticPlacementAccepted": false,
      "pubPaidPlacementAccepted": false,
      "publisherPortalOnly": false
    },
    "instreamVideoPlacementAccepted": false,
    "interstitialPlacementAccepted": false
  },
  "url": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/directorySites' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "id": "",
  "idDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "inpageTagFormats": [],
  "interstitialTagFormats": [],
  "kind": "",
  "name": "",
  "settings": {
    "activeViewOptOut": false,
    "dfpSettings": {
      "dfpNetworkCode": "",
      "dfpNetworkName": "",
      "programmaticPlacementAccepted": false,
      "pubPaidPlacementAccepted": false,
      "publisherPortalOnly": false
    },
    "instreamVideoPlacementAccepted": false,
    "interstitialPlacementAccepted": false
  },
  "url": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"id\": \"\",\n  \"idDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"inpageTagFormats\": [],\n  \"interstitialTagFormats\": [],\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"settings\": {\n    \"activeViewOptOut\": false,\n    \"dfpSettings\": {\n      \"dfpNetworkCode\": \"\",\n      \"dfpNetworkName\": \"\",\n      \"programmaticPlacementAccepted\": false,\n      \"pubPaidPlacementAccepted\": false,\n      \"publisherPortalOnly\": false\n    },\n    \"instreamVideoPlacementAccepted\": false,\n    \"interstitialPlacementAccepted\": false\n  },\n  \"url\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/userprofiles/:profileId/directorySites", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/directorySites"

payload = {
    "id": "",
    "idDimensionValue": {
        "dimensionName": "",
        "etag": "",
        "id": "",
        "kind": "",
        "matchType": "",
        "value": ""
    },
    "inpageTagFormats": [],
    "interstitialTagFormats": [],
    "kind": "",
    "name": "",
    "settings": {
        "activeViewOptOut": False,
        "dfpSettings": {
            "dfpNetworkCode": "",
            "dfpNetworkName": "",
            "programmaticPlacementAccepted": False,
            "pubPaidPlacementAccepted": False,
            "publisherPortalOnly": False
        },
        "instreamVideoPlacementAccepted": False,
        "interstitialPlacementAccepted": False
    },
    "url": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/directorySites"

payload <- "{\n  \"id\": \"\",\n  \"idDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"inpageTagFormats\": [],\n  \"interstitialTagFormats\": [],\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"settings\": {\n    \"activeViewOptOut\": false,\n    \"dfpSettings\": {\n      \"dfpNetworkCode\": \"\",\n      \"dfpNetworkName\": \"\",\n      \"programmaticPlacementAccepted\": false,\n      \"pubPaidPlacementAccepted\": false,\n      \"publisherPortalOnly\": false\n    },\n    \"instreamVideoPlacementAccepted\": false,\n    \"interstitialPlacementAccepted\": false\n  },\n  \"url\": \"\"\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}}/userprofiles/:profileId/directorySites")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"id\": \"\",\n  \"idDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"inpageTagFormats\": [],\n  \"interstitialTagFormats\": [],\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"settings\": {\n    \"activeViewOptOut\": false,\n    \"dfpSettings\": {\n      \"dfpNetworkCode\": \"\",\n      \"dfpNetworkName\": \"\",\n      \"programmaticPlacementAccepted\": false,\n      \"pubPaidPlacementAccepted\": false,\n      \"publisherPortalOnly\": false\n    },\n    \"instreamVideoPlacementAccepted\": false,\n    \"interstitialPlacementAccepted\": false\n  },\n  \"url\": \"\"\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/userprofiles/:profileId/directorySites') do |req|
  req.body = "{\n  \"id\": \"\",\n  \"idDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"inpageTagFormats\": [],\n  \"interstitialTagFormats\": [],\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"settings\": {\n    \"activeViewOptOut\": false,\n    \"dfpSettings\": {\n      \"dfpNetworkCode\": \"\",\n      \"dfpNetworkName\": \"\",\n      \"programmaticPlacementAccepted\": false,\n      \"pubPaidPlacementAccepted\": false,\n      \"publisherPortalOnly\": false\n    },\n    \"instreamVideoPlacementAccepted\": false,\n    \"interstitialPlacementAccepted\": false\n  },\n  \"url\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/directorySites";

    let payload = json!({
        "id": "",
        "idDimensionValue": json!({
            "dimensionName": "",
            "etag": "",
            "id": "",
            "kind": "",
            "matchType": "",
            "value": ""
        }),
        "inpageTagFormats": (),
        "interstitialTagFormats": (),
        "kind": "",
        "name": "",
        "settings": json!({
            "activeViewOptOut": false,
            "dfpSettings": json!({
                "dfpNetworkCode": "",
                "dfpNetworkName": "",
                "programmaticPlacementAccepted": false,
                "pubPaidPlacementAccepted": false,
                "publisherPortalOnly": false
            }),
            "instreamVideoPlacementAccepted": false,
            "interstitialPlacementAccepted": false
        }),
        "url": ""
    });

    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}}/userprofiles/:profileId/directorySites \
  --header 'content-type: application/json' \
  --data '{
  "id": "",
  "idDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "inpageTagFormats": [],
  "interstitialTagFormats": [],
  "kind": "",
  "name": "",
  "settings": {
    "activeViewOptOut": false,
    "dfpSettings": {
      "dfpNetworkCode": "",
      "dfpNetworkName": "",
      "programmaticPlacementAccepted": false,
      "pubPaidPlacementAccepted": false,
      "publisherPortalOnly": false
    },
    "instreamVideoPlacementAccepted": false,
    "interstitialPlacementAccepted": false
  },
  "url": ""
}'
echo '{
  "id": "",
  "idDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "inpageTagFormats": [],
  "interstitialTagFormats": [],
  "kind": "",
  "name": "",
  "settings": {
    "activeViewOptOut": false,
    "dfpSettings": {
      "dfpNetworkCode": "",
      "dfpNetworkName": "",
      "programmaticPlacementAccepted": false,
      "pubPaidPlacementAccepted": false,
      "publisherPortalOnly": false
    },
    "instreamVideoPlacementAccepted": false,
    "interstitialPlacementAccepted": false
  },
  "url": ""
}' |  \
  http POST {{baseUrl}}/userprofiles/:profileId/directorySites \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "id": "",\n  "idDimensionValue": {\n    "dimensionName": "",\n    "etag": "",\n    "id": "",\n    "kind": "",\n    "matchType": "",\n    "value": ""\n  },\n  "inpageTagFormats": [],\n  "interstitialTagFormats": [],\n  "kind": "",\n  "name": "",\n  "settings": {\n    "activeViewOptOut": false,\n    "dfpSettings": {\n      "dfpNetworkCode": "",\n      "dfpNetworkName": "",\n      "programmaticPlacementAccepted": false,\n      "pubPaidPlacementAccepted": false,\n      "publisherPortalOnly": false\n    },\n    "instreamVideoPlacementAccepted": false,\n    "interstitialPlacementAccepted": false\n  },\n  "url": ""\n}' \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/directorySites
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "id": "",
  "idDimensionValue": [
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  ],
  "inpageTagFormats": [],
  "interstitialTagFormats": [],
  "kind": "",
  "name": "",
  "settings": [
    "activeViewOptOut": false,
    "dfpSettings": [
      "dfpNetworkCode": "",
      "dfpNetworkName": "",
      "programmaticPlacementAccepted": false,
      "pubPaidPlacementAccepted": false,
      "publisherPortalOnly": false
    ],
    "instreamVideoPlacementAccepted": false,
    "interstitialPlacementAccepted": false
  ],
  "url": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/directorySites")! 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 dfareporting.directorySites.list
{{baseUrl}}/userprofiles/:profileId/directorySites
QUERY PARAMS

profileId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/directorySites");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/directorySites")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/directorySites"

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}}/userprofiles/:profileId/directorySites"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/directorySites");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/directorySites"

	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/userprofiles/:profileId/directorySites HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/directorySites")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/directorySites"))
    .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}}/userprofiles/:profileId/directorySites")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/directorySites")
  .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}}/userprofiles/:profileId/directorySites');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/directorySites'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/directorySites';
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}}/userprofiles/:profileId/directorySites',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/directorySites")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/directorySites',
  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}}/userprofiles/:profileId/directorySites'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/directorySites');

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}}/userprofiles/:profileId/directorySites'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/directorySites';
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}}/userprofiles/:profileId/directorySites"]
                                                       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}}/userprofiles/:profileId/directorySites" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/directorySites",
  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}}/userprofiles/:profileId/directorySites');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/directorySites');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/directorySites');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/directorySites' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/directorySites' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/directorySites")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/directorySites"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/directorySites"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/directorySites")

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/userprofiles/:profileId/directorySites') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/directorySites";

    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}}/userprofiles/:profileId/directorySites
http GET {{baseUrl}}/userprofiles/:profileId/directorySites
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/directorySites
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/directorySites")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
DELETE dfareporting.dynamicTargetingKeys.delete
{{baseUrl}}/userprofiles/:profileId/dynamicTargetingKeys/:objectId
QUERY PARAMS

name
objectType
profileId
objectId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/dynamicTargetingKeys/:objectId?name=&objectType=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/userprofiles/:profileId/dynamicTargetingKeys/:objectId" {:query-params {:name ""
                                                                                                                    :objectType ""}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/dynamicTargetingKeys/:objectId?name=&objectType="

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}}/userprofiles/:profileId/dynamicTargetingKeys/:objectId?name=&objectType="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/dynamicTargetingKeys/:objectId?name=&objectType=");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/dynamicTargetingKeys/:objectId?name=&objectType="

	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/userprofiles/:profileId/dynamicTargetingKeys/:objectId?name=&objectType= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/userprofiles/:profileId/dynamicTargetingKeys/:objectId?name=&objectType=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/dynamicTargetingKeys/:objectId?name=&objectType="))
    .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}}/userprofiles/:profileId/dynamicTargetingKeys/:objectId?name=&objectType=")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/userprofiles/:profileId/dynamicTargetingKeys/:objectId?name=&objectType=")
  .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}}/userprofiles/:profileId/dynamicTargetingKeys/:objectId?name=&objectType=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/userprofiles/:profileId/dynamicTargetingKeys/:objectId',
  params: {name: '', objectType: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/dynamicTargetingKeys/:objectId?name=&objectType=';
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}}/userprofiles/:profileId/dynamicTargetingKeys/:objectId?name=&objectType=',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/dynamicTargetingKeys/:objectId?name=&objectType=")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/dynamicTargetingKeys/:objectId?name=&objectType=',
  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}}/userprofiles/:profileId/dynamicTargetingKeys/:objectId',
  qs: {name: '', objectType: ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/userprofiles/:profileId/dynamicTargetingKeys/:objectId');

req.query({
  name: '',
  objectType: ''
});

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}}/userprofiles/:profileId/dynamicTargetingKeys/:objectId',
  params: {name: '', objectType: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/dynamicTargetingKeys/:objectId?name=&objectType=';
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}}/userprofiles/:profileId/dynamicTargetingKeys/:objectId?name=&objectType="]
                                                       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}}/userprofiles/:profileId/dynamicTargetingKeys/:objectId?name=&objectType=" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/dynamicTargetingKeys/:objectId?name=&objectType=",
  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}}/userprofiles/:profileId/dynamicTargetingKeys/:objectId?name=&objectType=');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/dynamicTargetingKeys/:objectId');
$request->setMethod(HTTP_METH_DELETE);

$request->setQueryData([
  'name' => '',
  'objectType' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/dynamicTargetingKeys/:objectId');
$request->setRequestMethod('DELETE');
$request->setQuery(new http\QueryString([
  'name' => '',
  'objectType' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/dynamicTargetingKeys/:objectId?name=&objectType=' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/dynamicTargetingKeys/:objectId?name=&objectType=' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/userprofiles/:profileId/dynamicTargetingKeys/:objectId?name=&objectType=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/dynamicTargetingKeys/:objectId"

querystring = {"name":"","objectType":""}

response = requests.delete(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/dynamicTargetingKeys/:objectId"

queryString <- list(
  name = "",
  objectType = ""
)

response <- VERB("DELETE", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/dynamicTargetingKeys/:objectId?name=&objectType=")

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/userprofiles/:profileId/dynamicTargetingKeys/:objectId') do |req|
  req.params['name'] = ''
  req.params['objectType'] = ''
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/dynamicTargetingKeys/:objectId";

    let querystring = [
        ("name", ""),
        ("objectType", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request DELETE \
  --url '{{baseUrl}}/userprofiles/:profileId/dynamicTargetingKeys/:objectId?name=&objectType='
http DELETE '{{baseUrl}}/userprofiles/:profileId/dynamicTargetingKeys/:objectId?name=&objectType='
wget --quiet \
  --method DELETE \
  --output-document \
  - '{{baseUrl}}/userprofiles/:profileId/dynamicTargetingKeys/:objectId?name=&objectType='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/dynamicTargetingKeys/:objectId?name=&objectType=")! 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 dfareporting.dynamicTargetingKeys.insert
{{baseUrl}}/userprofiles/:profileId/dynamicTargetingKeys
QUERY PARAMS

profileId
BODY json

{
  "kind": "",
  "name": "",
  "objectId": "",
  "objectType": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/dynamicTargetingKeys");

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  \"kind\": \"\",\n  \"name\": \"\",\n  \"objectId\": \"\",\n  \"objectType\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/userprofiles/:profileId/dynamicTargetingKeys" {:content-type :json
                                                                                         :form-params {:kind ""
                                                                                                       :name ""
                                                                                                       :objectId ""
                                                                                                       :objectType ""}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/dynamicTargetingKeys"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"objectId\": \"\",\n  \"objectType\": \"\"\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}}/userprofiles/:profileId/dynamicTargetingKeys"),
    Content = new StringContent("{\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"objectId\": \"\",\n  \"objectType\": \"\"\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}}/userprofiles/:profileId/dynamicTargetingKeys");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"objectId\": \"\",\n  \"objectType\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/dynamicTargetingKeys"

	payload := strings.NewReader("{\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"objectId\": \"\",\n  \"objectType\": \"\"\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/userprofiles/:profileId/dynamicTargetingKeys HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 68

{
  "kind": "",
  "name": "",
  "objectId": "",
  "objectType": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/userprofiles/:profileId/dynamicTargetingKeys")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"objectId\": \"\",\n  \"objectType\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/dynamicTargetingKeys"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"objectId\": \"\",\n  \"objectType\": \"\"\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  \"kind\": \"\",\n  \"name\": \"\",\n  \"objectId\": \"\",\n  \"objectType\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/dynamicTargetingKeys")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/userprofiles/:profileId/dynamicTargetingKeys")
  .header("content-type", "application/json")
  .body("{\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"objectId\": \"\",\n  \"objectType\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  kind: '',
  name: '',
  objectId: '',
  objectType: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/userprofiles/:profileId/dynamicTargetingKeys');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/userprofiles/:profileId/dynamicTargetingKeys',
  headers: {'content-type': 'application/json'},
  data: {kind: '', name: '', objectId: '', objectType: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/dynamicTargetingKeys';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"kind":"","name":"","objectId":"","objectType":""}'
};

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}}/userprofiles/:profileId/dynamicTargetingKeys',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "kind": "",\n  "name": "",\n  "objectId": "",\n  "objectType": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"objectId\": \"\",\n  \"objectType\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/dynamicTargetingKeys")
  .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/userprofiles/:profileId/dynamicTargetingKeys',
  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({kind: '', name: '', objectId: '', objectType: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/userprofiles/:profileId/dynamicTargetingKeys',
  headers: {'content-type': 'application/json'},
  body: {kind: '', name: '', objectId: '', objectType: ''},
  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}}/userprofiles/:profileId/dynamicTargetingKeys');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  kind: '',
  name: '',
  objectId: '',
  objectType: ''
});

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}}/userprofiles/:profileId/dynamicTargetingKeys',
  headers: {'content-type': 'application/json'},
  data: {kind: '', name: '', objectId: '', objectType: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/dynamicTargetingKeys';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"kind":"","name":"","objectId":"","objectType":""}'
};

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 = @{ @"kind": @"",
                              @"name": @"",
                              @"objectId": @"",
                              @"objectType": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/userprofiles/:profileId/dynamicTargetingKeys"]
                                                       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}}/userprofiles/:profileId/dynamicTargetingKeys" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"objectId\": \"\",\n  \"objectType\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/dynamicTargetingKeys",
  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([
    'kind' => '',
    'name' => '',
    'objectId' => '',
    'objectType' => ''
  ]),
  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}}/userprofiles/:profileId/dynamicTargetingKeys', [
  'body' => '{
  "kind": "",
  "name": "",
  "objectId": "",
  "objectType": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/dynamicTargetingKeys');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'kind' => '',
  'name' => '',
  'objectId' => '',
  'objectType' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'kind' => '',
  'name' => '',
  'objectId' => '',
  'objectType' => ''
]));
$request->setRequestUrl('{{baseUrl}}/userprofiles/:profileId/dynamicTargetingKeys');
$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}}/userprofiles/:profileId/dynamicTargetingKeys' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "kind": "",
  "name": "",
  "objectId": "",
  "objectType": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/dynamicTargetingKeys' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "kind": "",
  "name": "",
  "objectId": "",
  "objectType": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"objectId\": \"\",\n  \"objectType\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/userprofiles/:profileId/dynamicTargetingKeys", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/dynamicTargetingKeys"

payload = {
    "kind": "",
    "name": "",
    "objectId": "",
    "objectType": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/dynamicTargetingKeys"

payload <- "{\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"objectId\": \"\",\n  \"objectType\": \"\"\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}}/userprofiles/:profileId/dynamicTargetingKeys")

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  \"kind\": \"\",\n  \"name\": \"\",\n  \"objectId\": \"\",\n  \"objectType\": \"\"\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/userprofiles/:profileId/dynamicTargetingKeys') do |req|
  req.body = "{\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"objectId\": \"\",\n  \"objectType\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/dynamicTargetingKeys";

    let payload = json!({
        "kind": "",
        "name": "",
        "objectId": "",
        "objectType": ""
    });

    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}}/userprofiles/:profileId/dynamicTargetingKeys \
  --header 'content-type: application/json' \
  --data '{
  "kind": "",
  "name": "",
  "objectId": "",
  "objectType": ""
}'
echo '{
  "kind": "",
  "name": "",
  "objectId": "",
  "objectType": ""
}' |  \
  http POST {{baseUrl}}/userprofiles/:profileId/dynamicTargetingKeys \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "kind": "",\n  "name": "",\n  "objectId": "",\n  "objectType": ""\n}' \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/dynamicTargetingKeys
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "kind": "",
  "name": "",
  "objectId": "",
  "objectType": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/dynamicTargetingKeys")! 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 dfareporting.dynamicTargetingKeys.list
{{baseUrl}}/userprofiles/:profileId/dynamicTargetingKeys
QUERY PARAMS

profileId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/dynamicTargetingKeys");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/dynamicTargetingKeys")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/dynamicTargetingKeys"

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}}/userprofiles/:profileId/dynamicTargetingKeys"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/dynamicTargetingKeys");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/dynamicTargetingKeys"

	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/userprofiles/:profileId/dynamicTargetingKeys HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/dynamicTargetingKeys")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/dynamicTargetingKeys"))
    .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}}/userprofiles/:profileId/dynamicTargetingKeys")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/dynamicTargetingKeys")
  .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}}/userprofiles/:profileId/dynamicTargetingKeys');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/dynamicTargetingKeys'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/dynamicTargetingKeys';
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}}/userprofiles/:profileId/dynamicTargetingKeys',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/dynamicTargetingKeys")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/dynamicTargetingKeys',
  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}}/userprofiles/:profileId/dynamicTargetingKeys'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/dynamicTargetingKeys');

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}}/userprofiles/:profileId/dynamicTargetingKeys'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/dynamicTargetingKeys';
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}}/userprofiles/:profileId/dynamicTargetingKeys"]
                                                       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}}/userprofiles/:profileId/dynamicTargetingKeys" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/dynamicTargetingKeys",
  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}}/userprofiles/:profileId/dynamicTargetingKeys');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/dynamicTargetingKeys');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/dynamicTargetingKeys');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/dynamicTargetingKeys' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/dynamicTargetingKeys' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/dynamicTargetingKeys")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/dynamicTargetingKeys"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/dynamicTargetingKeys"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/dynamicTargetingKeys")

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/userprofiles/:profileId/dynamicTargetingKeys') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/dynamicTargetingKeys";

    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}}/userprofiles/:profileId/dynamicTargetingKeys
http GET {{baseUrl}}/userprofiles/:profileId/dynamicTargetingKeys
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/dynamicTargetingKeys
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/dynamicTargetingKeys")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
DELETE dfareporting.eventTags.delete
{{baseUrl}}/userprofiles/:profileId/eventTags/:id
QUERY PARAMS

profileId
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/eventTags/:id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/userprofiles/:profileId/eventTags/:id")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/eventTags/:id"

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}}/userprofiles/:profileId/eventTags/:id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/eventTags/:id");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/eventTags/:id"

	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/userprofiles/:profileId/eventTags/:id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/userprofiles/:profileId/eventTags/:id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/eventTags/:id"))
    .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}}/userprofiles/:profileId/eventTags/:id")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/userprofiles/:profileId/eventTags/:id")
  .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}}/userprofiles/:profileId/eventTags/:id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/userprofiles/:profileId/eventTags/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/eventTags/:id';
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}}/userprofiles/:profileId/eventTags/:id',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/eventTags/:id")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/eventTags/:id',
  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}}/userprofiles/:profileId/eventTags/:id'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/userprofiles/:profileId/eventTags/:id');

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}}/userprofiles/:profileId/eventTags/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/eventTags/:id';
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}}/userprofiles/:profileId/eventTags/:id"]
                                                       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}}/userprofiles/:profileId/eventTags/:id" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/eventTags/:id",
  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}}/userprofiles/:profileId/eventTags/:id');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/eventTags/:id');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/eventTags/:id');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/eventTags/:id' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/eventTags/:id' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/userprofiles/:profileId/eventTags/:id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/eventTags/:id"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/eventTags/:id"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/eventTags/:id")

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/userprofiles/:profileId/eventTags/:id') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/eventTags/:id";

    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}}/userprofiles/:profileId/eventTags/:id
http DELETE {{baseUrl}}/userprofiles/:profileId/eventTags/:id
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/eventTags/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/eventTags/:id")! 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 dfareporting.eventTags.get
{{baseUrl}}/userprofiles/:profileId/eventTags/:id
QUERY PARAMS

profileId
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/eventTags/:id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/eventTags/:id")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/eventTags/:id"

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}}/userprofiles/:profileId/eventTags/:id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/eventTags/:id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/eventTags/:id"

	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/userprofiles/:profileId/eventTags/:id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/eventTags/:id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/eventTags/:id"))
    .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}}/userprofiles/:profileId/eventTags/:id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/eventTags/:id")
  .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}}/userprofiles/:profileId/eventTags/:id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/eventTags/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/eventTags/:id';
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}}/userprofiles/:profileId/eventTags/:id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/eventTags/:id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/eventTags/:id',
  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}}/userprofiles/:profileId/eventTags/:id'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/eventTags/:id');

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}}/userprofiles/:profileId/eventTags/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/eventTags/:id';
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}}/userprofiles/:profileId/eventTags/:id"]
                                                       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}}/userprofiles/:profileId/eventTags/:id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/eventTags/:id",
  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}}/userprofiles/:profileId/eventTags/:id');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/eventTags/:id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/eventTags/:id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/eventTags/:id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/eventTags/:id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/eventTags/:id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/eventTags/:id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/eventTags/:id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/eventTags/:id")

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/userprofiles/:profileId/eventTags/:id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/eventTags/:id";

    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}}/userprofiles/:profileId/eventTags/:id
http GET {{baseUrl}}/userprofiles/:profileId/eventTags/:id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/eventTags/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/eventTags/:id")! 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 dfareporting.eventTags.insert
{{baseUrl}}/userprofiles/:profileId/eventTags
QUERY PARAMS

profileId
BODY json

{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "campaignId": "",
  "campaignIdDimensionValue": {},
  "enabledByDefault": false,
  "excludeFromAdxRequests": false,
  "id": "",
  "kind": "",
  "name": "",
  "siteFilterType": "",
  "siteIds": [],
  "sslCompliant": false,
  "status": "",
  "subaccountId": "",
  "type": "",
  "url": "",
  "urlEscapeLevels": 0
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/eventTags");

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  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"enabledByDefault\": false,\n  \"excludeFromAdxRequests\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteFilterType\": \"\",\n  \"siteIds\": [],\n  \"sslCompliant\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"type\": \"\",\n  \"url\": \"\",\n  \"urlEscapeLevels\": 0\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/userprofiles/:profileId/eventTags" {:content-type :json
                                                                              :form-params {:accountId ""
                                                                                            :advertiserId ""
                                                                                            :advertiserIdDimensionValue {:dimensionName ""
                                                                                                                         :etag ""
                                                                                                                         :id ""
                                                                                                                         :kind ""
                                                                                                                         :matchType ""
                                                                                                                         :value ""}
                                                                                            :campaignId ""
                                                                                            :campaignIdDimensionValue {}
                                                                                            :enabledByDefault false
                                                                                            :excludeFromAdxRequests false
                                                                                            :id ""
                                                                                            :kind ""
                                                                                            :name ""
                                                                                            :siteFilterType ""
                                                                                            :siteIds []
                                                                                            :sslCompliant false
                                                                                            :status ""
                                                                                            :subaccountId ""
                                                                                            :type ""
                                                                                            :url ""
                                                                                            :urlEscapeLevels 0}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/eventTags"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"enabledByDefault\": false,\n  \"excludeFromAdxRequests\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteFilterType\": \"\",\n  \"siteIds\": [],\n  \"sslCompliant\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"type\": \"\",\n  \"url\": \"\",\n  \"urlEscapeLevels\": 0\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}}/userprofiles/:profileId/eventTags"),
    Content = new StringContent("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"enabledByDefault\": false,\n  \"excludeFromAdxRequests\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteFilterType\": \"\",\n  \"siteIds\": [],\n  \"sslCompliant\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"type\": \"\",\n  \"url\": \"\",\n  \"urlEscapeLevels\": 0\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}}/userprofiles/:profileId/eventTags");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"enabledByDefault\": false,\n  \"excludeFromAdxRequests\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteFilterType\": \"\",\n  \"siteIds\": [],\n  \"sslCompliant\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"type\": \"\",\n  \"url\": \"\",\n  \"urlEscapeLevels\": 0\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/eventTags"

	payload := strings.NewReader("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"enabledByDefault\": false,\n  \"excludeFromAdxRequests\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteFilterType\": \"\",\n  \"siteIds\": [],\n  \"sslCompliant\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"type\": \"\",\n  \"url\": \"\",\n  \"urlEscapeLevels\": 0\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/userprofiles/:profileId/eventTags HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 503

{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "campaignId": "",
  "campaignIdDimensionValue": {},
  "enabledByDefault": false,
  "excludeFromAdxRequests": false,
  "id": "",
  "kind": "",
  "name": "",
  "siteFilterType": "",
  "siteIds": [],
  "sslCompliant": false,
  "status": "",
  "subaccountId": "",
  "type": "",
  "url": "",
  "urlEscapeLevels": 0
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/userprofiles/:profileId/eventTags")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"enabledByDefault\": false,\n  \"excludeFromAdxRequests\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteFilterType\": \"\",\n  \"siteIds\": [],\n  \"sslCompliant\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"type\": \"\",\n  \"url\": \"\",\n  \"urlEscapeLevels\": 0\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/eventTags"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"enabledByDefault\": false,\n  \"excludeFromAdxRequests\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteFilterType\": \"\",\n  \"siteIds\": [],\n  \"sslCompliant\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"type\": \"\",\n  \"url\": \"\",\n  \"urlEscapeLevels\": 0\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  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"enabledByDefault\": false,\n  \"excludeFromAdxRequests\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteFilterType\": \"\",\n  \"siteIds\": [],\n  \"sslCompliant\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"type\": \"\",\n  \"url\": \"\",\n  \"urlEscapeLevels\": 0\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/eventTags")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/userprofiles/:profileId/eventTags")
  .header("content-type", "application/json")
  .body("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"enabledByDefault\": false,\n  \"excludeFromAdxRequests\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteFilterType\": \"\",\n  \"siteIds\": [],\n  \"sslCompliant\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"type\": \"\",\n  \"url\": \"\",\n  \"urlEscapeLevels\": 0\n}")
  .asString();
const data = JSON.stringify({
  accountId: '',
  advertiserId: '',
  advertiserIdDimensionValue: {
    dimensionName: '',
    etag: '',
    id: '',
    kind: '',
    matchType: '',
    value: ''
  },
  campaignId: '',
  campaignIdDimensionValue: {},
  enabledByDefault: false,
  excludeFromAdxRequests: false,
  id: '',
  kind: '',
  name: '',
  siteFilterType: '',
  siteIds: [],
  sslCompliant: false,
  status: '',
  subaccountId: '',
  type: '',
  url: '',
  urlEscapeLevels: 0
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/userprofiles/:profileId/eventTags');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/userprofiles/:profileId/eventTags',
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    campaignId: '',
    campaignIdDimensionValue: {},
    enabledByDefault: false,
    excludeFromAdxRequests: false,
    id: '',
    kind: '',
    name: '',
    siteFilterType: '',
    siteIds: [],
    sslCompliant: false,
    status: '',
    subaccountId: '',
    type: '',
    url: '',
    urlEscapeLevels: 0
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/eventTags';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","advertiserId":"","advertiserIdDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"campaignId":"","campaignIdDimensionValue":{},"enabledByDefault":false,"excludeFromAdxRequests":false,"id":"","kind":"","name":"","siteFilterType":"","siteIds":[],"sslCompliant":false,"status":"","subaccountId":"","type":"","url":"","urlEscapeLevels":0}'
};

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}}/userprofiles/:profileId/eventTags',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "accountId": "",\n  "advertiserId": "",\n  "advertiserIdDimensionValue": {\n    "dimensionName": "",\n    "etag": "",\n    "id": "",\n    "kind": "",\n    "matchType": "",\n    "value": ""\n  },\n  "campaignId": "",\n  "campaignIdDimensionValue": {},\n  "enabledByDefault": false,\n  "excludeFromAdxRequests": false,\n  "id": "",\n  "kind": "",\n  "name": "",\n  "siteFilterType": "",\n  "siteIds": [],\n  "sslCompliant": false,\n  "status": "",\n  "subaccountId": "",\n  "type": "",\n  "url": "",\n  "urlEscapeLevels": 0\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"enabledByDefault\": false,\n  \"excludeFromAdxRequests\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteFilterType\": \"\",\n  \"siteIds\": [],\n  \"sslCompliant\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"type\": \"\",\n  \"url\": \"\",\n  \"urlEscapeLevels\": 0\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/eventTags")
  .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/userprofiles/:profileId/eventTags',
  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({
  accountId: '',
  advertiserId: '',
  advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
  campaignId: '',
  campaignIdDimensionValue: {},
  enabledByDefault: false,
  excludeFromAdxRequests: false,
  id: '',
  kind: '',
  name: '',
  siteFilterType: '',
  siteIds: [],
  sslCompliant: false,
  status: '',
  subaccountId: '',
  type: '',
  url: '',
  urlEscapeLevels: 0
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/userprofiles/:profileId/eventTags',
  headers: {'content-type': 'application/json'},
  body: {
    accountId: '',
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    campaignId: '',
    campaignIdDimensionValue: {},
    enabledByDefault: false,
    excludeFromAdxRequests: false,
    id: '',
    kind: '',
    name: '',
    siteFilterType: '',
    siteIds: [],
    sslCompliant: false,
    status: '',
    subaccountId: '',
    type: '',
    url: '',
    urlEscapeLevels: 0
  },
  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}}/userprofiles/:profileId/eventTags');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  accountId: '',
  advertiserId: '',
  advertiserIdDimensionValue: {
    dimensionName: '',
    etag: '',
    id: '',
    kind: '',
    matchType: '',
    value: ''
  },
  campaignId: '',
  campaignIdDimensionValue: {},
  enabledByDefault: false,
  excludeFromAdxRequests: false,
  id: '',
  kind: '',
  name: '',
  siteFilterType: '',
  siteIds: [],
  sslCompliant: false,
  status: '',
  subaccountId: '',
  type: '',
  url: '',
  urlEscapeLevels: 0
});

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}}/userprofiles/:profileId/eventTags',
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    campaignId: '',
    campaignIdDimensionValue: {},
    enabledByDefault: false,
    excludeFromAdxRequests: false,
    id: '',
    kind: '',
    name: '',
    siteFilterType: '',
    siteIds: [],
    sslCompliant: false,
    status: '',
    subaccountId: '',
    type: '',
    url: '',
    urlEscapeLevels: 0
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/eventTags';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","advertiserId":"","advertiserIdDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"campaignId":"","campaignIdDimensionValue":{},"enabledByDefault":false,"excludeFromAdxRequests":false,"id":"","kind":"","name":"","siteFilterType":"","siteIds":[],"sslCompliant":false,"status":"","subaccountId":"","type":"","url":"","urlEscapeLevels":0}'
};

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 = @{ @"accountId": @"",
                              @"advertiserId": @"",
                              @"advertiserIdDimensionValue": @{ @"dimensionName": @"", @"etag": @"", @"id": @"", @"kind": @"", @"matchType": @"", @"value": @"" },
                              @"campaignId": @"",
                              @"campaignIdDimensionValue": @{  },
                              @"enabledByDefault": @NO,
                              @"excludeFromAdxRequests": @NO,
                              @"id": @"",
                              @"kind": @"",
                              @"name": @"",
                              @"siteFilterType": @"",
                              @"siteIds": @[  ],
                              @"sslCompliant": @NO,
                              @"status": @"",
                              @"subaccountId": @"",
                              @"type": @"",
                              @"url": @"",
                              @"urlEscapeLevels": @0 };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/userprofiles/:profileId/eventTags"]
                                                       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}}/userprofiles/:profileId/eventTags" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"enabledByDefault\": false,\n  \"excludeFromAdxRequests\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteFilterType\": \"\",\n  \"siteIds\": [],\n  \"sslCompliant\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"type\": \"\",\n  \"url\": \"\",\n  \"urlEscapeLevels\": 0\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/eventTags",
  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([
    'accountId' => '',
    'advertiserId' => '',
    'advertiserIdDimensionValue' => [
        'dimensionName' => '',
        'etag' => '',
        'id' => '',
        'kind' => '',
        'matchType' => '',
        'value' => ''
    ],
    'campaignId' => '',
    'campaignIdDimensionValue' => [
        
    ],
    'enabledByDefault' => null,
    'excludeFromAdxRequests' => null,
    'id' => '',
    'kind' => '',
    'name' => '',
    'siteFilterType' => '',
    'siteIds' => [
        
    ],
    'sslCompliant' => null,
    'status' => '',
    'subaccountId' => '',
    'type' => '',
    'url' => '',
    'urlEscapeLevels' => 0
  ]),
  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}}/userprofiles/:profileId/eventTags', [
  'body' => '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "campaignId": "",
  "campaignIdDimensionValue": {},
  "enabledByDefault": false,
  "excludeFromAdxRequests": false,
  "id": "",
  "kind": "",
  "name": "",
  "siteFilterType": "",
  "siteIds": [],
  "sslCompliant": false,
  "status": "",
  "subaccountId": "",
  "type": "",
  "url": "",
  "urlEscapeLevels": 0
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/eventTags');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'accountId' => '',
  'advertiserId' => '',
  'advertiserIdDimensionValue' => [
    'dimensionName' => '',
    'etag' => '',
    'id' => '',
    'kind' => '',
    'matchType' => '',
    'value' => ''
  ],
  'campaignId' => '',
  'campaignIdDimensionValue' => [
    
  ],
  'enabledByDefault' => null,
  'excludeFromAdxRequests' => null,
  'id' => '',
  'kind' => '',
  'name' => '',
  'siteFilterType' => '',
  'siteIds' => [
    
  ],
  'sslCompliant' => null,
  'status' => '',
  'subaccountId' => '',
  'type' => '',
  'url' => '',
  'urlEscapeLevels' => 0
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'accountId' => '',
  'advertiserId' => '',
  'advertiserIdDimensionValue' => [
    'dimensionName' => '',
    'etag' => '',
    'id' => '',
    'kind' => '',
    'matchType' => '',
    'value' => ''
  ],
  'campaignId' => '',
  'campaignIdDimensionValue' => [
    
  ],
  'enabledByDefault' => null,
  'excludeFromAdxRequests' => null,
  'id' => '',
  'kind' => '',
  'name' => '',
  'siteFilterType' => '',
  'siteIds' => [
    
  ],
  'sslCompliant' => null,
  'status' => '',
  'subaccountId' => '',
  'type' => '',
  'url' => '',
  'urlEscapeLevels' => 0
]));
$request->setRequestUrl('{{baseUrl}}/userprofiles/:profileId/eventTags');
$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}}/userprofiles/:profileId/eventTags' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "campaignId": "",
  "campaignIdDimensionValue": {},
  "enabledByDefault": false,
  "excludeFromAdxRequests": false,
  "id": "",
  "kind": "",
  "name": "",
  "siteFilterType": "",
  "siteIds": [],
  "sslCompliant": false,
  "status": "",
  "subaccountId": "",
  "type": "",
  "url": "",
  "urlEscapeLevels": 0
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/eventTags' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "campaignId": "",
  "campaignIdDimensionValue": {},
  "enabledByDefault": false,
  "excludeFromAdxRequests": false,
  "id": "",
  "kind": "",
  "name": "",
  "siteFilterType": "",
  "siteIds": [],
  "sslCompliant": false,
  "status": "",
  "subaccountId": "",
  "type": "",
  "url": "",
  "urlEscapeLevels": 0
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"enabledByDefault\": false,\n  \"excludeFromAdxRequests\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteFilterType\": \"\",\n  \"siteIds\": [],\n  \"sslCompliant\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"type\": \"\",\n  \"url\": \"\",\n  \"urlEscapeLevels\": 0\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/userprofiles/:profileId/eventTags", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/eventTags"

payload = {
    "accountId": "",
    "advertiserId": "",
    "advertiserIdDimensionValue": {
        "dimensionName": "",
        "etag": "",
        "id": "",
        "kind": "",
        "matchType": "",
        "value": ""
    },
    "campaignId": "",
    "campaignIdDimensionValue": {},
    "enabledByDefault": False,
    "excludeFromAdxRequests": False,
    "id": "",
    "kind": "",
    "name": "",
    "siteFilterType": "",
    "siteIds": [],
    "sslCompliant": False,
    "status": "",
    "subaccountId": "",
    "type": "",
    "url": "",
    "urlEscapeLevels": 0
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/eventTags"

payload <- "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"enabledByDefault\": false,\n  \"excludeFromAdxRequests\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteFilterType\": \"\",\n  \"siteIds\": [],\n  \"sslCompliant\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"type\": \"\",\n  \"url\": \"\",\n  \"urlEscapeLevels\": 0\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}}/userprofiles/:profileId/eventTags")

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  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"enabledByDefault\": false,\n  \"excludeFromAdxRequests\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteFilterType\": \"\",\n  \"siteIds\": [],\n  \"sslCompliant\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"type\": \"\",\n  \"url\": \"\",\n  \"urlEscapeLevels\": 0\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/userprofiles/:profileId/eventTags') do |req|
  req.body = "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"enabledByDefault\": false,\n  \"excludeFromAdxRequests\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteFilterType\": \"\",\n  \"siteIds\": [],\n  \"sslCompliant\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"type\": \"\",\n  \"url\": \"\",\n  \"urlEscapeLevels\": 0\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/eventTags";

    let payload = json!({
        "accountId": "",
        "advertiserId": "",
        "advertiserIdDimensionValue": json!({
            "dimensionName": "",
            "etag": "",
            "id": "",
            "kind": "",
            "matchType": "",
            "value": ""
        }),
        "campaignId": "",
        "campaignIdDimensionValue": json!({}),
        "enabledByDefault": false,
        "excludeFromAdxRequests": false,
        "id": "",
        "kind": "",
        "name": "",
        "siteFilterType": "",
        "siteIds": (),
        "sslCompliant": false,
        "status": "",
        "subaccountId": "",
        "type": "",
        "url": "",
        "urlEscapeLevels": 0
    });

    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}}/userprofiles/:profileId/eventTags \
  --header 'content-type: application/json' \
  --data '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "campaignId": "",
  "campaignIdDimensionValue": {},
  "enabledByDefault": false,
  "excludeFromAdxRequests": false,
  "id": "",
  "kind": "",
  "name": "",
  "siteFilterType": "",
  "siteIds": [],
  "sslCompliant": false,
  "status": "",
  "subaccountId": "",
  "type": "",
  "url": "",
  "urlEscapeLevels": 0
}'
echo '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "campaignId": "",
  "campaignIdDimensionValue": {},
  "enabledByDefault": false,
  "excludeFromAdxRequests": false,
  "id": "",
  "kind": "",
  "name": "",
  "siteFilterType": "",
  "siteIds": [],
  "sslCompliant": false,
  "status": "",
  "subaccountId": "",
  "type": "",
  "url": "",
  "urlEscapeLevels": 0
}' |  \
  http POST {{baseUrl}}/userprofiles/:profileId/eventTags \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "accountId": "",\n  "advertiserId": "",\n  "advertiserIdDimensionValue": {\n    "dimensionName": "",\n    "etag": "",\n    "id": "",\n    "kind": "",\n    "matchType": "",\n    "value": ""\n  },\n  "campaignId": "",\n  "campaignIdDimensionValue": {},\n  "enabledByDefault": false,\n  "excludeFromAdxRequests": false,\n  "id": "",\n  "kind": "",\n  "name": "",\n  "siteFilterType": "",\n  "siteIds": [],\n  "sslCompliant": false,\n  "status": "",\n  "subaccountId": "",\n  "type": "",\n  "url": "",\n  "urlEscapeLevels": 0\n}' \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/eventTags
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": [
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  ],
  "campaignId": "",
  "campaignIdDimensionValue": [],
  "enabledByDefault": false,
  "excludeFromAdxRequests": false,
  "id": "",
  "kind": "",
  "name": "",
  "siteFilterType": "",
  "siteIds": [],
  "sslCompliant": false,
  "status": "",
  "subaccountId": "",
  "type": "",
  "url": "",
  "urlEscapeLevels": 0
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/eventTags")! 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 dfareporting.eventTags.list
{{baseUrl}}/userprofiles/:profileId/eventTags
QUERY PARAMS

profileId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/eventTags");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/eventTags")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/eventTags"

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}}/userprofiles/:profileId/eventTags"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/eventTags");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/eventTags"

	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/userprofiles/:profileId/eventTags HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/eventTags")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/eventTags"))
    .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}}/userprofiles/:profileId/eventTags")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/eventTags")
  .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}}/userprofiles/:profileId/eventTags');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/eventTags'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/eventTags';
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}}/userprofiles/:profileId/eventTags',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/eventTags")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/eventTags',
  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}}/userprofiles/:profileId/eventTags'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/eventTags');

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}}/userprofiles/:profileId/eventTags'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/eventTags';
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}}/userprofiles/:profileId/eventTags"]
                                                       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}}/userprofiles/:profileId/eventTags" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/eventTags",
  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}}/userprofiles/:profileId/eventTags');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/eventTags');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/eventTags');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/eventTags' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/eventTags' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/eventTags")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/eventTags"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/eventTags"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/eventTags")

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/userprofiles/:profileId/eventTags') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/eventTags";

    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}}/userprofiles/:profileId/eventTags
http GET {{baseUrl}}/userprofiles/:profileId/eventTags
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/eventTags
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/eventTags")! 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 dfareporting.eventTags.patch
{{baseUrl}}/userprofiles/:profileId/eventTags
QUERY PARAMS

id
profileId
BODY json

{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "campaignId": "",
  "campaignIdDimensionValue": {},
  "enabledByDefault": false,
  "excludeFromAdxRequests": false,
  "id": "",
  "kind": "",
  "name": "",
  "siteFilterType": "",
  "siteIds": [],
  "sslCompliant": false,
  "status": "",
  "subaccountId": "",
  "type": "",
  "url": "",
  "urlEscapeLevels": 0
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/eventTags?id=");

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  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"enabledByDefault\": false,\n  \"excludeFromAdxRequests\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteFilterType\": \"\",\n  \"siteIds\": [],\n  \"sslCompliant\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"type\": \"\",\n  \"url\": \"\",\n  \"urlEscapeLevels\": 0\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/patch "{{baseUrl}}/userprofiles/:profileId/eventTags" {:query-params {:id ""}
                                                                               :content-type :json
                                                                               :form-params {:accountId ""
                                                                                             :advertiserId ""
                                                                                             :advertiserIdDimensionValue {:dimensionName ""
                                                                                                                          :etag ""
                                                                                                                          :id ""
                                                                                                                          :kind ""
                                                                                                                          :matchType ""
                                                                                                                          :value ""}
                                                                                             :campaignId ""
                                                                                             :campaignIdDimensionValue {}
                                                                                             :enabledByDefault false
                                                                                             :excludeFromAdxRequests false
                                                                                             :id ""
                                                                                             :kind ""
                                                                                             :name ""
                                                                                             :siteFilterType ""
                                                                                             :siteIds []
                                                                                             :sslCompliant false
                                                                                             :status ""
                                                                                             :subaccountId ""
                                                                                             :type ""
                                                                                             :url ""
                                                                                             :urlEscapeLevels 0}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/eventTags?id="
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"enabledByDefault\": false,\n  \"excludeFromAdxRequests\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteFilterType\": \"\",\n  \"siteIds\": [],\n  \"sslCompliant\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"type\": \"\",\n  \"url\": \"\",\n  \"urlEscapeLevels\": 0\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}}/userprofiles/:profileId/eventTags?id="),
    Content = new StringContent("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"enabledByDefault\": false,\n  \"excludeFromAdxRequests\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteFilterType\": \"\",\n  \"siteIds\": [],\n  \"sslCompliant\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"type\": \"\",\n  \"url\": \"\",\n  \"urlEscapeLevels\": 0\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}}/userprofiles/:profileId/eventTags?id=");
var request = new RestRequest("", Method.Patch);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"enabledByDefault\": false,\n  \"excludeFromAdxRequests\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteFilterType\": \"\",\n  \"siteIds\": [],\n  \"sslCompliant\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"type\": \"\",\n  \"url\": \"\",\n  \"urlEscapeLevels\": 0\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/eventTags?id="

	payload := strings.NewReader("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"enabledByDefault\": false,\n  \"excludeFromAdxRequests\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteFilterType\": \"\",\n  \"siteIds\": [],\n  \"sslCompliant\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"type\": \"\",\n  \"url\": \"\",\n  \"urlEscapeLevels\": 0\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/userprofiles/:profileId/eventTags?id= HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 503

{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "campaignId": "",
  "campaignIdDimensionValue": {},
  "enabledByDefault": false,
  "excludeFromAdxRequests": false,
  "id": "",
  "kind": "",
  "name": "",
  "siteFilterType": "",
  "siteIds": [],
  "sslCompliant": false,
  "status": "",
  "subaccountId": "",
  "type": "",
  "url": "",
  "urlEscapeLevels": 0
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/userprofiles/:profileId/eventTags?id=")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"enabledByDefault\": false,\n  \"excludeFromAdxRequests\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteFilterType\": \"\",\n  \"siteIds\": [],\n  \"sslCompliant\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"type\": \"\",\n  \"url\": \"\",\n  \"urlEscapeLevels\": 0\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/eventTags?id="))
    .header("content-type", "application/json")
    .method("PATCH", HttpRequest.BodyPublishers.ofString("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"enabledByDefault\": false,\n  \"excludeFromAdxRequests\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteFilterType\": \"\",\n  \"siteIds\": [],\n  \"sslCompliant\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"type\": \"\",\n  \"url\": \"\",\n  \"urlEscapeLevels\": 0\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  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"enabledByDefault\": false,\n  \"excludeFromAdxRequests\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteFilterType\": \"\",\n  \"siteIds\": [],\n  \"sslCompliant\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"type\": \"\",\n  \"url\": \"\",\n  \"urlEscapeLevels\": 0\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/eventTags?id=")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/userprofiles/:profileId/eventTags?id=")
  .header("content-type", "application/json")
  .body("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"enabledByDefault\": false,\n  \"excludeFromAdxRequests\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteFilterType\": \"\",\n  \"siteIds\": [],\n  \"sslCompliant\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"type\": \"\",\n  \"url\": \"\",\n  \"urlEscapeLevels\": 0\n}")
  .asString();
const data = JSON.stringify({
  accountId: '',
  advertiserId: '',
  advertiserIdDimensionValue: {
    dimensionName: '',
    etag: '',
    id: '',
    kind: '',
    matchType: '',
    value: ''
  },
  campaignId: '',
  campaignIdDimensionValue: {},
  enabledByDefault: false,
  excludeFromAdxRequests: false,
  id: '',
  kind: '',
  name: '',
  siteFilterType: '',
  siteIds: [],
  sslCompliant: false,
  status: '',
  subaccountId: '',
  type: '',
  url: '',
  urlEscapeLevels: 0
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PATCH', '{{baseUrl}}/userprofiles/:profileId/eventTags?id=');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/userprofiles/:profileId/eventTags',
  params: {id: ''},
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    campaignId: '',
    campaignIdDimensionValue: {},
    enabledByDefault: false,
    excludeFromAdxRequests: false,
    id: '',
    kind: '',
    name: '',
    siteFilterType: '',
    siteIds: [],
    sslCompliant: false,
    status: '',
    subaccountId: '',
    type: '',
    url: '',
    urlEscapeLevels: 0
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/eventTags?id=';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","advertiserId":"","advertiserIdDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"campaignId":"","campaignIdDimensionValue":{},"enabledByDefault":false,"excludeFromAdxRequests":false,"id":"","kind":"","name":"","siteFilterType":"","siteIds":[],"sslCompliant":false,"status":"","subaccountId":"","type":"","url":"","urlEscapeLevels":0}'
};

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}}/userprofiles/:profileId/eventTags?id=',
  method: 'PATCH',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "accountId": "",\n  "advertiserId": "",\n  "advertiserIdDimensionValue": {\n    "dimensionName": "",\n    "etag": "",\n    "id": "",\n    "kind": "",\n    "matchType": "",\n    "value": ""\n  },\n  "campaignId": "",\n  "campaignIdDimensionValue": {},\n  "enabledByDefault": false,\n  "excludeFromAdxRequests": false,\n  "id": "",\n  "kind": "",\n  "name": "",\n  "siteFilterType": "",\n  "siteIds": [],\n  "sslCompliant": false,\n  "status": "",\n  "subaccountId": "",\n  "type": "",\n  "url": "",\n  "urlEscapeLevels": 0\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"enabledByDefault\": false,\n  \"excludeFromAdxRequests\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteFilterType\": \"\",\n  \"siteIds\": [],\n  \"sslCompliant\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"type\": \"\",\n  \"url\": \"\",\n  \"urlEscapeLevels\": 0\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/eventTags?id=")
  .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/userprofiles/:profileId/eventTags?id=',
  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({
  accountId: '',
  advertiserId: '',
  advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
  campaignId: '',
  campaignIdDimensionValue: {},
  enabledByDefault: false,
  excludeFromAdxRequests: false,
  id: '',
  kind: '',
  name: '',
  siteFilterType: '',
  siteIds: [],
  sslCompliant: false,
  status: '',
  subaccountId: '',
  type: '',
  url: '',
  urlEscapeLevels: 0
}));
req.end();
const request = require('request');

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/userprofiles/:profileId/eventTags',
  qs: {id: ''},
  headers: {'content-type': 'application/json'},
  body: {
    accountId: '',
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    campaignId: '',
    campaignIdDimensionValue: {},
    enabledByDefault: false,
    excludeFromAdxRequests: false,
    id: '',
    kind: '',
    name: '',
    siteFilterType: '',
    siteIds: [],
    sslCompliant: false,
    status: '',
    subaccountId: '',
    type: '',
    url: '',
    urlEscapeLevels: 0
  },
  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}}/userprofiles/:profileId/eventTags');

req.query({
  id: ''
});

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  accountId: '',
  advertiserId: '',
  advertiserIdDimensionValue: {
    dimensionName: '',
    etag: '',
    id: '',
    kind: '',
    matchType: '',
    value: ''
  },
  campaignId: '',
  campaignIdDimensionValue: {},
  enabledByDefault: false,
  excludeFromAdxRequests: false,
  id: '',
  kind: '',
  name: '',
  siteFilterType: '',
  siteIds: [],
  sslCompliant: false,
  status: '',
  subaccountId: '',
  type: '',
  url: '',
  urlEscapeLevels: 0
});

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}}/userprofiles/:profileId/eventTags',
  params: {id: ''},
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    campaignId: '',
    campaignIdDimensionValue: {},
    enabledByDefault: false,
    excludeFromAdxRequests: false,
    id: '',
    kind: '',
    name: '',
    siteFilterType: '',
    siteIds: [],
    sslCompliant: false,
    status: '',
    subaccountId: '',
    type: '',
    url: '',
    urlEscapeLevels: 0
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/eventTags?id=';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","advertiserId":"","advertiserIdDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"campaignId":"","campaignIdDimensionValue":{},"enabledByDefault":false,"excludeFromAdxRequests":false,"id":"","kind":"","name":"","siteFilterType":"","siteIds":[],"sslCompliant":false,"status":"","subaccountId":"","type":"","url":"","urlEscapeLevels":0}'
};

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 = @{ @"accountId": @"",
                              @"advertiserId": @"",
                              @"advertiserIdDimensionValue": @{ @"dimensionName": @"", @"etag": @"", @"id": @"", @"kind": @"", @"matchType": @"", @"value": @"" },
                              @"campaignId": @"",
                              @"campaignIdDimensionValue": @{  },
                              @"enabledByDefault": @NO,
                              @"excludeFromAdxRequests": @NO,
                              @"id": @"",
                              @"kind": @"",
                              @"name": @"",
                              @"siteFilterType": @"",
                              @"siteIds": @[  ],
                              @"sslCompliant": @NO,
                              @"status": @"",
                              @"subaccountId": @"",
                              @"type": @"",
                              @"url": @"",
                              @"urlEscapeLevels": @0 };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/userprofiles/:profileId/eventTags?id="]
                                                       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}}/userprofiles/:profileId/eventTags?id=" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"enabledByDefault\": false,\n  \"excludeFromAdxRequests\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteFilterType\": \"\",\n  \"siteIds\": [],\n  \"sslCompliant\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"type\": \"\",\n  \"url\": \"\",\n  \"urlEscapeLevels\": 0\n}" in

Client.call ~headers ~body `PATCH uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/eventTags?id=",
  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([
    'accountId' => '',
    'advertiserId' => '',
    'advertiserIdDimensionValue' => [
        'dimensionName' => '',
        'etag' => '',
        'id' => '',
        'kind' => '',
        'matchType' => '',
        'value' => ''
    ],
    'campaignId' => '',
    'campaignIdDimensionValue' => [
        
    ],
    'enabledByDefault' => null,
    'excludeFromAdxRequests' => null,
    'id' => '',
    'kind' => '',
    'name' => '',
    'siteFilterType' => '',
    'siteIds' => [
        
    ],
    'sslCompliant' => null,
    'status' => '',
    'subaccountId' => '',
    'type' => '',
    'url' => '',
    'urlEscapeLevels' => 0
  ]),
  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}}/userprofiles/:profileId/eventTags?id=', [
  'body' => '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "campaignId": "",
  "campaignIdDimensionValue": {},
  "enabledByDefault": false,
  "excludeFromAdxRequests": false,
  "id": "",
  "kind": "",
  "name": "",
  "siteFilterType": "",
  "siteIds": [],
  "sslCompliant": false,
  "status": "",
  "subaccountId": "",
  "type": "",
  "url": "",
  "urlEscapeLevels": 0
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/eventTags');
$request->setMethod(HttpRequest::HTTP_METH_PATCH);

$request->setQueryData([
  'id' => ''
]);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'accountId' => '',
  'advertiserId' => '',
  'advertiserIdDimensionValue' => [
    'dimensionName' => '',
    'etag' => '',
    'id' => '',
    'kind' => '',
    'matchType' => '',
    'value' => ''
  ],
  'campaignId' => '',
  'campaignIdDimensionValue' => [
    
  ],
  'enabledByDefault' => null,
  'excludeFromAdxRequests' => null,
  'id' => '',
  'kind' => '',
  'name' => '',
  'siteFilterType' => '',
  'siteIds' => [
    
  ],
  'sslCompliant' => null,
  'status' => '',
  'subaccountId' => '',
  'type' => '',
  'url' => '',
  'urlEscapeLevels' => 0
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'accountId' => '',
  'advertiserId' => '',
  'advertiserIdDimensionValue' => [
    'dimensionName' => '',
    'etag' => '',
    'id' => '',
    'kind' => '',
    'matchType' => '',
    'value' => ''
  ],
  'campaignId' => '',
  'campaignIdDimensionValue' => [
    
  ],
  'enabledByDefault' => null,
  'excludeFromAdxRequests' => null,
  'id' => '',
  'kind' => '',
  'name' => '',
  'siteFilterType' => '',
  'siteIds' => [
    
  ],
  'sslCompliant' => null,
  'status' => '',
  'subaccountId' => '',
  'type' => '',
  'url' => '',
  'urlEscapeLevels' => 0
]));
$request->setRequestUrl('{{baseUrl}}/userprofiles/:profileId/eventTags');
$request->setRequestMethod('PATCH');
$request->setBody($body);

$request->setQuery(new http\QueryString([
  'id' => ''
]));

$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}}/userprofiles/:profileId/eventTags?id=' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "campaignId": "",
  "campaignIdDimensionValue": {},
  "enabledByDefault": false,
  "excludeFromAdxRequests": false,
  "id": "",
  "kind": "",
  "name": "",
  "siteFilterType": "",
  "siteIds": [],
  "sslCompliant": false,
  "status": "",
  "subaccountId": "",
  "type": "",
  "url": "",
  "urlEscapeLevels": 0
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/eventTags?id=' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "campaignId": "",
  "campaignIdDimensionValue": {},
  "enabledByDefault": false,
  "excludeFromAdxRequests": false,
  "id": "",
  "kind": "",
  "name": "",
  "siteFilterType": "",
  "siteIds": [],
  "sslCompliant": false,
  "status": "",
  "subaccountId": "",
  "type": "",
  "url": "",
  "urlEscapeLevels": 0
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"enabledByDefault\": false,\n  \"excludeFromAdxRequests\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteFilterType\": \"\",\n  \"siteIds\": [],\n  \"sslCompliant\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"type\": \"\",\n  \"url\": \"\",\n  \"urlEscapeLevels\": 0\n}"

headers = { 'content-type': "application/json" }

conn.request("PATCH", "/baseUrl/userprofiles/:profileId/eventTags?id=", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/eventTags"

querystring = {"id":""}

payload = {
    "accountId": "",
    "advertiserId": "",
    "advertiserIdDimensionValue": {
        "dimensionName": "",
        "etag": "",
        "id": "",
        "kind": "",
        "matchType": "",
        "value": ""
    },
    "campaignId": "",
    "campaignIdDimensionValue": {},
    "enabledByDefault": False,
    "excludeFromAdxRequests": False,
    "id": "",
    "kind": "",
    "name": "",
    "siteFilterType": "",
    "siteIds": [],
    "sslCompliant": False,
    "status": "",
    "subaccountId": "",
    "type": "",
    "url": "",
    "urlEscapeLevels": 0
}
headers = {"content-type": "application/json"}

response = requests.patch(url, json=payload, headers=headers, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/eventTags"

queryString <- list(id = "")

payload <- "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"enabledByDefault\": false,\n  \"excludeFromAdxRequests\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteFilterType\": \"\",\n  \"siteIds\": [],\n  \"sslCompliant\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"type\": \"\",\n  \"url\": \"\",\n  \"urlEscapeLevels\": 0\n}"

encode <- "json"

response <- VERB("PATCH", url, body = payload, query = queryString, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/eventTags?id=")

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  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"enabledByDefault\": false,\n  \"excludeFromAdxRequests\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteFilterType\": \"\",\n  \"siteIds\": [],\n  \"sslCompliant\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"type\": \"\",\n  \"url\": \"\",\n  \"urlEscapeLevels\": 0\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/userprofiles/:profileId/eventTags') do |req|
  req.params['id'] = ''
  req.body = "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"enabledByDefault\": false,\n  \"excludeFromAdxRequests\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteFilterType\": \"\",\n  \"siteIds\": [],\n  \"sslCompliant\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"type\": \"\",\n  \"url\": \"\",\n  \"urlEscapeLevels\": 0\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}}/userprofiles/:profileId/eventTags";

    let querystring = [
        ("id", ""),
    ];

    let payload = json!({
        "accountId": "",
        "advertiserId": "",
        "advertiserIdDimensionValue": json!({
            "dimensionName": "",
            "etag": "",
            "id": "",
            "kind": "",
            "matchType": "",
            "value": ""
        }),
        "campaignId": "",
        "campaignIdDimensionValue": json!({}),
        "enabledByDefault": false,
        "excludeFromAdxRequests": false,
        "id": "",
        "kind": "",
        "name": "",
        "siteFilterType": "",
        "siteIds": (),
        "sslCompliant": false,
        "status": "",
        "subaccountId": "",
        "type": "",
        "url": "",
        "urlEscapeLevels": 0
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PATCH").unwrap(), url)
        .query(&querystring)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PATCH \
  --url '{{baseUrl}}/userprofiles/:profileId/eventTags?id=' \
  --header 'content-type: application/json' \
  --data '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "campaignId": "",
  "campaignIdDimensionValue": {},
  "enabledByDefault": false,
  "excludeFromAdxRequests": false,
  "id": "",
  "kind": "",
  "name": "",
  "siteFilterType": "",
  "siteIds": [],
  "sslCompliant": false,
  "status": "",
  "subaccountId": "",
  "type": "",
  "url": "",
  "urlEscapeLevels": 0
}'
echo '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "campaignId": "",
  "campaignIdDimensionValue": {},
  "enabledByDefault": false,
  "excludeFromAdxRequests": false,
  "id": "",
  "kind": "",
  "name": "",
  "siteFilterType": "",
  "siteIds": [],
  "sslCompliant": false,
  "status": "",
  "subaccountId": "",
  "type": "",
  "url": "",
  "urlEscapeLevels": 0
}' |  \
  http PATCH '{{baseUrl}}/userprofiles/:profileId/eventTags?id=' \
  content-type:application/json
wget --quiet \
  --method PATCH \
  --header 'content-type: application/json' \
  --body-data '{\n  "accountId": "",\n  "advertiserId": "",\n  "advertiserIdDimensionValue": {\n    "dimensionName": "",\n    "etag": "",\n    "id": "",\n    "kind": "",\n    "matchType": "",\n    "value": ""\n  },\n  "campaignId": "",\n  "campaignIdDimensionValue": {},\n  "enabledByDefault": false,\n  "excludeFromAdxRequests": false,\n  "id": "",\n  "kind": "",\n  "name": "",\n  "siteFilterType": "",\n  "siteIds": [],\n  "sslCompliant": false,\n  "status": "",\n  "subaccountId": "",\n  "type": "",\n  "url": "",\n  "urlEscapeLevels": 0\n}' \
  --output-document \
  - '{{baseUrl}}/userprofiles/:profileId/eventTags?id='
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": [
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  ],
  "campaignId": "",
  "campaignIdDimensionValue": [],
  "enabledByDefault": false,
  "excludeFromAdxRequests": false,
  "id": "",
  "kind": "",
  "name": "",
  "siteFilterType": "",
  "siteIds": [],
  "sslCompliant": false,
  "status": "",
  "subaccountId": "",
  "type": "",
  "url": "",
  "urlEscapeLevels": 0
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/eventTags?id=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PATCH"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
PUT dfareporting.eventTags.update
{{baseUrl}}/userprofiles/:profileId/eventTags
QUERY PARAMS

profileId
BODY json

{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "campaignId": "",
  "campaignIdDimensionValue": {},
  "enabledByDefault": false,
  "excludeFromAdxRequests": false,
  "id": "",
  "kind": "",
  "name": "",
  "siteFilterType": "",
  "siteIds": [],
  "sslCompliant": false,
  "status": "",
  "subaccountId": "",
  "type": "",
  "url": "",
  "urlEscapeLevels": 0
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/eventTags");

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  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"enabledByDefault\": false,\n  \"excludeFromAdxRequests\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteFilterType\": \"\",\n  \"siteIds\": [],\n  \"sslCompliant\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"type\": \"\",\n  \"url\": \"\",\n  \"urlEscapeLevels\": 0\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/userprofiles/:profileId/eventTags" {:content-type :json
                                                                             :form-params {:accountId ""
                                                                                           :advertiserId ""
                                                                                           :advertiserIdDimensionValue {:dimensionName ""
                                                                                                                        :etag ""
                                                                                                                        :id ""
                                                                                                                        :kind ""
                                                                                                                        :matchType ""
                                                                                                                        :value ""}
                                                                                           :campaignId ""
                                                                                           :campaignIdDimensionValue {}
                                                                                           :enabledByDefault false
                                                                                           :excludeFromAdxRequests false
                                                                                           :id ""
                                                                                           :kind ""
                                                                                           :name ""
                                                                                           :siteFilterType ""
                                                                                           :siteIds []
                                                                                           :sslCompliant false
                                                                                           :status ""
                                                                                           :subaccountId ""
                                                                                           :type ""
                                                                                           :url ""
                                                                                           :urlEscapeLevels 0}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/eventTags"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"enabledByDefault\": false,\n  \"excludeFromAdxRequests\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteFilterType\": \"\",\n  \"siteIds\": [],\n  \"sslCompliant\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"type\": \"\",\n  \"url\": \"\",\n  \"urlEscapeLevels\": 0\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/userprofiles/:profileId/eventTags"),
    Content = new StringContent("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"enabledByDefault\": false,\n  \"excludeFromAdxRequests\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteFilterType\": \"\",\n  \"siteIds\": [],\n  \"sslCompliant\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"type\": \"\",\n  \"url\": \"\",\n  \"urlEscapeLevels\": 0\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}}/userprofiles/:profileId/eventTags");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"enabledByDefault\": false,\n  \"excludeFromAdxRequests\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteFilterType\": \"\",\n  \"siteIds\": [],\n  \"sslCompliant\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"type\": \"\",\n  \"url\": \"\",\n  \"urlEscapeLevels\": 0\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/eventTags"

	payload := strings.NewReader("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"enabledByDefault\": false,\n  \"excludeFromAdxRequests\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteFilterType\": \"\",\n  \"siteIds\": [],\n  \"sslCompliant\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"type\": \"\",\n  \"url\": \"\",\n  \"urlEscapeLevels\": 0\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/userprofiles/:profileId/eventTags HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 503

{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "campaignId": "",
  "campaignIdDimensionValue": {},
  "enabledByDefault": false,
  "excludeFromAdxRequests": false,
  "id": "",
  "kind": "",
  "name": "",
  "siteFilterType": "",
  "siteIds": [],
  "sslCompliant": false,
  "status": "",
  "subaccountId": "",
  "type": "",
  "url": "",
  "urlEscapeLevels": 0
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/userprofiles/:profileId/eventTags")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"enabledByDefault\": false,\n  \"excludeFromAdxRequests\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteFilterType\": \"\",\n  \"siteIds\": [],\n  \"sslCompliant\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"type\": \"\",\n  \"url\": \"\",\n  \"urlEscapeLevels\": 0\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/eventTags"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"enabledByDefault\": false,\n  \"excludeFromAdxRequests\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteFilterType\": \"\",\n  \"siteIds\": [],\n  \"sslCompliant\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"type\": \"\",\n  \"url\": \"\",\n  \"urlEscapeLevels\": 0\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  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"enabledByDefault\": false,\n  \"excludeFromAdxRequests\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteFilterType\": \"\",\n  \"siteIds\": [],\n  \"sslCompliant\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"type\": \"\",\n  \"url\": \"\",\n  \"urlEscapeLevels\": 0\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/eventTags")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/userprofiles/:profileId/eventTags")
  .header("content-type", "application/json")
  .body("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"enabledByDefault\": false,\n  \"excludeFromAdxRequests\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteFilterType\": \"\",\n  \"siteIds\": [],\n  \"sslCompliant\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"type\": \"\",\n  \"url\": \"\",\n  \"urlEscapeLevels\": 0\n}")
  .asString();
const data = JSON.stringify({
  accountId: '',
  advertiserId: '',
  advertiserIdDimensionValue: {
    dimensionName: '',
    etag: '',
    id: '',
    kind: '',
    matchType: '',
    value: ''
  },
  campaignId: '',
  campaignIdDimensionValue: {},
  enabledByDefault: false,
  excludeFromAdxRequests: false,
  id: '',
  kind: '',
  name: '',
  siteFilterType: '',
  siteIds: [],
  sslCompliant: false,
  status: '',
  subaccountId: '',
  type: '',
  url: '',
  urlEscapeLevels: 0
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/userprofiles/:profileId/eventTags');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/userprofiles/:profileId/eventTags',
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    campaignId: '',
    campaignIdDimensionValue: {},
    enabledByDefault: false,
    excludeFromAdxRequests: false,
    id: '',
    kind: '',
    name: '',
    siteFilterType: '',
    siteIds: [],
    sslCompliant: false,
    status: '',
    subaccountId: '',
    type: '',
    url: '',
    urlEscapeLevels: 0
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/eventTags';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","advertiserId":"","advertiserIdDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"campaignId":"","campaignIdDimensionValue":{},"enabledByDefault":false,"excludeFromAdxRequests":false,"id":"","kind":"","name":"","siteFilterType":"","siteIds":[],"sslCompliant":false,"status":"","subaccountId":"","type":"","url":"","urlEscapeLevels":0}'
};

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}}/userprofiles/:profileId/eventTags',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "accountId": "",\n  "advertiserId": "",\n  "advertiserIdDimensionValue": {\n    "dimensionName": "",\n    "etag": "",\n    "id": "",\n    "kind": "",\n    "matchType": "",\n    "value": ""\n  },\n  "campaignId": "",\n  "campaignIdDimensionValue": {},\n  "enabledByDefault": false,\n  "excludeFromAdxRequests": false,\n  "id": "",\n  "kind": "",\n  "name": "",\n  "siteFilterType": "",\n  "siteIds": [],\n  "sslCompliant": false,\n  "status": "",\n  "subaccountId": "",\n  "type": "",\n  "url": "",\n  "urlEscapeLevels": 0\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"enabledByDefault\": false,\n  \"excludeFromAdxRequests\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteFilterType\": \"\",\n  \"siteIds\": [],\n  \"sslCompliant\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"type\": \"\",\n  \"url\": \"\",\n  \"urlEscapeLevels\": 0\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/eventTags")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/eventTags',
  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({
  accountId: '',
  advertiserId: '',
  advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
  campaignId: '',
  campaignIdDimensionValue: {},
  enabledByDefault: false,
  excludeFromAdxRequests: false,
  id: '',
  kind: '',
  name: '',
  siteFilterType: '',
  siteIds: [],
  sslCompliant: false,
  status: '',
  subaccountId: '',
  type: '',
  url: '',
  urlEscapeLevels: 0
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/userprofiles/:profileId/eventTags',
  headers: {'content-type': 'application/json'},
  body: {
    accountId: '',
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    campaignId: '',
    campaignIdDimensionValue: {},
    enabledByDefault: false,
    excludeFromAdxRequests: false,
    id: '',
    kind: '',
    name: '',
    siteFilterType: '',
    siteIds: [],
    sslCompliant: false,
    status: '',
    subaccountId: '',
    type: '',
    url: '',
    urlEscapeLevels: 0
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/userprofiles/:profileId/eventTags');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  accountId: '',
  advertiserId: '',
  advertiserIdDimensionValue: {
    dimensionName: '',
    etag: '',
    id: '',
    kind: '',
    matchType: '',
    value: ''
  },
  campaignId: '',
  campaignIdDimensionValue: {},
  enabledByDefault: false,
  excludeFromAdxRequests: false,
  id: '',
  kind: '',
  name: '',
  siteFilterType: '',
  siteIds: [],
  sslCompliant: false,
  status: '',
  subaccountId: '',
  type: '',
  url: '',
  urlEscapeLevels: 0
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/userprofiles/:profileId/eventTags',
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    campaignId: '',
    campaignIdDimensionValue: {},
    enabledByDefault: false,
    excludeFromAdxRequests: false,
    id: '',
    kind: '',
    name: '',
    siteFilterType: '',
    siteIds: [],
    sslCompliant: false,
    status: '',
    subaccountId: '',
    type: '',
    url: '',
    urlEscapeLevels: 0
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/eventTags';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","advertiserId":"","advertiserIdDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"campaignId":"","campaignIdDimensionValue":{},"enabledByDefault":false,"excludeFromAdxRequests":false,"id":"","kind":"","name":"","siteFilterType":"","siteIds":[],"sslCompliant":false,"status":"","subaccountId":"","type":"","url":"","urlEscapeLevels":0}'
};

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 = @{ @"accountId": @"",
                              @"advertiserId": @"",
                              @"advertiserIdDimensionValue": @{ @"dimensionName": @"", @"etag": @"", @"id": @"", @"kind": @"", @"matchType": @"", @"value": @"" },
                              @"campaignId": @"",
                              @"campaignIdDimensionValue": @{  },
                              @"enabledByDefault": @NO,
                              @"excludeFromAdxRequests": @NO,
                              @"id": @"",
                              @"kind": @"",
                              @"name": @"",
                              @"siteFilterType": @"",
                              @"siteIds": @[  ],
                              @"sslCompliant": @NO,
                              @"status": @"",
                              @"subaccountId": @"",
                              @"type": @"",
                              @"url": @"",
                              @"urlEscapeLevels": @0 };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/userprofiles/:profileId/eventTags"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/userprofiles/:profileId/eventTags" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"enabledByDefault\": false,\n  \"excludeFromAdxRequests\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteFilterType\": \"\",\n  \"siteIds\": [],\n  \"sslCompliant\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"type\": \"\",\n  \"url\": \"\",\n  \"urlEscapeLevels\": 0\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/eventTags",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'accountId' => '',
    'advertiserId' => '',
    'advertiserIdDimensionValue' => [
        'dimensionName' => '',
        'etag' => '',
        'id' => '',
        'kind' => '',
        'matchType' => '',
        'value' => ''
    ],
    'campaignId' => '',
    'campaignIdDimensionValue' => [
        
    ],
    'enabledByDefault' => null,
    'excludeFromAdxRequests' => null,
    'id' => '',
    'kind' => '',
    'name' => '',
    'siteFilterType' => '',
    'siteIds' => [
        
    ],
    'sslCompliant' => null,
    'status' => '',
    'subaccountId' => '',
    'type' => '',
    'url' => '',
    'urlEscapeLevels' => 0
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/userprofiles/:profileId/eventTags', [
  'body' => '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "campaignId": "",
  "campaignIdDimensionValue": {},
  "enabledByDefault": false,
  "excludeFromAdxRequests": false,
  "id": "",
  "kind": "",
  "name": "",
  "siteFilterType": "",
  "siteIds": [],
  "sslCompliant": false,
  "status": "",
  "subaccountId": "",
  "type": "",
  "url": "",
  "urlEscapeLevels": 0
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/eventTags');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'accountId' => '',
  'advertiserId' => '',
  'advertiserIdDimensionValue' => [
    'dimensionName' => '',
    'etag' => '',
    'id' => '',
    'kind' => '',
    'matchType' => '',
    'value' => ''
  ],
  'campaignId' => '',
  'campaignIdDimensionValue' => [
    
  ],
  'enabledByDefault' => null,
  'excludeFromAdxRequests' => null,
  'id' => '',
  'kind' => '',
  'name' => '',
  'siteFilterType' => '',
  'siteIds' => [
    
  ],
  'sslCompliant' => null,
  'status' => '',
  'subaccountId' => '',
  'type' => '',
  'url' => '',
  'urlEscapeLevels' => 0
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'accountId' => '',
  'advertiserId' => '',
  'advertiserIdDimensionValue' => [
    'dimensionName' => '',
    'etag' => '',
    'id' => '',
    'kind' => '',
    'matchType' => '',
    'value' => ''
  ],
  'campaignId' => '',
  'campaignIdDimensionValue' => [
    
  ],
  'enabledByDefault' => null,
  'excludeFromAdxRequests' => null,
  'id' => '',
  'kind' => '',
  'name' => '',
  'siteFilterType' => '',
  'siteIds' => [
    
  ],
  'sslCompliant' => null,
  'status' => '',
  'subaccountId' => '',
  'type' => '',
  'url' => '',
  'urlEscapeLevels' => 0
]));
$request->setRequestUrl('{{baseUrl}}/userprofiles/:profileId/eventTags');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/eventTags' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "campaignId": "",
  "campaignIdDimensionValue": {},
  "enabledByDefault": false,
  "excludeFromAdxRequests": false,
  "id": "",
  "kind": "",
  "name": "",
  "siteFilterType": "",
  "siteIds": [],
  "sslCompliant": false,
  "status": "",
  "subaccountId": "",
  "type": "",
  "url": "",
  "urlEscapeLevels": 0
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/eventTags' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "campaignId": "",
  "campaignIdDimensionValue": {},
  "enabledByDefault": false,
  "excludeFromAdxRequests": false,
  "id": "",
  "kind": "",
  "name": "",
  "siteFilterType": "",
  "siteIds": [],
  "sslCompliant": false,
  "status": "",
  "subaccountId": "",
  "type": "",
  "url": "",
  "urlEscapeLevels": 0
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"enabledByDefault\": false,\n  \"excludeFromAdxRequests\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteFilterType\": \"\",\n  \"siteIds\": [],\n  \"sslCompliant\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"type\": \"\",\n  \"url\": \"\",\n  \"urlEscapeLevels\": 0\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/userprofiles/:profileId/eventTags", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/eventTags"

payload = {
    "accountId": "",
    "advertiserId": "",
    "advertiserIdDimensionValue": {
        "dimensionName": "",
        "etag": "",
        "id": "",
        "kind": "",
        "matchType": "",
        "value": ""
    },
    "campaignId": "",
    "campaignIdDimensionValue": {},
    "enabledByDefault": False,
    "excludeFromAdxRequests": False,
    "id": "",
    "kind": "",
    "name": "",
    "siteFilterType": "",
    "siteIds": [],
    "sslCompliant": False,
    "status": "",
    "subaccountId": "",
    "type": "",
    "url": "",
    "urlEscapeLevels": 0
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/eventTags"

payload <- "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"enabledByDefault\": false,\n  \"excludeFromAdxRequests\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteFilterType\": \"\",\n  \"siteIds\": [],\n  \"sslCompliant\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"type\": \"\",\n  \"url\": \"\",\n  \"urlEscapeLevels\": 0\n}"

encode <- "json"

response <- VERB("PUT", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/eventTags")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"enabledByDefault\": false,\n  \"excludeFromAdxRequests\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteFilterType\": \"\",\n  \"siteIds\": [],\n  \"sslCompliant\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"type\": \"\",\n  \"url\": \"\",\n  \"urlEscapeLevels\": 0\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.put('/baseUrl/userprofiles/:profileId/eventTags') do |req|
  req.body = "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"enabledByDefault\": false,\n  \"excludeFromAdxRequests\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteFilterType\": \"\",\n  \"siteIds\": [],\n  \"sslCompliant\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"type\": \"\",\n  \"url\": \"\",\n  \"urlEscapeLevels\": 0\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}}/userprofiles/:profileId/eventTags";

    let payload = json!({
        "accountId": "",
        "advertiserId": "",
        "advertiserIdDimensionValue": json!({
            "dimensionName": "",
            "etag": "",
            "id": "",
            "kind": "",
            "matchType": "",
            "value": ""
        }),
        "campaignId": "",
        "campaignIdDimensionValue": json!({}),
        "enabledByDefault": false,
        "excludeFromAdxRequests": false,
        "id": "",
        "kind": "",
        "name": "",
        "siteFilterType": "",
        "siteIds": (),
        "sslCompliant": false,
        "status": "",
        "subaccountId": "",
        "type": "",
        "url": "",
        "urlEscapeLevels": 0
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/userprofiles/:profileId/eventTags \
  --header 'content-type: application/json' \
  --data '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "campaignId": "",
  "campaignIdDimensionValue": {},
  "enabledByDefault": false,
  "excludeFromAdxRequests": false,
  "id": "",
  "kind": "",
  "name": "",
  "siteFilterType": "",
  "siteIds": [],
  "sslCompliant": false,
  "status": "",
  "subaccountId": "",
  "type": "",
  "url": "",
  "urlEscapeLevels": 0
}'
echo '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "campaignId": "",
  "campaignIdDimensionValue": {},
  "enabledByDefault": false,
  "excludeFromAdxRequests": false,
  "id": "",
  "kind": "",
  "name": "",
  "siteFilterType": "",
  "siteIds": [],
  "sslCompliant": false,
  "status": "",
  "subaccountId": "",
  "type": "",
  "url": "",
  "urlEscapeLevels": 0
}' |  \
  http PUT {{baseUrl}}/userprofiles/:profileId/eventTags \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "accountId": "",\n  "advertiserId": "",\n  "advertiserIdDimensionValue": {\n    "dimensionName": "",\n    "etag": "",\n    "id": "",\n    "kind": "",\n    "matchType": "",\n    "value": ""\n  },\n  "campaignId": "",\n  "campaignIdDimensionValue": {},\n  "enabledByDefault": false,\n  "excludeFromAdxRequests": false,\n  "id": "",\n  "kind": "",\n  "name": "",\n  "siteFilterType": "",\n  "siteIds": [],\n  "sslCompliant": false,\n  "status": "",\n  "subaccountId": "",\n  "type": "",\n  "url": "",\n  "urlEscapeLevels": 0\n}' \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/eventTags
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": [
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  ],
  "campaignId": "",
  "campaignIdDimensionValue": [],
  "enabledByDefault": false,
  "excludeFromAdxRequests": false,
  "id": "",
  "kind": "",
  "name": "",
  "siteFilterType": "",
  "siteIds": [],
  "sslCompliant": false,
  "status": "",
  "subaccountId": "",
  "type": "",
  "url": "",
  "urlEscapeLevels": 0
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/eventTags")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET dfareporting.files.get
{{baseUrl}}/reports/:reportId/files/:fileId
QUERY PARAMS

reportId
fileId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/reports/:reportId/files/:fileId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/reports/:reportId/files/:fileId")
require "http/client"

url = "{{baseUrl}}/reports/:reportId/files/:fileId"

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/reports/:reportId/files/:fileId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/reports/:reportId/files/:fileId");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/reports/:reportId/files/:fileId"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/reports/:reportId/files/:fileId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/reports/:reportId/files/:fileId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/reports/:reportId/files/:fileId"))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/reports/:reportId/files/:fileId")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/reports/:reportId/files/:fileId")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/reports/:reportId/files/:fileId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/reports/:reportId/files/:fileId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/reports/:reportId/files/:fileId';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/reports/:reportId/files/:fileId',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/reports/:reportId/files/:fileId")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/reports/:reportId/files/:fileId',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/reports/:reportId/files/:fileId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/reports/:reportId/files/:fileId');

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/reports/:reportId/files/:fileId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/reports/:reportId/files/:fileId';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/reports/:reportId/files/:fileId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/reports/:reportId/files/:fileId" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/reports/:reportId/files/:fileId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/reports/:reportId/files/:fileId');

echo $response->getBody();
setUrl('{{baseUrl}}/reports/:reportId/files/:fileId');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/reports/:reportId/files/:fileId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/reports/:reportId/files/:fileId' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/reports/:reportId/files/:fileId' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/reports/:reportId/files/:fileId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/reports/:reportId/files/:fileId"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/reports/:reportId/files/:fileId"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/reports/:reportId/files/:fileId")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/reports/:reportId/files/:fileId') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/reports/:reportId/files/:fileId";

    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}}/reports/:reportId/files/:fileId
http GET {{baseUrl}}/reports/:reportId/files/:fileId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/reports/:reportId/files/:fileId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/reports/:reportId/files/:fileId")! 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 dfareporting.files.list
{{baseUrl}}/userprofiles/:profileId/files
QUERY PARAMS

profileId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/files");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/files")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/files"

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}}/userprofiles/:profileId/files"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/files");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/files"

	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/userprofiles/:profileId/files HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/files")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/files"))
    .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}}/userprofiles/:profileId/files")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/files")
  .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}}/userprofiles/:profileId/files');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/files'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/files';
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}}/userprofiles/:profileId/files',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/files")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/files',
  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}}/userprofiles/:profileId/files'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/files');

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}}/userprofiles/:profileId/files'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/files';
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}}/userprofiles/:profileId/files"]
                                                       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}}/userprofiles/:profileId/files" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/files",
  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}}/userprofiles/:profileId/files');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/files');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/files');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/files' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/files' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/files")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/files"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/files"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/files")

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/userprofiles/:profileId/files') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/files";

    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}}/userprofiles/:profileId/files
http GET {{baseUrl}}/userprofiles/:profileId/files
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/files
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/files")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
DELETE dfareporting.floodlightActivities.delete
{{baseUrl}}/userprofiles/:profileId/floodlightActivities/:id
QUERY PARAMS

profileId
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/floodlightActivities/:id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/userprofiles/:profileId/floodlightActivities/:id")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/floodlightActivities/:id"

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}}/userprofiles/:profileId/floodlightActivities/:id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/floodlightActivities/:id");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/floodlightActivities/:id"

	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/userprofiles/:profileId/floodlightActivities/:id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/userprofiles/:profileId/floodlightActivities/:id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/floodlightActivities/:id"))
    .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}}/userprofiles/:profileId/floodlightActivities/:id")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/userprofiles/:profileId/floodlightActivities/:id")
  .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}}/userprofiles/:profileId/floodlightActivities/:id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/userprofiles/:profileId/floodlightActivities/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/floodlightActivities/:id';
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}}/userprofiles/:profileId/floodlightActivities/:id',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/floodlightActivities/:id")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/floodlightActivities/:id',
  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}}/userprofiles/:profileId/floodlightActivities/:id'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/userprofiles/:profileId/floodlightActivities/:id');

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}}/userprofiles/:profileId/floodlightActivities/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/floodlightActivities/:id';
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}}/userprofiles/:profileId/floodlightActivities/:id"]
                                                       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}}/userprofiles/:profileId/floodlightActivities/:id" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/floodlightActivities/:id",
  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}}/userprofiles/:profileId/floodlightActivities/:id');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/floodlightActivities/:id');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/floodlightActivities/:id');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/floodlightActivities/:id' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/floodlightActivities/:id' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/userprofiles/:profileId/floodlightActivities/:id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/floodlightActivities/:id"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/floodlightActivities/:id"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/floodlightActivities/:id")

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/userprofiles/:profileId/floodlightActivities/:id') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/floodlightActivities/:id";

    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}}/userprofiles/:profileId/floodlightActivities/:id
http DELETE {{baseUrl}}/userprofiles/:profileId/floodlightActivities/:id
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/floodlightActivities/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/floodlightActivities/:id")! 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 dfareporting.floodlightActivities.generatetag
{{baseUrl}}/userprofiles/:profileId/floodlightActivities/generatetag
QUERY PARAMS

profileId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/floodlightActivities/generatetag");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/userprofiles/:profileId/floodlightActivities/generatetag")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/floodlightActivities/generatetag"

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}}/userprofiles/:profileId/floodlightActivities/generatetag"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/floodlightActivities/generatetag");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/floodlightActivities/generatetag"

	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/userprofiles/:profileId/floodlightActivities/generatetag HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/userprofiles/:profileId/floodlightActivities/generatetag")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/floodlightActivities/generatetag"))
    .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}}/userprofiles/:profileId/floodlightActivities/generatetag")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/userprofiles/:profileId/floodlightActivities/generatetag")
  .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}}/userprofiles/:profileId/floodlightActivities/generatetag');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/userprofiles/:profileId/floodlightActivities/generatetag'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/floodlightActivities/generatetag';
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}}/userprofiles/:profileId/floodlightActivities/generatetag',
  method: 'POST',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/floodlightActivities/generatetag")
  .post(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/floodlightActivities/generatetag',
  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}}/userprofiles/:profileId/floodlightActivities/generatetag'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/userprofiles/:profileId/floodlightActivities/generatetag');

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}}/userprofiles/:profileId/floodlightActivities/generatetag'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/floodlightActivities/generatetag';
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}}/userprofiles/:profileId/floodlightActivities/generatetag"]
                                                       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}}/userprofiles/:profileId/floodlightActivities/generatetag" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/floodlightActivities/generatetag",
  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}}/userprofiles/:profileId/floodlightActivities/generatetag');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/floodlightActivities/generatetag');
$request->setMethod(HTTP_METH_POST);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/floodlightActivities/generatetag');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/floodlightActivities/generatetag' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/floodlightActivities/generatetag' -Method POST 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("POST", "/baseUrl/userprofiles/:profileId/floodlightActivities/generatetag")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/floodlightActivities/generatetag"

response = requests.post(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/floodlightActivities/generatetag"

response <- VERB("POST", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/floodlightActivities/generatetag")

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/userprofiles/:profileId/floodlightActivities/generatetag') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/floodlightActivities/generatetag";

    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}}/userprofiles/:profileId/floodlightActivities/generatetag
http POST {{baseUrl}}/userprofiles/:profileId/floodlightActivities/generatetag
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/floodlightActivities/generatetag
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/floodlightActivities/generatetag")! 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 dfareporting.floodlightActivities.get
{{baseUrl}}/userprofiles/:profileId/floodlightActivities/:id
QUERY PARAMS

profileId
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/floodlightActivities/:id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/floodlightActivities/:id")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/floodlightActivities/:id"

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}}/userprofiles/:profileId/floodlightActivities/:id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/floodlightActivities/:id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/floodlightActivities/:id"

	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/userprofiles/:profileId/floodlightActivities/:id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/floodlightActivities/:id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/floodlightActivities/:id"))
    .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}}/userprofiles/:profileId/floodlightActivities/:id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/floodlightActivities/:id")
  .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}}/userprofiles/:profileId/floodlightActivities/:id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/floodlightActivities/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/floodlightActivities/:id';
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}}/userprofiles/:profileId/floodlightActivities/:id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/floodlightActivities/:id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/floodlightActivities/:id',
  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}}/userprofiles/:profileId/floodlightActivities/:id'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/floodlightActivities/:id');

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}}/userprofiles/:profileId/floodlightActivities/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/floodlightActivities/:id';
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}}/userprofiles/:profileId/floodlightActivities/:id"]
                                                       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}}/userprofiles/:profileId/floodlightActivities/:id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/floodlightActivities/:id",
  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}}/userprofiles/:profileId/floodlightActivities/:id');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/floodlightActivities/:id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/floodlightActivities/:id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/floodlightActivities/:id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/floodlightActivities/:id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/floodlightActivities/:id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/floodlightActivities/:id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/floodlightActivities/:id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/floodlightActivities/:id")

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/userprofiles/:profileId/floodlightActivities/:id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/floodlightActivities/:id";

    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}}/userprofiles/:profileId/floodlightActivities/:id
http GET {{baseUrl}}/userprofiles/:profileId/floodlightActivities/:id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/floodlightActivities/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/floodlightActivities/:id")! 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 dfareporting.floodlightActivities.insert
{{baseUrl}}/userprofiles/:profileId/floodlightActivities
QUERY PARAMS

profileId
BODY json

{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "attributionEnabled": false,
  "cacheBustingType": "",
  "countingMethod": "",
  "defaultTags": [
    {
      "id": "",
      "name": "",
      "tag": ""
    }
  ],
  "expectedUrl": "",
  "floodlightActivityGroupId": "",
  "floodlightActivityGroupName": "",
  "floodlightActivityGroupTagString": "",
  "floodlightActivityGroupType": "",
  "floodlightConfigurationId": "",
  "floodlightConfigurationIdDimensionValue": {},
  "floodlightTagType": "",
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "name": "",
  "notes": "",
  "publisherTags": [
    {
      "clickThrough": false,
      "directorySiteId": "",
      "dynamicTag": {},
      "siteId": "",
      "siteIdDimensionValue": {},
      "viewThrough": false
    }
  ],
  "secure": false,
  "sslCompliant": false,
  "sslRequired": false,
  "status": "",
  "subaccountId": "",
  "tagFormat": "",
  "tagString": "",
  "userDefinedVariableTypes": []
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/floodlightActivities");

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  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"attributionEnabled\": false,\n  \"cacheBustingType\": \"\",\n  \"countingMethod\": \"\",\n  \"defaultTags\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"tag\": \"\"\n    }\n  ],\n  \"expectedUrl\": \"\",\n  \"floodlightActivityGroupId\": \"\",\n  \"floodlightActivityGroupName\": \"\",\n  \"floodlightActivityGroupTagString\": \"\",\n  \"floodlightActivityGroupType\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"floodlightTagType\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"publisherTags\": [\n    {\n      \"clickThrough\": false,\n      \"directorySiteId\": \"\",\n      \"dynamicTag\": {},\n      \"siteId\": \"\",\n      \"siteIdDimensionValue\": {},\n      \"viewThrough\": false\n    }\n  ],\n  \"secure\": false,\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormat\": \"\",\n  \"tagString\": \"\",\n  \"userDefinedVariableTypes\": []\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/userprofiles/:profileId/floodlightActivities" {:content-type :json
                                                                                         :form-params {:accountId ""
                                                                                                       :advertiserId ""
                                                                                                       :advertiserIdDimensionValue {:dimensionName ""
                                                                                                                                    :etag ""
                                                                                                                                    :id ""
                                                                                                                                    :kind ""
                                                                                                                                    :matchType ""
                                                                                                                                    :value ""}
                                                                                                       :attributionEnabled false
                                                                                                       :cacheBustingType ""
                                                                                                       :countingMethod ""
                                                                                                       :defaultTags [{:id ""
                                                                                                                      :name ""
                                                                                                                      :tag ""}]
                                                                                                       :expectedUrl ""
                                                                                                       :floodlightActivityGroupId ""
                                                                                                       :floodlightActivityGroupName ""
                                                                                                       :floodlightActivityGroupTagString ""
                                                                                                       :floodlightActivityGroupType ""
                                                                                                       :floodlightConfigurationId ""
                                                                                                       :floodlightConfigurationIdDimensionValue {}
                                                                                                       :floodlightTagType ""
                                                                                                       :id ""
                                                                                                       :idDimensionValue {}
                                                                                                       :kind ""
                                                                                                       :name ""
                                                                                                       :notes ""
                                                                                                       :publisherTags [{:clickThrough false
                                                                                                                        :directorySiteId ""
                                                                                                                        :dynamicTag {}
                                                                                                                        :siteId ""
                                                                                                                        :siteIdDimensionValue {}
                                                                                                                        :viewThrough false}]
                                                                                                       :secure false
                                                                                                       :sslCompliant false
                                                                                                       :sslRequired false
                                                                                                       :status ""
                                                                                                       :subaccountId ""
                                                                                                       :tagFormat ""
                                                                                                       :tagString ""
                                                                                                       :userDefinedVariableTypes []}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/floodlightActivities"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"attributionEnabled\": false,\n  \"cacheBustingType\": \"\",\n  \"countingMethod\": \"\",\n  \"defaultTags\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"tag\": \"\"\n    }\n  ],\n  \"expectedUrl\": \"\",\n  \"floodlightActivityGroupId\": \"\",\n  \"floodlightActivityGroupName\": \"\",\n  \"floodlightActivityGroupTagString\": \"\",\n  \"floodlightActivityGroupType\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"floodlightTagType\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"publisherTags\": [\n    {\n      \"clickThrough\": false,\n      \"directorySiteId\": \"\",\n      \"dynamicTag\": {},\n      \"siteId\": \"\",\n      \"siteIdDimensionValue\": {},\n      \"viewThrough\": false\n    }\n  ],\n  \"secure\": false,\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormat\": \"\",\n  \"tagString\": \"\",\n  \"userDefinedVariableTypes\": []\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}}/userprofiles/:profileId/floodlightActivities"),
    Content = new StringContent("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"attributionEnabled\": false,\n  \"cacheBustingType\": \"\",\n  \"countingMethod\": \"\",\n  \"defaultTags\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"tag\": \"\"\n    }\n  ],\n  \"expectedUrl\": \"\",\n  \"floodlightActivityGroupId\": \"\",\n  \"floodlightActivityGroupName\": \"\",\n  \"floodlightActivityGroupTagString\": \"\",\n  \"floodlightActivityGroupType\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"floodlightTagType\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"publisherTags\": [\n    {\n      \"clickThrough\": false,\n      \"directorySiteId\": \"\",\n      \"dynamicTag\": {},\n      \"siteId\": \"\",\n      \"siteIdDimensionValue\": {},\n      \"viewThrough\": false\n    }\n  ],\n  \"secure\": false,\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormat\": \"\",\n  \"tagString\": \"\",\n  \"userDefinedVariableTypes\": []\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}}/userprofiles/:profileId/floodlightActivities");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"attributionEnabled\": false,\n  \"cacheBustingType\": \"\",\n  \"countingMethod\": \"\",\n  \"defaultTags\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"tag\": \"\"\n    }\n  ],\n  \"expectedUrl\": \"\",\n  \"floodlightActivityGroupId\": \"\",\n  \"floodlightActivityGroupName\": \"\",\n  \"floodlightActivityGroupTagString\": \"\",\n  \"floodlightActivityGroupType\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"floodlightTagType\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"publisherTags\": [\n    {\n      \"clickThrough\": false,\n      \"directorySiteId\": \"\",\n      \"dynamicTag\": {},\n      \"siteId\": \"\",\n      \"siteIdDimensionValue\": {},\n      \"viewThrough\": false\n    }\n  ],\n  \"secure\": false,\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormat\": \"\",\n  \"tagString\": \"\",\n  \"userDefinedVariableTypes\": []\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/floodlightActivities"

	payload := strings.NewReader("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"attributionEnabled\": false,\n  \"cacheBustingType\": \"\",\n  \"countingMethod\": \"\",\n  \"defaultTags\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"tag\": \"\"\n    }\n  ],\n  \"expectedUrl\": \"\",\n  \"floodlightActivityGroupId\": \"\",\n  \"floodlightActivityGroupName\": \"\",\n  \"floodlightActivityGroupTagString\": \"\",\n  \"floodlightActivityGroupType\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"floodlightTagType\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"publisherTags\": [\n    {\n      \"clickThrough\": false,\n      \"directorySiteId\": \"\",\n      \"dynamicTag\": {},\n      \"siteId\": \"\",\n      \"siteIdDimensionValue\": {},\n      \"viewThrough\": false\n    }\n  ],\n  \"secure\": false,\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormat\": \"\",\n  \"tagString\": \"\",\n  \"userDefinedVariableTypes\": []\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/userprofiles/:profileId/floodlightActivities HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 1100

{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "attributionEnabled": false,
  "cacheBustingType": "",
  "countingMethod": "",
  "defaultTags": [
    {
      "id": "",
      "name": "",
      "tag": ""
    }
  ],
  "expectedUrl": "",
  "floodlightActivityGroupId": "",
  "floodlightActivityGroupName": "",
  "floodlightActivityGroupTagString": "",
  "floodlightActivityGroupType": "",
  "floodlightConfigurationId": "",
  "floodlightConfigurationIdDimensionValue": {},
  "floodlightTagType": "",
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "name": "",
  "notes": "",
  "publisherTags": [
    {
      "clickThrough": false,
      "directorySiteId": "",
      "dynamicTag": {},
      "siteId": "",
      "siteIdDimensionValue": {},
      "viewThrough": false
    }
  ],
  "secure": false,
  "sslCompliant": false,
  "sslRequired": false,
  "status": "",
  "subaccountId": "",
  "tagFormat": "",
  "tagString": "",
  "userDefinedVariableTypes": []
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/userprofiles/:profileId/floodlightActivities")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"attributionEnabled\": false,\n  \"cacheBustingType\": \"\",\n  \"countingMethod\": \"\",\n  \"defaultTags\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"tag\": \"\"\n    }\n  ],\n  \"expectedUrl\": \"\",\n  \"floodlightActivityGroupId\": \"\",\n  \"floodlightActivityGroupName\": \"\",\n  \"floodlightActivityGroupTagString\": \"\",\n  \"floodlightActivityGroupType\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"floodlightTagType\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"publisherTags\": [\n    {\n      \"clickThrough\": false,\n      \"directorySiteId\": \"\",\n      \"dynamicTag\": {},\n      \"siteId\": \"\",\n      \"siteIdDimensionValue\": {},\n      \"viewThrough\": false\n    }\n  ],\n  \"secure\": false,\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormat\": \"\",\n  \"tagString\": \"\",\n  \"userDefinedVariableTypes\": []\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/floodlightActivities"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"attributionEnabled\": false,\n  \"cacheBustingType\": \"\",\n  \"countingMethod\": \"\",\n  \"defaultTags\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"tag\": \"\"\n    }\n  ],\n  \"expectedUrl\": \"\",\n  \"floodlightActivityGroupId\": \"\",\n  \"floodlightActivityGroupName\": \"\",\n  \"floodlightActivityGroupTagString\": \"\",\n  \"floodlightActivityGroupType\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"floodlightTagType\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"publisherTags\": [\n    {\n      \"clickThrough\": false,\n      \"directorySiteId\": \"\",\n      \"dynamicTag\": {},\n      \"siteId\": \"\",\n      \"siteIdDimensionValue\": {},\n      \"viewThrough\": false\n    }\n  ],\n  \"secure\": false,\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormat\": \"\",\n  \"tagString\": \"\",\n  \"userDefinedVariableTypes\": []\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  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"attributionEnabled\": false,\n  \"cacheBustingType\": \"\",\n  \"countingMethod\": \"\",\n  \"defaultTags\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"tag\": \"\"\n    }\n  ],\n  \"expectedUrl\": \"\",\n  \"floodlightActivityGroupId\": \"\",\n  \"floodlightActivityGroupName\": \"\",\n  \"floodlightActivityGroupTagString\": \"\",\n  \"floodlightActivityGroupType\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"floodlightTagType\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"publisherTags\": [\n    {\n      \"clickThrough\": false,\n      \"directorySiteId\": \"\",\n      \"dynamicTag\": {},\n      \"siteId\": \"\",\n      \"siteIdDimensionValue\": {},\n      \"viewThrough\": false\n    }\n  ],\n  \"secure\": false,\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormat\": \"\",\n  \"tagString\": \"\",\n  \"userDefinedVariableTypes\": []\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/floodlightActivities")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/userprofiles/:profileId/floodlightActivities")
  .header("content-type", "application/json")
  .body("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"attributionEnabled\": false,\n  \"cacheBustingType\": \"\",\n  \"countingMethod\": \"\",\n  \"defaultTags\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"tag\": \"\"\n    }\n  ],\n  \"expectedUrl\": \"\",\n  \"floodlightActivityGroupId\": \"\",\n  \"floodlightActivityGroupName\": \"\",\n  \"floodlightActivityGroupTagString\": \"\",\n  \"floodlightActivityGroupType\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"floodlightTagType\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"publisherTags\": [\n    {\n      \"clickThrough\": false,\n      \"directorySiteId\": \"\",\n      \"dynamicTag\": {},\n      \"siteId\": \"\",\n      \"siteIdDimensionValue\": {},\n      \"viewThrough\": false\n    }\n  ],\n  \"secure\": false,\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormat\": \"\",\n  \"tagString\": \"\",\n  \"userDefinedVariableTypes\": []\n}")
  .asString();
const data = JSON.stringify({
  accountId: '',
  advertiserId: '',
  advertiserIdDimensionValue: {
    dimensionName: '',
    etag: '',
    id: '',
    kind: '',
    matchType: '',
    value: ''
  },
  attributionEnabled: false,
  cacheBustingType: '',
  countingMethod: '',
  defaultTags: [
    {
      id: '',
      name: '',
      tag: ''
    }
  ],
  expectedUrl: '',
  floodlightActivityGroupId: '',
  floodlightActivityGroupName: '',
  floodlightActivityGroupTagString: '',
  floodlightActivityGroupType: '',
  floodlightConfigurationId: '',
  floodlightConfigurationIdDimensionValue: {},
  floodlightTagType: '',
  id: '',
  idDimensionValue: {},
  kind: '',
  name: '',
  notes: '',
  publisherTags: [
    {
      clickThrough: false,
      directorySiteId: '',
      dynamicTag: {},
      siteId: '',
      siteIdDimensionValue: {},
      viewThrough: false
    }
  ],
  secure: false,
  sslCompliant: false,
  sslRequired: false,
  status: '',
  subaccountId: '',
  tagFormat: '',
  tagString: '',
  userDefinedVariableTypes: []
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/userprofiles/:profileId/floodlightActivities');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/userprofiles/:profileId/floodlightActivities',
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    attributionEnabled: false,
    cacheBustingType: '',
    countingMethod: '',
    defaultTags: [{id: '', name: '', tag: ''}],
    expectedUrl: '',
    floodlightActivityGroupId: '',
    floodlightActivityGroupName: '',
    floodlightActivityGroupTagString: '',
    floodlightActivityGroupType: '',
    floodlightConfigurationId: '',
    floodlightConfigurationIdDimensionValue: {},
    floodlightTagType: '',
    id: '',
    idDimensionValue: {},
    kind: '',
    name: '',
    notes: '',
    publisherTags: [
      {
        clickThrough: false,
        directorySiteId: '',
        dynamicTag: {},
        siteId: '',
        siteIdDimensionValue: {},
        viewThrough: false
      }
    ],
    secure: false,
    sslCompliant: false,
    sslRequired: false,
    status: '',
    subaccountId: '',
    tagFormat: '',
    tagString: '',
    userDefinedVariableTypes: []
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/floodlightActivities';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","advertiserId":"","advertiserIdDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"attributionEnabled":false,"cacheBustingType":"","countingMethod":"","defaultTags":[{"id":"","name":"","tag":""}],"expectedUrl":"","floodlightActivityGroupId":"","floodlightActivityGroupName":"","floodlightActivityGroupTagString":"","floodlightActivityGroupType":"","floodlightConfigurationId":"","floodlightConfigurationIdDimensionValue":{},"floodlightTagType":"","id":"","idDimensionValue":{},"kind":"","name":"","notes":"","publisherTags":[{"clickThrough":false,"directorySiteId":"","dynamicTag":{},"siteId":"","siteIdDimensionValue":{},"viewThrough":false}],"secure":false,"sslCompliant":false,"sslRequired":false,"status":"","subaccountId":"","tagFormat":"","tagString":"","userDefinedVariableTypes":[]}'
};

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}}/userprofiles/:profileId/floodlightActivities',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "accountId": "",\n  "advertiserId": "",\n  "advertiserIdDimensionValue": {\n    "dimensionName": "",\n    "etag": "",\n    "id": "",\n    "kind": "",\n    "matchType": "",\n    "value": ""\n  },\n  "attributionEnabled": false,\n  "cacheBustingType": "",\n  "countingMethod": "",\n  "defaultTags": [\n    {\n      "id": "",\n      "name": "",\n      "tag": ""\n    }\n  ],\n  "expectedUrl": "",\n  "floodlightActivityGroupId": "",\n  "floodlightActivityGroupName": "",\n  "floodlightActivityGroupTagString": "",\n  "floodlightActivityGroupType": "",\n  "floodlightConfigurationId": "",\n  "floodlightConfigurationIdDimensionValue": {},\n  "floodlightTagType": "",\n  "id": "",\n  "idDimensionValue": {},\n  "kind": "",\n  "name": "",\n  "notes": "",\n  "publisherTags": [\n    {\n      "clickThrough": false,\n      "directorySiteId": "",\n      "dynamicTag": {},\n      "siteId": "",\n      "siteIdDimensionValue": {},\n      "viewThrough": false\n    }\n  ],\n  "secure": false,\n  "sslCompliant": false,\n  "sslRequired": false,\n  "status": "",\n  "subaccountId": "",\n  "tagFormat": "",\n  "tagString": "",\n  "userDefinedVariableTypes": []\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"attributionEnabled\": false,\n  \"cacheBustingType\": \"\",\n  \"countingMethod\": \"\",\n  \"defaultTags\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"tag\": \"\"\n    }\n  ],\n  \"expectedUrl\": \"\",\n  \"floodlightActivityGroupId\": \"\",\n  \"floodlightActivityGroupName\": \"\",\n  \"floodlightActivityGroupTagString\": \"\",\n  \"floodlightActivityGroupType\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"floodlightTagType\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"publisherTags\": [\n    {\n      \"clickThrough\": false,\n      \"directorySiteId\": \"\",\n      \"dynamicTag\": {},\n      \"siteId\": \"\",\n      \"siteIdDimensionValue\": {},\n      \"viewThrough\": false\n    }\n  ],\n  \"secure\": false,\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormat\": \"\",\n  \"tagString\": \"\",\n  \"userDefinedVariableTypes\": []\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/floodlightActivities")
  .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/userprofiles/:profileId/floodlightActivities',
  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({
  accountId: '',
  advertiserId: '',
  advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
  attributionEnabled: false,
  cacheBustingType: '',
  countingMethod: '',
  defaultTags: [{id: '', name: '', tag: ''}],
  expectedUrl: '',
  floodlightActivityGroupId: '',
  floodlightActivityGroupName: '',
  floodlightActivityGroupTagString: '',
  floodlightActivityGroupType: '',
  floodlightConfigurationId: '',
  floodlightConfigurationIdDimensionValue: {},
  floodlightTagType: '',
  id: '',
  idDimensionValue: {},
  kind: '',
  name: '',
  notes: '',
  publisherTags: [
    {
      clickThrough: false,
      directorySiteId: '',
      dynamicTag: {},
      siteId: '',
      siteIdDimensionValue: {},
      viewThrough: false
    }
  ],
  secure: false,
  sslCompliant: false,
  sslRequired: false,
  status: '',
  subaccountId: '',
  tagFormat: '',
  tagString: '',
  userDefinedVariableTypes: []
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/userprofiles/:profileId/floodlightActivities',
  headers: {'content-type': 'application/json'},
  body: {
    accountId: '',
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    attributionEnabled: false,
    cacheBustingType: '',
    countingMethod: '',
    defaultTags: [{id: '', name: '', tag: ''}],
    expectedUrl: '',
    floodlightActivityGroupId: '',
    floodlightActivityGroupName: '',
    floodlightActivityGroupTagString: '',
    floodlightActivityGroupType: '',
    floodlightConfigurationId: '',
    floodlightConfigurationIdDimensionValue: {},
    floodlightTagType: '',
    id: '',
    idDimensionValue: {},
    kind: '',
    name: '',
    notes: '',
    publisherTags: [
      {
        clickThrough: false,
        directorySiteId: '',
        dynamicTag: {},
        siteId: '',
        siteIdDimensionValue: {},
        viewThrough: false
      }
    ],
    secure: false,
    sslCompliant: false,
    sslRequired: false,
    status: '',
    subaccountId: '',
    tagFormat: '',
    tagString: '',
    userDefinedVariableTypes: []
  },
  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}}/userprofiles/:profileId/floodlightActivities');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  accountId: '',
  advertiserId: '',
  advertiserIdDimensionValue: {
    dimensionName: '',
    etag: '',
    id: '',
    kind: '',
    matchType: '',
    value: ''
  },
  attributionEnabled: false,
  cacheBustingType: '',
  countingMethod: '',
  defaultTags: [
    {
      id: '',
      name: '',
      tag: ''
    }
  ],
  expectedUrl: '',
  floodlightActivityGroupId: '',
  floodlightActivityGroupName: '',
  floodlightActivityGroupTagString: '',
  floodlightActivityGroupType: '',
  floodlightConfigurationId: '',
  floodlightConfigurationIdDimensionValue: {},
  floodlightTagType: '',
  id: '',
  idDimensionValue: {},
  kind: '',
  name: '',
  notes: '',
  publisherTags: [
    {
      clickThrough: false,
      directorySiteId: '',
      dynamicTag: {},
      siteId: '',
      siteIdDimensionValue: {},
      viewThrough: false
    }
  ],
  secure: false,
  sslCompliant: false,
  sslRequired: false,
  status: '',
  subaccountId: '',
  tagFormat: '',
  tagString: '',
  userDefinedVariableTypes: []
});

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}}/userprofiles/:profileId/floodlightActivities',
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    attributionEnabled: false,
    cacheBustingType: '',
    countingMethod: '',
    defaultTags: [{id: '', name: '', tag: ''}],
    expectedUrl: '',
    floodlightActivityGroupId: '',
    floodlightActivityGroupName: '',
    floodlightActivityGroupTagString: '',
    floodlightActivityGroupType: '',
    floodlightConfigurationId: '',
    floodlightConfigurationIdDimensionValue: {},
    floodlightTagType: '',
    id: '',
    idDimensionValue: {},
    kind: '',
    name: '',
    notes: '',
    publisherTags: [
      {
        clickThrough: false,
        directorySiteId: '',
        dynamicTag: {},
        siteId: '',
        siteIdDimensionValue: {},
        viewThrough: false
      }
    ],
    secure: false,
    sslCompliant: false,
    sslRequired: false,
    status: '',
    subaccountId: '',
    tagFormat: '',
    tagString: '',
    userDefinedVariableTypes: []
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/floodlightActivities';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","advertiserId":"","advertiserIdDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"attributionEnabled":false,"cacheBustingType":"","countingMethod":"","defaultTags":[{"id":"","name":"","tag":""}],"expectedUrl":"","floodlightActivityGroupId":"","floodlightActivityGroupName":"","floodlightActivityGroupTagString":"","floodlightActivityGroupType":"","floodlightConfigurationId":"","floodlightConfigurationIdDimensionValue":{},"floodlightTagType":"","id":"","idDimensionValue":{},"kind":"","name":"","notes":"","publisherTags":[{"clickThrough":false,"directorySiteId":"","dynamicTag":{},"siteId":"","siteIdDimensionValue":{},"viewThrough":false}],"secure":false,"sslCompliant":false,"sslRequired":false,"status":"","subaccountId":"","tagFormat":"","tagString":"","userDefinedVariableTypes":[]}'
};

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 = @{ @"accountId": @"",
                              @"advertiserId": @"",
                              @"advertiserIdDimensionValue": @{ @"dimensionName": @"", @"etag": @"", @"id": @"", @"kind": @"", @"matchType": @"", @"value": @"" },
                              @"attributionEnabled": @NO,
                              @"cacheBustingType": @"",
                              @"countingMethod": @"",
                              @"defaultTags": @[ @{ @"id": @"", @"name": @"", @"tag": @"" } ],
                              @"expectedUrl": @"",
                              @"floodlightActivityGroupId": @"",
                              @"floodlightActivityGroupName": @"",
                              @"floodlightActivityGroupTagString": @"",
                              @"floodlightActivityGroupType": @"",
                              @"floodlightConfigurationId": @"",
                              @"floodlightConfigurationIdDimensionValue": @{  },
                              @"floodlightTagType": @"",
                              @"id": @"",
                              @"idDimensionValue": @{  },
                              @"kind": @"",
                              @"name": @"",
                              @"notes": @"",
                              @"publisherTags": @[ @{ @"clickThrough": @NO, @"directorySiteId": @"", @"dynamicTag": @{  }, @"siteId": @"", @"siteIdDimensionValue": @{  }, @"viewThrough": @NO } ],
                              @"secure": @NO,
                              @"sslCompliant": @NO,
                              @"sslRequired": @NO,
                              @"status": @"",
                              @"subaccountId": @"",
                              @"tagFormat": @"",
                              @"tagString": @"",
                              @"userDefinedVariableTypes": @[  ] };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/userprofiles/:profileId/floodlightActivities"]
                                                       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}}/userprofiles/:profileId/floodlightActivities" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"attributionEnabled\": false,\n  \"cacheBustingType\": \"\",\n  \"countingMethod\": \"\",\n  \"defaultTags\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"tag\": \"\"\n    }\n  ],\n  \"expectedUrl\": \"\",\n  \"floodlightActivityGroupId\": \"\",\n  \"floodlightActivityGroupName\": \"\",\n  \"floodlightActivityGroupTagString\": \"\",\n  \"floodlightActivityGroupType\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"floodlightTagType\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"publisherTags\": [\n    {\n      \"clickThrough\": false,\n      \"directorySiteId\": \"\",\n      \"dynamicTag\": {},\n      \"siteId\": \"\",\n      \"siteIdDimensionValue\": {},\n      \"viewThrough\": false\n    }\n  ],\n  \"secure\": false,\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormat\": \"\",\n  \"tagString\": \"\",\n  \"userDefinedVariableTypes\": []\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/floodlightActivities",
  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([
    'accountId' => '',
    'advertiserId' => '',
    'advertiserIdDimensionValue' => [
        'dimensionName' => '',
        'etag' => '',
        'id' => '',
        'kind' => '',
        'matchType' => '',
        'value' => ''
    ],
    'attributionEnabled' => null,
    'cacheBustingType' => '',
    'countingMethod' => '',
    'defaultTags' => [
        [
                'id' => '',
                'name' => '',
                'tag' => ''
        ]
    ],
    'expectedUrl' => '',
    'floodlightActivityGroupId' => '',
    'floodlightActivityGroupName' => '',
    'floodlightActivityGroupTagString' => '',
    'floodlightActivityGroupType' => '',
    'floodlightConfigurationId' => '',
    'floodlightConfigurationIdDimensionValue' => [
        
    ],
    'floodlightTagType' => '',
    'id' => '',
    'idDimensionValue' => [
        
    ],
    'kind' => '',
    'name' => '',
    'notes' => '',
    'publisherTags' => [
        [
                'clickThrough' => null,
                'directorySiteId' => '',
                'dynamicTag' => [
                                
                ],
                'siteId' => '',
                'siteIdDimensionValue' => [
                                
                ],
                'viewThrough' => null
        ]
    ],
    'secure' => null,
    'sslCompliant' => null,
    'sslRequired' => null,
    'status' => '',
    'subaccountId' => '',
    'tagFormat' => '',
    'tagString' => '',
    'userDefinedVariableTypes' => [
        
    ]
  ]),
  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}}/userprofiles/:profileId/floodlightActivities', [
  'body' => '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "attributionEnabled": false,
  "cacheBustingType": "",
  "countingMethod": "",
  "defaultTags": [
    {
      "id": "",
      "name": "",
      "tag": ""
    }
  ],
  "expectedUrl": "",
  "floodlightActivityGroupId": "",
  "floodlightActivityGroupName": "",
  "floodlightActivityGroupTagString": "",
  "floodlightActivityGroupType": "",
  "floodlightConfigurationId": "",
  "floodlightConfigurationIdDimensionValue": {},
  "floodlightTagType": "",
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "name": "",
  "notes": "",
  "publisherTags": [
    {
      "clickThrough": false,
      "directorySiteId": "",
      "dynamicTag": {},
      "siteId": "",
      "siteIdDimensionValue": {},
      "viewThrough": false
    }
  ],
  "secure": false,
  "sslCompliant": false,
  "sslRequired": false,
  "status": "",
  "subaccountId": "",
  "tagFormat": "",
  "tagString": "",
  "userDefinedVariableTypes": []
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/floodlightActivities');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'accountId' => '',
  'advertiserId' => '',
  'advertiserIdDimensionValue' => [
    'dimensionName' => '',
    'etag' => '',
    'id' => '',
    'kind' => '',
    'matchType' => '',
    'value' => ''
  ],
  'attributionEnabled' => null,
  'cacheBustingType' => '',
  'countingMethod' => '',
  'defaultTags' => [
    [
        'id' => '',
        'name' => '',
        'tag' => ''
    ]
  ],
  'expectedUrl' => '',
  'floodlightActivityGroupId' => '',
  'floodlightActivityGroupName' => '',
  'floodlightActivityGroupTagString' => '',
  'floodlightActivityGroupType' => '',
  'floodlightConfigurationId' => '',
  'floodlightConfigurationIdDimensionValue' => [
    
  ],
  'floodlightTagType' => '',
  'id' => '',
  'idDimensionValue' => [
    
  ],
  'kind' => '',
  'name' => '',
  'notes' => '',
  'publisherTags' => [
    [
        'clickThrough' => null,
        'directorySiteId' => '',
        'dynamicTag' => [
                
        ],
        'siteId' => '',
        'siteIdDimensionValue' => [
                
        ],
        'viewThrough' => null
    ]
  ],
  'secure' => null,
  'sslCompliant' => null,
  'sslRequired' => null,
  'status' => '',
  'subaccountId' => '',
  'tagFormat' => '',
  'tagString' => '',
  'userDefinedVariableTypes' => [
    
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'accountId' => '',
  'advertiserId' => '',
  'advertiserIdDimensionValue' => [
    'dimensionName' => '',
    'etag' => '',
    'id' => '',
    'kind' => '',
    'matchType' => '',
    'value' => ''
  ],
  'attributionEnabled' => null,
  'cacheBustingType' => '',
  'countingMethod' => '',
  'defaultTags' => [
    [
        'id' => '',
        'name' => '',
        'tag' => ''
    ]
  ],
  'expectedUrl' => '',
  'floodlightActivityGroupId' => '',
  'floodlightActivityGroupName' => '',
  'floodlightActivityGroupTagString' => '',
  'floodlightActivityGroupType' => '',
  'floodlightConfigurationId' => '',
  'floodlightConfigurationIdDimensionValue' => [
    
  ],
  'floodlightTagType' => '',
  'id' => '',
  'idDimensionValue' => [
    
  ],
  'kind' => '',
  'name' => '',
  'notes' => '',
  'publisherTags' => [
    [
        'clickThrough' => null,
        'directorySiteId' => '',
        'dynamicTag' => [
                
        ],
        'siteId' => '',
        'siteIdDimensionValue' => [
                
        ],
        'viewThrough' => null
    ]
  ],
  'secure' => null,
  'sslCompliant' => null,
  'sslRequired' => null,
  'status' => '',
  'subaccountId' => '',
  'tagFormat' => '',
  'tagString' => '',
  'userDefinedVariableTypes' => [
    
  ]
]));
$request->setRequestUrl('{{baseUrl}}/userprofiles/:profileId/floodlightActivities');
$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}}/userprofiles/:profileId/floodlightActivities' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "attributionEnabled": false,
  "cacheBustingType": "",
  "countingMethod": "",
  "defaultTags": [
    {
      "id": "",
      "name": "",
      "tag": ""
    }
  ],
  "expectedUrl": "",
  "floodlightActivityGroupId": "",
  "floodlightActivityGroupName": "",
  "floodlightActivityGroupTagString": "",
  "floodlightActivityGroupType": "",
  "floodlightConfigurationId": "",
  "floodlightConfigurationIdDimensionValue": {},
  "floodlightTagType": "",
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "name": "",
  "notes": "",
  "publisherTags": [
    {
      "clickThrough": false,
      "directorySiteId": "",
      "dynamicTag": {},
      "siteId": "",
      "siteIdDimensionValue": {},
      "viewThrough": false
    }
  ],
  "secure": false,
  "sslCompliant": false,
  "sslRequired": false,
  "status": "",
  "subaccountId": "",
  "tagFormat": "",
  "tagString": "",
  "userDefinedVariableTypes": []
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/floodlightActivities' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "attributionEnabled": false,
  "cacheBustingType": "",
  "countingMethod": "",
  "defaultTags": [
    {
      "id": "",
      "name": "",
      "tag": ""
    }
  ],
  "expectedUrl": "",
  "floodlightActivityGroupId": "",
  "floodlightActivityGroupName": "",
  "floodlightActivityGroupTagString": "",
  "floodlightActivityGroupType": "",
  "floodlightConfigurationId": "",
  "floodlightConfigurationIdDimensionValue": {},
  "floodlightTagType": "",
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "name": "",
  "notes": "",
  "publisherTags": [
    {
      "clickThrough": false,
      "directorySiteId": "",
      "dynamicTag": {},
      "siteId": "",
      "siteIdDimensionValue": {},
      "viewThrough": false
    }
  ],
  "secure": false,
  "sslCompliant": false,
  "sslRequired": false,
  "status": "",
  "subaccountId": "",
  "tagFormat": "",
  "tagString": "",
  "userDefinedVariableTypes": []
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"attributionEnabled\": false,\n  \"cacheBustingType\": \"\",\n  \"countingMethod\": \"\",\n  \"defaultTags\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"tag\": \"\"\n    }\n  ],\n  \"expectedUrl\": \"\",\n  \"floodlightActivityGroupId\": \"\",\n  \"floodlightActivityGroupName\": \"\",\n  \"floodlightActivityGroupTagString\": \"\",\n  \"floodlightActivityGroupType\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"floodlightTagType\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"publisherTags\": [\n    {\n      \"clickThrough\": false,\n      \"directorySiteId\": \"\",\n      \"dynamicTag\": {},\n      \"siteId\": \"\",\n      \"siteIdDimensionValue\": {},\n      \"viewThrough\": false\n    }\n  ],\n  \"secure\": false,\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormat\": \"\",\n  \"tagString\": \"\",\n  \"userDefinedVariableTypes\": []\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/userprofiles/:profileId/floodlightActivities", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/floodlightActivities"

payload = {
    "accountId": "",
    "advertiserId": "",
    "advertiserIdDimensionValue": {
        "dimensionName": "",
        "etag": "",
        "id": "",
        "kind": "",
        "matchType": "",
        "value": ""
    },
    "attributionEnabled": False,
    "cacheBustingType": "",
    "countingMethod": "",
    "defaultTags": [
        {
            "id": "",
            "name": "",
            "tag": ""
        }
    ],
    "expectedUrl": "",
    "floodlightActivityGroupId": "",
    "floodlightActivityGroupName": "",
    "floodlightActivityGroupTagString": "",
    "floodlightActivityGroupType": "",
    "floodlightConfigurationId": "",
    "floodlightConfigurationIdDimensionValue": {},
    "floodlightTagType": "",
    "id": "",
    "idDimensionValue": {},
    "kind": "",
    "name": "",
    "notes": "",
    "publisherTags": [
        {
            "clickThrough": False,
            "directorySiteId": "",
            "dynamicTag": {},
            "siteId": "",
            "siteIdDimensionValue": {},
            "viewThrough": False
        }
    ],
    "secure": False,
    "sslCompliant": False,
    "sslRequired": False,
    "status": "",
    "subaccountId": "",
    "tagFormat": "",
    "tagString": "",
    "userDefinedVariableTypes": []
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/floodlightActivities"

payload <- "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"attributionEnabled\": false,\n  \"cacheBustingType\": \"\",\n  \"countingMethod\": \"\",\n  \"defaultTags\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"tag\": \"\"\n    }\n  ],\n  \"expectedUrl\": \"\",\n  \"floodlightActivityGroupId\": \"\",\n  \"floodlightActivityGroupName\": \"\",\n  \"floodlightActivityGroupTagString\": \"\",\n  \"floodlightActivityGroupType\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"floodlightTagType\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"publisherTags\": [\n    {\n      \"clickThrough\": false,\n      \"directorySiteId\": \"\",\n      \"dynamicTag\": {},\n      \"siteId\": \"\",\n      \"siteIdDimensionValue\": {},\n      \"viewThrough\": false\n    }\n  ],\n  \"secure\": false,\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormat\": \"\",\n  \"tagString\": \"\",\n  \"userDefinedVariableTypes\": []\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}}/userprofiles/:profileId/floodlightActivities")

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  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"attributionEnabled\": false,\n  \"cacheBustingType\": \"\",\n  \"countingMethod\": \"\",\n  \"defaultTags\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"tag\": \"\"\n    }\n  ],\n  \"expectedUrl\": \"\",\n  \"floodlightActivityGroupId\": \"\",\n  \"floodlightActivityGroupName\": \"\",\n  \"floodlightActivityGroupTagString\": \"\",\n  \"floodlightActivityGroupType\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"floodlightTagType\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"publisherTags\": [\n    {\n      \"clickThrough\": false,\n      \"directorySiteId\": \"\",\n      \"dynamicTag\": {},\n      \"siteId\": \"\",\n      \"siteIdDimensionValue\": {},\n      \"viewThrough\": false\n    }\n  ],\n  \"secure\": false,\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormat\": \"\",\n  \"tagString\": \"\",\n  \"userDefinedVariableTypes\": []\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/userprofiles/:profileId/floodlightActivities') do |req|
  req.body = "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"attributionEnabled\": false,\n  \"cacheBustingType\": \"\",\n  \"countingMethod\": \"\",\n  \"defaultTags\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"tag\": \"\"\n    }\n  ],\n  \"expectedUrl\": \"\",\n  \"floodlightActivityGroupId\": \"\",\n  \"floodlightActivityGroupName\": \"\",\n  \"floodlightActivityGroupTagString\": \"\",\n  \"floodlightActivityGroupType\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"floodlightTagType\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"publisherTags\": [\n    {\n      \"clickThrough\": false,\n      \"directorySiteId\": \"\",\n      \"dynamicTag\": {},\n      \"siteId\": \"\",\n      \"siteIdDimensionValue\": {},\n      \"viewThrough\": false\n    }\n  ],\n  \"secure\": false,\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormat\": \"\",\n  \"tagString\": \"\",\n  \"userDefinedVariableTypes\": []\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/floodlightActivities";

    let payload = json!({
        "accountId": "",
        "advertiserId": "",
        "advertiserIdDimensionValue": json!({
            "dimensionName": "",
            "etag": "",
            "id": "",
            "kind": "",
            "matchType": "",
            "value": ""
        }),
        "attributionEnabled": false,
        "cacheBustingType": "",
        "countingMethod": "",
        "defaultTags": (
            json!({
                "id": "",
                "name": "",
                "tag": ""
            })
        ),
        "expectedUrl": "",
        "floodlightActivityGroupId": "",
        "floodlightActivityGroupName": "",
        "floodlightActivityGroupTagString": "",
        "floodlightActivityGroupType": "",
        "floodlightConfigurationId": "",
        "floodlightConfigurationIdDimensionValue": json!({}),
        "floodlightTagType": "",
        "id": "",
        "idDimensionValue": json!({}),
        "kind": "",
        "name": "",
        "notes": "",
        "publisherTags": (
            json!({
                "clickThrough": false,
                "directorySiteId": "",
                "dynamicTag": json!({}),
                "siteId": "",
                "siteIdDimensionValue": json!({}),
                "viewThrough": false
            })
        ),
        "secure": false,
        "sslCompliant": false,
        "sslRequired": false,
        "status": "",
        "subaccountId": "",
        "tagFormat": "",
        "tagString": "",
        "userDefinedVariableTypes": ()
    });

    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}}/userprofiles/:profileId/floodlightActivities \
  --header 'content-type: application/json' \
  --data '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "attributionEnabled": false,
  "cacheBustingType": "",
  "countingMethod": "",
  "defaultTags": [
    {
      "id": "",
      "name": "",
      "tag": ""
    }
  ],
  "expectedUrl": "",
  "floodlightActivityGroupId": "",
  "floodlightActivityGroupName": "",
  "floodlightActivityGroupTagString": "",
  "floodlightActivityGroupType": "",
  "floodlightConfigurationId": "",
  "floodlightConfigurationIdDimensionValue": {},
  "floodlightTagType": "",
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "name": "",
  "notes": "",
  "publisherTags": [
    {
      "clickThrough": false,
      "directorySiteId": "",
      "dynamicTag": {},
      "siteId": "",
      "siteIdDimensionValue": {},
      "viewThrough": false
    }
  ],
  "secure": false,
  "sslCompliant": false,
  "sslRequired": false,
  "status": "",
  "subaccountId": "",
  "tagFormat": "",
  "tagString": "",
  "userDefinedVariableTypes": []
}'
echo '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "attributionEnabled": false,
  "cacheBustingType": "",
  "countingMethod": "",
  "defaultTags": [
    {
      "id": "",
      "name": "",
      "tag": ""
    }
  ],
  "expectedUrl": "",
  "floodlightActivityGroupId": "",
  "floodlightActivityGroupName": "",
  "floodlightActivityGroupTagString": "",
  "floodlightActivityGroupType": "",
  "floodlightConfigurationId": "",
  "floodlightConfigurationIdDimensionValue": {},
  "floodlightTagType": "",
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "name": "",
  "notes": "",
  "publisherTags": [
    {
      "clickThrough": false,
      "directorySiteId": "",
      "dynamicTag": {},
      "siteId": "",
      "siteIdDimensionValue": {},
      "viewThrough": false
    }
  ],
  "secure": false,
  "sslCompliant": false,
  "sslRequired": false,
  "status": "",
  "subaccountId": "",
  "tagFormat": "",
  "tagString": "",
  "userDefinedVariableTypes": []
}' |  \
  http POST {{baseUrl}}/userprofiles/:profileId/floodlightActivities \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "accountId": "",\n  "advertiserId": "",\n  "advertiserIdDimensionValue": {\n    "dimensionName": "",\n    "etag": "",\n    "id": "",\n    "kind": "",\n    "matchType": "",\n    "value": ""\n  },\n  "attributionEnabled": false,\n  "cacheBustingType": "",\n  "countingMethod": "",\n  "defaultTags": [\n    {\n      "id": "",\n      "name": "",\n      "tag": ""\n    }\n  ],\n  "expectedUrl": "",\n  "floodlightActivityGroupId": "",\n  "floodlightActivityGroupName": "",\n  "floodlightActivityGroupTagString": "",\n  "floodlightActivityGroupType": "",\n  "floodlightConfigurationId": "",\n  "floodlightConfigurationIdDimensionValue": {},\n  "floodlightTagType": "",\n  "id": "",\n  "idDimensionValue": {},\n  "kind": "",\n  "name": "",\n  "notes": "",\n  "publisherTags": [\n    {\n      "clickThrough": false,\n      "directorySiteId": "",\n      "dynamicTag": {},\n      "siteId": "",\n      "siteIdDimensionValue": {},\n      "viewThrough": false\n    }\n  ],\n  "secure": false,\n  "sslCompliant": false,\n  "sslRequired": false,\n  "status": "",\n  "subaccountId": "",\n  "tagFormat": "",\n  "tagString": "",\n  "userDefinedVariableTypes": []\n}' \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/floodlightActivities
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": [
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  ],
  "attributionEnabled": false,
  "cacheBustingType": "",
  "countingMethod": "",
  "defaultTags": [
    [
      "id": "",
      "name": "",
      "tag": ""
    ]
  ],
  "expectedUrl": "",
  "floodlightActivityGroupId": "",
  "floodlightActivityGroupName": "",
  "floodlightActivityGroupTagString": "",
  "floodlightActivityGroupType": "",
  "floodlightConfigurationId": "",
  "floodlightConfigurationIdDimensionValue": [],
  "floodlightTagType": "",
  "id": "",
  "idDimensionValue": [],
  "kind": "",
  "name": "",
  "notes": "",
  "publisherTags": [
    [
      "clickThrough": false,
      "directorySiteId": "",
      "dynamicTag": [],
      "siteId": "",
      "siteIdDimensionValue": [],
      "viewThrough": false
    ]
  ],
  "secure": false,
  "sslCompliant": false,
  "sslRequired": false,
  "status": "",
  "subaccountId": "",
  "tagFormat": "",
  "tagString": "",
  "userDefinedVariableTypes": []
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/floodlightActivities")! 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 dfareporting.floodlightActivities.list
{{baseUrl}}/userprofiles/:profileId/floodlightActivities
QUERY PARAMS

profileId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/floodlightActivities");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/floodlightActivities")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/floodlightActivities"

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}}/userprofiles/:profileId/floodlightActivities"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/floodlightActivities");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/floodlightActivities"

	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/userprofiles/:profileId/floodlightActivities HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/floodlightActivities")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/floodlightActivities"))
    .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}}/userprofiles/:profileId/floodlightActivities")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/floodlightActivities")
  .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}}/userprofiles/:profileId/floodlightActivities');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/floodlightActivities'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/floodlightActivities';
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}}/userprofiles/:profileId/floodlightActivities',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/floodlightActivities")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/floodlightActivities',
  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}}/userprofiles/:profileId/floodlightActivities'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/floodlightActivities');

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}}/userprofiles/:profileId/floodlightActivities'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/floodlightActivities';
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}}/userprofiles/:profileId/floodlightActivities"]
                                                       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}}/userprofiles/:profileId/floodlightActivities" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/floodlightActivities",
  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}}/userprofiles/:profileId/floodlightActivities');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/floodlightActivities');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/floodlightActivities');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/floodlightActivities' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/floodlightActivities' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/floodlightActivities")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/floodlightActivities"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/floodlightActivities"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/floodlightActivities")

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/userprofiles/:profileId/floodlightActivities') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/floodlightActivities";

    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}}/userprofiles/:profileId/floodlightActivities
http GET {{baseUrl}}/userprofiles/:profileId/floodlightActivities
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/floodlightActivities
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/floodlightActivities")! 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 dfareporting.floodlightActivities.patch
{{baseUrl}}/userprofiles/:profileId/floodlightActivities
QUERY PARAMS

id
profileId
BODY json

{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "attributionEnabled": false,
  "cacheBustingType": "",
  "countingMethod": "",
  "defaultTags": [
    {
      "id": "",
      "name": "",
      "tag": ""
    }
  ],
  "expectedUrl": "",
  "floodlightActivityGroupId": "",
  "floodlightActivityGroupName": "",
  "floodlightActivityGroupTagString": "",
  "floodlightActivityGroupType": "",
  "floodlightConfigurationId": "",
  "floodlightConfigurationIdDimensionValue": {},
  "floodlightTagType": "",
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "name": "",
  "notes": "",
  "publisherTags": [
    {
      "clickThrough": false,
      "directorySiteId": "",
      "dynamicTag": {},
      "siteId": "",
      "siteIdDimensionValue": {},
      "viewThrough": false
    }
  ],
  "secure": false,
  "sslCompliant": false,
  "sslRequired": false,
  "status": "",
  "subaccountId": "",
  "tagFormat": "",
  "tagString": "",
  "userDefinedVariableTypes": []
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/floodlightActivities?id=");

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  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"attributionEnabled\": false,\n  \"cacheBustingType\": \"\",\n  \"countingMethod\": \"\",\n  \"defaultTags\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"tag\": \"\"\n    }\n  ],\n  \"expectedUrl\": \"\",\n  \"floodlightActivityGroupId\": \"\",\n  \"floodlightActivityGroupName\": \"\",\n  \"floodlightActivityGroupTagString\": \"\",\n  \"floodlightActivityGroupType\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"floodlightTagType\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"publisherTags\": [\n    {\n      \"clickThrough\": false,\n      \"directorySiteId\": \"\",\n      \"dynamicTag\": {},\n      \"siteId\": \"\",\n      \"siteIdDimensionValue\": {},\n      \"viewThrough\": false\n    }\n  ],\n  \"secure\": false,\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormat\": \"\",\n  \"tagString\": \"\",\n  \"userDefinedVariableTypes\": []\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/patch "{{baseUrl}}/userprofiles/:profileId/floodlightActivities" {:query-params {:id ""}
                                                                                          :content-type :json
                                                                                          :form-params {:accountId ""
                                                                                                        :advertiserId ""
                                                                                                        :advertiserIdDimensionValue {:dimensionName ""
                                                                                                                                     :etag ""
                                                                                                                                     :id ""
                                                                                                                                     :kind ""
                                                                                                                                     :matchType ""
                                                                                                                                     :value ""}
                                                                                                        :attributionEnabled false
                                                                                                        :cacheBustingType ""
                                                                                                        :countingMethod ""
                                                                                                        :defaultTags [{:id ""
                                                                                                                       :name ""
                                                                                                                       :tag ""}]
                                                                                                        :expectedUrl ""
                                                                                                        :floodlightActivityGroupId ""
                                                                                                        :floodlightActivityGroupName ""
                                                                                                        :floodlightActivityGroupTagString ""
                                                                                                        :floodlightActivityGroupType ""
                                                                                                        :floodlightConfigurationId ""
                                                                                                        :floodlightConfigurationIdDimensionValue {}
                                                                                                        :floodlightTagType ""
                                                                                                        :id ""
                                                                                                        :idDimensionValue {}
                                                                                                        :kind ""
                                                                                                        :name ""
                                                                                                        :notes ""
                                                                                                        :publisherTags [{:clickThrough false
                                                                                                                         :directorySiteId ""
                                                                                                                         :dynamicTag {}
                                                                                                                         :siteId ""
                                                                                                                         :siteIdDimensionValue {}
                                                                                                                         :viewThrough false}]
                                                                                                        :secure false
                                                                                                        :sslCompliant false
                                                                                                        :sslRequired false
                                                                                                        :status ""
                                                                                                        :subaccountId ""
                                                                                                        :tagFormat ""
                                                                                                        :tagString ""
                                                                                                        :userDefinedVariableTypes []}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/floodlightActivities?id="
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"attributionEnabled\": false,\n  \"cacheBustingType\": \"\",\n  \"countingMethod\": \"\",\n  \"defaultTags\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"tag\": \"\"\n    }\n  ],\n  \"expectedUrl\": \"\",\n  \"floodlightActivityGroupId\": \"\",\n  \"floodlightActivityGroupName\": \"\",\n  \"floodlightActivityGroupTagString\": \"\",\n  \"floodlightActivityGroupType\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"floodlightTagType\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"publisherTags\": [\n    {\n      \"clickThrough\": false,\n      \"directorySiteId\": \"\",\n      \"dynamicTag\": {},\n      \"siteId\": \"\",\n      \"siteIdDimensionValue\": {},\n      \"viewThrough\": false\n    }\n  ],\n  \"secure\": false,\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormat\": \"\",\n  \"tagString\": \"\",\n  \"userDefinedVariableTypes\": []\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}}/userprofiles/:profileId/floodlightActivities?id="),
    Content = new StringContent("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"attributionEnabled\": false,\n  \"cacheBustingType\": \"\",\n  \"countingMethod\": \"\",\n  \"defaultTags\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"tag\": \"\"\n    }\n  ],\n  \"expectedUrl\": \"\",\n  \"floodlightActivityGroupId\": \"\",\n  \"floodlightActivityGroupName\": \"\",\n  \"floodlightActivityGroupTagString\": \"\",\n  \"floodlightActivityGroupType\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"floodlightTagType\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"publisherTags\": [\n    {\n      \"clickThrough\": false,\n      \"directorySiteId\": \"\",\n      \"dynamicTag\": {},\n      \"siteId\": \"\",\n      \"siteIdDimensionValue\": {},\n      \"viewThrough\": false\n    }\n  ],\n  \"secure\": false,\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormat\": \"\",\n  \"tagString\": \"\",\n  \"userDefinedVariableTypes\": []\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}}/userprofiles/:profileId/floodlightActivities?id=");
var request = new RestRequest("", Method.Patch);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"attributionEnabled\": false,\n  \"cacheBustingType\": \"\",\n  \"countingMethod\": \"\",\n  \"defaultTags\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"tag\": \"\"\n    }\n  ],\n  \"expectedUrl\": \"\",\n  \"floodlightActivityGroupId\": \"\",\n  \"floodlightActivityGroupName\": \"\",\n  \"floodlightActivityGroupTagString\": \"\",\n  \"floodlightActivityGroupType\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"floodlightTagType\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"publisherTags\": [\n    {\n      \"clickThrough\": false,\n      \"directorySiteId\": \"\",\n      \"dynamicTag\": {},\n      \"siteId\": \"\",\n      \"siteIdDimensionValue\": {},\n      \"viewThrough\": false\n    }\n  ],\n  \"secure\": false,\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormat\": \"\",\n  \"tagString\": \"\",\n  \"userDefinedVariableTypes\": []\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/floodlightActivities?id="

	payload := strings.NewReader("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"attributionEnabled\": false,\n  \"cacheBustingType\": \"\",\n  \"countingMethod\": \"\",\n  \"defaultTags\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"tag\": \"\"\n    }\n  ],\n  \"expectedUrl\": \"\",\n  \"floodlightActivityGroupId\": \"\",\n  \"floodlightActivityGroupName\": \"\",\n  \"floodlightActivityGroupTagString\": \"\",\n  \"floodlightActivityGroupType\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"floodlightTagType\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"publisherTags\": [\n    {\n      \"clickThrough\": false,\n      \"directorySiteId\": \"\",\n      \"dynamicTag\": {},\n      \"siteId\": \"\",\n      \"siteIdDimensionValue\": {},\n      \"viewThrough\": false\n    }\n  ],\n  \"secure\": false,\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormat\": \"\",\n  \"tagString\": \"\",\n  \"userDefinedVariableTypes\": []\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/userprofiles/:profileId/floodlightActivities?id= HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 1100

{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "attributionEnabled": false,
  "cacheBustingType": "",
  "countingMethod": "",
  "defaultTags": [
    {
      "id": "",
      "name": "",
      "tag": ""
    }
  ],
  "expectedUrl": "",
  "floodlightActivityGroupId": "",
  "floodlightActivityGroupName": "",
  "floodlightActivityGroupTagString": "",
  "floodlightActivityGroupType": "",
  "floodlightConfigurationId": "",
  "floodlightConfigurationIdDimensionValue": {},
  "floodlightTagType": "",
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "name": "",
  "notes": "",
  "publisherTags": [
    {
      "clickThrough": false,
      "directorySiteId": "",
      "dynamicTag": {},
      "siteId": "",
      "siteIdDimensionValue": {},
      "viewThrough": false
    }
  ],
  "secure": false,
  "sslCompliant": false,
  "sslRequired": false,
  "status": "",
  "subaccountId": "",
  "tagFormat": "",
  "tagString": "",
  "userDefinedVariableTypes": []
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/userprofiles/:profileId/floodlightActivities?id=")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"attributionEnabled\": false,\n  \"cacheBustingType\": \"\",\n  \"countingMethod\": \"\",\n  \"defaultTags\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"tag\": \"\"\n    }\n  ],\n  \"expectedUrl\": \"\",\n  \"floodlightActivityGroupId\": \"\",\n  \"floodlightActivityGroupName\": \"\",\n  \"floodlightActivityGroupTagString\": \"\",\n  \"floodlightActivityGroupType\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"floodlightTagType\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"publisherTags\": [\n    {\n      \"clickThrough\": false,\n      \"directorySiteId\": \"\",\n      \"dynamicTag\": {},\n      \"siteId\": \"\",\n      \"siteIdDimensionValue\": {},\n      \"viewThrough\": false\n    }\n  ],\n  \"secure\": false,\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormat\": \"\",\n  \"tagString\": \"\",\n  \"userDefinedVariableTypes\": []\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/floodlightActivities?id="))
    .header("content-type", "application/json")
    .method("PATCH", HttpRequest.BodyPublishers.ofString("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"attributionEnabled\": false,\n  \"cacheBustingType\": \"\",\n  \"countingMethod\": \"\",\n  \"defaultTags\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"tag\": \"\"\n    }\n  ],\n  \"expectedUrl\": \"\",\n  \"floodlightActivityGroupId\": \"\",\n  \"floodlightActivityGroupName\": \"\",\n  \"floodlightActivityGroupTagString\": \"\",\n  \"floodlightActivityGroupType\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"floodlightTagType\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"publisherTags\": [\n    {\n      \"clickThrough\": false,\n      \"directorySiteId\": \"\",\n      \"dynamicTag\": {},\n      \"siteId\": \"\",\n      \"siteIdDimensionValue\": {},\n      \"viewThrough\": false\n    }\n  ],\n  \"secure\": false,\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormat\": \"\",\n  \"tagString\": \"\",\n  \"userDefinedVariableTypes\": []\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  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"attributionEnabled\": false,\n  \"cacheBustingType\": \"\",\n  \"countingMethod\": \"\",\n  \"defaultTags\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"tag\": \"\"\n    }\n  ],\n  \"expectedUrl\": \"\",\n  \"floodlightActivityGroupId\": \"\",\n  \"floodlightActivityGroupName\": \"\",\n  \"floodlightActivityGroupTagString\": \"\",\n  \"floodlightActivityGroupType\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"floodlightTagType\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"publisherTags\": [\n    {\n      \"clickThrough\": false,\n      \"directorySiteId\": \"\",\n      \"dynamicTag\": {},\n      \"siteId\": \"\",\n      \"siteIdDimensionValue\": {},\n      \"viewThrough\": false\n    }\n  ],\n  \"secure\": false,\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormat\": \"\",\n  \"tagString\": \"\",\n  \"userDefinedVariableTypes\": []\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/floodlightActivities?id=")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/userprofiles/:profileId/floodlightActivities?id=")
  .header("content-type", "application/json")
  .body("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"attributionEnabled\": false,\n  \"cacheBustingType\": \"\",\n  \"countingMethod\": \"\",\n  \"defaultTags\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"tag\": \"\"\n    }\n  ],\n  \"expectedUrl\": \"\",\n  \"floodlightActivityGroupId\": \"\",\n  \"floodlightActivityGroupName\": \"\",\n  \"floodlightActivityGroupTagString\": \"\",\n  \"floodlightActivityGroupType\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"floodlightTagType\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"publisherTags\": [\n    {\n      \"clickThrough\": false,\n      \"directorySiteId\": \"\",\n      \"dynamicTag\": {},\n      \"siteId\": \"\",\n      \"siteIdDimensionValue\": {},\n      \"viewThrough\": false\n    }\n  ],\n  \"secure\": false,\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormat\": \"\",\n  \"tagString\": \"\",\n  \"userDefinedVariableTypes\": []\n}")
  .asString();
const data = JSON.stringify({
  accountId: '',
  advertiserId: '',
  advertiserIdDimensionValue: {
    dimensionName: '',
    etag: '',
    id: '',
    kind: '',
    matchType: '',
    value: ''
  },
  attributionEnabled: false,
  cacheBustingType: '',
  countingMethod: '',
  defaultTags: [
    {
      id: '',
      name: '',
      tag: ''
    }
  ],
  expectedUrl: '',
  floodlightActivityGroupId: '',
  floodlightActivityGroupName: '',
  floodlightActivityGroupTagString: '',
  floodlightActivityGroupType: '',
  floodlightConfigurationId: '',
  floodlightConfigurationIdDimensionValue: {},
  floodlightTagType: '',
  id: '',
  idDimensionValue: {},
  kind: '',
  name: '',
  notes: '',
  publisherTags: [
    {
      clickThrough: false,
      directorySiteId: '',
      dynamicTag: {},
      siteId: '',
      siteIdDimensionValue: {},
      viewThrough: false
    }
  ],
  secure: false,
  sslCompliant: false,
  sslRequired: false,
  status: '',
  subaccountId: '',
  tagFormat: '',
  tagString: '',
  userDefinedVariableTypes: []
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PATCH', '{{baseUrl}}/userprofiles/:profileId/floodlightActivities?id=');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/userprofiles/:profileId/floodlightActivities',
  params: {id: ''},
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    attributionEnabled: false,
    cacheBustingType: '',
    countingMethod: '',
    defaultTags: [{id: '', name: '', tag: ''}],
    expectedUrl: '',
    floodlightActivityGroupId: '',
    floodlightActivityGroupName: '',
    floodlightActivityGroupTagString: '',
    floodlightActivityGroupType: '',
    floodlightConfigurationId: '',
    floodlightConfigurationIdDimensionValue: {},
    floodlightTagType: '',
    id: '',
    idDimensionValue: {},
    kind: '',
    name: '',
    notes: '',
    publisherTags: [
      {
        clickThrough: false,
        directorySiteId: '',
        dynamicTag: {},
        siteId: '',
        siteIdDimensionValue: {},
        viewThrough: false
      }
    ],
    secure: false,
    sslCompliant: false,
    sslRequired: false,
    status: '',
    subaccountId: '',
    tagFormat: '',
    tagString: '',
    userDefinedVariableTypes: []
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/floodlightActivities?id=';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","advertiserId":"","advertiserIdDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"attributionEnabled":false,"cacheBustingType":"","countingMethod":"","defaultTags":[{"id":"","name":"","tag":""}],"expectedUrl":"","floodlightActivityGroupId":"","floodlightActivityGroupName":"","floodlightActivityGroupTagString":"","floodlightActivityGroupType":"","floodlightConfigurationId":"","floodlightConfigurationIdDimensionValue":{},"floodlightTagType":"","id":"","idDimensionValue":{},"kind":"","name":"","notes":"","publisherTags":[{"clickThrough":false,"directorySiteId":"","dynamicTag":{},"siteId":"","siteIdDimensionValue":{},"viewThrough":false}],"secure":false,"sslCompliant":false,"sslRequired":false,"status":"","subaccountId":"","tagFormat":"","tagString":"","userDefinedVariableTypes":[]}'
};

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}}/userprofiles/:profileId/floodlightActivities?id=',
  method: 'PATCH',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "accountId": "",\n  "advertiserId": "",\n  "advertiserIdDimensionValue": {\n    "dimensionName": "",\n    "etag": "",\n    "id": "",\n    "kind": "",\n    "matchType": "",\n    "value": ""\n  },\n  "attributionEnabled": false,\n  "cacheBustingType": "",\n  "countingMethod": "",\n  "defaultTags": [\n    {\n      "id": "",\n      "name": "",\n      "tag": ""\n    }\n  ],\n  "expectedUrl": "",\n  "floodlightActivityGroupId": "",\n  "floodlightActivityGroupName": "",\n  "floodlightActivityGroupTagString": "",\n  "floodlightActivityGroupType": "",\n  "floodlightConfigurationId": "",\n  "floodlightConfigurationIdDimensionValue": {},\n  "floodlightTagType": "",\n  "id": "",\n  "idDimensionValue": {},\n  "kind": "",\n  "name": "",\n  "notes": "",\n  "publisherTags": [\n    {\n      "clickThrough": false,\n      "directorySiteId": "",\n      "dynamicTag": {},\n      "siteId": "",\n      "siteIdDimensionValue": {},\n      "viewThrough": false\n    }\n  ],\n  "secure": false,\n  "sslCompliant": false,\n  "sslRequired": false,\n  "status": "",\n  "subaccountId": "",\n  "tagFormat": "",\n  "tagString": "",\n  "userDefinedVariableTypes": []\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"attributionEnabled\": false,\n  \"cacheBustingType\": \"\",\n  \"countingMethod\": \"\",\n  \"defaultTags\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"tag\": \"\"\n    }\n  ],\n  \"expectedUrl\": \"\",\n  \"floodlightActivityGroupId\": \"\",\n  \"floodlightActivityGroupName\": \"\",\n  \"floodlightActivityGroupTagString\": \"\",\n  \"floodlightActivityGroupType\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"floodlightTagType\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"publisherTags\": [\n    {\n      \"clickThrough\": false,\n      \"directorySiteId\": \"\",\n      \"dynamicTag\": {},\n      \"siteId\": \"\",\n      \"siteIdDimensionValue\": {},\n      \"viewThrough\": false\n    }\n  ],\n  \"secure\": false,\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormat\": \"\",\n  \"tagString\": \"\",\n  \"userDefinedVariableTypes\": []\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/floodlightActivities?id=")
  .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/userprofiles/:profileId/floodlightActivities?id=',
  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({
  accountId: '',
  advertiserId: '',
  advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
  attributionEnabled: false,
  cacheBustingType: '',
  countingMethod: '',
  defaultTags: [{id: '', name: '', tag: ''}],
  expectedUrl: '',
  floodlightActivityGroupId: '',
  floodlightActivityGroupName: '',
  floodlightActivityGroupTagString: '',
  floodlightActivityGroupType: '',
  floodlightConfigurationId: '',
  floodlightConfigurationIdDimensionValue: {},
  floodlightTagType: '',
  id: '',
  idDimensionValue: {},
  kind: '',
  name: '',
  notes: '',
  publisherTags: [
    {
      clickThrough: false,
      directorySiteId: '',
      dynamicTag: {},
      siteId: '',
      siteIdDimensionValue: {},
      viewThrough: false
    }
  ],
  secure: false,
  sslCompliant: false,
  sslRequired: false,
  status: '',
  subaccountId: '',
  tagFormat: '',
  tagString: '',
  userDefinedVariableTypes: []
}));
req.end();
const request = require('request');

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/userprofiles/:profileId/floodlightActivities',
  qs: {id: ''},
  headers: {'content-type': 'application/json'},
  body: {
    accountId: '',
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    attributionEnabled: false,
    cacheBustingType: '',
    countingMethod: '',
    defaultTags: [{id: '', name: '', tag: ''}],
    expectedUrl: '',
    floodlightActivityGroupId: '',
    floodlightActivityGroupName: '',
    floodlightActivityGroupTagString: '',
    floodlightActivityGroupType: '',
    floodlightConfigurationId: '',
    floodlightConfigurationIdDimensionValue: {},
    floodlightTagType: '',
    id: '',
    idDimensionValue: {},
    kind: '',
    name: '',
    notes: '',
    publisherTags: [
      {
        clickThrough: false,
        directorySiteId: '',
        dynamicTag: {},
        siteId: '',
        siteIdDimensionValue: {},
        viewThrough: false
      }
    ],
    secure: false,
    sslCompliant: false,
    sslRequired: false,
    status: '',
    subaccountId: '',
    tagFormat: '',
    tagString: '',
    userDefinedVariableTypes: []
  },
  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}}/userprofiles/:profileId/floodlightActivities');

req.query({
  id: ''
});

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  accountId: '',
  advertiserId: '',
  advertiserIdDimensionValue: {
    dimensionName: '',
    etag: '',
    id: '',
    kind: '',
    matchType: '',
    value: ''
  },
  attributionEnabled: false,
  cacheBustingType: '',
  countingMethod: '',
  defaultTags: [
    {
      id: '',
      name: '',
      tag: ''
    }
  ],
  expectedUrl: '',
  floodlightActivityGroupId: '',
  floodlightActivityGroupName: '',
  floodlightActivityGroupTagString: '',
  floodlightActivityGroupType: '',
  floodlightConfigurationId: '',
  floodlightConfigurationIdDimensionValue: {},
  floodlightTagType: '',
  id: '',
  idDimensionValue: {},
  kind: '',
  name: '',
  notes: '',
  publisherTags: [
    {
      clickThrough: false,
      directorySiteId: '',
      dynamicTag: {},
      siteId: '',
      siteIdDimensionValue: {},
      viewThrough: false
    }
  ],
  secure: false,
  sslCompliant: false,
  sslRequired: false,
  status: '',
  subaccountId: '',
  tagFormat: '',
  tagString: '',
  userDefinedVariableTypes: []
});

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}}/userprofiles/:profileId/floodlightActivities',
  params: {id: ''},
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    attributionEnabled: false,
    cacheBustingType: '',
    countingMethod: '',
    defaultTags: [{id: '', name: '', tag: ''}],
    expectedUrl: '',
    floodlightActivityGroupId: '',
    floodlightActivityGroupName: '',
    floodlightActivityGroupTagString: '',
    floodlightActivityGroupType: '',
    floodlightConfigurationId: '',
    floodlightConfigurationIdDimensionValue: {},
    floodlightTagType: '',
    id: '',
    idDimensionValue: {},
    kind: '',
    name: '',
    notes: '',
    publisherTags: [
      {
        clickThrough: false,
        directorySiteId: '',
        dynamicTag: {},
        siteId: '',
        siteIdDimensionValue: {},
        viewThrough: false
      }
    ],
    secure: false,
    sslCompliant: false,
    sslRequired: false,
    status: '',
    subaccountId: '',
    tagFormat: '',
    tagString: '',
    userDefinedVariableTypes: []
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/floodlightActivities?id=';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","advertiserId":"","advertiserIdDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"attributionEnabled":false,"cacheBustingType":"","countingMethod":"","defaultTags":[{"id":"","name":"","tag":""}],"expectedUrl":"","floodlightActivityGroupId":"","floodlightActivityGroupName":"","floodlightActivityGroupTagString":"","floodlightActivityGroupType":"","floodlightConfigurationId":"","floodlightConfigurationIdDimensionValue":{},"floodlightTagType":"","id":"","idDimensionValue":{},"kind":"","name":"","notes":"","publisherTags":[{"clickThrough":false,"directorySiteId":"","dynamicTag":{},"siteId":"","siteIdDimensionValue":{},"viewThrough":false}],"secure":false,"sslCompliant":false,"sslRequired":false,"status":"","subaccountId":"","tagFormat":"","tagString":"","userDefinedVariableTypes":[]}'
};

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 = @{ @"accountId": @"",
                              @"advertiserId": @"",
                              @"advertiserIdDimensionValue": @{ @"dimensionName": @"", @"etag": @"", @"id": @"", @"kind": @"", @"matchType": @"", @"value": @"" },
                              @"attributionEnabled": @NO,
                              @"cacheBustingType": @"",
                              @"countingMethod": @"",
                              @"defaultTags": @[ @{ @"id": @"", @"name": @"", @"tag": @"" } ],
                              @"expectedUrl": @"",
                              @"floodlightActivityGroupId": @"",
                              @"floodlightActivityGroupName": @"",
                              @"floodlightActivityGroupTagString": @"",
                              @"floodlightActivityGroupType": @"",
                              @"floodlightConfigurationId": @"",
                              @"floodlightConfigurationIdDimensionValue": @{  },
                              @"floodlightTagType": @"",
                              @"id": @"",
                              @"idDimensionValue": @{  },
                              @"kind": @"",
                              @"name": @"",
                              @"notes": @"",
                              @"publisherTags": @[ @{ @"clickThrough": @NO, @"directorySiteId": @"", @"dynamicTag": @{  }, @"siteId": @"", @"siteIdDimensionValue": @{  }, @"viewThrough": @NO } ],
                              @"secure": @NO,
                              @"sslCompliant": @NO,
                              @"sslRequired": @NO,
                              @"status": @"",
                              @"subaccountId": @"",
                              @"tagFormat": @"",
                              @"tagString": @"",
                              @"userDefinedVariableTypes": @[  ] };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/userprofiles/:profileId/floodlightActivities?id="]
                                                       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}}/userprofiles/:profileId/floodlightActivities?id=" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"attributionEnabled\": false,\n  \"cacheBustingType\": \"\",\n  \"countingMethod\": \"\",\n  \"defaultTags\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"tag\": \"\"\n    }\n  ],\n  \"expectedUrl\": \"\",\n  \"floodlightActivityGroupId\": \"\",\n  \"floodlightActivityGroupName\": \"\",\n  \"floodlightActivityGroupTagString\": \"\",\n  \"floodlightActivityGroupType\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"floodlightTagType\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"publisherTags\": [\n    {\n      \"clickThrough\": false,\n      \"directorySiteId\": \"\",\n      \"dynamicTag\": {},\n      \"siteId\": \"\",\n      \"siteIdDimensionValue\": {},\n      \"viewThrough\": false\n    }\n  ],\n  \"secure\": false,\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormat\": \"\",\n  \"tagString\": \"\",\n  \"userDefinedVariableTypes\": []\n}" in

Client.call ~headers ~body `PATCH uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/floodlightActivities?id=",
  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([
    'accountId' => '',
    'advertiserId' => '',
    'advertiserIdDimensionValue' => [
        'dimensionName' => '',
        'etag' => '',
        'id' => '',
        'kind' => '',
        'matchType' => '',
        'value' => ''
    ],
    'attributionEnabled' => null,
    'cacheBustingType' => '',
    'countingMethod' => '',
    'defaultTags' => [
        [
                'id' => '',
                'name' => '',
                'tag' => ''
        ]
    ],
    'expectedUrl' => '',
    'floodlightActivityGroupId' => '',
    'floodlightActivityGroupName' => '',
    'floodlightActivityGroupTagString' => '',
    'floodlightActivityGroupType' => '',
    'floodlightConfigurationId' => '',
    'floodlightConfigurationIdDimensionValue' => [
        
    ],
    'floodlightTagType' => '',
    'id' => '',
    'idDimensionValue' => [
        
    ],
    'kind' => '',
    'name' => '',
    'notes' => '',
    'publisherTags' => [
        [
                'clickThrough' => null,
                'directorySiteId' => '',
                'dynamicTag' => [
                                
                ],
                'siteId' => '',
                'siteIdDimensionValue' => [
                                
                ],
                'viewThrough' => null
        ]
    ],
    'secure' => null,
    'sslCompliant' => null,
    'sslRequired' => null,
    'status' => '',
    'subaccountId' => '',
    'tagFormat' => '',
    'tagString' => '',
    'userDefinedVariableTypes' => [
        
    ]
  ]),
  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}}/userprofiles/:profileId/floodlightActivities?id=', [
  'body' => '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "attributionEnabled": false,
  "cacheBustingType": "",
  "countingMethod": "",
  "defaultTags": [
    {
      "id": "",
      "name": "",
      "tag": ""
    }
  ],
  "expectedUrl": "",
  "floodlightActivityGroupId": "",
  "floodlightActivityGroupName": "",
  "floodlightActivityGroupTagString": "",
  "floodlightActivityGroupType": "",
  "floodlightConfigurationId": "",
  "floodlightConfigurationIdDimensionValue": {},
  "floodlightTagType": "",
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "name": "",
  "notes": "",
  "publisherTags": [
    {
      "clickThrough": false,
      "directorySiteId": "",
      "dynamicTag": {},
      "siteId": "",
      "siteIdDimensionValue": {},
      "viewThrough": false
    }
  ],
  "secure": false,
  "sslCompliant": false,
  "sslRequired": false,
  "status": "",
  "subaccountId": "",
  "tagFormat": "",
  "tagString": "",
  "userDefinedVariableTypes": []
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/floodlightActivities');
$request->setMethod(HttpRequest::HTTP_METH_PATCH);

$request->setQueryData([
  'id' => ''
]);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'accountId' => '',
  'advertiserId' => '',
  'advertiserIdDimensionValue' => [
    'dimensionName' => '',
    'etag' => '',
    'id' => '',
    'kind' => '',
    'matchType' => '',
    'value' => ''
  ],
  'attributionEnabled' => null,
  'cacheBustingType' => '',
  'countingMethod' => '',
  'defaultTags' => [
    [
        'id' => '',
        'name' => '',
        'tag' => ''
    ]
  ],
  'expectedUrl' => '',
  'floodlightActivityGroupId' => '',
  'floodlightActivityGroupName' => '',
  'floodlightActivityGroupTagString' => '',
  'floodlightActivityGroupType' => '',
  'floodlightConfigurationId' => '',
  'floodlightConfigurationIdDimensionValue' => [
    
  ],
  'floodlightTagType' => '',
  'id' => '',
  'idDimensionValue' => [
    
  ],
  'kind' => '',
  'name' => '',
  'notes' => '',
  'publisherTags' => [
    [
        'clickThrough' => null,
        'directorySiteId' => '',
        'dynamicTag' => [
                
        ],
        'siteId' => '',
        'siteIdDimensionValue' => [
                
        ],
        'viewThrough' => null
    ]
  ],
  'secure' => null,
  'sslCompliant' => null,
  'sslRequired' => null,
  'status' => '',
  'subaccountId' => '',
  'tagFormat' => '',
  'tagString' => '',
  'userDefinedVariableTypes' => [
    
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'accountId' => '',
  'advertiserId' => '',
  'advertiserIdDimensionValue' => [
    'dimensionName' => '',
    'etag' => '',
    'id' => '',
    'kind' => '',
    'matchType' => '',
    'value' => ''
  ],
  'attributionEnabled' => null,
  'cacheBustingType' => '',
  'countingMethod' => '',
  'defaultTags' => [
    [
        'id' => '',
        'name' => '',
        'tag' => ''
    ]
  ],
  'expectedUrl' => '',
  'floodlightActivityGroupId' => '',
  'floodlightActivityGroupName' => '',
  'floodlightActivityGroupTagString' => '',
  'floodlightActivityGroupType' => '',
  'floodlightConfigurationId' => '',
  'floodlightConfigurationIdDimensionValue' => [
    
  ],
  'floodlightTagType' => '',
  'id' => '',
  'idDimensionValue' => [
    
  ],
  'kind' => '',
  'name' => '',
  'notes' => '',
  'publisherTags' => [
    [
        'clickThrough' => null,
        'directorySiteId' => '',
        'dynamicTag' => [
                
        ],
        'siteId' => '',
        'siteIdDimensionValue' => [
                
        ],
        'viewThrough' => null
    ]
  ],
  'secure' => null,
  'sslCompliant' => null,
  'sslRequired' => null,
  'status' => '',
  'subaccountId' => '',
  'tagFormat' => '',
  'tagString' => '',
  'userDefinedVariableTypes' => [
    
  ]
]));
$request->setRequestUrl('{{baseUrl}}/userprofiles/:profileId/floodlightActivities');
$request->setRequestMethod('PATCH');
$request->setBody($body);

$request->setQuery(new http\QueryString([
  'id' => ''
]));

$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}}/userprofiles/:profileId/floodlightActivities?id=' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "attributionEnabled": false,
  "cacheBustingType": "",
  "countingMethod": "",
  "defaultTags": [
    {
      "id": "",
      "name": "",
      "tag": ""
    }
  ],
  "expectedUrl": "",
  "floodlightActivityGroupId": "",
  "floodlightActivityGroupName": "",
  "floodlightActivityGroupTagString": "",
  "floodlightActivityGroupType": "",
  "floodlightConfigurationId": "",
  "floodlightConfigurationIdDimensionValue": {},
  "floodlightTagType": "",
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "name": "",
  "notes": "",
  "publisherTags": [
    {
      "clickThrough": false,
      "directorySiteId": "",
      "dynamicTag": {},
      "siteId": "",
      "siteIdDimensionValue": {},
      "viewThrough": false
    }
  ],
  "secure": false,
  "sslCompliant": false,
  "sslRequired": false,
  "status": "",
  "subaccountId": "",
  "tagFormat": "",
  "tagString": "",
  "userDefinedVariableTypes": []
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/floodlightActivities?id=' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "attributionEnabled": false,
  "cacheBustingType": "",
  "countingMethod": "",
  "defaultTags": [
    {
      "id": "",
      "name": "",
      "tag": ""
    }
  ],
  "expectedUrl": "",
  "floodlightActivityGroupId": "",
  "floodlightActivityGroupName": "",
  "floodlightActivityGroupTagString": "",
  "floodlightActivityGroupType": "",
  "floodlightConfigurationId": "",
  "floodlightConfigurationIdDimensionValue": {},
  "floodlightTagType": "",
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "name": "",
  "notes": "",
  "publisherTags": [
    {
      "clickThrough": false,
      "directorySiteId": "",
      "dynamicTag": {},
      "siteId": "",
      "siteIdDimensionValue": {},
      "viewThrough": false
    }
  ],
  "secure": false,
  "sslCompliant": false,
  "sslRequired": false,
  "status": "",
  "subaccountId": "",
  "tagFormat": "",
  "tagString": "",
  "userDefinedVariableTypes": []
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"attributionEnabled\": false,\n  \"cacheBustingType\": \"\",\n  \"countingMethod\": \"\",\n  \"defaultTags\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"tag\": \"\"\n    }\n  ],\n  \"expectedUrl\": \"\",\n  \"floodlightActivityGroupId\": \"\",\n  \"floodlightActivityGroupName\": \"\",\n  \"floodlightActivityGroupTagString\": \"\",\n  \"floodlightActivityGroupType\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"floodlightTagType\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"publisherTags\": [\n    {\n      \"clickThrough\": false,\n      \"directorySiteId\": \"\",\n      \"dynamicTag\": {},\n      \"siteId\": \"\",\n      \"siteIdDimensionValue\": {},\n      \"viewThrough\": false\n    }\n  ],\n  \"secure\": false,\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormat\": \"\",\n  \"tagString\": \"\",\n  \"userDefinedVariableTypes\": []\n}"

headers = { 'content-type': "application/json" }

conn.request("PATCH", "/baseUrl/userprofiles/:profileId/floodlightActivities?id=", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/floodlightActivities"

querystring = {"id":""}

payload = {
    "accountId": "",
    "advertiserId": "",
    "advertiserIdDimensionValue": {
        "dimensionName": "",
        "etag": "",
        "id": "",
        "kind": "",
        "matchType": "",
        "value": ""
    },
    "attributionEnabled": False,
    "cacheBustingType": "",
    "countingMethod": "",
    "defaultTags": [
        {
            "id": "",
            "name": "",
            "tag": ""
        }
    ],
    "expectedUrl": "",
    "floodlightActivityGroupId": "",
    "floodlightActivityGroupName": "",
    "floodlightActivityGroupTagString": "",
    "floodlightActivityGroupType": "",
    "floodlightConfigurationId": "",
    "floodlightConfigurationIdDimensionValue": {},
    "floodlightTagType": "",
    "id": "",
    "idDimensionValue": {},
    "kind": "",
    "name": "",
    "notes": "",
    "publisherTags": [
        {
            "clickThrough": False,
            "directorySiteId": "",
            "dynamicTag": {},
            "siteId": "",
            "siteIdDimensionValue": {},
            "viewThrough": False
        }
    ],
    "secure": False,
    "sslCompliant": False,
    "sslRequired": False,
    "status": "",
    "subaccountId": "",
    "tagFormat": "",
    "tagString": "",
    "userDefinedVariableTypes": []
}
headers = {"content-type": "application/json"}

response = requests.patch(url, json=payload, headers=headers, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/floodlightActivities"

queryString <- list(id = "")

payload <- "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"attributionEnabled\": false,\n  \"cacheBustingType\": \"\",\n  \"countingMethod\": \"\",\n  \"defaultTags\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"tag\": \"\"\n    }\n  ],\n  \"expectedUrl\": \"\",\n  \"floodlightActivityGroupId\": \"\",\n  \"floodlightActivityGroupName\": \"\",\n  \"floodlightActivityGroupTagString\": \"\",\n  \"floodlightActivityGroupType\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"floodlightTagType\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"publisherTags\": [\n    {\n      \"clickThrough\": false,\n      \"directorySiteId\": \"\",\n      \"dynamicTag\": {},\n      \"siteId\": \"\",\n      \"siteIdDimensionValue\": {},\n      \"viewThrough\": false\n    }\n  ],\n  \"secure\": false,\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormat\": \"\",\n  \"tagString\": \"\",\n  \"userDefinedVariableTypes\": []\n}"

encode <- "json"

response <- VERB("PATCH", url, body = payload, query = queryString, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/floodlightActivities?id=")

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  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"attributionEnabled\": false,\n  \"cacheBustingType\": \"\",\n  \"countingMethod\": \"\",\n  \"defaultTags\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"tag\": \"\"\n    }\n  ],\n  \"expectedUrl\": \"\",\n  \"floodlightActivityGroupId\": \"\",\n  \"floodlightActivityGroupName\": \"\",\n  \"floodlightActivityGroupTagString\": \"\",\n  \"floodlightActivityGroupType\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"floodlightTagType\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"publisherTags\": [\n    {\n      \"clickThrough\": false,\n      \"directorySiteId\": \"\",\n      \"dynamicTag\": {},\n      \"siteId\": \"\",\n      \"siteIdDimensionValue\": {},\n      \"viewThrough\": false\n    }\n  ],\n  \"secure\": false,\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormat\": \"\",\n  \"tagString\": \"\",\n  \"userDefinedVariableTypes\": []\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/userprofiles/:profileId/floodlightActivities') do |req|
  req.params['id'] = ''
  req.body = "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"attributionEnabled\": false,\n  \"cacheBustingType\": \"\",\n  \"countingMethod\": \"\",\n  \"defaultTags\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"tag\": \"\"\n    }\n  ],\n  \"expectedUrl\": \"\",\n  \"floodlightActivityGroupId\": \"\",\n  \"floodlightActivityGroupName\": \"\",\n  \"floodlightActivityGroupTagString\": \"\",\n  \"floodlightActivityGroupType\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"floodlightTagType\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"publisherTags\": [\n    {\n      \"clickThrough\": false,\n      \"directorySiteId\": \"\",\n      \"dynamicTag\": {},\n      \"siteId\": \"\",\n      \"siteIdDimensionValue\": {},\n      \"viewThrough\": false\n    }\n  ],\n  \"secure\": false,\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormat\": \"\",\n  \"tagString\": \"\",\n  \"userDefinedVariableTypes\": []\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}}/userprofiles/:profileId/floodlightActivities";

    let querystring = [
        ("id", ""),
    ];

    let payload = json!({
        "accountId": "",
        "advertiserId": "",
        "advertiserIdDimensionValue": json!({
            "dimensionName": "",
            "etag": "",
            "id": "",
            "kind": "",
            "matchType": "",
            "value": ""
        }),
        "attributionEnabled": false,
        "cacheBustingType": "",
        "countingMethod": "",
        "defaultTags": (
            json!({
                "id": "",
                "name": "",
                "tag": ""
            })
        ),
        "expectedUrl": "",
        "floodlightActivityGroupId": "",
        "floodlightActivityGroupName": "",
        "floodlightActivityGroupTagString": "",
        "floodlightActivityGroupType": "",
        "floodlightConfigurationId": "",
        "floodlightConfigurationIdDimensionValue": json!({}),
        "floodlightTagType": "",
        "id": "",
        "idDimensionValue": json!({}),
        "kind": "",
        "name": "",
        "notes": "",
        "publisherTags": (
            json!({
                "clickThrough": false,
                "directorySiteId": "",
                "dynamicTag": json!({}),
                "siteId": "",
                "siteIdDimensionValue": json!({}),
                "viewThrough": false
            })
        ),
        "secure": false,
        "sslCompliant": false,
        "sslRequired": false,
        "status": "",
        "subaccountId": "",
        "tagFormat": "",
        "tagString": "",
        "userDefinedVariableTypes": ()
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PATCH").unwrap(), url)
        .query(&querystring)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PATCH \
  --url '{{baseUrl}}/userprofiles/:profileId/floodlightActivities?id=' \
  --header 'content-type: application/json' \
  --data '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "attributionEnabled": false,
  "cacheBustingType": "",
  "countingMethod": "",
  "defaultTags": [
    {
      "id": "",
      "name": "",
      "tag": ""
    }
  ],
  "expectedUrl": "",
  "floodlightActivityGroupId": "",
  "floodlightActivityGroupName": "",
  "floodlightActivityGroupTagString": "",
  "floodlightActivityGroupType": "",
  "floodlightConfigurationId": "",
  "floodlightConfigurationIdDimensionValue": {},
  "floodlightTagType": "",
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "name": "",
  "notes": "",
  "publisherTags": [
    {
      "clickThrough": false,
      "directorySiteId": "",
      "dynamicTag": {},
      "siteId": "",
      "siteIdDimensionValue": {},
      "viewThrough": false
    }
  ],
  "secure": false,
  "sslCompliant": false,
  "sslRequired": false,
  "status": "",
  "subaccountId": "",
  "tagFormat": "",
  "tagString": "",
  "userDefinedVariableTypes": []
}'
echo '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "attributionEnabled": false,
  "cacheBustingType": "",
  "countingMethod": "",
  "defaultTags": [
    {
      "id": "",
      "name": "",
      "tag": ""
    }
  ],
  "expectedUrl": "",
  "floodlightActivityGroupId": "",
  "floodlightActivityGroupName": "",
  "floodlightActivityGroupTagString": "",
  "floodlightActivityGroupType": "",
  "floodlightConfigurationId": "",
  "floodlightConfigurationIdDimensionValue": {},
  "floodlightTagType": "",
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "name": "",
  "notes": "",
  "publisherTags": [
    {
      "clickThrough": false,
      "directorySiteId": "",
      "dynamicTag": {},
      "siteId": "",
      "siteIdDimensionValue": {},
      "viewThrough": false
    }
  ],
  "secure": false,
  "sslCompliant": false,
  "sslRequired": false,
  "status": "",
  "subaccountId": "",
  "tagFormat": "",
  "tagString": "",
  "userDefinedVariableTypes": []
}' |  \
  http PATCH '{{baseUrl}}/userprofiles/:profileId/floodlightActivities?id=' \
  content-type:application/json
wget --quiet \
  --method PATCH \
  --header 'content-type: application/json' \
  --body-data '{\n  "accountId": "",\n  "advertiserId": "",\n  "advertiserIdDimensionValue": {\n    "dimensionName": "",\n    "etag": "",\n    "id": "",\n    "kind": "",\n    "matchType": "",\n    "value": ""\n  },\n  "attributionEnabled": false,\n  "cacheBustingType": "",\n  "countingMethod": "",\n  "defaultTags": [\n    {\n      "id": "",\n      "name": "",\n      "tag": ""\n    }\n  ],\n  "expectedUrl": "",\n  "floodlightActivityGroupId": "",\n  "floodlightActivityGroupName": "",\n  "floodlightActivityGroupTagString": "",\n  "floodlightActivityGroupType": "",\n  "floodlightConfigurationId": "",\n  "floodlightConfigurationIdDimensionValue": {},\n  "floodlightTagType": "",\n  "id": "",\n  "idDimensionValue": {},\n  "kind": "",\n  "name": "",\n  "notes": "",\n  "publisherTags": [\n    {\n      "clickThrough": false,\n      "directorySiteId": "",\n      "dynamicTag": {},\n      "siteId": "",\n      "siteIdDimensionValue": {},\n      "viewThrough": false\n    }\n  ],\n  "secure": false,\n  "sslCompliant": false,\n  "sslRequired": false,\n  "status": "",\n  "subaccountId": "",\n  "tagFormat": "",\n  "tagString": "",\n  "userDefinedVariableTypes": []\n}' \
  --output-document \
  - '{{baseUrl}}/userprofiles/:profileId/floodlightActivities?id='
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": [
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  ],
  "attributionEnabled": false,
  "cacheBustingType": "",
  "countingMethod": "",
  "defaultTags": [
    [
      "id": "",
      "name": "",
      "tag": ""
    ]
  ],
  "expectedUrl": "",
  "floodlightActivityGroupId": "",
  "floodlightActivityGroupName": "",
  "floodlightActivityGroupTagString": "",
  "floodlightActivityGroupType": "",
  "floodlightConfigurationId": "",
  "floodlightConfigurationIdDimensionValue": [],
  "floodlightTagType": "",
  "id": "",
  "idDimensionValue": [],
  "kind": "",
  "name": "",
  "notes": "",
  "publisherTags": [
    [
      "clickThrough": false,
      "directorySiteId": "",
      "dynamicTag": [],
      "siteId": "",
      "siteIdDimensionValue": [],
      "viewThrough": false
    ]
  ],
  "secure": false,
  "sslCompliant": false,
  "sslRequired": false,
  "status": "",
  "subaccountId": "",
  "tagFormat": "",
  "tagString": "",
  "userDefinedVariableTypes": []
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/floodlightActivities?id=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PATCH"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
PUT dfareporting.floodlightActivities.update
{{baseUrl}}/userprofiles/:profileId/floodlightActivities
QUERY PARAMS

profileId
BODY json

{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "attributionEnabled": false,
  "cacheBustingType": "",
  "countingMethod": "",
  "defaultTags": [
    {
      "id": "",
      "name": "",
      "tag": ""
    }
  ],
  "expectedUrl": "",
  "floodlightActivityGroupId": "",
  "floodlightActivityGroupName": "",
  "floodlightActivityGroupTagString": "",
  "floodlightActivityGroupType": "",
  "floodlightConfigurationId": "",
  "floodlightConfigurationIdDimensionValue": {},
  "floodlightTagType": "",
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "name": "",
  "notes": "",
  "publisherTags": [
    {
      "clickThrough": false,
      "directorySiteId": "",
      "dynamicTag": {},
      "siteId": "",
      "siteIdDimensionValue": {},
      "viewThrough": false
    }
  ],
  "secure": false,
  "sslCompliant": false,
  "sslRequired": false,
  "status": "",
  "subaccountId": "",
  "tagFormat": "",
  "tagString": "",
  "userDefinedVariableTypes": []
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/floodlightActivities");

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  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"attributionEnabled\": false,\n  \"cacheBustingType\": \"\",\n  \"countingMethod\": \"\",\n  \"defaultTags\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"tag\": \"\"\n    }\n  ],\n  \"expectedUrl\": \"\",\n  \"floodlightActivityGroupId\": \"\",\n  \"floodlightActivityGroupName\": \"\",\n  \"floodlightActivityGroupTagString\": \"\",\n  \"floodlightActivityGroupType\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"floodlightTagType\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"publisherTags\": [\n    {\n      \"clickThrough\": false,\n      \"directorySiteId\": \"\",\n      \"dynamicTag\": {},\n      \"siteId\": \"\",\n      \"siteIdDimensionValue\": {},\n      \"viewThrough\": false\n    }\n  ],\n  \"secure\": false,\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormat\": \"\",\n  \"tagString\": \"\",\n  \"userDefinedVariableTypes\": []\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/userprofiles/:profileId/floodlightActivities" {:content-type :json
                                                                                        :form-params {:accountId ""
                                                                                                      :advertiserId ""
                                                                                                      :advertiserIdDimensionValue {:dimensionName ""
                                                                                                                                   :etag ""
                                                                                                                                   :id ""
                                                                                                                                   :kind ""
                                                                                                                                   :matchType ""
                                                                                                                                   :value ""}
                                                                                                      :attributionEnabled false
                                                                                                      :cacheBustingType ""
                                                                                                      :countingMethod ""
                                                                                                      :defaultTags [{:id ""
                                                                                                                     :name ""
                                                                                                                     :tag ""}]
                                                                                                      :expectedUrl ""
                                                                                                      :floodlightActivityGroupId ""
                                                                                                      :floodlightActivityGroupName ""
                                                                                                      :floodlightActivityGroupTagString ""
                                                                                                      :floodlightActivityGroupType ""
                                                                                                      :floodlightConfigurationId ""
                                                                                                      :floodlightConfigurationIdDimensionValue {}
                                                                                                      :floodlightTagType ""
                                                                                                      :id ""
                                                                                                      :idDimensionValue {}
                                                                                                      :kind ""
                                                                                                      :name ""
                                                                                                      :notes ""
                                                                                                      :publisherTags [{:clickThrough false
                                                                                                                       :directorySiteId ""
                                                                                                                       :dynamicTag {}
                                                                                                                       :siteId ""
                                                                                                                       :siteIdDimensionValue {}
                                                                                                                       :viewThrough false}]
                                                                                                      :secure false
                                                                                                      :sslCompliant false
                                                                                                      :sslRequired false
                                                                                                      :status ""
                                                                                                      :subaccountId ""
                                                                                                      :tagFormat ""
                                                                                                      :tagString ""
                                                                                                      :userDefinedVariableTypes []}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/floodlightActivities"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"attributionEnabled\": false,\n  \"cacheBustingType\": \"\",\n  \"countingMethod\": \"\",\n  \"defaultTags\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"tag\": \"\"\n    }\n  ],\n  \"expectedUrl\": \"\",\n  \"floodlightActivityGroupId\": \"\",\n  \"floodlightActivityGroupName\": \"\",\n  \"floodlightActivityGroupTagString\": \"\",\n  \"floodlightActivityGroupType\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"floodlightTagType\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"publisherTags\": [\n    {\n      \"clickThrough\": false,\n      \"directorySiteId\": \"\",\n      \"dynamicTag\": {},\n      \"siteId\": \"\",\n      \"siteIdDimensionValue\": {},\n      \"viewThrough\": false\n    }\n  ],\n  \"secure\": false,\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormat\": \"\",\n  \"tagString\": \"\",\n  \"userDefinedVariableTypes\": []\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/userprofiles/:profileId/floodlightActivities"),
    Content = new StringContent("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"attributionEnabled\": false,\n  \"cacheBustingType\": \"\",\n  \"countingMethod\": \"\",\n  \"defaultTags\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"tag\": \"\"\n    }\n  ],\n  \"expectedUrl\": \"\",\n  \"floodlightActivityGroupId\": \"\",\n  \"floodlightActivityGroupName\": \"\",\n  \"floodlightActivityGroupTagString\": \"\",\n  \"floodlightActivityGroupType\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"floodlightTagType\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"publisherTags\": [\n    {\n      \"clickThrough\": false,\n      \"directorySiteId\": \"\",\n      \"dynamicTag\": {},\n      \"siteId\": \"\",\n      \"siteIdDimensionValue\": {},\n      \"viewThrough\": false\n    }\n  ],\n  \"secure\": false,\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormat\": \"\",\n  \"tagString\": \"\",\n  \"userDefinedVariableTypes\": []\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}}/userprofiles/:profileId/floodlightActivities");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"attributionEnabled\": false,\n  \"cacheBustingType\": \"\",\n  \"countingMethod\": \"\",\n  \"defaultTags\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"tag\": \"\"\n    }\n  ],\n  \"expectedUrl\": \"\",\n  \"floodlightActivityGroupId\": \"\",\n  \"floodlightActivityGroupName\": \"\",\n  \"floodlightActivityGroupTagString\": \"\",\n  \"floodlightActivityGroupType\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"floodlightTagType\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"publisherTags\": [\n    {\n      \"clickThrough\": false,\n      \"directorySiteId\": \"\",\n      \"dynamicTag\": {},\n      \"siteId\": \"\",\n      \"siteIdDimensionValue\": {},\n      \"viewThrough\": false\n    }\n  ],\n  \"secure\": false,\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormat\": \"\",\n  \"tagString\": \"\",\n  \"userDefinedVariableTypes\": []\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/floodlightActivities"

	payload := strings.NewReader("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"attributionEnabled\": false,\n  \"cacheBustingType\": \"\",\n  \"countingMethod\": \"\",\n  \"defaultTags\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"tag\": \"\"\n    }\n  ],\n  \"expectedUrl\": \"\",\n  \"floodlightActivityGroupId\": \"\",\n  \"floodlightActivityGroupName\": \"\",\n  \"floodlightActivityGroupTagString\": \"\",\n  \"floodlightActivityGroupType\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"floodlightTagType\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"publisherTags\": [\n    {\n      \"clickThrough\": false,\n      \"directorySiteId\": \"\",\n      \"dynamicTag\": {},\n      \"siteId\": \"\",\n      \"siteIdDimensionValue\": {},\n      \"viewThrough\": false\n    }\n  ],\n  \"secure\": false,\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormat\": \"\",\n  \"tagString\": \"\",\n  \"userDefinedVariableTypes\": []\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/userprofiles/:profileId/floodlightActivities HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 1100

{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "attributionEnabled": false,
  "cacheBustingType": "",
  "countingMethod": "",
  "defaultTags": [
    {
      "id": "",
      "name": "",
      "tag": ""
    }
  ],
  "expectedUrl": "",
  "floodlightActivityGroupId": "",
  "floodlightActivityGroupName": "",
  "floodlightActivityGroupTagString": "",
  "floodlightActivityGroupType": "",
  "floodlightConfigurationId": "",
  "floodlightConfigurationIdDimensionValue": {},
  "floodlightTagType": "",
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "name": "",
  "notes": "",
  "publisherTags": [
    {
      "clickThrough": false,
      "directorySiteId": "",
      "dynamicTag": {},
      "siteId": "",
      "siteIdDimensionValue": {},
      "viewThrough": false
    }
  ],
  "secure": false,
  "sslCompliant": false,
  "sslRequired": false,
  "status": "",
  "subaccountId": "",
  "tagFormat": "",
  "tagString": "",
  "userDefinedVariableTypes": []
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/userprofiles/:profileId/floodlightActivities")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"attributionEnabled\": false,\n  \"cacheBustingType\": \"\",\n  \"countingMethod\": \"\",\n  \"defaultTags\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"tag\": \"\"\n    }\n  ],\n  \"expectedUrl\": \"\",\n  \"floodlightActivityGroupId\": \"\",\n  \"floodlightActivityGroupName\": \"\",\n  \"floodlightActivityGroupTagString\": \"\",\n  \"floodlightActivityGroupType\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"floodlightTagType\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"publisherTags\": [\n    {\n      \"clickThrough\": false,\n      \"directorySiteId\": \"\",\n      \"dynamicTag\": {},\n      \"siteId\": \"\",\n      \"siteIdDimensionValue\": {},\n      \"viewThrough\": false\n    }\n  ],\n  \"secure\": false,\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormat\": \"\",\n  \"tagString\": \"\",\n  \"userDefinedVariableTypes\": []\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/floodlightActivities"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"attributionEnabled\": false,\n  \"cacheBustingType\": \"\",\n  \"countingMethod\": \"\",\n  \"defaultTags\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"tag\": \"\"\n    }\n  ],\n  \"expectedUrl\": \"\",\n  \"floodlightActivityGroupId\": \"\",\n  \"floodlightActivityGroupName\": \"\",\n  \"floodlightActivityGroupTagString\": \"\",\n  \"floodlightActivityGroupType\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"floodlightTagType\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"publisherTags\": [\n    {\n      \"clickThrough\": false,\n      \"directorySiteId\": \"\",\n      \"dynamicTag\": {},\n      \"siteId\": \"\",\n      \"siteIdDimensionValue\": {},\n      \"viewThrough\": false\n    }\n  ],\n  \"secure\": false,\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormat\": \"\",\n  \"tagString\": \"\",\n  \"userDefinedVariableTypes\": []\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  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"attributionEnabled\": false,\n  \"cacheBustingType\": \"\",\n  \"countingMethod\": \"\",\n  \"defaultTags\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"tag\": \"\"\n    }\n  ],\n  \"expectedUrl\": \"\",\n  \"floodlightActivityGroupId\": \"\",\n  \"floodlightActivityGroupName\": \"\",\n  \"floodlightActivityGroupTagString\": \"\",\n  \"floodlightActivityGroupType\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"floodlightTagType\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"publisherTags\": [\n    {\n      \"clickThrough\": false,\n      \"directorySiteId\": \"\",\n      \"dynamicTag\": {},\n      \"siteId\": \"\",\n      \"siteIdDimensionValue\": {},\n      \"viewThrough\": false\n    }\n  ],\n  \"secure\": false,\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormat\": \"\",\n  \"tagString\": \"\",\n  \"userDefinedVariableTypes\": []\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/floodlightActivities")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/userprofiles/:profileId/floodlightActivities")
  .header("content-type", "application/json")
  .body("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"attributionEnabled\": false,\n  \"cacheBustingType\": \"\",\n  \"countingMethod\": \"\",\n  \"defaultTags\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"tag\": \"\"\n    }\n  ],\n  \"expectedUrl\": \"\",\n  \"floodlightActivityGroupId\": \"\",\n  \"floodlightActivityGroupName\": \"\",\n  \"floodlightActivityGroupTagString\": \"\",\n  \"floodlightActivityGroupType\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"floodlightTagType\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"publisherTags\": [\n    {\n      \"clickThrough\": false,\n      \"directorySiteId\": \"\",\n      \"dynamicTag\": {},\n      \"siteId\": \"\",\n      \"siteIdDimensionValue\": {},\n      \"viewThrough\": false\n    }\n  ],\n  \"secure\": false,\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormat\": \"\",\n  \"tagString\": \"\",\n  \"userDefinedVariableTypes\": []\n}")
  .asString();
const data = JSON.stringify({
  accountId: '',
  advertiserId: '',
  advertiserIdDimensionValue: {
    dimensionName: '',
    etag: '',
    id: '',
    kind: '',
    matchType: '',
    value: ''
  },
  attributionEnabled: false,
  cacheBustingType: '',
  countingMethod: '',
  defaultTags: [
    {
      id: '',
      name: '',
      tag: ''
    }
  ],
  expectedUrl: '',
  floodlightActivityGroupId: '',
  floodlightActivityGroupName: '',
  floodlightActivityGroupTagString: '',
  floodlightActivityGroupType: '',
  floodlightConfigurationId: '',
  floodlightConfigurationIdDimensionValue: {},
  floodlightTagType: '',
  id: '',
  idDimensionValue: {},
  kind: '',
  name: '',
  notes: '',
  publisherTags: [
    {
      clickThrough: false,
      directorySiteId: '',
      dynamicTag: {},
      siteId: '',
      siteIdDimensionValue: {},
      viewThrough: false
    }
  ],
  secure: false,
  sslCompliant: false,
  sslRequired: false,
  status: '',
  subaccountId: '',
  tagFormat: '',
  tagString: '',
  userDefinedVariableTypes: []
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/userprofiles/:profileId/floodlightActivities');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/userprofiles/:profileId/floodlightActivities',
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    attributionEnabled: false,
    cacheBustingType: '',
    countingMethod: '',
    defaultTags: [{id: '', name: '', tag: ''}],
    expectedUrl: '',
    floodlightActivityGroupId: '',
    floodlightActivityGroupName: '',
    floodlightActivityGroupTagString: '',
    floodlightActivityGroupType: '',
    floodlightConfigurationId: '',
    floodlightConfigurationIdDimensionValue: {},
    floodlightTagType: '',
    id: '',
    idDimensionValue: {},
    kind: '',
    name: '',
    notes: '',
    publisherTags: [
      {
        clickThrough: false,
        directorySiteId: '',
        dynamicTag: {},
        siteId: '',
        siteIdDimensionValue: {},
        viewThrough: false
      }
    ],
    secure: false,
    sslCompliant: false,
    sslRequired: false,
    status: '',
    subaccountId: '',
    tagFormat: '',
    tagString: '',
    userDefinedVariableTypes: []
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/floodlightActivities';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","advertiserId":"","advertiserIdDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"attributionEnabled":false,"cacheBustingType":"","countingMethod":"","defaultTags":[{"id":"","name":"","tag":""}],"expectedUrl":"","floodlightActivityGroupId":"","floodlightActivityGroupName":"","floodlightActivityGroupTagString":"","floodlightActivityGroupType":"","floodlightConfigurationId":"","floodlightConfigurationIdDimensionValue":{},"floodlightTagType":"","id":"","idDimensionValue":{},"kind":"","name":"","notes":"","publisherTags":[{"clickThrough":false,"directorySiteId":"","dynamicTag":{},"siteId":"","siteIdDimensionValue":{},"viewThrough":false}],"secure":false,"sslCompliant":false,"sslRequired":false,"status":"","subaccountId":"","tagFormat":"","tagString":"","userDefinedVariableTypes":[]}'
};

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}}/userprofiles/:profileId/floodlightActivities',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "accountId": "",\n  "advertiserId": "",\n  "advertiserIdDimensionValue": {\n    "dimensionName": "",\n    "etag": "",\n    "id": "",\n    "kind": "",\n    "matchType": "",\n    "value": ""\n  },\n  "attributionEnabled": false,\n  "cacheBustingType": "",\n  "countingMethod": "",\n  "defaultTags": [\n    {\n      "id": "",\n      "name": "",\n      "tag": ""\n    }\n  ],\n  "expectedUrl": "",\n  "floodlightActivityGroupId": "",\n  "floodlightActivityGroupName": "",\n  "floodlightActivityGroupTagString": "",\n  "floodlightActivityGroupType": "",\n  "floodlightConfigurationId": "",\n  "floodlightConfigurationIdDimensionValue": {},\n  "floodlightTagType": "",\n  "id": "",\n  "idDimensionValue": {},\n  "kind": "",\n  "name": "",\n  "notes": "",\n  "publisherTags": [\n    {\n      "clickThrough": false,\n      "directorySiteId": "",\n      "dynamicTag": {},\n      "siteId": "",\n      "siteIdDimensionValue": {},\n      "viewThrough": false\n    }\n  ],\n  "secure": false,\n  "sslCompliant": false,\n  "sslRequired": false,\n  "status": "",\n  "subaccountId": "",\n  "tagFormat": "",\n  "tagString": "",\n  "userDefinedVariableTypes": []\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"attributionEnabled\": false,\n  \"cacheBustingType\": \"\",\n  \"countingMethod\": \"\",\n  \"defaultTags\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"tag\": \"\"\n    }\n  ],\n  \"expectedUrl\": \"\",\n  \"floodlightActivityGroupId\": \"\",\n  \"floodlightActivityGroupName\": \"\",\n  \"floodlightActivityGroupTagString\": \"\",\n  \"floodlightActivityGroupType\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"floodlightTagType\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"publisherTags\": [\n    {\n      \"clickThrough\": false,\n      \"directorySiteId\": \"\",\n      \"dynamicTag\": {},\n      \"siteId\": \"\",\n      \"siteIdDimensionValue\": {},\n      \"viewThrough\": false\n    }\n  ],\n  \"secure\": false,\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormat\": \"\",\n  \"tagString\": \"\",\n  \"userDefinedVariableTypes\": []\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/floodlightActivities")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/floodlightActivities',
  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({
  accountId: '',
  advertiserId: '',
  advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
  attributionEnabled: false,
  cacheBustingType: '',
  countingMethod: '',
  defaultTags: [{id: '', name: '', tag: ''}],
  expectedUrl: '',
  floodlightActivityGroupId: '',
  floodlightActivityGroupName: '',
  floodlightActivityGroupTagString: '',
  floodlightActivityGroupType: '',
  floodlightConfigurationId: '',
  floodlightConfigurationIdDimensionValue: {},
  floodlightTagType: '',
  id: '',
  idDimensionValue: {},
  kind: '',
  name: '',
  notes: '',
  publisherTags: [
    {
      clickThrough: false,
      directorySiteId: '',
      dynamicTag: {},
      siteId: '',
      siteIdDimensionValue: {},
      viewThrough: false
    }
  ],
  secure: false,
  sslCompliant: false,
  sslRequired: false,
  status: '',
  subaccountId: '',
  tagFormat: '',
  tagString: '',
  userDefinedVariableTypes: []
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/userprofiles/:profileId/floodlightActivities',
  headers: {'content-type': 'application/json'},
  body: {
    accountId: '',
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    attributionEnabled: false,
    cacheBustingType: '',
    countingMethod: '',
    defaultTags: [{id: '', name: '', tag: ''}],
    expectedUrl: '',
    floodlightActivityGroupId: '',
    floodlightActivityGroupName: '',
    floodlightActivityGroupTagString: '',
    floodlightActivityGroupType: '',
    floodlightConfigurationId: '',
    floodlightConfigurationIdDimensionValue: {},
    floodlightTagType: '',
    id: '',
    idDimensionValue: {},
    kind: '',
    name: '',
    notes: '',
    publisherTags: [
      {
        clickThrough: false,
        directorySiteId: '',
        dynamicTag: {},
        siteId: '',
        siteIdDimensionValue: {},
        viewThrough: false
      }
    ],
    secure: false,
    sslCompliant: false,
    sslRequired: false,
    status: '',
    subaccountId: '',
    tagFormat: '',
    tagString: '',
    userDefinedVariableTypes: []
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/userprofiles/:profileId/floodlightActivities');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  accountId: '',
  advertiserId: '',
  advertiserIdDimensionValue: {
    dimensionName: '',
    etag: '',
    id: '',
    kind: '',
    matchType: '',
    value: ''
  },
  attributionEnabled: false,
  cacheBustingType: '',
  countingMethod: '',
  defaultTags: [
    {
      id: '',
      name: '',
      tag: ''
    }
  ],
  expectedUrl: '',
  floodlightActivityGroupId: '',
  floodlightActivityGroupName: '',
  floodlightActivityGroupTagString: '',
  floodlightActivityGroupType: '',
  floodlightConfigurationId: '',
  floodlightConfigurationIdDimensionValue: {},
  floodlightTagType: '',
  id: '',
  idDimensionValue: {},
  kind: '',
  name: '',
  notes: '',
  publisherTags: [
    {
      clickThrough: false,
      directorySiteId: '',
      dynamicTag: {},
      siteId: '',
      siteIdDimensionValue: {},
      viewThrough: false
    }
  ],
  secure: false,
  sslCompliant: false,
  sslRequired: false,
  status: '',
  subaccountId: '',
  tagFormat: '',
  tagString: '',
  userDefinedVariableTypes: []
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/userprofiles/:profileId/floodlightActivities',
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    attributionEnabled: false,
    cacheBustingType: '',
    countingMethod: '',
    defaultTags: [{id: '', name: '', tag: ''}],
    expectedUrl: '',
    floodlightActivityGroupId: '',
    floodlightActivityGroupName: '',
    floodlightActivityGroupTagString: '',
    floodlightActivityGroupType: '',
    floodlightConfigurationId: '',
    floodlightConfigurationIdDimensionValue: {},
    floodlightTagType: '',
    id: '',
    idDimensionValue: {},
    kind: '',
    name: '',
    notes: '',
    publisherTags: [
      {
        clickThrough: false,
        directorySiteId: '',
        dynamicTag: {},
        siteId: '',
        siteIdDimensionValue: {},
        viewThrough: false
      }
    ],
    secure: false,
    sslCompliant: false,
    sslRequired: false,
    status: '',
    subaccountId: '',
    tagFormat: '',
    tagString: '',
    userDefinedVariableTypes: []
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/floodlightActivities';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","advertiserId":"","advertiserIdDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"attributionEnabled":false,"cacheBustingType":"","countingMethod":"","defaultTags":[{"id":"","name":"","tag":""}],"expectedUrl":"","floodlightActivityGroupId":"","floodlightActivityGroupName":"","floodlightActivityGroupTagString":"","floodlightActivityGroupType":"","floodlightConfigurationId":"","floodlightConfigurationIdDimensionValue":{},"floodlightTagType":"","id":"","idDimensionValue":{},"kind":"","name":"","notes":"","publisherTags":[{"clickThrough":false,"directorySiteId":"","dynamicTag":{},"siteId":"","siteIdDimensionValue":{},"viewThrough":false}],"secure":false,"sslCompliant":false,"sslRequired":false,"status":"","subaccountId":"","tagFormat":"","tagString":"","userDefinedVariableTypes":[]}'
};

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 = @{ @"accountId": @"",
                              @"advertiserId": @"",
                              @"advertiserIdDimensionValue": @{ @"dimensionName": @"", @"etag": @"", @"id": @"", @"kind": @"", @"matchType": @"", @"value": @"" },
                              @"attributionEnabled": @NO,
                              @"cacheBustingType": @"",
                              @"countingMethod": @"",
                              @"defaultTags": @[ @{ @"id": @"", @"name": @"", @"tag": @"" } ],
                              @"expectedUrl": @"",
                              @"floodlightActivityGroupId": @"",
                              @"floodlightActivityGroupName": @"",
                              @"floodlightActivityGroupTagString": @"",
                              @"floodlightActivityGroupType": @"",
                              @"floodlightConfigurationId": @"",
                              @"floodlightConfigurationIdDimensionValue": @{  },
                              @"floodlightTagType": @"",
                              @"id": @"",
                              @"idDimensionValue": @{  },
                              @"kind": @"",
                              @"name": @"",
                              @"notes": @"",
                              @"publisherTags": @[ @{ @"clickThrough": @NO, @"directorySiteId": @"", @"dynamicTag": @{  }, @"siteId": @"", @"siteIdDimensionValue": @{  }, @"viewThrough": @NO } ],
                              @"secure": @NO,
                              @"sslCompliant": @NO,
                              @"sslRequired": @NO,
                              @"status": @"",
                              @"subaccountId": @"",
                              @"tagFormat": @"",
                              @"tagString": @"",
                              @"userDefinedVariableTypes": @[  ] };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/userprofiles/:profileId/floodlightActivities"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/userprofiles/:profileId/floodlightActivities" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"attributionEnabled\": false,\n  \"cacheBustingType\": \"\",\n  \"countingMethod\": \"\",\n  \"defaultTags\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"tag\": \"\"\n    }\n  ],\n  \"expectedUrl\": \"\",\n  \"floodlightActivityGroupId\": \"\",\n  \"floodlightActivityGroupName\": \"\",\n  \"floodlightActivityGroupTagString\": \"\",\n  \"floodlightActivityGroupType\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"floodlightTagType\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"publisherTags\": [\n    {\n      \"clickThrough\": false,\n      \"directorySiteId\": \"\",\n      \"dynamicTag\": {},\n      \"siteId\": \"\",\n      \"siteIdDimensionValue\": {},\n      \"viewThrough\": false\n    }\n  ],\n  \"secure\": false,\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormat\": \"\",\n  \"tagString\": \"\",\n  \"userDefinedVariableTypes\": []\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/floodlightActivities",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'accountId' => '',
    'advertiserId' => '',
    'advertiserIdDimensionValue' => [
        'dimensionName' => '',
        'etag' => '',
        'id' => '',
        'kind' => '',
        'matchType' => '',
        'value' => ''
    ],
    'attributionEnabled' => null,
    'cacheBustingType' => '',
    'countingMethod' => '',
    'defaultTags' => [
        [
                'id' => '',
                'name' => '',
                'tag' => ''
        ]
    ],
    'expectedUrl' => '',
    'floodlightActivityGroupId' => '',
    'floodlightActivityGroupName' => '',
    'floodlightActivityGroupTagString' => '',
    'floodlightActivityGroupType' => '',
    'floodlightConfigurationId' => '',
    'floodlightConfigurationIdDimensionValue' => [
        
    ],
    'floodlightTagType' => '',
    'id' => '',
    'idDimensionValue' => [
        
    ],
    'kind' => '',
    'name' => '',
    'notes' => '',
    'publisherTags' => [
        [
                'clickThrough' => null,
                'directorySiteId' => '',
                'dynamicTag' => [
                                
                ],
                'siteId' => '',
                'siteIdDimensionValue' => [
                                
                ],
                'viewThrough' => null
        ]
    ],
    'secure' => null,
    'sslCompliant' => null,
    'sslRequired' => null,
    'status' => '',
    'subaccountId' => '',
    'tagFormat' => '',
    'tagString' => '',
    'userDefinedVariableTypes' => [
        
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/userprofiles/:profileId/floodlightActivities', [
  'body' => '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "attributionEnabled": false,
  "cacheBustingType": "",
  "countingMethod": "",
  "defaultTags": [
    {
      "id": "",
      "name": "",
      "tag": ""
    }
  ],
  "expectedUrl": "",
  "floodlightActivityGroupId": "",
  "floodlightActivityGroupName": "",
  "floodlightActivityGroupTagString": "",
  "floodlightActivityGroupType": "",
  "floodlightConfigurationId": "",
  "floodlightConfigurationIdDimensionValue": {},
  "floodlightTagType": "",
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "name": "",
  "notes": "",
  "publisherTags": [
    {
      "clickThrough": false,
      "directorySiteId": "",
      "dynamicTag": {},
      "siteId": "",
      "siteIdDimensionValue": {},
      "viewThrough": false
    }
  ],
  "secure": false,
  "sslCompliant": false,
  "sslRequired": false,
  "status": "",
  "subaccountId": "",
  "tagFormat": "",
  "tagString": "",
  "userDefinedVariableTypes": []
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/floodlightActivities');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'accountId' => '',
  'advertiserId' => '',
  'advertiserIdDimensionValue' => [
    'dimensionName' => '',
    'etag' => '',
    'id' => '',
    'kind' => '',
    'matchType' => '',
    'value' => ''
  ],
  'attributionEnabled' => null,
  'cacheBustingType' => '',
  'countingMethod' => '',
  'defaultTags' => [
    [
        'id' => '',
        'name' => '',
        'tag' => ''
    ]
  ],
  'expectedUrl' => '',
  'floodlightActivityGroupId' => '',
  'floodlightActivityGroupName' => '',
  'floodlightActivityGroupTagString' => '',
  'floodlightActivityGroupType' => '',
  'floodlightConfigurationId' => '',
  'floodlightConfigurationIdDimensionValue' => [
    
  ],
  'floodlightTagType' => '',
  'id' => '',
  'idDimensionValue' => [
    
  ],
  'kind' => '',
  'name' => '',
  'notes' => '',
  'publisherTags' => [
    [
        'clickThrough' => null,
        'directorySiteId' => '',
        'dynamicTag' => [
                
        ],
        'siteId' => '',
        'siteIdDimensionValue' => [
                
        ],
        'viewThrough' => null
    ]
  ],
  'secure' => null,
  'sslCompliant' => null,
  'sslRequired' => null,
  'status' => '',
  'subaccountId' => '',
  'tagFormat' => '',
  'tagString' => '',
  'userDefinedVariableTypes' => [
    
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'accountId' => '',
  'advertiserId' => '',
  'advertiserIdDimensionValue' => [
    'dimensionName' => '',
    'etag' => '',
    'id' => '',
    'kind' => '',
    'matchType' => '',
    'value' => ''
  ],
  'attributionEnabled' => null,
  'cacheBustingType' => '',
  'countingMethod' => '',
  'defaultTags' => [
    [
        'id' => '',
        'name' => '',
        'tag' => ''
    ]
  ],
  'expectedUrl' => '',
  'floodlightActivityGroupId' => '',
  'floodlightActivityGroupName' => '',
  'floodlightActivityGroupTagString' => '',
  'floodlightActivityGroupType' => '',
  'floodlightConfigurationId' => '',
  'floodlightConfigurationIdDimensionValue' => [
    
  ],
  'floodlightTagType' => '',
  'id' => '',
  'idDimensionValue' => [
    
  ],
  'kind' => '',
  'name' => '',
  'notes' => '',
  'publisherTags' => [
    [
        'clickThrough' => null,
        'directorySiteId' => '',
        'dynamicTag' => [
                
        ],
        'siteId' => '',
        'siteIdDimensionValue' => [
                
        ],
        'viewThrough' => null
    ]
  ],
  'secure' => null,
  'sslCompliant' => null,
  'sslRequired' => null,
  'status' => '',
  'subaccountId' => '',
  'tagFormat' => '',
  'tagString' => '',
  'userDefinedVariableTypes' => [
    
  ]
]));
$request->setRequestUrl('{{baseUrl}}/userprofiles/:profileId/floodlightActivities');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/floodlightActivities' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "attributionEnabled": false,
  "cacheBustingType": "",
  "countingMethod": "",
  "defaultTags": [
    {
      "id": "",
      "name": "",
      "tag": ""
    }
  ],
  "expectedUrl": "",
  "floodlightActivityGroupId": "",
  "floodlightActivityGroupName": "",
  "floodlightActivityGroupTagString": "",
  "floodlightActivityGroupType": "",
  "floodlightConfigurationId": "",
  "floodlightConfigurationIdDimensionValue": {},
  "floodlightTagType": "",
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "name": "",
  "notes": "",
  "publisherTags": [
    {
      "clickThrough": false,
      "directorySiteId": "",
      "dynamicTag": {},
      "siteId": "",
      "siteIdDimensionValue": {},
      "viewThrough": false
    }
  ],
  "secure": false,
  "sslCompliant": false,
  "sslRequired": false,
  "status": "",
  "subaccountId": "",
  "tagFormat": "",
  "tagString": "",
  "userDefinedVariableTypes": []
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/floodlightActivities' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "attributionEnabled": false,
  "cacheBustingType": "",
  "countingMethod": "",
  "defaultTags": [
    {
      "id": "",
      "name": "",
      "tag": ""
    }
  ],
  "expectedUrl": "",
  "floodlightActivityGroupId": "",
  "floodlightActivityGroupName": "",
  "floodlightActivityGroupTagString": "",
  "floodlightActivityGroupType": "",
  "floodlightConfigurationId": "",
  "floodlightConfigurationIdDimensionValue": {},
  "floodlightTagType": "",
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "name": "",
  "notes": "",
  "publisherTags": [
    {
      "clickThrough": false,
      "directorySiteId": "",
      "dynamicTag": {},
      "siteId": "",
      "siteIdDimensionValue": {},
      "viewThrough": false
    }
  ],
  "secure": false,
  "sslCompliant": false,
  "sslRequired": false,
  "status": "",
  "subaccountId": "",
  "tagFormat": "",
  "tagString": "",
  "userDefinedVariableTypes": []
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"attributionEnabled\": false,\n  \"cacheBustingType\": \"\",\n  \"countingMethod\": \"\",\n  \"defaultTags\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"tag\": \"\"\n    }\n  ],\n  \"expectedUrl\": \"\",\n  \"floodlightActivityGroupId\": \"\",\n  \"floodlightActivityGroupName\": \"\",\n  \"floodlightActivityGroupTagString\": \"\",\n  \"floodlightActivityGroupType\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"floodlightTagType\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"publisherTags\": [\n    {\n      \"clickThrough\": false,\n      \"directorySiteId\": \"\",\n      \"dynamicTag\": {},\n      \"siteId\": \"\",\n      \"siteIdDimensionValue\": {},\n      \"viewThrough\": false\n    }\n  ],\n  \"secure\": false,\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormat\": \"\",\n  \"tagString\": \"\",\n  \"userDefinedVariableTypes\": []\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/userprofiles/:profileId/floodlightActivities", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/floodlightActivities"

payload = {
    "accountId": "",
    "advertiserId": "",
    "advertiserIdDimensionValue": {
        "dimensionName": "",
        "etag": "",
        "id": "",
        "kind": "",
        "matchType": "",
        "value": ""
    },
    "attributionEnabled": False,
    "cacheBustingType": "",
    "countingMethod": "",
    "defaultTags": [
        {
            "id": "",
            "name": "",
            "tag": ""
        }
    ],
    "expectedUrl": "",
    "floodlightActivityGroupId": "",
    "floodlightActivityGroupName": "",
    "floodlightActivityGroupTagString": "",
    "floodlightActivityGroupType": "",
    "floodlightConfigurationId": "",
    "floodlightConfigurationIdDimensionValue": {},
    "floodlightTagType": "",
    "id": "",
    "idDimensionValue": {},
    "kind": "",
    "name": "",
    "notes": "",
    "publisherTags": [
        {
            "clickThrough": False,
            "directorySiteId": "",
            "dynamicTag": {},
            "siteId": "",
            "siteIdDimensionValue": {},
            "viewThrough": False
        }
    ],
    "secure": False,
    "sslCompliant": False,
    "sslRequired": False,
    "status": "",
    "subaccountId": "",
    "tagFormat": "",
    "tagString": "",
    "userDefinedVariableTypes": []
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/floodlightActivities"

payload <- "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"attributionEnabled\": false,\n  \"cacheBustingType\": \"\",\n  \"countingMethod\": \"\",\n  \"defaultTags\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"tag\": \"\"\n    }\n  ],\n  \"expectedUrl\": \"\",\n  \"floodlightActivityGroupId\": \"\",\n  \"floodlightActivityGroupName\": \"\",\n  \"floodlightActivityGroupTagString\": \"\",\n  \"floodlightActivityGroupType\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"floodlightTagType\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"publisherTags\": [\n    {\n      \"clickThrough\": false,\n      \"directorySiteId\": \"\",\n      \"dynamicTag\": {},\n      \"siteId\": \"\",\n      \"siteIdDimensionValue\": {},\n      \"viewThrough\": false\n    }\n  ],\n  \"secure\": false,\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormat\": \"\",\n  \"tagString\": \"\",\n  \"userDefinedVariableTypes\": []\n}"

encode <- "json"

response <- VERB("PUT", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/floodlightActivities")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"attributionEnabled\": false,\n  \"cacheBustingType\": \"\",\n  \"countingMethod\": \"\",\n  \"defaultTags\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"tag\": \"\"\n    }\n  ],\n  \"expectedUrl\": \"\",\n  \"floodlightActivityGroupId\": \"\",\n  \"floodlightActivityGroupName\": \"\",\n  \"floodlightActivityGroupTagString\": \"\",\n  \"floodlightActivityGroupType\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"floodlightTagType\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"publisherTags\": [\n    {\n      \"clickThrough\": false,\n      \"directorySiteId\": \"\",\n      \"dynamicTag\": {},\n      \"siteId\": \"\",\n      \"siteIdDimensionValue\": {},\n      \"viewThrough\": false\n    }\n  ],\n  \"secure\": false,\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormat\": \"\",\n  \"tagString\": \"\",\n  \"userDefinedVariableTypes\": []\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.put('/baseUrl/userprofiles/:profileId/floodlightActivities') do |req|
  req.body = "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"attributionEnabled\": false,\n  \"cacheBustingType\": \"\",\n  \"countingMethod\": \"\",\n  \"defaultTags\": [\n    {\n      \"id\": \"\",\n      \"name\": \"\",\n      \"tag\": \"\"\n    }\n  ],\n  \"expectedUrl\": \"\",\n  \"floodlightActivityGroupId\": \"\",\n  \"floodlightActivityGroupName\": \"\",\n  \"floodlightActivityGroupTagString\": \"\",\n  \"floodlightActivityGroupType\": \"\",\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"floodlightTagType\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"notes\": \"\",\n  \"publisherTags\": [\n    {\n      \"clickThrough\": false,\n      \"directorySiteId\": \"\",\n      \"dynamicTag\": {},\n      \"siteId\": \"\",\n      \"siteIdDimensionValue\": {},\n      \"viewThrough\": false\n    }\n  ],\n  \"secure\": false,\n  \"sslCompliant\": false,\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormat\": \"\",\n  \"tagString\": \"\",\n  \"userDefinedVariableTypes\": []\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}}/userprofiles/:profileId/floodlightActivities";

    let payload = json!({
        "accountId": "",
        "advertiserId": "",
        "advertiserIdDimensionValue": json!({
            "dimensionName": "",
            "etag": "",
            "id": "",
            "kind": "",
            "matchType": "",
            "value": ""
        }),
        "attributionEnabled": false,
        "cacheBustingType": "",
        "countingMethod": "",
        "defaultTags": (
            json!({
                "id": "",
                "name": "",
                "tag": ""
            })
        ),
        "expectedUrl": "",
        "floodlightActivityGroupId": "",
        "floodlightActivityGroupName": "",
        "floodlightActivityGroupTagString": "",
        "floodlightActivityGroupType": "",
        "floodlightConfigurationId": "",
        "floodlightConfigurationIdDimensionValue": json!({}),
        "floodlightTagType": "",
        "id": "",
        "idDimensionValue": json!({}),
        "kind": "",
        "name": "",
        "notes": "",
        "publisherTags": (
            json!({
                "clickThrough": false,
                "directorySiteId": "",
                "dynamicTag": json!({}),
                "siteId": "",
                "siteIdDimensionValue": json!({}),
                "viewThrough": false
            })
        ),
        "secure": false,
        "sslCompliant": false,
        "sslRequired": false,
        "status": "",
        "subaccountId": "",
        "tagFormat": "",
        "tagString": "",
        "userDefinedVariableTypes": ()
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/userprofiles/:profileId/floodlightActivities \
  --header 'content-type: application/json' \
  --data '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "attributionEnabled": false,
  "cacheBustingType": "",
  "countingMethod": "",
  "defaultTags": [
    {
      "id": "",
      "name": "",
      "tag": ""
    }
  ],
  "expectedUrl": "",
  "floodlightActivityGroupId": "",
  "floodlightActivityGroupName": "",
  "floodlightActivityGroupTagString": "",
  "floodlightActivityGroupType": "",
  "floodlightConfigurationId": "",
  "floodlightConfigurationIdDimensionValue": {},
  "floodlightTagType": "",
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "name": "",
  "notes": "",
  "publisherTags": [
    {
      "clickThrough": false,
      "directorySiteId": "",
      "dynamicTag": {},
      "siteId": "",
      "siteIdDimensionValue": {},
      "viewThrough": false
    }
  ],
  "secure": false,
  "sslCompliant": false,
  "sslRequired": false,
  "status": "",
  "subaccountId": "",
  "tagFormat": "",
  "tagString": "",
  "userDefinedVariableTypes": []
}'
echo '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "attributionEnabled": false,
  "cacheBustingType": "",
  "countingMethod": "",
  "defaultTags": [
    {
      "id": "",
      "name": "",
      "tag": ""
    }
  ],
  "expectedUrl": "",
  "floodlightActivityGroupId": "",
  "floodlightActivityGroupName": "",
  "floodlightActivityGroupTagString": "",
  "floodlightActivityGroupType": "",
  "floodlightConfigurationId": "",
  "floodlightConfigurationIdDimensionValue": {},
  "floodlightTagType": "",
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "name": "",
  "notes": "",
  "publisherTags": [
    {
      "clickThrough": false,
      "directorySiteId": "",
      "dynamicTag": {},
      "siteId": "",
      "siteIdDimensionValue": {},
      "viewThrough": false
    }
  ],
  "secure": false,
  "sslCompliant": false,
  "sslRequired": false,
  "status": "",
  "subaccountId": "",
  "tagFormat": "",
  "tagString": "",
  "userDefinedVariableTypes": []
}' |  \
  http PUT {{baseUrl}}/userprofiles/:profileId/floodlightActivities \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "accountId": "",\n  "advertiserId": "",\n  "advertiserIdDimensionValue": {\n    "dimensionName": "",\n    "etag": "",\n    "id": "",\n    "kind": "",\n    "matchType": "",\n    "value": ""\n  },\n  "attributionEnabled": false,\n  "cacheBustingType": "",\n  "countingMethod": "",\n  "defaultTags": [\n    {\n      "id": "",\n      "name": "",\n      "tag": ""\n    }\n  ],\n  "expectedUrl": "",\n  "floodlightActivityGroupId": "",\n  "floodlightActivityGroupName": "",\n  "floodlightActivityGroupTagString": "",\n  "floodlightActivityGroupType": "",\n  "floodlightConfigurationId": "",\n  "floodlightConfigurationIdDimensionValue": {},\n  "floodlightTagType": "",\n  "id": "",\n  "idDimensionValue": {},\n  "kind": "",\n  "name": "",\n  "notes": "",\n  "publisherTags": [\n    {\n      "clickThrough": false,\n      "directorySiteId": "",\n      "dynamicTag": {},\n      "siteId": "",\n      "siteIdDimensionValue": {},\n      "viewThrough": false\n    }\n  ],\n  "secure": false,\n  "sslCompliant": false,\n  "sslRequired": false,\n  "status": "",\n  "subaccountId": "",\n  "tagFormat": "",\n  "tagString": "",\n  "userDefinedVariableTypes": []\n}' \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/floodlightActivities
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": [
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  ],
  "attributionEnabled": false,
  "cacheBustingType": "",
  "countingMethod": "",
  "defaultTags": [
    [
      "id": "",
      "name": "",
      "tag": ""
    ]
  ],
  "expectedUrl": "",
  "floodlightActivityGroupId": "",
  "floodlightActivityGroupName": "",
  "floodlightActivityGroupTagString": "",
  "floodlightActivityGroupType": "",
  "floodlightConfigurationId": "",
  "floodlightConfigurationIdDimensionValue": [],
  "floodlightTagType": "",
  "id": "",
  "idDimensionValue": [],
  "kind": "",
  "name": "",
  "notes": "",
  "publisherTags": [
    [
      "clickThrough": false,
      "directorySiteId": "",
      "dynamicTag": [],
      "siteId": "",
      "siteIdDimensionValue": [],
      "viewThrough": false
    ]
  ],
  "secure": false,
  "sslCompliant": false,
  "sslRequired": false,
  "status": "",
  "subaccountId": "",
  "tagFormat": "",
  "tagString": "",
  "userDefinedVariableTypes": []
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/floodlightActivities")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET dfareporting.floodlightActivityGroups.get
{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups/:id
QUERY PARAMS

profileId
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups/:id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups/:id")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups/:id"

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}}/userprofiles/:profileId/floodlightActivityGroups/:id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups/:id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups/:id"

	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/userprofiles/:profileId/floodlightActivityGroups/:id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups/:id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups/:id"))
    .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}}/userprofiles/:profileId/floodlightActivityGroups/:id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups/:id")
  .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}}/userprofiles/:profileId/floodlightActivityGroups/:id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups/:id';
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}}/userprofiles/:profileId/floodlightActivityGroups/:id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups/:id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/floodlightActivityGroups/:id',
  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}}/userprofiles/:profileId/floodlightActivityGroups/:id'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups/:id');

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}}/userprofiles/:profileId/floodlightActivityGroups/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups/:id';
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}}/userprofiles/:profileId/floodlightActivityGroups/:id"]
                                                       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}}/userprofiles/:profileId/floodlightActivityGroups/:id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups/:id",
  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}}/userprofiles/:profileId/floodlightActivityGroups/:id');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups/:id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups/:id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups/:id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups/:id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/floodlightActivityGroups/:id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups/:id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups/:id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups/:id")

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/userprofiles/:profileId/floodlightActivityGroups/:id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups/:id";

    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}}/userprofiles/:profileId/floodlightActivityGroups/:id
http GET {{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups/:id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups/:id")! 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 dfareporting.floodlightActivityGroups.insert
{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups
QUERY PARAMS

profileId
BODY json

{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "floodlightConfigurationId": "",
  "floodlightConfigurationIdDimensionValue": {},
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "name": "",
  "subaccountId": "",
  "tagString": "",
  "type": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups");

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  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"tagString\": \"\",\n  \"type\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups" {:content-type :json
                                                                                             :form-params {:accountId ""
                                                                                                           :advertiserId ""
                                                                                                           :advertiserIdDimensionValue {:dimensionName ""
                                                                                                                                        :etag ""
                                                                                                                                        :id ""
                                                                                                                                        :kind ""
                                                                                                                                        :matchType ""
                                                                                                                                        :value ""}
                                                                                                           :floodlightConfigurationId ""
                                                                                                           :floodlightConfigurationIdDimensionValue {}
                                                                                                           :id ""
                                                                                                           :idDimensionValue {}
                                                                                                           :kind ""
                                                                                                           :name ""
                                                                                                           :subaccountId ""
                                                                                                           :tagString ""
                                                                                                           :type ""}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"tagString\": \"\",\n  \"type\": \"\"\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}}/userprofiles/:profileId/floodlightActivityGroups"),
    Content = new StringContent("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"tagString\": \"\",\n  \"type\": \"\"\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}}/userprofiles/:profileId/floodlightActivityGroups");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"tagString\": \"\",\n  \"type\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups"

	payload := strings.NewReader("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"tagString\": \"\",\n  \"type\": \"\"\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/userprofiles/:profileId/floodlightActivityGroups HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 395

{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "floodlightConfigurationId": "",
  "floodlightConfigurationIdDimensionValue": {},
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "name": "",
  "subaccountId": "",
  "tagString": "",
  "type": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"tagString\": \"\",\n  \"type\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"tagString\": \"\",\n  \"type\": \"\"\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  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"tagString\": \"\",\n  \"type\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups")
  .header("content-type", "application/json")
  .body("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"tagString\": \"\",\n  \"type\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  accountId: '',
  advertiserId: '',
  advertiserIdDimensionValue: {
    dimensionName: '',
    etag: '',
    id: '',
    kind: '',
    matchType: '',
    value: ''
  },
  floodlightConfigurationId: '',
  floodlightConfigurationIdDimensionValue: {},
  id: '',
  idDimensionValue: {},
  kind: '',
  name: '',
  subaccountId: '',
  tagString: '',
  type: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups',
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    floodlightConfigurationId: '',
    floodlightConfigurationIdDimensionValue: {},
    id: '',
    idDimensionValue: {},
    kind: '',
    name: '',
    subaccountId: '',
    tagString: '',
    type: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","advertiserId":"","advertiserIdDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"floodlightConfigurationId":"","floodlightConfigurationIdDimensionValue":{},"id":"","idDimensionValue":{},"kind":"","name":"","subaccountId":"","tagString":"","type":""}'
};

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}}/userprofiles/:profileId/floodlightActivityGroups',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "accountId": "",\n  "advertiserId": "",\n  "advertiserIdDimensionValue": {\n    "dimensionName": "",\n    "etag": "",\n    "id": "",\n    "kind": "",\n    "matchType": "",\n    "value": ""\n  },\n  "floodlightConfigurationId": "",\n  "floodlightConfigurationIdDimensionValue": {},\n  "id": "",\n  "idDimensionValue": {},\n  "kind": "",\n  "name": "",\n  "subaccountId": "",\n  "tagString": "",\n  "type": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"tagString\": \"\",\n  \"type\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups")
  .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/userprofiles/:profileId/floodlightActivityGroups',
  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({
  accountId: '',
  advertiserId: '',
  advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
  floodlightConfigurationId: '',
  floodlightConfigurationIdDimensionValue: {},
  id: '',
  idDimensionValue: {},
  kind: '',
  name: '',
  subaccountId: '',
  tagString: '',
  type: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups',
  headers: {'content-type': 'application/json'},
  body: {
    accountId: '',
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    floodlightConfigurationId: '',
    floodlightConfigurationIdDimensionValue: {},
    id: '',
    idDimensionValue: {},
    kind: '',
    name: '',
    subaccountId: '',
    tagString: '',
    type: ''
  },
  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}}/userprofiles/:profileId/floodlightActivityGroups');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  accountId: '',
  advertiserId: '',
  advertiserIdDimensionValue: {
    dimensionName: '',
    etag: '',
    id: '',
    kind: '',
    matchType: '',
    value: ''
  },
  floodlightConfigurationId: '',
  floodlightConfigurationIdDimensionValue: {},
  id: '',
  idDimensionValue: {},
  kind: '',
  name: '',
  subaccountId: '',
  tagString: '',
  type: ''
});

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}}/userprofiles/:profileId/floodlightActivityGroups',
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    floodlightConfigurationId: '',
    floodlightConfigurationIdDimensionValue: {},
    id: '',
    idDimensionValue: {},
    kind: '',
    name: '',
    subaccountId: '',
    tagString: '',
    type: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","advertiserId":"","advertiserIdDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"floodlightConfigurationId":"","floodlightConfigurationIdDimensionValue":{},"id":"","idDimensionValue":{},"kind":"","name":"","subaccountId":"","tagString":"","type":""}'
};

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 = @{ @"accountId": @"",
                              @"advertiserId": @"",
                              @"advertiserIdDimensionValue": @{ @"dimensionName": @"", @"etag": @"", @"id": @"", @"kind": @"", @"matchType": @"", @"value": @"" },
                              @"floodlightConfigurationId": @"",
                              @"floodlightConfigurationIdDimensionValue": @{  },
                              @"id": @"",
                              @"idDimensionValue": @{  },
                              @"kind": @"",
                              @"name": @"",
                              @"subaccountId": @"",
                              @"tagString": @"",
                              @"type": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups"]
                                                       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}}/userprofiles/:profileId/floodlightActivityGroups" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"tagString\": \"\",\n  \"type\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups",
  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([
    'accountId' => '',
    'advertiserId' => '',
    'advertiserIdDimensionValue' => [
        'dimensionName' => '',
        'etag' => '',
        'id' => '',
        'kind' => '',
        'matchType' => '',
        'value' => ''
    ],
    'floodlightConfigurationId' => '',
    'floodlightConfigurationIdDimensionValue' => [
        
    ],
    'id' => '',
    'idDimensionValue' => [
        
    ],
    'kind' => '',
    'name' => '',
    'subaccountId' => '',
    'tagString' => '',
    'type' => ''
  ]),
  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}}/userprofiles/:profileId/floodlightActivityGroups', [
  'body' => '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "floodlightConfigurationId": "",
  "floodlightConfigurationIdDimensionValue": {},
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "name": "",
  "subaccountId": "",
  "tagString": "",
  "type": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'accountId' => '',
  'advertiserId' => '',
  'advertiserIdDimensionValue' => [
    'dimensionName' => '',
    'etag' => '',
    'id' => '',
    'kind' => '',
    'matchType' => '',
    'value' => ''
  ],
  'floodlightConfigurationId' => '',
  'floodlightConfigurationIdDimensionValue' => [
    
  ],
  'id' => '',
  'idDimensionValue' => [
    
  ],
  'kind' => '',
  'name' => '',
  'subaccountId' => '',
  'tagString' => '',
  'type' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'accountId' => '',
  'advertiserId' => '',
  'advertiserIdDimensionValue' => [
    'dimensionName' => '',
    'etag' => '',
    'id' => '',
    'kind' => '',
    'matchType' => '',
    'value' => ''
  ],
  'floodlightConfigurationId' => '',
  'floodlightConfigurationIdDimensionValue' => [
    
  ],
  'id' => '',
  'idDimensionValue' => [
    
  ],
  'kind' => '',
  'name' => '',
  'subaccountId' => '',
  'tagString' => '',
  'type' => ''
]));
$request->setRequestUrl('{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups');
$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}}/userprofiles/:profileId/floodlightActivityGroups' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "floodlightConfigurationId": "",
  "floodlightConfigurationIdDimensionValue": {},
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "name": "",
  "subaccountId": "",
  "tagString": "",
  "type": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "floodlightConfigurationId": "",
  "floodlightConfigurationIdDimensionValue": {},
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "name": "",
  "subaccountId": "",
  "tagString": "",
  "type": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"tagString\": \"\",\n  \"type\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/userprofiles/:profileId/floodlightActivityGroups", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups"

payload = {
    "accountId": "",
    "advertiserId": "",
    "advertiserIdDimensionValue": {
        "dimensionName": "",
        "etag": "",
        "id": "",
        "kind": "",
        "matchType": "",
        "value": ""
    },
    "floodlightConfigurationId": "",
    "floodlightConfigurationIdDimensionValue": {},
    "id": "",
    "idDimensionValue": {},
    "kind": "",
    "name": "",
    "subaccountId": "",
    "tagString": "",
    "type": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups"

payload <- "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"tagString\": \"\",\n  \"type\": \"\"\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}}/userprofiles/:profileId/floodlightActivityGroups")

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  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"tagString\": \"\",\n  \"type\": \"\"\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/userprofiles/:profileId/floodlightActivityGroups') do |req|
  req.body = "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"tagString\": \"\",\n  \"type\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups";

    let payload = json!({
        "accountId": "",
        "advertiserId": "",
        "advertiserIdDimensionValue": json!({
            "dimensionName": "",
            "etag": "",
            "id": "",
            "kind": "",
            "matchType": "",
            "value": ""
        }),
        "floodlightConfigurationId": "",
        "floodlightConfigurationIdDimensionValue": json!({}),
        "id": "",
        "idDimensionValue": json!({}),
        "kind": "",
        "name": "",
        "subaccountId": "",
        "tagString": "",
        "type": ""
    });

    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}}/userprofiles/:profileId/floodlightActivityGroups \
  --header 'content-type: application/json' \
  --data '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "floodlightConfigurationId": "",
  "floodlightConfigurationIdDimensionValue": {},
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "name": "",
  "subaccountId": "",
  "tagString": "",
  "type": ""
}'
echo '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "floodlightConfigurationId": "",
  "floodlightConfigurationIdDimensionValue": {},
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "name": "",
  "subaccountId": "",
  "tagString": "",
  "type": ""
}' |  \
  http POST {{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "accountId": "",\n  "advertiserId": "",\n  "advertiserIdDimensionValue": {\n    "dimensionName": "",\n    "etag": "",\n    "id": "",\n    "kind": "",\n    "matchType": "",\n    "value": ""\n  },\n  "floodlightConfigurationId": "",\n  "floodlightConfigurationIdDimensionValue": {},\n  "id": "",\n  "idDimensionValue": {},\n  "kind": "",\n  "name": "",\n  "subaccountId": "",\n  "tagString": "",\n  "type": ""\n}' \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": [
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  ],
  "floodlightConfigurationId": "",
  "floodlightConfigurationIdDimensionValue": [],
  "id": "",
  "idDimensionValue": [],
  "kind": "",
  "name": "",
  "subaccountId": "",
  "tagString": "",
  "type": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups")! 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 dfareporting.floodlightActivityGroups.list
{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups
QUERY PARAMS

profileId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups"

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}}/userprofiles/:profileId/floodlightActivityGroups"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups"

	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/userprofiles/:profileId/floodlightActivityGroups HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups"))
    .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}}/userprofiles/:profileId/floodlightActivityGroups")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups")
  .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}}/userprofiles/:profileId/floodlightActivityGroups');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups';
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}}/userprofiles/:profileId/floodlightActivityGroups',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/floodlightActivityGroups',
  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}}/userprofiles/:profileId/floodlightActivityGroups'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups');

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}}/userprofiles/:profileId/floodlightActivityGroups'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups';
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}}/userprofiles/:profileId/floodlightActivityGroups"]
                                                       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}}/userprofiles/:profileId/floodlightActivityGroups" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups",
  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}}/userprofiles/:profileId/floodlightActivityGroups');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/floodlightActivityGroups")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups")

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/userprofiles/:profileId/floodlightActivityGroups') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups";

    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}}/userprofiles/:profileId/floodlightActivityGroups
http GET {{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups")! 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 dfareporting.floodlightActivityGroups.patch
{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups
QUERY PARAMS

id
profileId
BODY json

{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "floodlightConfigurationId": "",
  "floodlightConfigurationIdDimensionValue": {},
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "name": "",
  "subaccountId": "",
  "tagString": "",
  "type": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups?id=");

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  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"tagString\": \"\",\n  \"type\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/patch "{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups" {:query-params {:id ""}
                                                                                              :content-type :json
                                                                                              :form-params {:accountId ""
                                                                                                            :advertiserId ""
                                                                                                            :advertiserIdDimensionValue {:dimensionName ""
                                                                                                                                         :etag ""
                                                                                                                                         :id ""
                                                                                                                                         :kind ""
                                                                                                                                         :matchType ""
                                                                                                                                         :value ""}
                                                                                                            :floodlightConfigurationId ""
                                                                                                            :floodlightConfigurationIdDimensionValue {}
                                                                                                            :id ""
                                                                                                            :idDimensionValue {}
                                                                                                            :kind ""
                                                                                                            :name ""
                                                                                                            :subaccountId ""
                                                                                                            :tagString ""
                                                                                                            :type ""}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups?id="
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"tagString\": \"\",\n  \"type\": \"\"\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}}/userprofiles/:profileId/floodlightActivityGroups?id="),
    Content = new StringContent("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"tagString\": \"\",\n  \"type\": \"\"\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}}/userprofiles/:profileId/floodlightActivityGroups?id=");
var request = new RestRequest("", Method.Patch);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"tagString\": \"\",\n  \"type\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups?id="

	payload := strings.NewReader("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"tagString\": \"\",\n  \"type\": \"\"\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/userprofiles/:profileId/floodlightActivityGroups?id= HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 395

{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "floodlightConfigurationId": "",
  "floodlightConfigurationIdDimensionValue": {},
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "name": "",
  "subaccountId": "",
  "tagString": "",
  "type": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups?id=")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"tagString\": \"\",\n  \"type\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups?id="))
    .header("content-type", "application/json")
    .method("PATCH", HttpRequest.BodyPublishers.ofString("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"tagString\": \"\",\n  \"type\": \"\"\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  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"tagString\": \"\",\n  \"type\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups?id=")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups?id=")
  .header("content-type", "application/json")
  .body("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"tagString\": \"\",\n  \"type\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  accountId: '',
  advertiserId: '',
  advertiserIdDimensionValue: {
    dimensionName: '',
    etag: '',
    id: '',
    kind: '',
    matchType: '',
    value: ''
  },
  floodlightConfigurationId: '',
  floodlightConfigurationIdDimensionValue: {},
  id: '',
  idDimensionValue: {},
  kind: '',
  name: '',
  subaccountId: '',
  tagString: '',
  type: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PATCH', '{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups?id=');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups',
  params: {id: ''},
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    floodlightConfigurationId: '',
    floodlightConfigurationIdDimensionValue: {},
    id: '',
    idDimensionValue: {},
    kind: '',
    name: '',
    subaccountId: '',
    tagString: '',
    type: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups?id=';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","advertiserId":"","advertiserIdDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"floodlightConfigurationId":"","floodlightConfigurationIdDimensionValue":{},"id":"","idDimensionValue":{},"kind":"","name":"","subaccountId":"","tagString":"","type":""}'
};

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}}/userprofiles/:profileId/floodlightActivityGroups?id=',
  method: 'PATCH',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "accountId": "",\n  "advertiserId": "",\n  "advertiserIdDimensionValue": {\n    "dimensionName": "",\n    "etag": "",\n    "id": "",\n    "kind": "",\n    "matchType": "",\n    "value": ""\n  },\n  "floodlightConfigurationId": "",\n  "floodlightConfigurationIdDimensionValue": {},\n  "id": "",\n  "idDimensionValue": {},\n  "kind": "",\n  "name": "",\n  "subaccountId": "",\n  "tagString": "",\n  "type": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"tagString\": \"\",\n  \"type\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups?id=")
  .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/userprofiles/:profileId/floodlightActivityGroups?id=',
  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({
  accountId: '',
  advertiserId: '',
  advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
  floodlightConfigurationId: '',
  floodlightConfigurationIdDimensionValue: {},
  id: '',
  idDimensionValue: {},
  kind: '',
  name: '',
  subaccountId: '',
  tagString: '',
  type: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups',
  qs: {id: ''},
  headers: {'content-type': 'application/json'},
  body: {
    accountId: '',
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    floodlightConfigurationId: '',
    floodlightConfigurationIdDimensionValue: {},
    id: '',
    idDimensionValue: {},
    kind: '',
    name: '',
    subaccountId: '',
    tagString: '',
    type: ''
  },
  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}}/userprofiles/:profileId/floodlightActivityGroups');

req.query({
  id: ''
});

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  accountId: '',
  advertiserId: '',
  advertiserIdDimensionValue: {
    dimensionName: '',
    etag: '',
    id: '',
    kind: '',
    matchType: '',
    value: ''
  },
  floodlightConfigurationId: '',
  floodlightConfigurationIdDimensionValue: {},
  id: '',
  idDimensionValue: {},
  kind: '',
  name: '',
  subaccountId: '',
  tagString: '',
  type: ''
});

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}}/userprofiles/:profileId/floodlightActivityGroups',
  params: {id: ''},
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    floodlightConfigurationId: '',
    floodlightConfigurationIdDimensionValue: {},
    id: '',
    idDimensionValue: {},
    kind: '',
    name: '',
    subaccountId: '',
    tagString: '',
    type: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups?id=';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","advertiserId":"","advertiserIdDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"floodlightConfigurationId":"","floodlightConfigurationIdDimensionValue":{},"id":"","idDimensionValue":{},"kind":"","name":"","subaccountId":"","tagString":"","type":""}'
};

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 = @{ @"accountId": @"",
                              @"advertiserId": @"",
                              @"advertiserIdDimensionValue": @{ @"dimensionName": @"", @"etag": @"", @"id": @"", @"kind": @"", @"matchType": @"", @"value": @"" },
                              @"floodlightConfigurationId": @"",
                              @"floodlightConfigurationIdDimensionValue": @{  },
                              @"id": @"",
                              @"idDimensionValue": @{  },
                              @"kind": @"",
                              @"name": @"",
                              @"subaccountId": @"",
                              @"tagString": @"",
                              @"type": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups?id="]
                                                       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}}/userprofiles/:profileId/floodlightActivityGroups?id=" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"tagString\": \"\",\n  \"type\": \"\"\n}" in

Client.call ~headers ~body `PATCH uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups?id=",
  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([
    'accountId' => '',
    'advertiserId' => '',
    'advertiserIdDimensionValue' => [
        'dimensionName' => '',
        'etag' => '',
        'id' => '',
        'kind' => '',
        'matchType' => '',
        'value' => ''
    ],
    'floodlightConfigurationId' => '',
    'floodlightConfigurationIdDimensionValue' => [
        
    ],
    'id' => '',
    'idDimensionValue' => [
        
    ],
    'kind' => '',
    'name' => '',
    'subaccountId' => '',
    'tagString' => '',
    'type' => ''
  ]),
  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}}/userprofiles/:profileId/floodlightActivityGroups?id=', [
  'body' => '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "floodlightConfigurationId": "",
  "floodlightConfigurationIdDimensionValue": {},
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "name": "",
  "subaccountId": "",
  "tagString": "",
  "type": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups');
$request->setMethod(HttpRequest::HTTP_METH_PATCH);

$request->setQueryData([
  'id' => ''
]);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'accountId' => '',
  'advertiserId' => '',
  'advertiserIdDimensionValue' => [
    'dimensionName' => '',
    'etag' => '',
    'id' => '',
    'kind' => '',
    'matchType' => '',
    'value' => ''
  ],
  'floodlightConfigurationId' => '',
  'floodlightConfigurationIdDimensionValue' => [
    
  ],
  'id' => '',
  'idDimensionValue' => [
    
  ],
  'kind' => '',
  'name' => '',
  'subaccountId' => '',
  'tagString' => '',
  'type' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'accountId' => '',
  'advertiserId' => '',
  'advertiserIdDimensionValue' => [
    'dimensionName' => '',
    'etag' => '',
    'id' => '',
    'kind' => '',
    'matchType' => '',
    'value' => ''
  ],
  'floodlightConfigurationId' => '',
  'floodlightConfigurationIdDimensionValue' => [
    
  ],
  'id' => '',
  'idDimensionValue' => [
    
  ],
  'kind' => '',
  'name' => '',
  'subaccountId' => '',
  'tagString' => '',
  'type' => ''
]));
$request->setRequestUrl('{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups');
$request->setRequestMethod('PATCH');
$request->setBody($body);

$request->setQuery(new http\QueryString([
  'id' => ''
]));

$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}}/userprofiles/:profileId/floodlightActivityGroups?id=' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "floodlightConfigurationId": "",
  "floodlightConfigurationIdDimensionValue": {},
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "name": "",
  "subaccountId": "",
  "tagString": "",
  "type": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups?id=' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "floodlightConfigurationId": "",
  "floodlightConfigurationIdDimensionValue": {},
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "name": "",
  "subaccountId": "",
  "tagString": "",
  "type": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"tagString\": \"\",\n  \"type\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("PATCH", "/baseUrl/userprofiles/:profileId/floodlightActivityGroups?id=", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups"

querystring = {"id":""}

payload = {
    "accountId": "",
    "advertiserId": "",
    "advertiserIdDimensionValue": {
        "dimensionName": "",
        "etag": "",
        "id": "",
        "kind": "",
        "matchType": "",
        "value": ""
    },
    "floodlightConfigurationId": "",
    "floodlightConfigurationIdDimensionValue": {},
    "id": "",
    "idDimensionValue": {},
    "kind": "",
    "name": "",
    "subaccountId": "",
    "tagString": "",
    "type": ""
}
headers = {"content-type": "application/json"}

response = requests.patch(url, json=payload, headers=headers, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups"

queryString <- list(id = "")

payload <- "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"tagString\": \"\",\n  \"type\": \"\"\n}"

encode <- "json"

response <- VERB("PATCH", url, body = payload, query = queryString, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups?id=")

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  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"tagString\": \"\",\n  \"type\": \"\"\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/userprofiles/:profileId/floodlightActivityGroups') do |req|
  req.params['id'] = ''
  req.body = "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"tagString\": \"\",\n  \"type\": \"\"\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}}/userprofiles/:profileId/floodlightActivityGroups";

    let querystring = [
        ("id", ""),
    ];

    let payload = json!({
        "accountId": "",
        "advertiserId": "",
        "advertiserIdDimensionValue": json!({
            "dimensionName": "",
            "etag": "",
            "id": "",
            "kind": "",
            "matchType": "",
            "value": ""
        }),
        "floodlightConfigurationId": "",
        "floodlightConfigurationIdDimensionValue": json!({}),
        "id": "",
        "idDimensionValue": json!({}),
        "kind": "",
        "name": "",
        "subaccountId": "",
        "tagString": "",
        "type": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PATCH").unwrap(), url)
        .query(&querystring)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PATCH \
  --url '{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups?id=' \
  --header 'content-type: application/json' \
  --data '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "floodlightConfigurationId": "",
  "floodlightConfigurationIdDimensionValue": {},
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "name": "",
  "subaccountId": "",
  "tagString": "",
  "type": ""
}'
echo '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "floodlightConfigurationId": "",
  "floodlightConfigurationIdDimensionValue": {},
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "name": "",
  "subaccountId": "",
  "tagString": "",
  "type": ""
}' |  \
  http PATCH '{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups?id=' \
  content-type:application/json
wget --quiet \
  --method PATCH \
  --header 'content-type: application/json' \
  --body-data '{\n  "accountId": "",\n  "advertiserId": "",\n  "advertiserIdDimensionValue": {\n    "dimensionName": "",\n    "etag": "",\n    "id": "",\n    "kind": "",\n    "matchType": "",\n    "value": ""\n  },\n  "floodlightConfigurationId": "",\n  "floodlightConfigurationIdDimensionValue": {},\n  "id": "",\n  "idDimensionValue": {},\n  "kind": "",\n  "name": "",\n  "subaccountId": "",\n  "tagString": "",\n  "type": ""\n}' \
  --output-document \
  - '{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups?id='
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": [
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  ],
  "floodlightConfigurationId": "",
  "floodlightConfigurationIdDimensionValue": [],
  "id": "",
  "idDimensionValue": [],
  "kind": "",
  "name": "",
  "subaccountId": "",
  "tagString": "",
  "type": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups?id=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PATCH"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
PUT dfareporting.floodlightActivityGroups.update
{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups
QUERY PARAMS

profileId
BODY json

{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "floodlightConfigurationId": "",
  "floodlightConfigurationIdDimensionValue": {},
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "name": "",
  "subaccountId": "",
  "tagString": "",
  "type": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups");

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  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"tagString\": \"\",\n  \"type\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups" {:content-type :json
                                                                                            :form-params {:accountId ""
                                                                                                          :advertiserId ""
                                                                                                          :advertiserIdDimensionValue {:dimensionName ""
                                                                                                                                       :etag ""
                                                                                                                                       :id ""
                                                                                                                                       :kind ""
                                                                                                                                       :matchType ""
                                                                                                                                       :value ""}
                                                                                                          :floodlightConfigurationId ""
                                                                                                          :floodlightConfigurationIdDimensionValue {}
                                                                                                          :id ""
                                                                                                          :idDimensionValue {}
                                                                                                          :kind ""
                                                                                                          :name ""
                                                                                                          :subaccountId ""
                                                                                                          :tagString ""
                                                                                                          :type ""}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"tagString\": \"\",\n  \"type\": \"\"\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups"),
    Content = new StringContent("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"tagString\": \"\",\n  \"type\": \"\"\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}}/userprofiles/:profileId/floodlightActivityGroups");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"tagString\": \"\",\n  \"type\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups"

	payload := strings.NewReader("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"tagString\": \"\",\n  \"type\": \"\"\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/userprofiles/:profileId/floodlightActivityGroups HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 395

{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "floodlightConfigurationId": "",
  "floodlightConfigurationIdDimensionValue": {},
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "name": "",
  "subaccountId": "",
  "tagString": "",
  "type": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"tagString\": \"\",\n  \"type\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"tagString\": \"\",\n  \"type\": \"\"\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  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"tagString\": \"\",\n  \"type\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups")
  .header("content-type", "application/json")
  .body("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"tagString\": \"\",\n  \"type\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  accountId: '',
  advertiserId: '',
  advertiserIdDimensionValue: {
    dimensionName: '',
    etag: '',
    id: '',
    kind: '',
    matchType: '',
    value: ''
  },
  floodlightConfigurationId: '',
  floodlightConfigurationIdDimensionValue: {},
  id: '',
  idDimensionValue: {},
  kind: '',
  name: '',
  subaccountId: '',
  tagString: '',
  type: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups',
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    floodlightConfigurationId: '',
    floodlightConfigurationIdDimensionValue: {},
    id: '',
    idDimensionValue: {},
    kind: '',
    name: '',
    subaccountId: '',
    tagString: '',
    type: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","advertiserId":"","advertiserIdDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"floodlightConfigurationId":"","floodlightConfigurationIdDimensionValue":{},"id":"","idDimensionValue":{},"kind":"","name":"","subaccountId":"","tagString":"","type":""}'
};

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}}/userprofiles/:profileId/floodlightActivityGroups',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "accountId": "",\n  "advertiserId": "",\n  "advertiserIdDimensionValue": {\n    "dimensionName": "",\n    "etag": "",\n    "id": "",\n    "kind": "",\n    "matchType": "",\n    "value": ""\n  },\n  "floodlightConfigurationId": "",\n  "floodlightConfigurationIdDimensionValue": {},\n  "id": "",\n  "idDimensionValue": {},\n  "kind": "",\n  "name": "",\n  "subaccountId": "",\n  "tagString": "",\n  "type": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"tagString\": \"\",\n  \"type\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/floodlightActivityGroups',
  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({
  accountId: '',
  advertiserId: '',
  advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
  floodlightConfigurationId: '',
  floodlightConfigurationIdDimensionValue: {},
  id: '',
  idDimensionValue: {},
  kind: '',
  name: '',
  subaccountId: '',
  tagString: '',
  type: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups',
  headers: {'content-type': 'application/json'},
  body: {
    accountId: '',
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    floodlightConfigurationId: '',
    floodlightConfigurationIdDimensionValue: {},
    id: '',
    idDimensionValue: {},
    kind: '',
    name: '',
    subaccountId: '',
    tagString: '',
    type: ''
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  accountId: '',
  advertiserId: '',
  advertiserIdDimensionValue: {
    dimensionName: '',
    etag: '',
    id: '',
    kind: '',
    matchType: '',
    value: ''
  },
  floodlightConfigurationId: '',
  floodlightConfigurationIdDimensionValue: {},
  id: '',
  idDimensionValue: {},
  kind: '',
  name: '',
  subaccountId: '',
  tagString: '',
  type: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups',
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    floodlightConfigurationId: '',
    floodlightConfigurationIdDimensionValue: {},
    id: '',
    idDimensionValue: {},
    kind: '',
    name: '',
    subaccountId: '',
    tagString: '',
    type: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","advertiserId":"","advertiserIdDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"floodlightConfigurationId":"","floodlightConfigurationIdDimensionValue":{},"id":"","idDimensionValue":{},"kind":"","name":"","subaccountId":"","tagString":"","type":""}'
};

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 = @{ @"accountId": @"",
                              @"advertiserId": @"",
                              @"advertiserIdDimensionValue": @{ @"dimensionName": @"", @"etag": @"", @"id": @"", @"kind": @"", @"matchType": @"", @"value": @"" },
                              @"floodlightConfigurationId": @"",
                              @"floodlightConfigurationIdDimensionValue": @{  },
                              @"id": @"",
                              @"idDimensionValue": @{  },
                              @"kind": @"",
                              @"name": @"",
                              @"subaccountId": @"",
                              @"tagString": @"",
                              @"type": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"tagString\": \"\",\n  \"type\": \"\"\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'accountId' => '',
    'advertiserId' => '',
    'advertiserIdDimensionValue' => [
        'dimensionName' => '',
        'etag' => '',
        'id' => '',
        'kind' => '',
        'matchType' => '',
        'value' => ''
    ],
    'floodlightConfigurationId' => '',
    'floodlightConfigurationIdDimensionValue' => [
        
    ],
    'id' => '',
    'idDimensionValue' => [
        
    ],
    'kind' => '',
    'name' => '',
    'subaccountId' => '',
    'tagString' => '',
    'type' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups', [
  'body' => '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "floodlightConfigurationId": "",
  "floodlightConfigurationIdDimensionValue": {},
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "name": "",
  "subaccountId": "",
  "tagString": "",
  "type": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'accountId' => '',
  'advertiserId' => '',
  'advertiserIdDimensionValue' => [
    'dimensionName' => '',
    'etag' => '',
    'id' => '',
    'kind' => '',
    'matchType' => '',
    'value' => ''
  ],
  'floodlightConfigurationId' => '',
  'floodlightConfigurationIdDimensionValue' => [
    
  ],
  'id' => '',
  'idDimensionValue' => [
    
  ],
  'kind' => '',
  'name' => '',
  'subaccountId' => '',
  'tagString' => '',
  'type' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'accountId' => '',
  'advertiserId' => '',
  'advertiserIdDimensionValue' => [
    'dimensionName' => '',
    'etag' => '',
    'id' => '',
    'kind' => '',
    'matchType' => '',
    'value' => ''
  ],
  'floodlightConfigurationId' => '',
  'floodlightConfigurationIdDimensionValue' => [
    
  ],
  'id' => '',
  'idDimensionValue' => [
    
  ],
  'kind' => '',
  'name' => '',
  'subaccountId' => '',
  'tagString' => '',
  'type' => ''
]));
$request->setRequestUrl('{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "floodlightConfigurationId": "",
  "floodlightConfigurationIdDimensionValue": {},
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "name": "",
  "subaccountId": "",
  "tagString": "",
  "type": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "floodlightConfigurationId": "",
  "floodlightConfigurationIdDimensionValue": {},
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "name": "",
  "subaccountId": "",
  "tagString": "",
  "type": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"tagString\": \"\",\n  \"type\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/userprofiles/:profileId/floodlightActivityGroups", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups"

payload = {
    "accountId": "",
    "advertiserId": "",
    "advertiserIdDimensionValue": {
        "dimensionName": "",
        "etag": "",
        "id": "",
        "kind": "",
        "matchType": "",
        "value": ""
    },
    "floodlightConfigurationId": "",
    "floodlightConfigurationIdDimensionValue": {},
    "id": "",
    "idDimensionValue": {},
    "kind": "",
    "name": "",
    "subaccountId": "",
    "tagString": "",
    "type": ""
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups"

payload <- "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"tagString\": \"\",\n  \"type\": \"\"\n}"

encode <- "json"

response <- VERB("PUT", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"tagString\": \"\",\n  \"type\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.put('/baseUrl/userprofiles/:profileId/floodlightActivityGroups') do |req|
  req.body = "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"floodlightConfigurationId\": \"\",\n  \"floodlightConfigurationIdDimensionValue\": {},\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"tagString\": \"\",\n  \"type\": \"\"\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}}/userprofiles/:profileId/floodlightActivityGroups";

    let payload = json!({
        "accountId": "",
        "advertiserId": "",
        "advertiserIdDimensionValue": json!({
            "dimensionName": "",
            "etag": "",
            "id": "",
            "kind": "",
            "matchType": "",
            "value": ""
        }),
        "floodlightConfigurationId": "",
        "floodlightConfigurationIdDimensionValue": json!({}),
        "id": "",
        "idDimensionValue": json!({}),
        "kind": "",
        "name": "",
        "subaccountId": "",
        "tagString": "",
        "type": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups \
  --header 'content-type: application/json' \
  --data '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "floodlightConfigurationId": "",
  "floodlightConfigurationIdDimensionValue": {},
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "name": "",
  "subaccountId": "",
  "tagString": "",
  "type": ""
}'
echo '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "floodlightConfigurationId": "",
  "floodlightConfigurationIdDimensionValue": {},
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "name": "",
  "subaccountId": "",
  "tagString": "",
  "type": ""
}' |  \
  http PUT {{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "accountId": "",\n  "advertiserId": "",\n  "advertiserIdDimensionValue": {\n    "dimensionName": "",\n    "etag": "",\n    "id": "",\n    "kind": "",\n    "matchType": "",\n    "value": ""\n  },\n  "floodlightConfigurationId": "",\n  "floodlightConfigurationIdDimensionValue": {},\n  "id": "",\n  "idDimensionValue": {},\n  "kind": "",\n  "name": "",\n  "subaccountId": "",\n  "tagString": "",\n  "type": ""\n}' \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": [
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  ],
  "floodlightConfigurationId": "",
  "floodlightConfigurationIdDimensionValue": [],
  "id": "",
  "idDimensionValue": [],
  "kind": "",
  "name": "",
  "subaccountId": "",
  "tagString": "",
  "type": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/floodlightActivityGroups")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET dfareporting.floodlightConfigurations.get
{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations/:id
QUERY PARAMS

profileId
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations/:id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations/:id")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations/:id"

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}}/userprofiles/:profileId/floodlightConfigurations/:id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations/:id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations/:id"

	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/userprofiles/:profileId/floodlightConfigurations/:id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations/:id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations/:id"))
    .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}}/userprofiles/:profileId/floodlightConfigurations/:id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations/:id")
  .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}}/userprofiles/:profileId/floodlightConfigurations/:id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations/:id';
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}}/userprofiles/:profileId/floodlightConfigurations/:id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations/:id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/floodlightConfigurations/:id',
  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}}/userprofiles/:profileId/floodlightConfigurations/:id'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations/:id');

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}}/userprofiles/:profileId/floodlightConfigurations/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations/:id';
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}}/userprofiles/:profileId/floodlightConfigurations/:id"]
                                                       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}}/userprofiles/:profileId/floodlightConfigurations/:id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations/:id",
  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}}/userprofiles/:profileId/floodlightConfigurations/:id');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations/:id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations/:id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations/:id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations/:id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/floodlightConfigurations/:id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations/:id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations/:id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations/:id")

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/userprofiles/:profileId/floodlightConfigurations/:id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations/:id";

    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}}/userprofiles/:profileId/floodlightConfigurations/:id
http GET {{baseUrl}}/userprofiles/:profileId/floodlightConfigurations/:id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/floodlightConfigurations/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations/:id")! 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 dfareporting.floodlightConfigurations.list
{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations
QUERY PARAMS

profileId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations"

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}}/userprofiles/:profileId/floodlightConfigurations"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations"

	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/userprofiles/:profileId/floodlightConfigurations HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations"))
    .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}}/userprofiles/:profileId/floodlightConfigurations")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations")
  .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}}/userprofiles/:profileId/floodlightConfigurations');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations';
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}}/userprofiles/:profileId/floodlightConfigurations',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/floodlightConfigurations',
  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}}/userprofiles/:profileId/floodlightConfigurations'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations');

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}}/userprofiles/:profileId/floodlightConfigurations'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations';
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}}/userprofiles/:profileId/floodlightConfigurations"]
                                                       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}}/userprofiles/:profileId/floodlightConfigurations" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations",
  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}}/userprofiles/:profileId/floodlightConfigurations');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/floodlightConfigurations")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations")

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/userprofiles/:profileId/floodlightConfigurations') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations";

    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}}/userprofiles/:profileId/floodlightConfigurations
http GET {{baseUrl}}/userprofiles/:profileId/floodlightConfigurations
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/floodlightConfigurations
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations")! 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 dfareporting.floodlightConfigurations.patch
{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations
QUERY PARAMS

id
profileId
BODY json

{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "analyticsDataSharingEnabled": false,
  "customViewabilityMetric": {
    "configuration": {
      "audible": false,
      "timeMillis": 0,
      "timePercent": 0,
      "viewabilityPercent": 0
    },
    "id": "",
    "name": ""
  },
  "exposureToConversionEnabled": false,
  "firstDayOfWeek": "",
  "id": "",
  "idDimensionValue": {},
  "inAppAttributionTrackingEnabled": false,
  "kind": "",
  "lookbackConfiguration": {
    "clickDuration": 0,
    "postImpressionActivitiesDuration": 0
  },
  "naturalSearchConversionAttributionOption": "",
  "omnitureSettings": {
    "omnitureCostDataEnabled": false,
    "omnitureIntegrationEnabled": false
  },
  "subaccountId": "",
  "tagSettings": {
    "dynamicTagEnabled": false,
    "imageTagEnabled": false
  },
  "thirdPartyAuthenticationTokens": [
    {
      "name": "",
      "value": ""
    }
  ],
  "userDefinedVariableConfigurations": [
    {
      "dataType": "",
      "reportName": "",
      "variableType": ""
    }
  ]
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations?id=");

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  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"analyticsDataSharingEnabled\": false,\n  \"customViewabilityMetric\": {\n    \"configuration\": {\n      \"audible\": false,\n      \"timeMillis\": 0,\n      \"timePercent\": 0,\n      \"viewabilityPercent\": 0\n    },\n    \"id\": \"\",\n    \"name\": \"\"\n  },\n  \"exposureToConversionEnabled\": false,\n  \"firstDayOfWeek\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"inAppAttributionTrackingEnabled\": false,\n  \"kind\": \"\",\n  \"lookbackConfiguration\": {\n    \"clickDuration\": 0,\n    \"postImpressionActivitiesDuration\": 0\n  },\n  \"naturalSearchConversionAttributionOption\": \"\",\n  \"omnitureSettings\": {\n    \"omnitureCostDataEnabled\": false,\n    \"omnitureIntegrationEnabled\": false\n  },\n  \"subaccountId\": \"\",\n  \"tagSettings\": {\n    \"dynamicTagEnabled\": false,\n    \"imageTagEnabled\": false\n  },\n  \"thirdPartyAuthenticationTokens\": [\n    {\n      \"name\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"userDefinedVariableConfigurations\": [\n    {\n      \"dataType\": \"\",\n      \"reportName\": \"\",\n      \"variableType\": \"\"\n    }\n  ]\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/patch "{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations" {:query-params {:id ""}
                                                                                              :content-type :json
                                                                                              :form-params {:accountId ""
                                                                                                            :advertiserId ""
                                                                                                            :advertiserIdDimensionValue {:dimensionName ""
                                                                                                                                         :etag ""
                                                                                                                                         :id ""
                                                                                                                                         :kind ""
                                                                                                                                         :matchType ""
                                                                                                                                         :value ""}
                                                                                                            :analyticsDataSharingEnabled false
                                                                                                            :customViewabilityMetric {:configuration {:audible false
                                                                                                                                                      :timeMillis 0
                                                                                                                                                      :timePercent 0
                                                                                                                                                      :viewabilityPercent 0}
                                                                                                                                      :id ""
                                                                                                                                      :name ""}
                                                                                                            :exposureToConversionEnabled false
                                                                                                            :firstDayOfWeek ""
                                                                                                            :id ""
                                                                                                            :idDimensionValue {}
                                                                                                            :inAppAttributionTrackingEnabled false
                                                                                                            :kind ""
                                                                                                            :lookbackConfiguration {:clickDuration 0
                                                                                                                                    :postImpressionActivitiesDuration 0}
                                                                                                            :naturalSearchConversionAttributionOption ""
                                                                                                            :omnitureSettings {:omnitureCostDataEnabled false
                                                                                                                               :omnitureIntegrationEnabled false}
                                                                                                            :subaccountId ""
                                                                                                            :tagSettings {:dynamicTagEnabled false
                                                                                                                          :imageTagEnabled false}
                                                                                                            :thirdPartyAuthenticationTokens [{:name ""
                                                                                                                                              :value ""}]
                                                                                                            :userDefinedVariableConfigurations [{:dataType ""
                                                                                                                                                 :reportName ""
                                                                                                                                                 :variableType ""}]}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations?id="
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"analyticsDataSharingEnabled\": false,\n  \"customViewabilityMetric\": {\n    \"configuration\": {\n      \"audible\": false,\n      \"timeMillis\": 0,\n      \"timePercent\": 0,\n      \"viewabilityPercent\": 0\n    },\n    \"id\": \"\",\n    \"name\": \"\"\n  },\n  \"exposureToConversionEnabled\": false,\n  \"firstDayOfWeek\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"inAppAttributionTrackingEnabled\": false,\n  \"kind\": \"\",\n  \"lookbackConfiguration\": {\n    \"clickDuration\": 0,\n    \"postImpressionActivitiesDuration\": 0\n  },\n  \"naturalSearchConversionAttributionOption\": \"\",\n  \"omnitureSettings\": {\n    \"omnitureCostDataEnabled\": false,\n    \"omnitureIntegrationEnabled\": false\n  },\n  \"subaccountId\": \"\",\n  \"tagSettings\": {\n    \"dynamicTagEnabled\": false,\n    \"imageTagEnabled\": false\n  },\n  \"thirdPartyAuthenticationTokens\": [\n    {\n      \"name\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"userDefinedVariableConfigurations\": [\n    {\n      \"dataType\": \"\",\n      \"reportName\": \"\",\n      \"variableType\": \"\"\n    }\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}}/userprofiles/:profileId/floodlightConfigurations?id="),
    Content = new StringContent("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"analyticsDataSharingEnabled\": false,\n  \"customViewabilityMetric\": {\n    \"configuration\": {\n      \"audible\": false,\n      \"timeMillis\": 0,\n      \"timePercent\": 0,\n      \"viewabilityPercent\": 0\n    },\n    \"id\": \"\",\n    \"name\": \"\"\n  },\n  \"exposureToConversionEnabled\": false,\n  \"firstDayOfWeek\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"inAppAttributionTrackingEnabled\": false,\n  \"kind\": \"\",\n  \"lookbackConfiguration\": {\n    \"clickDuration\": 0,\n    \"postImpressionActivitiesDuration\": 0\n  },\n  \"naturalSearchConversionAttributionOption\": \"\",\n  \"omnitureSettings\": {\n    \"omnitureCostDataEnabled\": false,\n    \"omnitureIntegrationEnabled\": false\n  },\n  \"subaccountId\": \"\",\n  \"tagSettings\": {\n    \"dynamicTagEnabled\": false,\n    \"imageTagEnabled\": false\n  },\n  \"thirdPartyAuthenticationTokens\": [\n    {\n      \"name\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"userDefinedVariableConfigurations\": [\n    {\n      \"dataType\": \"\",\n      \"reportName\": \"\",\n      \"variableType\": \"\"\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}}/userprofiles/:profileId/floodlightConfigurations?id=");
var request = new RestRequest("", Method.Patch);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"analyticsDataSharingEnabled\": false,\n  \"customViewabilityMetric\": {\n    \"configuration\": {\n      \"audible\": false,\n      \"timeMillis\": 0,\n      \"timePercent\": 0,\n      \"viewabilityPercent\": 0\n    },\n    \"id\": \"\",\n    \"name\": \"\"\n  },\n  \"exposureToConversionEnabled\": false,\n  \"firstDayOfWeek\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"inAppAttributionTrackingEnabled\": false,\n  \"kind\": \"\",\n  \"lookbackConfiguration\": {\n    \"clickDuration\": 0,\n    \"postImpressionActivitiesDuration\": 0\n  },\n  \"naturalSearchConversionAttributionOption\": \"\",\n  \"omnitureSettings\": {\n    \"omnitureCostDataEnabled\": false,\n    \"omnitureIntegrationEnabled\": false\n  },\n  \"subaccountId\": \"\",\n  \"tagSettings\": {\n    \"dynamicTagEnabled\": false,\n    \"imageTagEnabled\": false\n  },\n  \"thirdPartyAuthenticationTokens\": [\n    {\n      \"name\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"userDefinedVariableConfigurations\": [\n    {\n      \"dataType\": \"\",\n      \"reportName\": \"\",\n      \"variableType\": \"\"\n    }\n  ]\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations?id="

	payload := strings.NewReader("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"analyticsDataSharingEnabled\": false,\n  \"customViewabilityMetric\": {\n    \"configuration\": {\n      \"audible\": false,\n      \"timeMillis\": 0,\n      \"timePercent\": 0,\n      \"viewabilityPercent\": 0\n    },\n    \"id\": \"\",\n    \"name\": \"\"\n  },\n  \"exposureToConversionEnabled\": false,\n  \"firstDayOfWeek\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"inAppAttributionTrackingEnabled\": false,\n  \"kind\": \"\",\n  \"lookbackConfiguration\": {\n    \"clickDuration\": 0,\n    \"postImpressionActivitiesDuration\": 0\n  },\n  \"naturalSearchConversionAttributionOption\": \"\",\n  \"omnitureSettings\": {\n    \"omnitureCostDataEnabled\": false,\n    \"omnitureIntegrationEnabled\": false\n  },\n  \"subaccountId\": \"\",\n  \"tagSettings\": {\n    \"dynamicTagEnabled\": false,\n    \"imageTagEnabled\": false\n  },\n  \"thirdPartyAuthenticationTokens\": [\n    {\n      \"name\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"userDefinedVariableConfigurations\": [\n    {\n      \"dataType\": \"\",\n      \"reportName\": \"\",\n      \"variableType\": \"\"\n    }\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/userprofiles/:profileId/floodlightConfigurations?id= HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 1170

{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "analyticsDataSharingEnabled": false,
  "customViewabilityMetric": {
    "configuration": {
      "audible": false,
      "timeMillis": 0,
      "timePercent": 0,
      "viewabilityPercent": 0
    },
    "id": "",
    "name": ""
  },
  "exposureToConversionEnabled": false,
  "firstDayOfWeek": "",
  "id": "",
  "idDimensionValue": {},
  "inAppAttributionTrackingEnabled": false,
  "kind": "",
  "lookbackConfiguration": {
    "clickDuration": 0,
    "postImpressionActivitiesDuration": 0
  },
  "naturalSearchConversionAttributionOption": "",
  "omnitureSettings": {
    "omnitureCostDataEnabled": false,
    "omnitureIntegrationEnabled": false
  },
  "subaccountId": "",
  "tagSettings": {
    "dynamicTagEnabled": false,
    "imageTagEnabled": false
  },
  "thirdPartyAuthenticationTokens": [
    {
      "name": "",
      "value": ""
    }
  ],
  "userDefinedVariableConfigurations": [
    {
      "dataType": "",
      "reportName": "",
      "variableType": ""
    }
  ]
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations?id=")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"analyticsDataSharingEnabled\": false,\n  \"customViewabilityMetric\": {\n    \"configuration\": {\n      \"audible\": false,\n      \"timeMillis\": 0,\n      \"timePercent\": 0,\n      \"viewabilityPercent\": 0\n    },\n    \"id\": \"\",\n    \"name\": \"\"\n  },\n  \"exposureToConversionEnabled\": false,\n  \"firstDayOfWeek\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"inAppAttributionTrackingEnabled\": false,\n  \"kind\": \"\",\n  \"lookbackConfiguration\": {\n    \"clickDuration\": 0,\n    \"postImpressionActivitiesDuration\": 0\n  },\n  \"naturalSearchConversionAttributionOption\": \"\",\n  \"omnitureSettings\": {\n    \"omnitureCostDataEnabled\": false,\n    \"omnitureIntegrationEnabled\": false\n  },\n  \"subaccountId\": \"\",\n  \"tagSettings\": {\n    \"dynamicTagEnabled\": false,\n    \"imageTagEnabled\": false\n  },\n  \"thirdPartyAuthenticationTokens\": [\n    {\n      \"name\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"userDefinedVariableConfigurations\": [\n    {\n      \"dataType\": \"\",\n      \"reportName\": \"\",\n      \"variableType\": \"\"\n    }\n  ]\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations?id="))
    .header("content-type", "application/json")
    .method("PATCH", HttpRequest.BodyPublishers.ofString("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"analyticsDataSharingEnabled\": false,\n  \"customViewabilityMetric\": {\n    \"configuration\": {\n      \"audible\": false,\n      \"timeMillis\": 0,\n      \"timePercent\": 0,\n      \"viewabilityPercent\": 0\n    },\n    \"id\": \"\",\n    \"name\": \"\"\n  },\n  \"exposureToConversionEnabled\": false,\n  \"firstDayOfWeek\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"inAppAttributionTrackingEnabled\": false,\n  \"kind\": \"\",\n  \"lookbackConfiguration\": {\n    \"clickDuration\": 0,\n    \"postImpressionActivitiesDuration\": 0\n  },\n  \"naturalSearchConversionAttributionOption\": \"\",\n  \"omnitureSettings\": {\n    \"omnitureCostDataEnabled\": false,\n    \"omnitureIntegrationEnabled\": false\n  },\n  \"subaccountId\": \"\",\n  \"tagSettings\": {\n    \"dynamicTagEnabled\": false,\n    \"imageTagEnabled\": false\n  },\n  \"thirdPartyAuthenticationTokens\": [\n    {\n      \"name\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"userDefinedVariableConfigurations\": [\n    {\n      \"dataType\": \"\",\n      \"reportName\": \"\",\n      \"variableType\": \"\"\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  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"analyticsDataSharingEnabled\": false,\n  \"customViewabilityMetric\": {\n    \"configuration\": {\n      \"audible\": false,\n      \"timeMillis\": 0,\n      \"timePercent\": 0,\n      \"viewabilityPercent\": 0\n    },\n    \"id\": \"\",\n    \"name\": \"\"\n  },\n  \"exposureToConversionEnabled\": false,\n  \"firstDayOfWeek\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"inAppAttributionTrackingEnabled\": false,\n  \"kind\": \"\",\n  \"lookbackConfiguration\": {\n    \"clickDuration\": 0,\n    \"postImpressionActivitiesDuration\": 0\n  },\n  \"naturalSearchConversionAttributionOption\": \"\",\n  \"omnitureSettings\": {\n    \"omnitureCostDataEnabled\": false,\n    \"omnitureIntegrationEnabled\": false\n  },\n  \"subaccountId\": \"\",\n  \"tagSettings\": {\n    \"dynamicTagEnabled\": false,\n    \"imageTagEnabled\": false\n  },\n  \"thirdPartyAuthenticationTokens\": [\n    {\n      \"name\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"userDefinedVariableConfigurations\": [\n    {\n      \"dataType\": \"\",\n      \"reportName\": \"\",\n      \"variableType\": \"\"\n    }\n  ]\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations?id=")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations?id=")
  .header("content-type", "application/json")
  .body("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"analyticsDataSharingEnabled\": false,\n  \"customViewabilityMetric\": {\n    \"configuration\": {\n      \"audible\": false,\n      \"timeMillis\": 0,\n      \"timePercent\": 0,\n      \"viewabilityPercent\": 0\n    },\n    \"id\": \"\",\n    \"name\": \"\"\n  },\n  \"exposureToConversionEnabled\": false,\n  \"firstDayOfWeek\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"inAppAttributionTrackingEnabled\": false,\n  \"kind\": \"\",\n  \"lookbackConfiguration\": {\n    \"clickDuration\": 0,\n    \"postImpressionActivitiesDuration\": 0\n  },\n  \"naturalSearchConversionAttributionOption\": \"\",\n  \"omnitureSettings\": {\n    \"omnitureCostDataEnabled\": false,\n    \"omnitureIntegrationEnabled\": false\n  },\n  \"subaccountId\": \"\",\n  \"tagSettings\": {\n    \"dynamicTagEnabled\": false,\n    \"imageTagEnabled\": false\n  },\n  \"thirdPartyAuthenticationTokens\": [\n    {\n      \"name\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"userDefinedVariableConfigurations\": [\n    {\n      \"dataType\": \"\",\n      \"reportName\": \"\",\n      \"variableType\": \"\"\n    }\n  ]\n}")
  .asString();
const data = JSON.stringify({
  accountId: '',
  advertiserId: '',
  advertiserIdDimensionValue: {
    dimensionName: '',
    etag: '',
    id: '',
    kind: '',
    matchType: '',
    value: ''
  },
  analyticsDataSharingEnabled: false,
  customViewabilityMetric: {
    configuration: {
      audible: false,
      timeMillis: 0,
      timePercent: 0,
      viewabilityPercent: 0
    },
    id: '',
    name: ''
  },
  exposureToConversionEnabled: false,
  firstDayOfWeek: '',
  id: '',
  idDimensionValue: {},
  inAppAttributionTrackingEnabled: false,
  kind: '',
  lookbackConfiguration: {
    clickDuration: 0,
    postImpressionActivitiesDuration: 0
  },
  naturalSearchConversionAttributionOption: '',
  omnitureSettings: {
    omnitureCostDataEnabled: false,
    omnitureIntegrationEnabled: false
  },
  subaccountId: '',
  tagSettings: {
    dynamicTagEnabled: false,
    imageTagEnabled: false
  },
  thirdPartyAuthenticationTokens: [
    {
      name: '',
      value: ''
    }
  ],
  userDefinedVariableConfigurations: [
    {
      dataType: '',
      reportName: '',
      variableType: ''
    }
  ]
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PATCH', '{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations?id=');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations',
  params: {id: ''},
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    analyticsDataSharingEnabled: false,
    customViewabilityMetric: {
      configuration: {audible: false, timeMillis: 0, timePercent: 0, viewabilityPercent: 0},
      id: '',
      name: ''
    },
    exposureToConversionEnabled: false,
    firstDayOfWeek: '',
    id: '',
    idDimensionValue: {},
    inAppAttributionTrackingEnabled: false,
    kind: '',
    lookbackConfiguration: {clickDuration: 0, postImpressionActivitiesDuration: 0},
    naturalSearchConversionAttributionOption: '',
    omnitureSettings: {omnitureCostDataEnabled: false, omnitureIntegrationEnabled: false},
    subaccountId: '',
    tagSettings: {dynamicTagEnabled: false, imageTagEnabled: false},
    thirdPartyAuthenticationTokens: [{name: '', value: ''}],
    userDefinedVariableConfigurations: [{dataType: '', reportName: '', variableType: ''}]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations?id=';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","advertiserId":"","advertiserIdDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"analyticsDataSharingEnabled":false,"customViewabilityMetric":{"configuration":{"audible":false,"timeMillis":0,"timePercent":0,"viewabilityPercent":0},"id":"","name":""},"exposureToConversionEnabled":false,"firstDayOfWeek":"","id":"","idDimensionValue":{},"inAppAttributionTrackingEnabled":false,"kind":"","lookbackConfiguration":{"clickDuration":0,"postImpressionActivitiesDuration":0},"naturalSearchConversionAttributionOption":"","omnitureSettings":{"omnitureCostDataEnabled":false,"omnitureIntegrationEnabled":false},"subaccountId":"","tagSettings":{"dynamicTagEnabled":false,"imageTagEnabled":false},"thirdPartyAuthenticationTokens":[{"name":"","value":""}],"userDefinedVariableConfigurations":[{"dataType":"","reportName":"","variableType":""}]}'
};

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}}/userprofiles/:profileId/floodlightConfigurations?id=',
  method: 'PATCH',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "accountId": "",\n  "advertiserId": "",\n  "advertiserIdDimensionValue": {\n    "dimensionName": "",\n    "etag": "",\n    "id": "",\n    "kind": "",\n    "matchType": "",\n    "value": ""\n  },\n  "analyticsDataSharingEnabled": false,\n  "customViewabilityMetric": {\n    "configuration": {\n      "audible": false,\n      "timeMillis": 0,\n      "timePercent": 0,\n      "viewabilityPercent": 0\n    },\n    "id": "",\n    "name": ""\n  },\n  "exposureToConversionEnabled": false,\n  "firstDayOfWeek": "",\n  "id": "",\n  "idDimensionValue": {},\n  "inAppAttributionTrackingEnabled": false,\n  "kind": "",\n  "lookbackConfiguration": {\n    "clickDuration": 0,\n    "postImpressionActivitiesDuration": 0\n  },\n  "naturalSearchConversionAttributionOption": "",\n  "omnitureSettings": {\n    "omnitureCostDataEnabled": false,\n    "omnitureIntegrationEnabled": false\n  },\n  "subaccountId": "",\n  "tagSettings": {\n    "dynamicTagEnabled": false,\n    "imageTagEnabled": false\n  },\n  "thirdPartyAuthenticationTokens": [\n    {\n      "name": "",\n      "value": ""\n    }\n  ],\n  "userDefinedVariableConfigurations": [\n    {\n      "dataType": "",\n      "reportName": "",\n      "variableType": ""\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  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"analyticsDataSharingEnabled\": false,\n  \"customViewabilityMetric\": {\n    \"configuration\": {\n      \"audible\": false,\n      \"timeMillis\": 0,\n      \"timePercent\": 0,\n      \"viewabilityPercent\": 0\n    },\n    \"id\": \"\",\n    \"name\": \"\"\n  },\n  \"exposureToConversionEnabled\": false,\n  \"firstDayOfWeek\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"inAppAttributionTrackingEnabled\": false,\n  \"kind\": \"\",\n  \"lookbackConfiguration\": {\n    \"clickDuration\": 0,\n    \"postImpressionActivitiesDuration\": 0\n  },\n  \"naturalSearchConversionAttributionOption\": \"\",\n  \"omnitureSettings\": {\n    \"omnitureCostDataEnabled\": false,\n    \"omnitureIntegrationEnabled\": false\n  },\n  \"subaccountId\": \"\",\n  \"tagSettings\": {\n    \"dynamicTagEnabled\": false,\n    \"imageTagEnabled\": false\n  },\n  \"thirdPartyAuthenticationTokens\": [\n    {\n      \"name\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"userDefinedVariableConfigurations\": [\n    {\n      \"dataType\": \"\",\n      \"reportName\": \"\",\n      \"variableType\": \"\"\n    }\n  ]\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations?id=")
  .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/userprofiles/:profileId/floodlightConfigurations?id=',
  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({
  accountId: '',
  advertiserId: '',
  advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
  analyticsDataSharingEnabled: false,
  customViewabilityMetric: {
    configuration: {audible: false, timeMillis: 0, timePercent: 0, viewabilityPercent: 0},
    id: '',
    name: ''
  },
  exposureToConversionEnabled: false,
  firstDayOfWeek: '',
  id: '',
  idDimensionValue: {},
  inAppAttributionTrackingEnabled: false,
  kind: '',
  lookbackConfiguration: {clickDuration: 0, postImpressionActivitiesDuration: 0},
  naturalSearchConversionAttributionOption: '',
  omnitureSettings: {omnitureCostDataEnabled: false, omnitureIntegrationEnabled: false},
  subaccountId: '',
  tagSettings: {dynamicTagEnabled: false, imageTagEnabled: false},
  thirdPartyAuthenticationTokens: [{name: '', value: ''}],
  userDefinedVariableConfigurations: [{dataType: '', reportName: '', variableType: ''}]
}));
req.end();
const request = require('request');

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations',
  qs: {id: ''},
  headers: {'content-type': 'application/json'},
  body: {
    accountId: '',
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    analyticsDataSharingEnabled: false,
    customViewabilityMetric: {
      configuration: {audible: false, timeMillis: 0, timePercent: 0, viewabilityPercent: 0},
      id: '',
      name: ''
    },
    exposureToConversionEnabled: false,
    firstDayOfWeek: '',
    id: '',
    idDimensionValue: {},
    inAppAttributionTrackingEnabled: false,
    kind: '',
    lookbackConfiguration: {clickDuration: 0, postImpressionActivitiesDuration: 0},
    naturalSearchConversionAttributionOption: '',
    omnitureSettings: {omnitureCostDataEnabled: false, omnitureIntegrationEnabled: false},
    subaccountId: '',
    tagSettings: {dynamicTagEnabled: false, imageTagEnabled: false},
    thirdPartyAuthenticationTokens: [{name: '', value: ''}],
    userDefinedVariableConfigurations: [{dataType: '', reportName: '', variableType: ''}]
  },
  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}}/userprofiles/:profileId/floodlightConfigurations');

req.query({
  id: ''
});

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  accountId: '',
  advertiserId: '',
  advertiserIdDimensionValue: {
    dimensionName: '',
    etag: '',
    id: '',
    kind: '',
    matchType: '',
    value: ''
  },
  analyticsDataSharingEnabled: false,
  customViewabilityMetric: {
    configuration: {
      audible: false,
      timeMillis: 0,
      timePercent: 0,
      viewabilityPercent: 0
    },
    id: '',
    name: ''
  },
  exposureToConversionEnabled: false,
  firstDayOfWeek: '',
  id: '',
  idDimensionValue: {},
  inAppAttributionTrackingEnabled: false,
  kind: '',
  lookbackConfiguration: {
    clickDuration: 0,
    postImpressionActivitiesDuration: 0
  },
  naturalSearchConversionAttributionOption: '',
  omnitureSettings: {
    omnitureCostDataEnabled: false,
    omnitureIntegrationEnabled: false
  },
  subaccountId: '',
  tagSettings: {
    dynamicTagEnabled: false,
    imageTagEnabled: false
  },
  thirdPartyAuthenticationTokens: [
    {
      name: '',
      value: ''
    }
  ],
  userDefinedVariableConfigurations: [
    {
      dataType: '',
      reportName: '',
      variableType: ''
    }
  ]
});

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}}/userprofiles/:profileId/floodlightConfigurations',
  params: {id: ''},
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    analyticsDataSharingEnabled: false,
    customViewabilityMetric: {
      configuration: {audible: false, timeMillis: 0, timePercent: 0, viewabilityPercent: 0},
      id: '',
      name: ''
    },
    exposureToConversionEnabled: false,
    firstDayOfWeek: '',
    id: '',
    idDimensionValue: {},
    inAppAttributionTrackingEnabled: false,
    kind: '',
    lookbackConfiguration: {clickDuration: 0, postImpressionActivitiesDuration: 0},
    naturalSearchConversionAttributionOption: '',
    omnitureSettings: {omnitureCostDataEnabled: false, omnitureIntegrationEnabled: false},
    subaccountId: '',
    tagSettings: {dynamicTagEnabled: false, imageTagEnabled: false},
    thirdPartyAuthenticationTokens: [{name: '', value: ''}],
    userDefinedVariableConfigurations: [{dataType: '', reportName: '', variableType: ''}]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations?id=';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","advertiserId":"","advertiserIdDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"analyticsDataSharingEnabled":false,"customViewabilityMetric":{"configuration":{"audible":false,"timeMillis":0,"timePercent":0,"viewabilityPercent":0},"id":"","name":""},"exposureToConversionEnabled":false,"firstDayOfWeek":"","id":"","idDimensionValue":{},"inAppAttributionTrackingEnabled":false,"kind":"","lookbackConfiguration":{"clickDuration":0,"postImpressionActivitiesDuration":0},"naturalSearchConversionAttributionOption":"","omnitureSettings":{"omnitureCostDataEnabled":false,"omnitureIntegrationEnabled":false},"subaccountId":"","tagSettings":{"dynamicTagEnabled":false,"imageTagEnabled":false},"thirdPartyAuthenticationTokens":[{"name":"","value":""}],"userDefinedVariableConfigurations":[{"dataType":"","reportName":"","variableType":""}]}'
};

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 = @{ @"accountId": @"",
                              @"advertiserId": @"",
                              @"advertiserIdDimensionValue": @{ @"dimensionName": @"", @"etag": @"", @"id": @"", @"kind": @"", @"matchType": @"", @"value": @"" },
                              @"analyticsDataSharingEnabled": @NO,
                              @"customViewabilityMetric": @{ @"configuration": @{ @"audible": @NO, @"timeMillis": @0, @"timePercent": @0, @"viewabilityPercent": @0 }, @"id": @"", @"name": @"" },
                              @"exposureToConversionEnabled": @NO,
                              @"firstDayOfWeek": @"",
                              @"id": @"",
                              @"idDimensionValue": @{  },
                              @"inAppAttributionTrackingEnabled": @NO,
                              @"kind": @"",
                              @"lookbackConfiguration": @{ @"clickDuration": @0, @"postImpressionActivitiesDuration": @0 },
                              @"naturalSearchConversionAttributionOption": @"",
                              @"omnitureSettings": @{ @"omnitureCostDataEnabled": @NO, @"omnitureIntegrationEnabled": @NO },
                              @"subaccountId": @"",
                              @"tagSettings": @{ @"dynamicTagEnabled": @NO, @"imageTagEnabled": @NO },
                              @"thirdPartyAuthenticationTokens": @[ @{ @"name": @"", @"value": @"" } ],
                              @"userDefinedVariableConfigurations": @[ @{ @"dataType": @"", @"reportName": @"", @"variableType": @"" } ] };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations?id="]
                                                       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}}/userprofiles/:profileId/floodlightConfigurations?id=" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"analyticsDataSharingEnabled\": false,\n  \"customViewabilityMetric\": {\n    \"configuration\": {\n      \"audible\": false,\n      \"timeMillis\": 0,\n      \"timePercent\": 0,\n      \"viewabilityPercent\": 0\n    },\n    \"id\": \"\",\n    \"name\": \"\"\n  },\n  \"exposureToConversionEnabled\": false,\n  \"firstDayOfWeek\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"inAppAttributionTrackingEnabled\": false,\n  \"kind\": \"\",\n  \"lookbackConfiguration\": {\n    \"clickDuration\": 0,\n    \"postImpressionActivitiesDuration\": 0\n  },\n  \"naturalSearchConversionAttributionOption\": \"\",\n  \"omnitureSettings\": {\n    \"omnitureCostDataEnabled\": false,\n    \"omnitureIntegrationEnabled\": false\n  },\n  \"subaccountId\": \"\",\n  \"tagSettings\": {\n    \"dynamicTagEnabled\": false,\n    \"imageTagEnabled\": false\n  },\n  \"thirdPartyAuthenticationTokens\": [\n    {\n      \"name\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"userDefinedVariableConfigurations\": [\n    {\n      \"dataType\": \"\",\n      \"reportName\": \"\",\n      \"variableType\": \"\"\n    }\n  ]\n}" in

Client.call ~headers ~body `PATCH uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations?id=",
  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([
    'accountId' => '',
    'advertiserId' => '',
    'advertiserIdDimensionValue' => [
        'dimensionName' => '',
        'etag' => '',
        'id' => '',
        'kind' => '',
        'matchType' => '',
        'value' => ''
    ],
    'analyticsDataSharingEnabled' => null,
    'customViewabilityMetric' => [
        'configuration' => [
                'audible' => null,
                'timeMillis' => 0,
                'timePercent' => 0,
                'viewabilityPercent' => 0
        ],
        'id' => '',
        'name' => ''
    ],
    'exposureToConversionEnabled' => null,
    'firstDayOfWeek' => '',
    'id' => '',
    'idDimensionValue' => [
        
    ],
    'inAppAttributionTrackingEnabled' => null,
    'kind' => '',
    'lookbackConfiguration' => [
        'clickDuration' => 0,
        'postImpressionActivitiesDuration' => 0
    ],
    'naturalSearchConversionAttributionOption' => '',
    'omnitureSettings' => [
        'omnitureCostDataEnabled' => null,
        'omnitureIntegrationEnabled' => null
    ],
    'subaccountId' => '',
    'tagSettings' => [
        'dynamicTagEnabled' => null,
        'imageTagEnabled' => null
    ],
    'thirdPartyAuthenticationTokens' => [
        [
                'name' => '',
                'value' => ''
        ]
    ],
    'userDefinedVariableConfigurations' => [
        [
                'dataType' => '',
                'reportName' => '',
                'variableType' => ''
        ]
    ]
  ]),
  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}}/userprofiles/:profileId/floodlightConfigurations?id=', [
  'body' => '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "analyticsDataSharingEnabled": false,
  "customViewabilityMetric": {
    "configuration": {
      "audible": false,
      "timeMillis": 0,
      "timePercent": 0,
      "viewabilityPercent": 0
    },
    "id": "",
    "name": ""
  },
  "exposureToConversionEnabled": false,
  "firstDayOfWeek": "",
  "id": "",
  "idDimensionValue": {},
  "inAppAttributionTrackingEnabled": false,
  "kind": "",
  "lookbackConfiguration": {
    "clickDuration": 0,
    "postImpressionActivitiesDuration": 0
  },
  "naturalSearchConversionAttributionOption": "",
  "omnitureSettings": {
    "omnitureCostDataEnabled": false,
    "omnitureIntegrationEnabled": false
  },
  "subaccountId": "",
  "tagSettings": {
    "dynamicTagEnabled": false,
    "imageTagEnabled": false
  },
  "thirdPartyAuthenticationTokens": [
    {
      "name": "",
      "value": ""
    }
  ],
  "userDefinedVariableConfigurations": [
    {
      "dataType": "",
      "reportName": "",
      "variableType": ""
    }
  ]
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations');
$request->setMethod(HttpRequest::HTTP_METH_PATCH);

$request->setQueryData([
  'id' => ''
]);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'accountId' => '',
  'advertiserId' => '',
  'advertiserIdDimensionValue' => [
    'dimensionName' => '',
    'etag' => '',
    'id' => '',
    'kind' => '',
    'matchType' => '',
    'value' => ''
  ],
  'analyticsDataSharingEnabled' => null,
  'customViewabilityMetric' => [
    'configuration' => [
        'audible' => null,
        'timeMillis' => 0,
        'timePercent' => 0,
        'viewabilityPercent' => 0
    ],
    'id' => '',
    'name' => ''
  ],
  'exposureToConversionEnabled' => null,
  'firstDayOfWeek' => '',
  'id' => '',
  'idDimensionValue' => [
    
  ],
  'inAppAttributionTrackingEnabled' => null,
  'kind' => '',
  'lookbackConfiguration' => [
    'clickDuration' => 0,
    'postImpressionActivitiesDuration' => 0
  ],
  'naturalSearchConversionAttributionOption' => '',
  'omnitureSettings' => [
    'omnitureCostDataEnabled' => null,
    'omnitureIntegrationEnabled' => null
  ],
  'subaccountId' => '',
  'tagSettings' => [
    'dynamicTagEnabled' => null,
    'imageTagEnabled' => null
  ],
  'thirdPartyAuthenticationTokens' => [
    [
        'name' => '',
        'value' => ''
    ]
  ],
  'userDefinedVariableConfigurations' => [
    [
        'dataType' => '',
        'reportName' => '',
        'variableType' => ''
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'accountId' => '',
  'advertiserId' => '',
  'advertiserIdDimensionValue' => [
    'dimensionName' => '',
    'etag' => '',
    'id' => '',
    'kind' => '',
    'matchType' => '',
    'value' => ''
  ],
  'analyticsDataSharingEnabled' => null,
  'customViewabilityMetric' => [
    'configuration' => [
        'audible' => null,
        'timeMillis' => 0,
        'timePercent' => 0,
        'viewabilityPercent' => 0
    ],
    'id' => '',
    'name' => ''
  ],
  'exposureToConversionEnabled' => null,
  'firstDayOfWeek' => '',
  'id' => '',
  'idDimensionValue' => [
    
  ],
  'inAppAttributionTrackingEnabled' => null,
  'kind' => '',
  'lookbackConfiguration' => [
    'clickDuration' => 0,
    'postImpressionActivitiesDuration' => 0
  ],
  'naturalSearchConversionAttributionOption' => '',
  'omnitureSettings' => [
    'omnitureCostDataEnabled' => null,
    'omnitureIntegrationEnabled' => null
  ],
  'subaccountId' => '',
  'tagSettings' => [
    'dynamicTagEnabled' => null,
    'imageTagEnabled' => null
  ],
  'thirdPartyAuthenticationTokens' => [
    [
        'name' => '',
        'value' => ''
    ]
  ],
  'userDefinedVariableConfigurations' => [
    [
        'dataType' => '',
        'reportName' => '',
        'variableType' => ''
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations');
$request->setRequestMethod('PATCH');
$request->setBody($body);

$request->setQuery(new http\QueryString([
  'id' => ''
]));

$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}}/userprofiles/:profileId/floodlightConfigurations?id=' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "analyticsDataSharingEnabled": false,
  "customViewabilityMetric": {
    "configuration": {
      "audible": false,
      "timeMillis": 0,
      "timePercent": 0,
      "viewabilityPercent": 0
    },
    "id": "",
    "name": ""
  },
  "exposureToConversionEnabled": false,
  "firstDayOfWeek": "",
  "id": "",
  "idDimensionValue": {},
  "inAppAttributionTrackingEnabled": false,
  "kind": "",
  "lookbackConfiguration": {
    "clickDuration": 0,
    "postImpressionActivitiesDuration": 0
  },
  "naturalSearchConversionAttributionOption": "",
  "omnitureSettings": {
    "omnitureCostDataEnabled": false,
    "omnitureIntegrationEnabled": false
  },
  "subaccountId": "",
  "tagSettings": {
    "dynamicTagEnabled": false,
    "imageTagEnabled": false
  },
  "thirdPartyAuthenticationTokens": [
    {
      "name": "",
      "value": ""
    }
  ],
  "userDefinedVariableConfigurations": [
    {
      "dataType": "",
      "reportName": "",
      "variableType": ""
    }
  ]
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations?id=' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "analyticsDataSharingEnabled": false,
  "customViewabilityMetric": {
    "configuration": {
      "audible": false,
      "timeMillis": 0,
      "timePercent": 0,
      "viewabilityPercent": 0
    },
    "id": "",
    "name": ""
  },
  "exposureToConversionEnabled": false,
  "firstDayOfWeek": "",
  "id": "",
  "idDimensionValue": {},
  "inAppAttributionTrackingEnabled": false,
  "kind": "",
  "lookbackConfiguration": {
    "clickDuration": 0,
    "postImpressionActivitiesDuration": 0
  },
  "naturalSearchConversionAttributionOption": "",
  "omnitureSettings": {
    "omnitureCostDataEnabled": false,
    "omnitureIntegrationEnabled": false
  },
  "subaccountId": "",
  "tagSettings": {
    "dynamicTagEnabled": false,
    "imageTagEnabled": false
  },
  "thirdPartyAuthenticationTokens": [
    {
      "name": "",
      "value": ""
    }
  ],
  "userDefinedVariableConfigurations": [
    {
      "dataType": "",
      "reportName": "",
      "variableType": ""
    }
  ]
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"analyticsDataSharingEnabled\": false,\n  \"customViewabilityMetric\": {\n    \"configuration\": {\n      \"audible\": false,\n      \"timeMillis\": 0,\n      \"timePercent\": 0,\n      \"viewabilityPercent\": 0\n    },\n    \"id\": \"\",\n    \"name\": \"\"\n  },\n  \"exposureToConversionEnabled\": false,\n  \"firstDayOfWeek\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"inAppAttributionTrackingEnabled\": false,\n  \"kind\": \"\",\n  \"lookbackConfiguration\": {\n    \"clickDuration\": 0,\n    \"postImpressionActivitiesDuration\": 0\n  },\n  \"naturalSearchConversionAttributionOption\": \"\",\n  \"omnitureSettings\": {\n    \"omnitureCostDataEnabled\": false,\n    \"omnitureIntegrationEnabled\": false\n  },\n  \"subaccountId\": \"\",\n  \"tagSettings\": {\n    \"dynamicTagEnabled\": false,\n    \"imageTagEnabled\": false\n  },\n  \"thirdPartyAuthenticationTokens\": [\n    {\n      \"name\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"userDefinedVariableConfigurations\": [\n    {\n      \"dataType\": \"\",\n      \"reportName\": \"\",\n      \"variableType\": \"\"\n    }\n  ]\n}"

headers = { 'content-type': "application/json" }

conn.request("PATCH", "/baseUrl/userprofiles/:profileId/floodlightConfigurations?id=", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations"

querystring = {"id":""}

payload = {
    "accountId": "",
    "advertiserId": "",
    "advertiserIdDimensionValue": {
        "dimensionName": "",
        "etag": "",
        "id": "",
        "kind": "",
        "matchType": "",
        "value": ""
    },
    "analyticsDataSharingEnabled": False,
    "customViewabilityMetric": {
        "configuration": {
            "audible": False,
            "timeMillis": 0,
            "timePercent": 0,
            "viewabilityPercent": 0
        },
        "id": "",
        "name": ""
    },
    "exposureToConversionEnabled": False,
    "firstDayOfWeek": "",
    "id": "",
    "idDimensionValue": {},
    "inAppAttributionTrackingEnabled": False,
    "kind": "",
    "lookbackConfiguration": {
        "clickDuration": 0,
        "postImpressionActivitiesDuration": 0
    },
    "naturalSearchConversionAttributionOption": "",
    "omnitureSettings": {
        "omnitureCostDataEnabled": False,
        "omnitureIntegrationEnabled": False
    },
    "subaccountId": "",
    "tagSettings": {
        "dynamicTagEnabled": False,
        "imageTagEnabled": False
    },
    "thirdPartyAuthenticationTokens": [
        {
            "name": "",
            "value": ""
        }
    ],
    "userDefinedVariableConfigurations": [
        {
            "dataType": "",
            "reportName": "",
            "variableType": ""
        }
    ]
}
headers = {"content-type": "application/json"}

response = requests.patch(url, json=payload, headers=headers, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations"

queryString <- list(id = "")

payload <- "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"analyticsDataSharingEnabled\": false,\n  \"customViewabilityMetric\": {\n    \"configuration\": {\n      \"audible\": false,\n      \"timeMillis\": 0,\n      \"timePercent\": 0,\n      \"viewabilityPercent\": 0\n    },\n    \"id\": \"\",\n    \"name\": \"\"\n  },\n  \"exposureToConversionEnabled\": false,\n  \"firstDayOfWeek\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"inAppAttributionTrackingEnabled\": false,\n  \"kind\": \"\",\n  \"lookbackConfiguration\": {\n    \"clickDuration\": 0,\n    \"postImpressionActivitiesDuration\": 0\n  },\n  \"naturalSearchConversionAttributionOption\": \"\",\n  \"omnitureSettings\": {\n    \"omnitureCostDataEnabled\": false,\n    \"omnitureIntegrationEnabled\": false\n  },\n  \"subaccountId\": \"\",\n  \"tagSettings\": {\n    \"dynamicTagEnabled\": false,\n    \"imageTagEnabled\": false\n  },\n  \"thirdPartyAuthenticationTokens\": [\n    {\n      \"name\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"userDefinedVariableConfigurations\": [\n    {\n      \"dataType\": \"\",\n      \"reportName\": \"\",\n      \"variableType\": \"\"\n    }\n  ]\n}"

encode <- "json"

response <- VERB("PATCH", url, body = payload, query = queryString, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations?id=")

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  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"analyticsDataSharingEnabled\": false,\n  \"customViewabilityMetric\": {\n    \"configuration\": {\n      \"audible\": false,\n      \"timeMillis\": 0,\n      \"timePercent\": 0,\n      \"viewabilityPercent\": 0\n    },\n    \"id\": \"\",\n    \"name\": \"\"\n  },\n  \"exposureToConversionEnabled\": false,\n  \"firstDayOfWeek\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"inAppAttributionTrackingEnabled\": false,\n  \"kind\": \"\",\n  \"lookbackConfiguration\": {\n    \"clickDuration\": 0,\n    \"postImpressionActivitiesDuration\": 0\n  },\n  \"naturalSearchConversionAttributionOption\": \"\",\n  \"omnitureSettings\": {\n    \"omnitureCostDataEnabled\": false,\n    \"omnitureIntegrationEnabled\": false\n  },\n  \"subaccountId\": \"\",\n  \"tagSettings\": {\n    \"dynamicTagEnabled\": false,\n    \"imageTagEnabled\": false\n  },\n  \"thirdPartyAuthenticationTokens\": [\n    {\n      \"name\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"userDefinedVariableConfigurations\": [\n    {\n      \"dataType\": \"\",\n      \"reportName\": \"\",\n      \"variableType\": \"\"\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.patch('/baseUrl/userprofiles/:profileId/floodlightConfigurations') do |req|
  req.params['id'] = ''
  req.body = "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"analyticsDataSharingEnabled\": false,\n  \"customViewabilityMetric\": {\n    \"configuration\": {\n      \"audible\": false,\n      \"timeMillis\": 0,\n      \"timePercent\": 0,\n      \"viewabilityPercent\": 0\n    },\n    \"id\": \"\",\n    \"name\": \"\"\n  },\n  \"exposureToConversionEnabled\": false,\n  \"firstDayOfWeek\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"inAppAttributionTrackingEnabled\": false,\n  \"kind\": \"\",\n  \"lookbackConfiguration\": {\n    \"clickDuration\": 0,\n    \"postImpressionActivitiesDuration\": 0\n  },\n  \"naturalSearchConversionAttributionOption\": \"\",\n  \"omnitureSettings\": {\n    \"omnitureCostDataEnabled\": false,\n    \"omnitureIntegrationEnabled\": false\n  },\n  \"subaccountId\": \"\",\n  \"tagSettings\": {\n    \"dynamicTagEnabled\": false,\n    \"imageTagEnabled\": false\n  },\n  \"thirdPartyAuthenticationTokens\": [\n    {\n      \"name\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"userDefinedVariableConfigurations\": [\n    {\n      \"dataType\": \"\",\n      \"reportName\": \"\",\n      \"variableType\": \"\"\n    }\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}}/userprofiles/:profileId/floodlightConfigurations";

    let querystring = [
        ("id", ""),
    ];

    let payload = json!({
        "accountId": "",
        "advertiserId": "",
        "advertiserIdDimensionValue": json!({
            "dimensionName": "",
            "etag": "",
            "id": "",
            "kind": "",
            "matchType": "",
            "value": ""
        }),
        "analyticsDataSharingEnabled": false,
        "customViewabilityMetric": json!({
            "configuration": json!({
                "audible": false,
                "timeMillis": 0,
                "timePercent": 0,
                "viewabilityPercent": 0
            }),
            "id": "",
            "name": ""
        }),
        "exposureToConversionEnabled": false,
        "firstDayOfWeek": "",
        "id": "",
        "idDimensionValue": json!({}),
        "inAppAttributionTrackingEnabled": false,
        "kind": "",
        "lookbackConfiguration": json!({
            "clickDuration": 0,
            "postImpressionActivitiesDuration": 0
        }),
        "naturalSearchConversionAttributionOption": "",
        "omnitureSettings": json!({
            "omnitureCostDataEnabled": false,
            "omnitureIntegrationEnabled": false
        }),
        "subaccountId": "",
        "tagSettings": json!({
            "dynamicTagEnabled": false,
            "imageTagEnabled": false
        }),
        "thirdPartyAuthenticationTokens": (
            json!({
                "name": "",
                "value": ""
            })
        ),
        "userDefinedVariableConfigurations": (
            json!({
                "dataType": "",
                "reportName": "",
                "variableType": ""
            })
        )
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PATCH").unwrap(), url)
        .query(&querystring)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PATCH \
  --url '{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations?id=' \
  --header 'content-type: application/json' \
  --data '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "analyticsDataSharingEnabled": false,
  "customViewabilityMetric": {
    "configuration": {
      "audible": false,
      "timeMillis": 0,
      "timePercent": 0,
      "viewabilityPercent": 0
    },
    "id": "",
    "name": ""
  },
  "exposureToConversionEnabled": false,
  "firstDayOfWeek": "",
  "id": "",
  "idDimensionValue": {},
  "inAppAttributionTrackingEnabled": false,
  "kind": "",
  "lookbackConfiguration": {
    "clickDuration": 0,
    "postImpressionActivitiesDuration": 0
  },
  "naturalSearchConversionAttributionOption": "",
  "omnitureSettings": {
    "omnitureCostDataEnabled": false,
    "omnitureIntegrationEnabled": false
  },
  "subaccountId": "",
  "tagSettings": {
    "dynamicTagEnabled": false,
    "imageTagEnabled": false
  },
  "thirdPartyAuthenticationTokens": [
    {
      "name": "",
      "value": ""
    }
  ],
  "userDefinedVariableConfigurations": [
    {
      "dataType": "",
      "reportName": "",
      "variableType": ""
    }
  ]
}'
echo '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "analyticsDataSharingEnabled": false,
  "customViewabilityMetric": {
    "configuration": {
      "audible": false,
      "timeMillis": 0,
      "timePercent": 0,
      "viewabilityPercent": 0
    },
    "id": "",
    "name": ""
  },
  "exposureToConversionEnabled": false,
  "firstDayOfWeek": "",
  "id": "",
  "idDimensionValue": {},
  "inAppAttributionTrackingEnabled": false,
  "kind": "",
  "lookbackConfiguration": {
    "clickDuration": 0,
    "postImpressionActivitiesDuration": 0
  },
  "naturalSearchConversionAttributionOption": "",
  "omnitureSettings": {
    "omnitureCostDataEnabled": false,
    "omnitureIntegrationEnabled": false
  },
  "subaccountId": "",
  "tagSettings": {
    "dynamicTagEnabled": false,
    "imageTagEnabled": false
  },
  "thirdPartyAuthenticationTokens": [
    {
      "name": "",
      "value": ""
    }
  ],
  "userDefinedVariableConfigurations": [
    {
      "dataType": "",
      "reportName": "",
      "variableType": ""
    }
  ]
}' |  \
  http PATCH '{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations?id=' \
  content-type:application/json
wget --quiet \
  --method PATCH \
  --header 'content-type: application/json' \
  --body-data '{\n  "accountId": "",\n  "advertiserId": "",\n  "advertiserIdDimensionValue": {\n    "dimensionName": "",\n    "etag": "",\n    "id": "",\n    "kind": "",\n    "matchType": "",\n    "value": ""\n  },\n  "analyticsDataSharingEnabled": false,\n  "customViewabilityMetric": {\n    "configuration": {\n      "audible": false,\n      "timeMillis": 0,\n      "timePercent": 0,\n      "viewabilityPercent": 0\n    },\n    "id": "",\n    "name": ""\n  },\n  "exposureToConversionEnabled": false,\n  "firstDayOfWeek": "",\n  "id": "",\n  "idDimensionValue": {},\n  "inAppAttributionTrackingEnabled": false,\n  "kind": "",\n  "lookbackConfiguration": {\n    "clickDuration": 0,\n    "postImpressionActivitiesDuration": 0\n  },\n  "naturalSearchConversionAttributionOption": "",\n  "omnitureSettings": {\n    "omnitureCostDataEnabled": false,\n    "omnitureIntegrationEnabled": false\n  },\n  "subaccountId": "",\n  "tagSettings": {\n    "dynamicTagEnabled": false,\n    "imageTagEnabled": false\n  },\n  "thirdPartyAuthenticationTokens": [\n    {\n      "name": "",\n      "value": ""\n    }\n  ],\n  "userDefinedVariableConfigurations": [\n    {\n      "dataType": "",\n      "reportName": "",\n      "variableType": ""\n    }\n  ]\n}' \
  --output-document \
  - '{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations?id='
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": [
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  ],
  "analyticsDataSharingEnabled": false,
  "customViewabilityMetric": [
    "configuration": [
      "audible": false,
      "timeMillis": 0,
      "timePercent": 0,
      "viewabilityPercent": 0
    ],
    "id": "",
    "name": ""
  ],
  "exposureToConversionEnabled": false,
  "firstDayOfWeek": "",
  "id": "",
  "idDimensionValue": [],
  "inAppAttributionTrackingEnabled": false,
  "kind": "",
  "lookbackConfiguration": [
    "clickDuration": 0,
    "postImpressionActivitiesDuration": 0
  ],
  "naturalSearchConversionAttributionOption": "",
  "omnitureSettings": [
    "omnitureCostDataEnabled": false,
    "omnitureIntegrationEnabled": false
  ],
  "subaccountId": "",
  "tagSettings": [
    "dynamicTagEnabled": false,
    "imageTagEnabled": false
  ],
  "thirdPartyAuthenticationTokens": [
    [
      "name": "",
      "value": ""
    ]
  ],
  "userDefinedVariableConfigurations": [
    [
      "dataType": "",
      "reportName": "",
      "variableType": ""
    ]
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations?id=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PATCH"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
PUT dfareporting.floodlightConfigurations.update
{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations
QUERY PARAMS

profileId
BODY json

{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "analyticsDataSharingEnabled": false,
  "customViewabilityMetric": {
    "configuration": {
      "audible": false,
      "timeMillis": 0,
      "timePercent": 0,
      "viewabilityPercent": 0
    },
    "id": "",
    "name": ""
  },
  "exposureToConversionEnabled": false,
  "firstDayOfWeek": "",
  "id": "",
  "idDimensionValue": {},
  "inAppAttributionTrackingEnabled": false,
  "kind": "",
  "lookbackConfiguration": {
    "clickDuration": 0,
    "postImpressionActivitiesDuration": 0
  },
  "naturalSearchConversionAttributionOption": "",
  "omnitureSettings": {
    "omnitureCostDataEnabled": false,
    "omnitureIntegrationEnabled": false
  },
  "subaccountId": "",
  "tagSettings": {
    "dynamicTagEnabled": false,
    "imageTagEnabled": false
  },
  "thirdPartyAuthenticationTokens": [
    {
      "name": "",
      "value": ""
    }
  ],
  "userDefinedVariableConfigurations": [
    {
      "dataType": "",
      "reportName": "",
      "variableType": ""
    }
  ]
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations");

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  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"analyticsDataSharingEnabled\": false,\n  \"customViewabilityMetric\": {\n    \"configuration\": {\n      \"audible\": false,\n      \"timeMillis\": 0,\n      \"timePercent\": 0,\n      \"viewabilityPercent\": 0\n    },\n    \"id\": \"\",\n    \"name\": \"\"\n  },\n  \"exposureToConversionEnabled\": false,\n  \"firstDayOfWeek\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"inAppAttributionTrackingEnabled\": false,\n  \"kind\": \"\",\n  \"lookbackConfiguration\": {\n    \"clickDuration\": 0,\n    \"postImpressionActivitiesDuration\": 0\n  },\n  \"naturalSearchConversionAttributionOption\": \"\",\n  \"omnitureSettings\": {\n    \"omnitureCostDataEnabled\": false,\n    \"omnitureIntegrationEnabled\": false\n  },\n  \"subaccountId\": \"\",\n  \"tagSettings\": {\n    \"dynamicTagEnabled\": false,\n    \"imageTagEnabled\": false\n  },\n  \"thirdPartyAuthenticationTokens\": [\n    {\n      \"name\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"userDefinedVariableConfigurations\": [\n    {\n      \"dataType\": \"\",\n      \"reportName\": \"\",\n      \"variableType\": \"\"\n    }\n  ]\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations" {:content-type :json
                                                                                            :form-params {:accountId ""
                                                                                                          :advertiserId ""
                                                                                                          :advertiserIdDimensionValue {:dimensionName ""
                                                                                                                                       :etag ""
                                                                                                                                       :id ""
                                                                                                                                       :kind ""
                                                                                                                                       :matchType ""
                                                                                                                                       :value ""}
                                                                                                          :analyticsDataSharingEnabled false
                                                                                                          :customViewabilityMetric {:configuration {:audible false
                                                                                                                                                    :timeMillis 0
                                                                                                                                                    :timePercent 0
                                                                                                                                                    :viewabilityPercent 0}
                                                                                                                                    :id ""
                                                                                                                                    :name ""}
                                                                                                          :exposureToConversionEnabled false
                                                                                                          :firstDayOfWeek ""
                                                                                                          :id ""
                                                                                                          :idDimensionValue {}
                                                                                                          :inAppAttributionTrackingEnabled false
                                                                                                          :kind ""
                                                                                                          :lookbackConfiguration {:clickDuration 0
                                                                                                                                  :postImpressionActivitiesDuration 0}
                                                                                                          :naturalSearchConversionAttributionOption ""
                                                                                                          :omnitureSettings {:omnitureCostDataEnabled false
                                                                                                                             :omnitureIntegrationEnabled false}
                                                                                                          :subaccountId ""
                                                                                                          :tagSettings {:dynamicTagEnabled false
                                                                                                                        :imageTagEnabled false}
                                                                                                          :thirdPartyAuthenticationTokens [{:name ""
                                                                                                                                            :value ""}]
                                                                                                          :userDefinedVariableConfigurations [{:dataType ""
                                                                                                                                               :reportName ""
                                                                                                                                               :variableType ""}]}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"analyticsDataSharingEnabled\": false,\n  \"customViewabilityMetric\": {\n    \"configuration\": {\n      \"audible\": false,\n      \"timeMillis\": 0,\n      \"timePercent\": 0,\n      \"viewabilityPercent\": 0\n    },\n    \"id\": \"\",\n    \"name\": \"\"\n  },\n  \"exposureToConversionEnabled\": false,\n  \"firstDayOfWeek\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"inAppAttributionTrackingEnabled\": false,\n  \"kind\": \"\",\n  \"lookbackConfiguration\": {\n    \"clickDuration\": 0,\n    \"postImpressionActivitiesDuration\": 0\n  },\n  \"naturalSearchConversionAttributionOption\": \"\",\n  \"omnitureSettings\": {\n    \"omnitureCostDataEnabled\": false,\n    \"omnitureIntegrationEnabled\": false\n  },\n  \"subaccountId\": \"\",\n  \"tagSettings\": {\n    \"dynamicTagEnabled\": false,\n    \"imageTagEnabled\": false\n  },\n  \"thirdPartyAuthenticationTokens\": [\n    {\n      \"name\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"userDefinedVariableConfigurations\": [\n    {\n      \"dataType\": \"\",\n      \"reportName\": \"\",\n      \"variableType\": \"\"\n    }\n  ]\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations"),
    Content = new StringContent("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"analyticsDataSharingEnabled\": false,\n  \"customViewabilityMetric\": {\n    \"configuration\": {\n      \"audible\": false,\n      \"timeMillis\": 0,\n      \"timePercent\": 0,\n      \"viewabilityPercent\": 0\n    },\n    \"id\": \"\",\n    \"name\": \"\"\n  },\n  \"exposureToConversionEnabled\": false,\n  \"firstDayOfWeek\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"inAppAttributionTrackingEnabled\": false,\n  \"kind\": \"\",\n  \"lookbackConfiguration\": {\n    \"clickDuration\": 0,\n    \"postImpressionActivitiesDuration\": 0\n  },\n  \"naturalSearchConversionAttributionOption\": \"\",\n  \"omnitureSettings\": {\n    \"omnitureCostDataEnabled\": false,\n    \"omnitureIntegrationEnabled\": false\n  },\n  \"subaccountId\": \"\",\n  \"tagSettings\": {\n    \"dynamicTagEnabled\": false,\n    \"imageTagEnabled\": false\n  },\n  \"thirdPartyAuthenticationTokens\": [\n    {\n      \"name\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"userDefinedVariableConfigurations\": [\n    {\n      \"dataType\": \"\",\n      \"reportName\": \"\",\n      \"variableType\": \"\"\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}}/userprofiles/:profileId/floodlightConfigurations");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"analyticsDataSharingEnabled\": false,\n  \"customViewabilityMetric\": {\n    \"configuration\": {\n      \"audible\": false,\n      \"timeMillis\": 0,\n      \"timePercent\": 0,\n      \"viewabilityPercent\": 0\n    },\n    \"id\": \"\",\n    \"name\": \"\"\n  },\n  \"exposureToConversionEnabled\": false,\n  \"firstDayOfWeek\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"inAppAttributionTrackingEnabled\": false,\n  \"kind\": \"\",\n  \"lookbackConfiguration\": {\n    \"clickDuration\": 0,\n    \"postImpressionActivitiesDuration\": 0\n  },\n  \"naturalSearchConversionAttributionOption\": \"\",\n  \"omnitureSettings\": {\n    \"omnitureCostDataEnabled\": false,\n    \"omnitureIntegrationEnabled\": false\n  },\n  \"subaccountId\": \"\",\n  \"tagSettings\": {\n    \"dynamicTagEnabled\": false,\n    \"imageTagEnabled\": false\n  },\n  \"thirdPartyAuthenticationTokens\": [\n    {\n      \"name\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"userDefinedVariableConfigurations\": [\n    {\n      \"dataType\": \"\",\n      \"reportName\": \"\",\n      \"variableType\": \"\"\n    }\n  ]\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations"

	payload := strings.NewReader("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"analyticsDataSharingEnabled\": false,\n  \"customViewabilityMetric\": {\n    \"configuration\": {\n      \"audible\": false,\n      \"timeMillis\": 0,\n      \"timePercent\": 0,\n      \"viewabilityPercent\": 0\n    },\n    \"id\": \"\",\n    \"name\": \"\"\n  },\n  \"exposureToConversionEnabled\": false,\n  \"firstDayOfWeek\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"inAppAttributionTrackingEnabled\": false,\n  \"kind\": \"\",\n  \"lookbackConfiguration\": {\n    \"clickDuration\": 0,\n    \"postImpressionActivitiesDuration\": 0\n  },\n  \"naturalSearchConversionAttributionOption\": \"\",\n  \"omnitureSettings\": {\n    \"omnitureCostDataEnabled\": false,\n    \"omnitureIntegrationEnabled\": false\n  },\n  \"subaccountId\": \"\",\n  \"tagSettings\": {\n    \"dynamicTagEnabled\": false,\n    \"imageTagEnabled\": false\n  },\n  \"thirdPartyAuthenticationTokens\": [\n    {\n      \"name\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"userDefinedVariableConfigurations\": [\n    {\n      \"dataType\": \"\",\n      \"reportName\": \"\",\n      \"variableType\": \"\"\n    }\n  ]\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/userprofiles/:profileId/floodlightConfigurations HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 1170

{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "analyticsDataSharingEnabled": false,
  "customViewabilityMetric": {
    "configuration": {
      "audible": false,
      "timeMillis": 0,
      "timePercent": 0,
      "viewabilityPercent": 0
    },
    "id": "",
    "name": ""
  },
  "exposureToConversionEnabled": false,
  "firstDayOfWeek": "",
  "id": "",
  "idDimensionValue": {},
  "inAppAttributionTrackingEnabled": false,
  "kind": "",
  "lookbackConfiguration": {
    "clickDuration": 0,
    "postImpressionActivitiesDuration": 0
  },
  "naturalSearchConversionAttributionOption": "",
  "omnitureSettings": {
    "omnitureCostDataEnabled": false,
    "omnitureIntegrationEnabled": false
  },
  "subaccountId": "",
  "tagSettings": {
    "dynamicTagEnabled": false,
    "imageTagEnabled": false
  },
  "thirdPartyAuthenticationTokens": [
    {
      "name": "",
      "value": ""
    }
  ],
  "userDefinedVariableConfigurations": [
    {
      "dataType": "",
      "reportName": "",
      "variableType": ""
    }
  ]
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"analyticsDataSharingEnabled\": false,\n  \"customViewabilityMetric\": {\n    \"configuration\": {\n      \"audible\": false,\n      \"timeMillis\": 0,\n      \"timePercent\": 0,\n      \"viewabilityPercent\": 0\n    },\n    \"id\": \"\",\n    \"name\": \"\"\n  },\n  \"exposureToConversionEnabled\": false,\n  \"firstDayOfWeek\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"inAppAttributionTrackingEnabled\": false,\n  \"kind\": \"\",\n  \"lookbackConfiguration\": {\n    \"clickDuration\": 0,\n    \"postImpressionActivitiesDuration\": 0\n  },\n  \"naturalSearchConversionAttributionOption\": \"\",\n  \"omnitureSettings\": {\n    \"omnitureCostDataEnabled\": false,\n    \"omnitureIntegrationEnabled\": false\n  },\n  \"subaccountId\": \"\",\n  \"tagSettings\": {\n    \"dynamicTagEnabled\": false,\n    \"imageTagEnabled\": false\n  },\n  \"thirdPartyAuthenticationTokens\": [\n    {\n      \"name\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"userDefinedVariableConfigurations\": [\n    {\n      \"dataType\": \"\",\n      \"reportName\": \"\",\n      \"variableType\": \"\"\n    }\n  ]\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"analyticsDataSharingEnabled\": false,\n  \"customViewabilityMetric\": {\n    \"configuration\": {\n      \"audible\": false,\n      \"timeMillis\": 0,\n      \"timePercent\": 0,\n      \"viewabilityPercent\": 0\n    },\n    \"id\": \"\",\n    \"name\": \"\"\n  },\n  \"exposureToConversionEnabled\": false,\n  \"firstDayOfWeek\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"inAppAttributionTrackingEnabled\": false,\n  \"kind\": \"\",\n  \"lookbackConfiguration\": {\n    \"clickDuration\": 0,\n    \"postImpressionActivitiesDuration\": 0\n  },\n  \"naturalSearchConversionAttributionOption\": \"\",\n  \"omnitureSettings\": {\n    \"omnitureCostDataEnabled\": false,\n    \"omnitureIntegrationEnabled\": false\n  },\n  \"subaccountId\": \"\",\n  \"tagSettings\": {\n    \"dynamicTagEnabled\": false,\n    \"imageTagEnabled\": false\n  },\n  \"thirdPartyAuthenticationTokens\": [\n    {\n      \"name\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"userDefinedVariableConfigurations\": [\n    {\n      \"dataType\": \"\",\n      \"reportName\": \"\",\n      \"variableType\": \"\"\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  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"analyticsDataSharingEnabled\": false,\n  \"customViewabilityMetric\": {\n    \"configuration\": {\n      \"audible\": false,\n      \"timeMillis\": 0,\n      \"timePercent\": 0,\n      \"viewabilityPercent\": 0\n    },\n    \"id\": \"\",\n    \"name\": \"\"\n  },\n  \"exposureToConversionEnabled\": false,\n  \"firstDayOfWeek\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"inAppAttributionTrackingEnabled\": false,\n  \"kind\": \"\",\n  \"lookbackConfiguration\": {\n    \"clickDuration\": 0,\n    \"postImpressionActivitiesDuration\": 0\n  },\n  \"naturalSearchConversionAttributionOption\": \"\",\n  \"omnitureSettings\": {\n    \"omnitureCostDataEnabled\": false,\n    \"omnitureIntegrationEnabled\": false\n  },\n  \"subaccountId\": \"\",\n  \"tagSettings\": {\n    \"dynamicTagEnabled\": false,\n    \"imageTagEnabled\": false\n  },\n  \"thirdPartyAuthenticationTokens\": [\n    {\n      \"name\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"userDefinedVariableConfigurations\": [\n    {\n      \"dataType\": \"\",\n      \"reportName\": \"\",\n      \"variableType\": \"\"\n    }\n  ]\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations")
  .header("content-type", "application/json")
  .body("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"analyticsDataSharingEnabled\": false,\n  \"customViewabilityMetric\": {\n    \"configuration\": {\n      \"audible\": false,\n      \"timeMillis\": 0,\n      \"timePercent\": 0,\n      \"viewabilityPercent\": 0\n    },\n    \"id\": \"\",\n    \"name\": \"\"\n  },\n  \"exposureToConversionEnabled\": false,\n  \"firstDayOfWeek\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"inAppAttributionTrackingEnabled\": false,\n  \"kind\": \"\",\n  \"lookbackConfiguration\": {\n    \"clickDuration\": 0,\n    \"postImpressionActivitiesDuration\": 0\n  },\n  \"naturalSearchConversionAttributionOption\": \"\",\n  \"omnitureSettings\": {\n    \"omnitureCostDataEnabled\": false,\n    \"omnitureIntegrationEnabled\": false\n  },\n  \"subaccountId\": \"\",\n  \"tagSettings\": {\n    \"dynamicTagEnabled\": false,\n    \"imageTagEnabled\": false\n  },\n  \"thirdPartyAuthenticationTokens\": [\n    {\n      \"name\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"userDefinedVariableConfigurations\": [\n    {\n      \"dataType\": \"\",\n      \"reportName\": \"\",\n      \"variableType\": \"\"\n    }\n  ]\n}")
  .asString();
const data = JSON.stringify({
  accountId: '',
  advertiserId: '',
  advertiserIdDimensionValue: {
    dimensionName: '',
    etag: '',
    id: '',
    kind: '',
    matchType: '',
    value: ''
  },
  analyticsDataSharingEnabled: false,
  customViewabilityMetric: {
    configuration: {
      audible: false,
      timeMillis: 0,
      timePercent: 0,
      viewabilityPercent: 0
    },
    id: '',
    name: ''
  },
  exposureToConversionEnabled: false,
  firstDayOfWeek: '',
  id: '',
  idDimensionValue: {},
  inAppAttributionTrackingEnabled: false,
  kind: '',
  lookbackConfiguration: {
    clickDuration: 0,
    postImpressionActivitiesDuration: 0
  },
  naturalSearchConversionAttributionOption: '',
  omnitureSettings: {
    omnitureCostDataEnabled: false,
    omnitureIntegrationEnabled: false
  },
  subaccountId: '',
  tagSettings: {
    dynamicTagEnabled: false,
    imageTagEnabled: false
  },
  thirdPartyAuthenticationTokens: [
    {
      name: '',
      value: ''
    }
  ],
  userDefinedVariableConfigurations: [
    {
      dataType: '',
      reportName: '',
      variableType: ''
    }
  ]
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations',
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    analyticsDataSharingEnabled: false,
    customViewabilityMetric: {
      configuration: {audible: false, timeMillis: 0, timePercent: 0, viewabilityPercent: 0},
      id: '',
      name: ''
    },
    exposureToConversionEnabled: false,
    firstDayOfWeek: '',
    id: '',
    idDimensionValue: {},
    inAppAttributionTrackingEnabled: false,
    kind: '',
    lookbackConfiguration: {clickDuration: 0, postImpressionActivitiesDuration: 0},
    naturalSearchConversionAttributionOption: '',
    omnitureSettings: {omnitureCostDataEnabled: false, omnitureIntegrationEnabled: false},
    subaccountId: '',
    tagSettings: {dynamicTagEnabled: false, imageTagEnabled: false},
    thirdPartyAuthenticationTokens: [{name: '', value: ''}],
    userDefinedVariableConfigurations: [{dataType: '', reportName: '', variableType: ''}]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","advertiserId":"","advertiserIdDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"analyticsDataSharingEnabled":false,"customViewabilityMetric":{"configuration":{"audible":false,"timeMillis":0,"timePercent":0,"viewabilityPercent":0},"id":"","name":""},"exposureToConversionEnabled":false,"firstDayOfWeek":"","id":"","idDimensionValue":{},"inAppAttributionTrackingEnabled":false,"kind":"","lookbackConfiguration":{"clickDuration":0,"postImpressionActivitiesDuration":0},"naturalSearchConversionAttributionOption":"","omnitureSettings":{"omnitureCostDataEnabled":false,"omnitureIntegrationEnabled":false},"subaccountId":"","tagSettings":{"dynamicTagEnabled":false,"imageTagEnabled":false},"thirdPartyAuthenticationTokens":[{"name":"","value":""}],"userDefinedVariableConfigurations":[{"dataType":"","reportName":"","variableType":""}]}'
};

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}}/userprofiles/:profileId/floodlightConfigurations',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "accountId": "",\n  "advertiserId": "",\n  "advertiserIdDimensionValue": {\n    "dimensionName": "",\n    "etag": "",\n    "id": "",\n    "kind": "",\n    "matchType": "",\n    "value": ""\n  },\n  "analyticsDataSharingEnabled": false,\n  "customViewabilityMetric": {\n    "configuration": {\n      "audible": false,\n      "timeMillis": 0,\n      "timePercent": 0,\n      "viewabilityPercent": 0\n    },\n    "id": "",\n    "name": ""\n  },\n  "exposureToConversionEnabled": false,\n  "firstDayOfWeek": "",\n  "id": "",\n  "idDimensionValue": {},\n  "inAppAttributionTrackingEnabled": false,\n  "kind": "",\n  "lookbackConfiguration": {\n    "clickDuration": 0,\n    "postImpressionActivitiesDuration": 0\n  },\n  "naturalSearchConversionAttributionOption": "",\n  "omnitureSettings": {\n    "omnitureCostDataEnabled": false,\n    "omnitureIntegrationEnabled": false\n  },\n  "subaccountId": "",\n  "tagSettings": {\n    "dynamicTagEnabled": false,\n    "imageTagEnabled": false\n  },\n  "thirdPartyAuthenticationTokens": [\n    {\n      "name": "",\n      "value": ""\n    }\n  ],\n  "userDefinedVariableConfigurations": [\n    {\n      "dataType": "",\n      "reportName": "",\n      "variableType": ""\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  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"analyticsDataSharingEnabled\": false,\n  \"customViewabilityMetric\": {\n    \"configuration\": {\n      \"audible\": false,\n      \"timeMillis\": 0,\n      \"timePercent\": 0,\n      \"viewabilityPercent\": 0\n    },\n    \"id\": \"\",\n    \"name\": \"\"\n  },\n  \"exposureToConversionEnabled\": false,\n  \"firstDayOfWeek\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"inAppAttributionTrackingEnabled\": false,\n  \"kind\": \"\",\n  \"lookbackConfiguration\": {\n    \"clickDuration\": 0,\n    \"postImpressionActivitiesDuration\": 0\n  },\n  \"naturalSearchConversionAttributionOption\": \"\",\n  \"omnitureSettings\": {\n    \"omnitureCostDataEnabled\": false,\n    \"omnitureIntegrationEnabled\": false\n  },\n  \"subaccountId\": \"\",\n  \"tagSettings\": {\n    \"dynamicTagEnabled\": false,\n    \"imageTagEnabled\": false\n  },\n  \"thirdPartyAuthenticationTokens\": [\n    {\n      \"name\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"userDefinedVariableConfigurations\": [\n    {\n      \"dataType\": \"\",\n      \"reportName\": \"\",\n      \"variableType\": \"\"\n    }\n  ]\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/floodlightConfigurations',
  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({
  accountId: '',
  advertiserId: '',
  advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
  analyticsDataSharingEnabled: false,
  customViewabilityMetric: {
    configuration: {audible: false, timeMillis: 0, timePercent: 0, viewabilityPercent: 0},
    id: '',
    name: ''
  },
  exposureToConversionEnabled: false,
  firstDayOfWeek: '',
  id: '',
  idDimensionValue: {},
  inAppAttributionTrackingEnabled: false,
  kind: '',
  lookbackConfiguration: {clickDuration: 0, postImpressionActivitiesDuration: 0},
  naturalSearchConversionAttributionOption: '',
  omnitureSettings: {omnitureCostDataEnabled: false, omnitureIntegrationEnabled: false},
  subaccountId: '',
  tagSettings: {dynamicTagEnabled: false, imageTagEnabled: false},
  thirdPartyAuthenticationTokens: [{name: '', value: ''}],
  userDefinedVariableConfigurations: [{dataType: '', reportName: '', variableType: ''}]
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations',
  headers: {'content-type': 'application/json'},
  body: {
    accountId: '',
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    analyticsDataSharingEnabled: false,
    customViewabilityMetric: {
      configuration: {audible: false, timeMillis: 0, timePercent: 0, viewabilityPercent: 0},
      id: '',
      name: ''
    },
    exposureToConversionEnabled: false,
    firstDayOfWeek: '',
    id: '',
    idDimensionValue: {},
    inAppAttributionTrackingEnabled: false,
    kind: '',
    lookbackConfiguration: {clickDuration: 0, postImpressionActivitiesDuration: 0},
    naturalSearchConversionAttributionOption: '',
    omnitureSettings: {omnitureCostDataEnabled: false, omnitureIntegrationEnabled: false},
    subaccountId: '',
    tagSettings: {dynamicTagEnabled: false, imageTagEnabled: false},
    thirdPartyAuthenticationTokens: [{name: '', value: ''}],
    userDefinedVariableConfigurations: [{dataType: '', reportName: '', variableType: ''}]
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  accountId: '',
  advertiserId: '',
  advertiserIdDimensionValue: {
    dimensionName: '',
    etag: '',
    id: '',
    kind: '',
    matchType: '',
    value: ''
  },
  analyticsDataSharingEnabled: false,
  customViewabilityMetric: {
    configuration: {
      audible: false,
      timeMillis: 0,
      timePercent: 0,
      viewabilityPercent: 0
    },
    id: '',
    name: ''
  },
  exposureToConversionEnabled: false,
  firstDayOfWeek: '',
  id: '',
  idDimensionValue: {},
  inAppAttributionTrackingEnabled: false,
  kind: '',
  lookbackConfiguration: {
    clickDuration: 0,
    postImpressionActivitiesDuration: 0
  },
  naturalSearchConversionAttributionOption: '',
  omnitureSettings: {
    omnitureCostDataEnabled: false,
    omnitureIntegrationEnabled: false
  },
  subaccountId: '',
  tagSettings: {
    dynamicTagEnabled: false,
    imageTagEnabled: false
  },
  thirdPartyAuthenticationTokens: [
    {
      name: '',
      value: ''
    }
  ],
  userDefinedVariableConfigurations: [
    {
      dataType: '',
      reportName: '',
      variableType: ''
    }
  ]
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations',
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    analyticsDataSharingEnabled: false,
    customViewabilityMetric: {
      configuration: {audible: false, timeMillis: 0, timePercent: 0, viewabilityPercent: 0},
      id: '',
      name: ''
    },
    exposureToConversionEnabled: false,
    firstDayOfWeek: '',
    id: '',
    idDimensionValue: {},
    inAppAttributionTrackingEnabled: false,
    kind: '',
    lookbackConfiguration: {clickDuration: 0, postImpressionActivitiesDuration: 0},
    naturalSearchConversionAttributionOption: '',
    omnitureSettings: {omnitureCostDataEnabled: false, omnitureIntegrationEnabled: false},
    subaccountId: '',
    tagSettings: {dynamicTagEnabled: false, imageTagEnabled: false},
    thirdPartyAuthenticationTokens: [{name: '', value: ''}],
    userDefinedVariableConfigurations: [{dataType: '', reportName: '', variableType: ''}]
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","advertiserId":"","advertiserIdDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"analyticsDataSharingEnabled":false,"customViewabilityMetric":{"configuration":{"audible":false,"timeMillis":0,"timePercent":0,"viewabilityPercent":0},"id":"","name":""},"exposureToConversionEnabled":false,"firstDayOfWeek":"","id":"","idDimensionValue":{},"inAppAttributionTrackingEnabled":false,"kind":"","lookbackConfiguration":{"clickDuration":0,"postImpressionActivitiesDuration":0},"naturalSearchConversionAttributionOption":"","omnitureSettings":{"omnitureCostDataEnabled":false,"omnitureIntegrationEnabled":false},"subaccountId":"","tagSettings":{"dynamicTagEnabled":false,"imageTagEnabled":false},"thirdPartyAuthenticationTokens":[{"name":"","value":""}],"userDefinedVariableConfigurations":[{"dataType":"","reportName":"","variableType":""}]}'
};

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 = @{ @"accountId": @"",
                              @"advertiserId": @"",
                              @"advertiserIdDimensionValue": @{ @"dimensionName": @"", @"etag": @"", @"id": @"", @"kind": @"", @"matchType": @"", @"value": @"" },
                              @"analyticsDataSharingEnabled": @NO,
                              @"customViewabilityMetric": @{ @"configuration": @{ @"audible": @NO, @"timeMillis": @0, @"timePercent": @0, @"viewabilityPercent": @0 }, @"id": @"", @"name": @"" },
                              @"exposureToConversionEnabled": @NO,
                              @"firstDayOfWeek": @"",
                              @"id": @"",
                              @"idDimensionValue": @{  },
                              @"inAppAttributionTrackingEnabled": @NO,
                              @"kind": @"",
                              @"lookbackConfiguration": @{ @"clickDuration": @0, @"postImpressionActivitiesDuration": @0 },
                              @"naturalSearchConversionAttributionOption": @"",
                              @"omnitureSettings": @{ @"omnitureCostDataEnabled": @NO, @"omnitureIntegrationEnabled": @NO },
                              @"subaccountId": @"",
                              @"tagSettings": @{ @"dynamicTagEnabled": @NO, @"imageTagEnabled": @NO },
                              @"thirdPartyAuthenticationTokens": @[ @{ @"name": @"", @"value": @"" } ],
                              @"userDefinedVariableConfigurations": @[ @{ @"dataType": @"", @"reportName": @"", @"variableType": @"" } ] };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"analyticsDataSharingEnabled\": false,\n  \"customViewabilityMetric\": {\n    \"configuration\": {\n      \"audible\": false,\n      \"timeMillis\": 0,\n      \"timePercent\": 0,\n      \"viewabilityPercent\": 0\n    },\n    \"id\": \"\",\n    \"name\": \"\"\n  },\n  \"exposureToConversionEnabled\": false,\n  \"firstDayOfWeek\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"inAppAttributionTrackingEnabled\": false,\n  \"kind\": \"\",\n  \"lookbackConfiguration\": {\n    \"clickDuration\": 0,\n    \"postImpressionActivitiesDuration\": 0\n  },\n  \"naturalSearchConversionAttributionOption\": \"\",\n  \"omnitureSettings\": {\n    \"omnitureCostDataEnabled\": false,\n    \"omnitureIntegrationEnabled\": false\n  },\n  \"subaccountId\": \"\",\n  \"tagSettings\": {\n    \"dynamicTagEnabled\": false,\n    \"imageTagEnabled\": false\n  },\n  \"thirdPartyAuthenticationTokens\": [\n    {\n      \"name\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"userDefinedVariableConfigurations\": [\n    {\n      \"dataType\": \"\",\n      \"reportName\": \"\",\n      \"variableType\": \"\"\n    }\n  ]\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'accountId' => '',
    'advertiserId' => '',
    'advertiserIdDimensionValue' => [
        'dimensionName' => '',
        'etag' => '',
        'id' => '',
        'kind' => '',
        'matchType' => '',
        'value' => ''
    ],
    'analyticsDataSharingEnabled' => null,
    'customViewabilityMetric' => [
        'configuration' => [
                'audible' => null,
                'timeMillis' => 0,
                'timePercent' => 0,
                'viewabilityPercent' => 0
        ],
        'id' => '',
        'name' => ''
    ],
    'exposureToConversionEnabled' => null,
    'firstDayOfWeek' => '',
    'id' => '',
    'idDimensionValue' => [
        
    ],
    'inAppAttributionTrackingEnabled' => null,
    'kind' => '',
    'lookbackConfiguration' => [
        'clickDuration' => 0,
        'postImpressionActivitiesDuration' => 0
    ],
    'naturalSearchConversionAttributionOption' => '',
    'omnitureSettings' => [
        'omnitureCostDataEnabled' => null,
        'omnitureIntegrationEnabled' => null
    ],
    'subaccountId' => '',
    'tagSettings' => [
        'dynamicTagEnabled' => null,
        'imageTagEnabled' => null
    ],
    'thirdPartyAuthenticationTokens' => [
        [
                'name' => '',
                'value' => ''
        ]
    ],
    'userDefinedVariableConfigurations' => [
        [
                'dataType' => '',
                'reportName' => '',
                'variableType' => ''
        ]
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations', [
  'body' => '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "analyticsDataSharingEnabled": false,
  "customViewabilityMetric": {
    "configuration": {
      "audible": false,
      "timeMillis": 0,
      "timePercent": 0,
      "viewabilityPercent": 0
    },
    "id": "",
    "name": ""
  },
  "exposureToConversionEnabled": false,
  "firstDayOfWeek": "",
  "id": "",
  "idDimensionValue": {},
  "inAppAttributionTrackingEnabled": false,
  "kind": "",
  "lookbackConfiguration": {
    "clickDuration": 0,
    "postImpressionActivitiesDuration": 0
  },
  "naturalSearchConversionAttributionOption": "",
  "omnitureSettings": {
    "omnitureCostDataEnabled": false,
    "omnitureIntegrationEnabled": false
  },
  "subaccountId": "",
  "tagSettings": {
    "dynamicTagEnabled": false,
    "imageTagEnabled": false
  },
  "thirdPartyAuthenticationTokens": [
    {
      "name": "",
      "value": ""
    }
  ],
  "userDefinedVariableConfigurations": [
    {
      "dataType": "",
      "reportName": "",
      "variableType": ""
    }
  ]
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'accountId' => '',
  'advertiserId' => '',
  'advertiserIdDimensionValue' => [
    'dimensionName' => '',
    'etag' => '',
    'id' => '',
    'kind' => '',
    'matchType' => '',
    'value' => ''
  ],
  'analyticsDataSharingEnabled' => null,
  'customViewabilityMetric' => [
    'configuration' => [
        'audible' => null,
        'timeMillis' => 0,
        'timePercent' => 0,
        'viewabilityPercent' => 0
    ],
    'id' => '',
    'name' => ''
  ],
  'exposureToConversionEnabled' => null,
  'firstDayOfWeek' => '',
  'id' => '',
  'idDimensionValue' => [
    
  ],
  'inAppAttributionTrackingEnabled' => null,
  'kind' => '',
  'lookbackConfiguration' => [
    'clickDuration' => 0,
    'postImpressionActivitiesDuration' => 0
  ],
  'naturalSearchConversionAttributionOption' => '',
  'omnitureSettings' => [
    'omnitureCostDataEnabled' => null,
    'omnitureIntegrationEnabled' => null
  ],
  'subaccountId' => '',
  'tagSettings' => [
    'dynamicTagEnabled' => null,
    'imageTagEnabled' => null
  ],
  'thirdPartyAuthenticationTokens' => [
    [
        'name' => '',
        'value' => ''
    ]
  ],
  'userDefinedVariableConfigurations' => [
    [
        'dataType' => '',
        'reportName' => '',
        'variableType' => ''
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'accountId' => '',
  'advertiserId' => '',
  'advertiserIdDimensionValue' => [
    'dimensionName' => '',
    'etag' => '',
    'id' => '',
    'kind' => '',
    'matchType' => '',
    'value' => ''
  ],
  'analyticsDataSharingEnabled' => null,
  'customViewabilityMetric' => [
    'configuration' => [
        'audible' => null,
        'timeMillis' => 0,
        'timePercent' => 0,
        'viewabilityPercent' => 0
    ],
    'id' => '',
    'name' => ''
  ],
  'exposureToConversionEnabled' => null,
  'firstDayOfWeek' => '',
  'id' => '',
  'idDimensionValue' => [
    
  ],
  'inAppAttributionTrackingEnabled' => null,
  'kind' => '',
  'lookbackConfiguration' => [
    'clickDuration' => 0,
    'postImpressionActivitiesDuration' => 0
  ],
  'naturalSearchConversionAttributionOption' => '',
  'omnitureSettings' => [
    'omnitureCostDataEnabled' => null,
    'omnitureIntegrationEnabled' => null
  ],
  'subaccountId' => '',
  'tagSettings' => [
    'dynamicTagEnabled' => null,
    'imageTagEnabled' => null
  ],
  'thirdPartyAuthenticationTokens' => [
    [
        'name' => '',
        'value' => ''
    ]
  ],
  'userDefinedVariableConfigurations' => [
    [
        'dataType' => '',
        'reportName' => '',
        'variableType' => ''
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "analyticsDataSharingEnabled": false,
  "customViewabilityMetric": {
    "configuration": {
      "audible": false,
      "timeMillis": 0,
      "timePercent": 0,
      "viewabilityPercent": 0
    },
    "id": "",
    "name": ""
  },
  "exposureToConversionEnabled": false,
  "firstDayOfWeek": "",
  "id": "",
  "idDimensionValue": {},
  "inAppAttributionTrackingEnabled": false,
  "kind": "",
  "lookbackConfiguration": {
    "clickDuration": 0,
    "postImpressionActivitiesDuration": 0
  },
  "naturalSearchConversionAttributionOption": "",
  "omnitureSettings": {
    "omnitureCostDataEnabled": false,
    "omnitureIntegrationEnabled": false
  },
  "subaccountId": "",
  "tagSettings": {
    "dynamicTagEnabled": false,
    "imageTagEnabled": false
  },
  "thirdPartyAuthenticationTokens": [
    {
      "name": "",
      "value": ""
    }
  ],
  "userDefinedVariableConfigurations": [
    {
      "dataType": "",
      "reportName": "",
      "variableType": ""
    }
  ]
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "analyticsDataSharingEnabled": false,
  "customViewabilityMetric": {
    "configuration": {
      "audible": false,
      "timeMillis": 0,
      "timePercent": 0,
      "viewabilityPercent": 0
    },
    "id": "",
    "name": ""
  },
  "exposureToConversionEnabled": false,
  "firstDayOfWeek": "",
  "id": "",
  "idDimensionValue": {},
  "inAppAttributionTrackingEnabled": false,
  "kind": "",
  "lookbackConfiguration": {
    "clickDuration": 0,
    "postImpressionActivitiesDuration": 0
  },
  "naturalSearchConversionAttributionOption": "",
  "omnitureSettings": {
    "omnitureCostDataEnabled": false,
    "omnitureIntegrationEnabled": false
  },
  "subaccountId": "",
  "tagSettings": {
    "dynamicTagEnabled": false,
    "imageTagEnabled": false
  },
  "thirdPartyAuthenticationTokens": [
    {
      "name": "",
      "value": ""
    }
  ],
  "userDefinedVariableConfigurations": [
    {
      "dataType": "",
      "reportName": "",
      "variableType": ""
    }
  ]
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"analyticsDataSharingEnabled\": false,\n  \"customViewabilityMetric\": {\n    \"configuration\": {\n      \"audible\": false,\n      \"timeMillis\": 0,\n      \"timePercent\": 0,\n      \"viewabilityPercent\": 0\n    },\n    \"id\": \"\",\n    \"name\": \"\"\n  },\n  \"exposureToConversionEnabled\": false,\n  \"firstDayOfWeek\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"inAppAttributionTrackingEnabled\": false,\n  \"kind\": \"\",\n  \"lookbackConfiguration\": {\n    \"clickDuration\": 0,\n    \"postImpressionActivitiesDuration\": 0\n  },\n  \"naturalSearchConversionAttributionOption\": \"\",\n  \"omnitureSettings\": {\n    \"omnitureCostDataEnabled\": false,\n    \"omnitureIntegrationEnabled\": false\n  },\n  \"subaccountId\": \"\",\n  \"tagSettings\": {\n    \"dynamicTagEnabled\": false,\n    \"imageTagEnabled\": false\n  },\n  \"thirdPartyAuthenticationTokens\": [\n    {\n      \"name\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"userDefinedVariableConfigurations\": [\n    {\n      \"dataType\": \"\",\n      \"reportName\": \"\",\n      \"variableType\": \"\"\n    }\n  ]\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/userprofiles/:profileId/floodlightConfigurations", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations"

payload = {
    "accountId": "",
    "advertiserId": "",
    "advertiserIdDimensionValue": {
        "dimensionName": "",
        "etag": "",
        "id": "",
        "kind": "",
        "matchType": "",
        "value": ""
    },
    "analyticsDataSharingEnabled": False,
    "customViewabilityMetric": {
        "configuration": {
            "audible": False,
            "timeMillis": 0,
            "timePercent": 0,
            "viewabilityPercent": 0
        },
        "id": "",
        "name": ""
    },
    "exposureToConversionEnabled": False,
    "firstDayOfWeek": "",
    "id": "",
    "idDimensionValue": {},
    "inAppAttributionTrackingEnabled": False,
    "kind": "",
    "lookbackConfiguration": {
        "clickDuration": 0,
        "postImpressionActivitiesDuration": 0
    },
    "naturalSearchConversionAttributionOption": "",
    "omnitureSettings": {
        "omnitureCostDataEnabled": False,
        "omnitureIntegrationEnabled": False
    },
    "subaccountId": "",
    "tagSettings": {
        "dynamicTagEnabled": False,
        "imageTagEnabled": False
    },
    "thirdPartyAuthenticationTokens": [
        {
            "name": "",
            "value": ""
        }
    ],
    "userDefinedVariableConfigurations": [
        {
            "dataType": "",
            "reportName": "",
            "variableType": ""
        }
    ]
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations"

payload <- "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"analyticsDataSharingEnabled\": false,\n  \"customViewabilityMetric\": {\n    \"configuration\": {\n      \"audible\": false,\n      \"timeMillis\": 0,\n      \"timePercent\": 0,\n      \"viewabilityPercent\": 0\n    },\n    \"id\": \"\",\n    \"name\": \"\"\n  },\n  \"exposureToConversionEnabled\": false,\n  \"firstDayOfWeek\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"inAppAttributionTrackingEnabled\": false,\n  \"kind\": \"\",\n  \"lookbackConfiguration\": {\n    \"clickDuration\": 0,\n    \"postImpressionActivitiesDuration\": 0\n  },\n  \"naturalSearchConversionAttributionOption\": \"\",\n  \"omnitureSettings\": {\n    \"omnitureCostDataEnabled\": false,\n    \"omnitureIntegrationEnabled\": false\n  },\n  \"subaccountId\": \"\",\n  \"tagSettings\": {\n    \"dynamicTagEnabled\": false,\n    \"imageTagEnabled\": false\n  },\n  \"thirdPartyAuthenticationTokens\": [\n    {\n      \"name\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"userDefinedVariableConfigurations\": [\n    {\n      \"dataType\": \"\",\n      \"reportName\": \"\",\n      \"variableType\": \"\"\n    }\n  ]\n}"

encode <- "json"

response <- VERB("PUT", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"analyticsDataSharingEnabled\": false,\n  \"customViewabilityMetric\": {\n    \"configuration\": {\n      \"audible\": false,\n      \"timeMillis\": 0,\n      \"timePercent\": 0,\n      \"viewabilityPercent\": 0\n    },\n    \"id\": \"\",\n    \"name\": \"\"\n  },\n  \"exposureToConversionEnabled\": false,\n  \"firstDayOfWeek\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"inAppAttributionTrackingEnabled\": false,\n  \"kind\": \"\",\n  \"lookbackConfiguration\": {\n    \"clickDuration\": 0,\n    \"postImpressionActivitiesDuration\": 0\n  },\n  \"naturalSearchConversionAttributionOption\": \"\",\n  \"omnitureSettings\": {\n    \"omnitureCostDataEnabled\": false,\n    \"omnitureIntegrationEnabled\": false\n  },\n  \"subaccountId\": \"\",\n  \"tagSettings\": {\n    \"dynamicTagEnabled\": false,\n    \"imageTagEnabled\": false\n  },\n  \"thirdPartyAuthenticationTokens\": [\n    {\n      \"name\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"userDefinedVariableConfigurations\": [\n    {\n      \"dataType\": \"\",\n      \"reportName\": \"\",\n      \"variableType\": \"\"\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.put('/baseUrl/userprofiles/:profileId/floodlightConfigurations') do |req|
  req.body = "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"analyticsDataSharingEnabled\": false,\n  \"customViewabilityMetric\": {\n    \"configuration\": {\n      \"audible\": false,\n      \"timeMillis\": 0,\n      \"timePercent\": 0,\n      \"viewabilityPercent\": 0\n    },\n    \"id\": \"\",\n    \"name\": \"\"\n  },\n  \"exposureToConversionEnabled\": false,\n  \"firstDayOfWeek\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"inAppAttributionTrackingEnabled\": false,\n  \"kind\": \"\",\n  \"lookbackConfiguration\": {\n    \"clickDuration\": 0,\n    \"postImpressionActivitiesDuration\": 0\n  },\n  \"naturalSearchConversionAttributionOption\": \"\",\n  \"omnitureSettings\": {\n    \"omnitureCostDataEnabled\": false,\n    \"omnitureIntegrationEnabled\": false\n  },\n  \"subaccountId\": \"\",\n  \"tagSettings\": {\n    \"dynamicTagEnabled\": false,\n    \"imageTagEnabled\": false\n  },\n  \"thirdPartyAuthenticationTokens\": [\n    {\n      \"name\": \"\",\n      \"value\": \"\"\n    }\n  ],\n  \"userDefinedVariableConfigurations\": [\n    {\n      \"dataType\": \"\",\n      \"reportName\": \"\",\n      \"variableType\": \"\"\n    }\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}}/userprofiles/:profileId/floodlightConfigurations";

    let payload = json!({
        "accountId": "",
        "advertiserId": "",
        "advertiserIdDimensionValue": json!({
            "dimensionName": "",
            "etag": "",
            "id": "",
            "kind": "",
            "matchType": "",
            "value": ""
        }),
        "analyticsDataSharingEnabled": false,
        "customViewabilityMetric": json!({
            "configuration": json!({
                "audible": false,
                "timeMillis": 0,
                "timePercent": 0,
                "viewabilityPercent": 0
            }),
            "id": "",
            "name": ""
        }),
        "exposureToConversionEnabled": false,
        "firstDayOfWeek": "",
        "id": "",
        "idDimensionValue": json!({}),
        "inAppAttributionTrackingEnabled": false,
        "kind": "",
        "lookbackConfiguration": json!({
            "clickDuration": 0,
            "postImpressionActivitiesDuration": 0
        }),
        "naturalSearchConversionAttributionOption": "",
        "omnitureSettings": json!({
            "omnitureCostDataEnabled": false,
            "omnitureIntegrationEnabled": false
        }),
        "subaccountId": "",
        "tagSettings": json!({
            "dynamicTagEnabled": false,
            "imageTagEnabled": false
        }),
        "thirdPartyAuthenticationTokens": (
            json!({
                "name": "",
                "value": ""
            })
        ),
        "userDefinedVariableConfigurations": (
            json!({
                "dataType": "",
                "reportName": "",
                "variableType": ""
            })
        )
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/userprofiles/:profileId/floodlightConfigurations \
  --header 'content-type: application/json' \
  --data '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "analyticsDataSharingEnabled": false,
  "customViewabilityMetric": {
    "configuration": {
      "audible": false,
      "timeMillis": 0,
      "timePercent": 0,
      "viewabilityPercent": 0
    },
    "id": "",
    "name": ""
  },
  "exposureToConversionEnabled": false,
  "firstDayOfWeek": "",
  "id": "",
  "idDimensionValue": {},
  "inAppAttributionTrackingEnabled": false,
  "kind": "",
  "lookbackConfiguration": {
    "clickDuration": 0,
    "postImpressionActivitiesDuration": 0
  },
  "naturalSearchConversionAttributionOption": "",
  "omnitureSettings": {
    "omnitureCostDataEnabled": false,
    "omnitureIntegrationEnabled": false
  },
  "subaccountId": "",
  "tagSettings": {
    "dynamicTagEnabled": false,
    "imageTagEnabled": false
  },
  "thirdPartyAuthenticationTokens": [
    {
      "name": "",
      "value": ""
    }
  ],
  "userDefinedVariableConfigurations": [
    {
      "dataType": "",
      "reportName": "",
      "variableType": ""
    }
  ]
}'
echo '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "analyticsDataSharingEnabled": false,
  "customViewabilityMetric": {
    "configuration": {
      "audible": false,
      "timeMillis": 0,
      "timePercent": 0,
      "viewabilityPercent": 0
    },
    "id": "",
    "name": ""
  },
  "exposureToConversionEnabled": false,
  "firstDayOfWeek": "",
  "id": "",
  "idDimensionValue": {},
  "inAppAttributionTrackingEnabled": false,
  "kind": "",
  "lookbackConfiguration": {
    "clickDuration": 0,
    "postImpressionActivitiesDuration": 0
  },
  "naturalSearchConversionAttributionOption": "",
  "omnitureSettings": {
    "omnitureCostDataEnabled": false,
    "omnitureIntegrationEnabled": false
  },
  "subaccountId": "",
  "tagSettings": {
    "dynamicTagEnabled": false,
    "imageTagEnabled": false
  },
  "thirdPartyAuthenticationTokens": [
    {
      "name": "",
      "value": ""
    }
  ],
  "userDefinedVariableConfigurations": [
    {
      "dataType": "",
      "reportName": "",
      "variableType": ""
    }
  ]
}' |  \
  http PUT {{baseUrl}}/userprofiles/:profileId/floodlightConfigurations \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "accountId": "",\n  "advertiserId": "",\n  "advertiserIdDimensionValue": {\n    "dimensionName": "",\n    "etag": "",\n    "id": "",\n    "kind": "",\n    "matchType": "",\n    "value": ""\n  },\n  "analyticsDataSharingEnabled": false,\n  "customViewabilityMetric": {\n    "configuration": {\n      "audible": false,\n      "timeMillis": 0,\n      "timePercent": 0,\n      "viewabilityPercent": 0\n    },\n    "id": "",\n    "name": ""\n  },\n  "exposureToConversionEnabled": false,\n  "firstDayOfWeek": "",\n  "id": "",\n  "idDimensionValue": {},\n  "inAppAttributionTrackingEnabled": false,\n  "kind": "",\n  "lookbackConfiguration": {\n    "clickDuration": 0,\n    "postImpressionActivitiesDuration": 0\n  },\n  "naturalSearchConversionAttributionOption": "",\n  "omnitureSettings": {\n    "omnitureCostDataEnabled": false,\n    "omnitureIntegrationEnabled": false\n  },\n  "subaccountId": "",\n  "tagSettings": {\n    "dynamicTagEnabled": false,\n    "imageTagEnabled": false\n  },\n  "thirdPartyAuthenticationTokens": [\n    {\n      "name": "",\n      "value": ""\n    }\n  ],\n  "userDefinedVariableConfigurations": [\n    {\n      "dataType": "",\n      "reportName": "",\n      "variableType": ""\n    }\n  ]\n}' \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/floodlightConfigurations
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": [
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  ],
  "analyticsDataSharingEnabled": false,
  "customViewabilityMetric": [
    "configuration": [
      "audible": false,
      "timeMillis": 0,
      "timePercent": 0,
      "viewabilityPercent": 0
    ],
    "id": "",
    "name": ""
  ],
  "exposureToConversionEnabled": false,
  "firstDayOfWeek": "",
  "id": "",
  "idDimensionValue": [],
  "inAppAttributionTrackingEnabled": false,
  "kind": "",
  "lookbackConfiguration": [
    "clickDuration": 0,
    "postImpressionActivitiesDuration": 0
  ],
  "naturalSearchConversionAttributionOption": "",
  "omnitureSettings": [
    "omnitureCostDataEnabled": false,
    "omnitureIntegrationEnabled": false
  ],
  "subaccountId": "",
  "tagSettings": [
    "dynamicTagEnabled": false,
    "imageTagEnabled": false
  ],
  "thirdPartyAuthenticationTokens": [
    [
      "name": "",
      "value": ""
    ]
  ],
  "userDefinedVariableConfigurations": [
    [
      "dataType": "",
      "reportName": "",
      "variableType": ""
    ]
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/floodlightConfigurations")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET dfareporting.inventoryItems.get
{{baseUrl}}/userprofiles/:profileId/projects/:projectId/inventoryItems/:id
QUERY PARAMS

profileId
projectId
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/projects/:projectId/inventoryItems/:id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/projects/:projectId/inventoryItems/:id")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/projects/:projectId/inventoryItems/:id"

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}}/userprofiles/:profileId/projects/:projectId/inventoryItems/:id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/projects/:projectId/inventoryItems/:id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/projects/:projectId/inventoryItems/:id"

	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/userprofiles/:profileId/projects/:projectId/inventoryItems/:id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/projects/:projectId/inventoryItems/:id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/projects/:projectId/inventoryItems/:id"))
    .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}}/userprofiles/:profileId/projects/:projectId/inventoryItems/:id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/projects/:projectId/inventoryItems/:id")
  .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}}/userprofiles/:profileId/projects/:projectId/inventoryItems/:id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/projects/:projectId/inventoryItems/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/projects/:projectId/inventoryItems/:id';
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}}/userprofiles/:profileId/projects/:projectId/inventoryItems/:id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/projects/:projectId/inventoryItems/:id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/projects/:projectId/inventoryItems/:id',
  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}}/userprofiles/:profileId/projects/:projectId/inventoryItems/:id'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/projects/:projectId/inventoryItems/:id');

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}}/userprofiles/:profileId/projects/:projectId/inventoryItems/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/projects/:projectId/inventoryItems/:id';
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}}/userprofiles/:profileId/projects/:projectId/inventoryItems/:id"]
                                                       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}}/userprofiles/:profileId/projects/:projectId/inventoryItems/:id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/projects/:projectId/inventoryItems/:id",
  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}}/userprofiles/:profileId/projects/:projectId/inventoryItems/:id');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/projects/:projectId/inventoryItems/:id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/projects/:projectId/inventoryItems/:id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/projects/:projectId/inventoryItems/:id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/projects/:projectId/inventoryItems/:id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/projects/:projectId/inventoryItems/:id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/projects/:projectId/inventoryItems/:id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/projects/:projectId/inventoryItems/:id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/projects/:projectId/inventoryItems/:id")

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/userprofiles/:profileId/projects/:projectId/inventoryItems/:id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/projects/:projectId/inventoryItems/:id";

    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}}/userprofiles/:profileId/projects/:projectId/inventoryItems/:id
http GET {{baseUrl}}/userprofiles/:profileId/projects/:projectId/inventoryItems/:id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/projects/:projectId/inventoryItems/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/projects/:projectId/inventoryItems/:id")! 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 dfareporting.inventoryItems.list
{{baseUrl}}/userprofiles/:profileId/projects/:projectId/inventoryItems
QUERY PARAMS

profileId
projectId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/projects/:projectId/inventoryItems");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/projects/:projectId/inventoryItems")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/projects/:projectId/inventoryItems"

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}}/userprofiles/:profileId/projects/:projectId/inventoryItems"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/projects/:projectId/inventoryItems");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/projects/:projectId/inventoryItems"

	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/userprofiles/:profileId/projects/:projectId/inventoryItems HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/projects/:projectId/inventoryItems")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/projects/:projectId/inventoryItems"))
    .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}}/userprofiles/:profileId/projects/:projectId/inventoryItems")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/projects/:projectId/inventoryItems")
  .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}}/userprofiles/:profileId/projects/:projectId/inventoryItems');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/projects/:projectId/inventoryItems'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/projects/:projectId/inventoryItems';
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}}/userprofiles/:profileId/projects/:projectId/inventoryItems',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/projects/:projectId/inventoryItems")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/projects/:projectId/inventoryItems',
  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}}/userprofiles/:profileId/projects/:projectId/inventoryItems'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/projects/:projectId/inventoryItems');

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}}/userprofiles/:profileId/projects/:projectId/inventoryItems'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/projects/:projectId/inventoryItems';
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}}/userprofiles/:profileId/projects/:projectId/inventoryItems"]
                                                       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}}/userprofiles/:profileId/projects/:projectId/inventoryItems" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/projects/:projectId/inventoryItems",
  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}}/userprofiles/:profileId/projects/:projectId/inventoryItems');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/projects/:projectId/inventoryItems');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/projects/:projectId/inventoryItems');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/projects/:projectId/inventoryItems' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/projects/:projectId/inventoryItems' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/projects/:projectId/inventoryItems")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/projects/:projectId/inventoryItems"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/projects/:projectId/inventoryItems"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/projects/:projectId/inventoryItems")

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/userprofiles/:profileId/projects/:projectId/inventoryItems') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/projects/:projectId/inventoryItems";

    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}}/userprofiles/:profileId/projects/:projectId/inventoryItems
http GET {{baseUrl}}/userprofiles/:profileId/projects/:projectId/inventoryItems
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/projects/:projectId/inventoryItems
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/projects/:projectId/inventoryItems")! 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 dfareporting.languages.list
{{baseUrl}}/userprofiles/:profileId/languages
QUERY PARAMS

profileId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/languages");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/languages")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/languages"

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}}/userprofiles/:profileId/languages"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/languages");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/languages"

	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/userprofiles/:profileId/languages HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/languages")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/languages"))
    .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}}/userprofiles/:profileId/languages")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/languages")
  .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}}/userprofiles/:profileId/languages');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/languages'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/languages';
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}}/userprofiles/:profileId/languages',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/languages")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/languages',
  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}}/userprofiles/:profileId/languages'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/languages');

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}}/userprofiles/:profileId/languages'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/languages';
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}}/userprofiles/:profileId/languages"]
                                                       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}}/userprofiles/:profileId/languages" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/languages",
  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}}/userprofiles/:profileId/languages');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/languages');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/languages');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/languages' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/languages' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/languages")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/languages"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/languages"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/languages")

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/userprofiles/:profileId/languages') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/languages";

    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}}/userprofiles/:profileId/languages
http GET {{baseUrl}}/userprofiles/:profileId/languages
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/languages
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/languages")! 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 dfareporting.metros.list
{{baseUrl}}/userprofiles/:profileId/metros
QUERY PARAMS

profileId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/metros");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/metros")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/metros"

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}}/userprofiles/:profileId/metros"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/metros");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/metros"

	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/userprofiles/:profileId/metros HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/metros")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/metros"))
    .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}}/userprofiles/:profileId/metros")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/metros")
  .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}}/userprofiles/:profileId/metros');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/metros'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/metros';
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}}/userprofiles/:profileId/metros',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/metros")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/metros',
  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}}/userprofiles/:profileId/metros'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/metros');

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}}/userprofiles/:profileId/metros'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/metros';
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}}/userprofiles/:profileId/metros"]
                                                       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}}/userprofiles/:profileId/metros" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/metros",
  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}}/userprofiles/:profileId/metros');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/metros');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/metros');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/metros' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/metros' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/metros")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/metros"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/metros"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/metros")

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/userprofiles/:profileId/metros') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/metros";

    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}}/userprofiles/:profileId/metros
http GET {{baseUrl}}/userprofiles/:profileId/metros
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/metros
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/metros")! 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 dfareporting.mobileApps.get
{{baseUrl}}/userprofiles/:profileId/mobileApps/:id
QUERY PARAMS

profileId
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/mobileApps/:id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/mobileApps/:id")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/mobileApps/:id"

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}}/userprofiles/:profileId/mobileApps/:id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/mobileApps/:id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/mobileApps/:id"

	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/userprofiles/:profileId/mobileApps/:id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/mobileApps/:id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/mobileApps/:id"))
    .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}}/userprofiles/:profileId/mobileApps/:id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/mobileApps/:id")
  .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}}/userprofiles/:profileId/mobileApps/:id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/mobileApps/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/mobileApps/:id';
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}}/userprofiles/:profileId/mobileApps/:id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/mobileApps/:id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/mobileApps/:id',
  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}}/userprofiles/:profileId/mobileApps/:id'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/mobileApps/:id');

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}}/userprofiles/:profileId/mobileApps/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/mobileApps/:id';
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}}/userprofiles/:profileId/mobileApps/:id"]
                                                       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}}/userprofiles/:profileId/mobileApps/:id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/mobileApps/:id",
  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}}/userprofiles/:profileId/mobileApps/:id');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/mobileApps/:id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/mobileApps/:id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/mobileApps/:id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/mobileApps/:id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/mobileApps/:id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/mobileApps/:id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/mobileApps/:id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/mobileApps/:id")

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/userprofiles/:profileId/mobileApps/:id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/mobileApps/:id";

    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}}/userprofiles/:profileId/mobileApps/:id
http GET {{baseUrl}}/userprofiles/:profileId/mobileApps/:id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/mobileApps/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/mobileApps/:id")! 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 dfareporting.mobileApps.list
{{baseUrl}}/userprofiles/:profileId/mobileApps
QUERY PARAMS

profileId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/mobileApps");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/mobileApps")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/mobileApps"

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}}/userprofiles/:profileId/mobileApps"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/mobileApps");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/mobileApps"

	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/userprofiles/:profileId/mobileApps HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/mobileApps")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/mobileApps"))
    .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}}/userprofiles/:profileId/mobileApps")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/mobileApps")
  .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}}/userprofiles/:profileId/mobileApps');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/mobileApps'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/mobileApps';
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}}/userprofiles/:profileId/mobileApps',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/mobileApps")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/mobileApps',
  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}}/userprofiles/:profileId/mobileApps'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/mobileApps');

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}}/userprofiles/:profileId/mobileApps'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/mobileApps';
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}}/userprofiles/:profileId/mobileApps"]
                                                       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}}/userprofiles/:profileId/mobileApps" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/mobileApps",
  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}}/userprofiles/:profileId/mobileApps');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/mobileApps');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/mobileApps');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/mobileApps' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/mobileApps' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/mobileApps")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/mobileApps"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/mobileApps"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/mobileApps")

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/userprofiles/:profileId/mobileApps') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/mobileApps";

    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}}/userprofiles/:profileId/mobileApps
http GET {{baseUrl}}/userprofiles/:profileId/mobileApps
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/mobileApps
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/mobileApps")! 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 dfareporting.mobileCarriers.get
{{baseUrl}}/userprofiles/:profileId/mobileCarriers/:id
QUERY PARAMS

profileId
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/mobileCarriers/:id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/mobileCarriers/:id")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/mobileCarriers/:id"

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}}/userprofiles/:profileId/mobileCarriers/:id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/mobileCarriers/:id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/mobileCarriers/:id"

	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/userprofiles/:profileId/mobileCarriers/:id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/mobileCarriers/:id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/mobileCarriers/:id"))
    .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}}/userprofiles/:profileId/mobileCarriers/:id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/mobileCarriers/:id")
  .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}}/userprofiles/:profileId/mobileCarriers/:id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/mobileCarriers/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/mobileCarriers/:id';
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}}/userprofiles/:profileId/mobileCarriers/:id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/mobileCarriers/:id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/mobileCarriers/:id',
  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}}/userprofiles/:profileId/mobileCarriers/:id'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/mobileCarriers/:id');

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}}/userprofiles/:profileId/mobileCarriers/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/mobileCarriers/:id';
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}}/userprofiles/:profileId/mobileCarriers/:id"]
                                                       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}}/userprofiles/:profileId/mobileCarriers/:id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/mobileCarriers/:id",
  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}}/userprofiles/:profileId/mobileCarriers/:id');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/mobileCarriers/:id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/mobileCarriers/:id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/mobileCarriers/:id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/mobileCarriers/:id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/mobileCarriers/:id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/mobileCarriers/:id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/mobileCarriers/:id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/mobileCarriers/:id")

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/userprofiles/:profileId/mobileCarriers/:id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/mobileCarriers/:id";

    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}}/userprofiles/:profileId/mobileCarriers/:id
http GET {{baseUrl}}/userprofiles/:profileId/mobileCarriers/:id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/mobileCarriers/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/mobileCarriers/:id")! 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 dfareporting.mobileCarriers.list
{{baseUrl}}/userprofiles/:profileId/mobileCarriers
QUERY PARAMS

profileId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/mobileCarriers");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/mobileCarriers")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/mobileCarriers"

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}}/userprofiles/:profileId/mobileCarriers"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/mobileCarriers");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/mobileCarriers"

	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/userprofiles/:profileId/mobileCarriers HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/mobileCarriers")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/mobileCarriers"))
    .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}}/userprofiles/:profileId/mobileCarriers")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/mobileCarriers")
  .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}}/userprofiles/:profileId/mobileCarriers');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/mobileCarriers'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/mobileCarriers';
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}}/userprofiles/:profileId/mobileCarriers',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/mobileCarriers")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/mobileCarriers',
  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}}/userprofiles/:profileId/mobileCarriers'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/mobileCarriers');

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}}/userprofiles/:profileId/mobileCarriers'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/mobileCarriers';
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}}/userprofiles/:profileId/mobileCarriers"]
                                                       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}}/userprofiles/:profileId/mobileCarriers" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/mobileCarriers",
  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}}/userprofiles/:profileId/mobileCarriers');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/mobileCarriers');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/mobileCarriers');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/mobileCarriers' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/mobileCarriers' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/mobileCarriers")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/mobileCarriers"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/mobileCarriers"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/mobileCarriers")

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/userprofiles/:profileId/mobileCarriers') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/mobileCarriers";

    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}}/userprofiles/:profileId/mobileCarriers
http GET {{baseUrl}}/userprofiles/:profileId/mobileCarriers
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/mobileCarriers
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/mobileCarriers")! 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 dfareporting.operatingSystems.get
{{baseUrl}}/userprofiles/:profileId/operatingSystems/:dartId
QUERY PARAMS

profileId
dartId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/operatingSystems/:dartId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/operatingSystems/:dartId")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/operatingSystems/:dartId"

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}}/userprofiles/:profileId/operatingSystems/:dartId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/operatingSystems/:dartId");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/operatingSystems/:dartId"

	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/userprofiles/:profileId/operatingSystems/:dartId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/operatingSystems/:dartId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/operatingSystems/:dartId"))
    .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}}/userprofiles/:profileId/operatingSystems/:dartId")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/operatingSystems/:dartId")
  .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}}/userprofiles/:profileId/operatingSystems/:dartId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/operatingSystems/:dartId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/operatingSystems/:dartId';
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}}/userprofiles/:profileId/operatingSystems/:dartId',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/operatingSystems/:dartId")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/operatingSystems/:dartId',
  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}}/userprofiles/:profileId/operatingSystems/:dartId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/operatingSystems/:dartId');

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}}/userprofiles/:profileId/operatingSystems/:dartId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/operatingSystems/:dartId';
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}}/userprofiles/:profileId/operatingSystems/:dartId"]
                                                       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}}/userprofiles/:profileId/operatingSystems/:dartId" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/operatingSystems/:dartId",
  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}}/userprofiles/:profileId/operatingSystems/:dartId');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/operatingSystems/:dartId');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/operatingSystems/:dartId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/operatingSystems/:dartId' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/operatingSystems/:dartId' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/operatingSystems/:dartId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/operatingSystems/:dartId"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/operatingSystems/:dartId"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/operatingSystems/:dartId")

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/userprofiles/:profileId/operatingSystems/:dartId') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/operatingSystems/:dartId";

    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}}/userprofiles/:profileId/operatingSystems/:dartId
http GET {{baseUrl}}/userprofiles/:profileId/operatingSystems/:dartId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/operatingSystems/:dartId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/operatingSystems/:dartId")! 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 dfareporting.operatingSystems.list
{{baseUrl}}/userprofiles/:profileId/operatingSystems
QUERY PARAMS

profileId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/operatingSystems");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/operatingSystems")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/operatingSystems"

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}}/userprofiles/:profileId/operatingSystems"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/operatingSystems");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/operatingSystems"

	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/userprofiles/:profileId/operatingSystems HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/operatingSystems")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/operatingSystems"))
    .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}}/userprofiles/:profileId/operatingSystems")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/operatingSystems")
  .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}}/userprofiles/:profileId/operatingSystems');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/operatingSystems'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/operatingSystems';
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}}/userprofiles/:profileId/operatingSystems',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/operatingSystems")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/operatingSystems',
  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}}/userprofiles/:profileId/operatingSystems'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/operatingSystems');

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}}/userprofiles/:profileId/operatingSystems'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/operatingSystems';
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}}/userprofiles/:profileId/operatingSystems"]
                                                       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}}/userprofiles/:profileId/operatingSystems" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/operatingSystems",
  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}}/userprofiles/:profileId/operatingSystems');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/operatingSystems');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/operatingSystems');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/operatingSystems' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/operatingSystems' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/operatingSystems")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/operatingSystems"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/operatingSystems"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/operatingSystems")

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/userprofiles/:profileId/operatingSystems') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/operatingSystems";

    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}}/userprofiles/:profileId/operatingSystems
http GET {{baseUrl}}/userprofiles/:profileId/operatingSystems
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/operatingSystems
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/operatingSystems")! 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 dfareporting.operatingSystemVersions.get
{{baseUrl}}/userprofiles/:profileId/operatingSystemVersions/:id
QUERY PARAMS

profileId
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/operatingSystemVersions/:id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/operatingSystemVersions/:id")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/operatingSystemVersions/:id"

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}}/userprofiles/:profileId/operatingSystemVersions/:id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/operatingSystemVersions/:id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/operatingSystemVersions/:id"

	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/userprofiles/:profileId/operatingSystemVersions/:id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/operatingSystemVersions/:id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/operatingSystemVersions/:id"))
    .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}}/userprofiles/:profileId/operatingSystemVersions/:id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/operatingSystemVersions/:id")
  .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}}/userprofiles/:profileId/operatingSystemVersions/:id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/operatingSystemVersions/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/operatingSystemVersions/:id';
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}}/userprofiles/:profileId/operatingSystemVersions/:id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/operatingSystemVersions/:id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/operatingSystemVersions/:id',
  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}}/userprofiles/:profileId/operatingSystemVersions/:id'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/operatingSystemVersions/:id');

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}}/userprofiles/:profileId/operatingSystemVersions/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/operatingSystemVersions/:id';
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}}/userprofiles/:profileId/operatingSystemVersions/:id"]
                                                       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}}/userprofiles/:profileId/operatingSystemVersions/:id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/operatingSystemVersions/:id",
  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}}/userprofiles/:profileId/operatingSystemVersions/:id');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/operatingSystemVersions/:id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/operatingSystemVersions/:id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/operatingSystemVersions/:id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/operatingSystemVersions/:id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/operatingSystemVersions/:id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/operatingSystemVersions/:id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/operatingSystemVersions/:id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/operatingSystemVersions/:id")

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/userprofiles/:profileId/operatingSystemVersions/:id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/operatingSystemVersions/:id";

    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}}/userprofiles/:profileId/operatingSystemVersions/:id
http GET {{baseUrl}}/userprofiles/:profileId/operatingSystemVersions/:id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/operatingSystemVersions/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/operatingSystemVersions/:id")! 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 dfareporting.operatingSystemVersions.list
{{baseUrl}}/userprofiles/:profileId/operatingSystemVersions
QUERY PARAMS

profileId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/operatingSystemVersions");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/operatingSystemVersions")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/operatingSystemVersions"

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}}/userprofiles/:profileId/operatingSystemVersions"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/operatingSystemVersions");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/operatingSystemVersions"

	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/userprofiles/:profileId/operatingSystemVersions HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/operatingSystemVersions")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/operatingSystemVersions"))
    .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}}/userprofiles/:profileId/operatingSystemVersions")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/operatingSystemVersions")
  .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}}/userprofiles/:profileId/operatingSystemVersions');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/operatingSystemVersions'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/operatingSystemVersions';
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}}/userprofiles/:profileId/operatingSystemVersions',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/operatingSystemVersions")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/operatingSystemVersions',
  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}}/userprofiles/:profileId/operatingSystemVersions'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/operatingSystemVersions');

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}}/userprofiles/:profileId/operatingSystemVersions'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/operatingSystemVersions';
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}}/userprofiles/:profileId/operatingSystemVersions"]
                                                       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}}/userprofiles/:profileId/operatingSystemVersions" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/operatingSystemVersions",
  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}}/userprofiles/:profileId/operatingSystemVersions');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/operatingSystemVersions');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/operatingSystemVersions');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/operatingSystemVersions' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/operatingSystemVersions' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/operatingSystemVersions")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/operatingSystemVersions"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/operatingSystemVersions"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/operatingSystemVersions")

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/userprofiles/:profileId/operatingSystemVersions') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/operatingSystemVersions";

    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}}/userprofiles/:profileId/operatingSystemVersions
http GET {{baseUrl}}/userprofiles/:profileId/operatingSystemVersions
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/operatingSystemVersions
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/operatingSystemVersions")! 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 dfareporting.orderDocuments.get
{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orderDocuments/:id
QUERY PARAMS

profileId
projectId
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orderDocuments/:id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orderDocuments/:id")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orderDocuments/:id"

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}}/userprofiles/:profileId/projects/:projectId/orderDocuments/:id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orderDocuments/:id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orderDocuments/:id"

	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/userprofiles/:profileId/projects/:projectId/orderDocuments/:id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orderDocuments/:id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orderDocuments/:id"))
    .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}}/userprofiles/:profileId/projects/:projectId/orderDocuments/:id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orderDocuments/:id")
  .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}}/userprofiles/:profileId/projects/:projectId/orderDocuments/:id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orderDocuments/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orderDocuments/:id';
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}}/userprofiles/:profileId/projects/:projectId/orderDocuments/:id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orderDocuments/:id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/projects/:projectId/orderDocuments/:id',
  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}}/userprofiles/:profileId/projects/:projectId/orderDocuments/:id'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orderDocuments/:id');

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}}/userprofiles/:profileId/projects/:projectId/orderDocuments/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orderDocuments/:id';
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}}/userprofiles/:profileId/projects/:projectId/orderDocuments/:id"]
                                                       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}}/userprofiles/:profileId/projects/:projectId/orderDocuments/:id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orderDocuments/:id",
  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}}/userprofiles/:profileId/projects/:projectId/orderDocuments/:id');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orderDocuments/:id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orderDocuments/:id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orderDocuments/:id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orderDocuments/:id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/projects/:projectId/orderDocuments/:id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orderDocuments/:id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orderDocuments/:id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orderDocuments/:id")

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/userprofiles/:profileId/projects/:projectId/orderDocuments/:id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orderDocuments/:id";

    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}}/userprofiles/:profileId/projects/:projectId/orderDocuments/:id
http GET {{baseUrl}}/userprofiles/:profileId/projects/:projectId/orderDocuments/:id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/projects/:projectId/orderDocuments/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orderDocuments/:id")! 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 dfareporting.orderDocuments.list
{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orderDocuments
QUERY PARAMS

profileId
projectId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orderDocuments");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orderDocuments")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orderDocuments"

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}}/userprofiles/:profileId/projects/:projectId/orderDocuments"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orderDocuments");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orderDocuments"

	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/userprofiles/:profileId/projects/:projectId/orderDocuments HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orderDocuments")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orderDocuments"))
    .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}}/userprofiles/:profileId/projects/:projectId/orderDocuments")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orderDocuments")
  .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}}/userprofiles/:profileId/projects/:projectId/orderDocuments');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orderDocuments'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orderDocuments';
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}}/userprofiles/:profileId/projects/:projectId/orderDocuments',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orderDocuments")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/projects/:projectId/orderDocuments',
  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}}/userprofiles/:profileId/projects/:projectId/orderDocuments'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orderDocuments');

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}}/userprofiles/:profileId/projects/:projectId/orderDocuments'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orderDocuments';
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}}/userprofiles/:profileId/projects/:projectId/orderDocuments"]
                                                       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}}/userprofiles/:profileId/projects/:projectId/orderDocuments" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orderDocuments",
  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}}/userprofiles/:profileId/projects/:projectId/orderDocuments');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orderDocuments');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orderDocuments');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orderDocuments' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orderDocuments' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/projects/:projectId/orderDocuments")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orderDocuments"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orderDocuments"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orderDocuments")

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/userprofiles/:profileId/projects/:projectId/orderDocuments') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orderDocuments";

    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}}/userprofiles/:profileId/projects/:projectId/orderDocuments
http GET {{baseUrl}}/userprofiles/:profileId/projects/:projectId/orderDocuments
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/projects/:projectId/orderDocuments
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orderDocuments")! 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 dfareporting.orders.get
{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orders/:id
QUERY PARAMS

profileId
projectId
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orders/:id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orders/:id")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orders/:id"

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}}/userprofiles/:profileId/projects/:projectId/orders/:id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orders/:id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orders/:id"

	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/userprofiles/:profileId/projects/:projectId/orders/:id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orders/:id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orders/:id"))
    .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}}/userprofiles/:profileId/projects/:projectId/orders/:id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orders/:id")
  .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}}/userprofiles/:profileId/projects/:projectId/orders/:id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orders/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orders/:id';
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}}/userprofiles/:profileId/projects/:projectId/orders/:id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orders/:id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/projects/:projectId/orders/:id',
  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}}/userprofiles/:profileId/projects/:projectId/orders/:id'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orders/:id');

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}}/userprofiles/:profileId/projects/:projectId/orders/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orders/:id';
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}}/userprofiles/:profileId/projects/:projectId/orders/:id"]
                                                       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}}/userprofiles/:profileId/projects/:projectId/orders/:id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orders/:id",
  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}}/userprofiles/:profileId/projects/:projectId/orders/:id');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orders/:id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orders/:id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orders/:id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orders/:id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/projects/:projectId/orders/:id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orders/:id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orders/:id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orders/:id")

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/userprofiles/:profileId/projects/:projectId/orders/:id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orders/:id";

    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}}/userprofiles/:profileId/projects/:projectId/orders/:id
http GET {{baseUrl}}/userprofiles/:profileId/projects/:projectId/orders/:id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/projects/:projectId/orders/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orders/:id")! 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 dfareporting.orders.list
{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orders
QUERY PARAMS

profileId
projectId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orders");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orders")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orders"

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}}/userprofiles/:profileId/projects/:projectId/orders"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orders");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orders"

	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/userprofiles/:profileId/projects/:projectId/orders HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orders")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orders"))
    .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}}/userprofiles/:profileId/projects/:projectId/orders")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orders")
  .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}}/userprofiles/:profileId/projects/:projectId/orders');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orders'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orders';
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}}/userprofiles/:profileId/projects/:projectId/orders',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orders")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/projects/:projectId/orders',
  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}}/userprofiles/:profileId/projects/:projectId/orders'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orders');

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}}/userprofiles/:profileId/projects/:projectId/orders'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orders';
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}}/userprofiles/:profileId/projects/:projectId/orders"]
                                                       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}}/userprofiles/:profileId/projects/:projectId/orders" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orders",
  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}}/userprofiles/:profileId/projects/:projectId/orders');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orders');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orders');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orders' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orders' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/projects/:projectId/orders")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orders"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orders"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orders")

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/userprofiles/:profileId/projects/:projectId/orders') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orders";

    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}}/userprofiles/:profileId/projects/:projectId/orders
http GET {{baseUrl}}/userprofiles/:profileId/projects/:projectId/orders
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/projects/:projectId/orders
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/projects/:projectId/orders")! 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 dfareporting.placementGroups.get
{{baseUrl}}/userprofiles/:profileId/placementGroups/:id
QUERY PARAMS

profileId
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/placementGroups/:id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/placementGroups/:id")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/placementGroups/:id"

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}}/userprofiles/:profileId/placementGroups/:id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/placementGroups/:id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/placementGroups/:id"

	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/userprofiles/:profileId/placementGroups/:id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/placementGroups/:id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/placementGroups/:id"))
    .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}}/userprofiles/:profileId/placementGroups/:id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/placementGroups/:id")
  .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}}/userprofiles/:profileId/placementGroups/:id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/placementGroups/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/placementGroups/:id';
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}}/userprofiles/:profileId/placementGroups/:id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/placementGroups/:id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/placementGroups/:id',
  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}}/userprofiles/:profileId/placementGroups/:id'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/placementGroups/:id');

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}}/userprofiles/:profileId/placementGroups/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/placementGroups/:id';
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}}/userprofiles/:profileId/placementGroups/:id"]
                                                       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}}/userprofiles/:profileId/placementGroups/:id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/placementGroups/:id",
  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}}/userprofiles/:profileId/placementGroups/:id');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/placementGroups/:id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/placementGroups/:id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/placementGroups/:id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/placementGroups/:id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/placementGroups/:id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/placementGroups/:id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/placementGroups/:id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/placementGroups/:id")

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/userprofiles/:profileId/placementGroups/:id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/placementGroups/:id";

    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}}/userprofiles/:profileId/placementGroups/:id
http GET {{baseUrl}}/userprofiles/:profileId/placementGroups/:id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/placementGroups/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/placementGroups/:id")! 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 dfareporting.placementGroups.insert
{{baseUrl}}/userprofiles/:profileId/placementGroups
QUERY PARAMS

profileId
BODY json

{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "archived": false,
  "campaignId": "",
  "campaignIdDimensionValue": {},
  "childPlacementIds": [],
  "comment": "",
  "contentCategoryId": "",
  "createInfo": {
    "time": ""
  },
  "directorySiteId": "",
  "directorySiteIdDimensionValue": {},
  "externalId": "",
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "lastModifiedInfo": {},
  "name": "",
  "placementGroupType": "",
  "placementStrategyId": "",
  "pricingSchedule": {
    "capCostOption": "",
    "endDate": "",
    "flighted": false,
    "floodlightActivityId": "",
    "pricingPeriods": [
      {
        "endDate": "",
        "pricingComment": "",
        "rateOrCostNanos": "",
        "startDate": "",
        "units": ""
      }
    ],
    "pricingType": "",
    "startDate": "",
    "testingStartDate": ""
  },
  "primaryPlacementId": "",
  "primaryPlacementIdDimensionValue": {},
  "siteId": "",
  "siteIdDimensionValue": {},
  "subaccountId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/placementGroups");

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  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"childPlacementIds\": [],\n  \"comment\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementGroupType\": \"\",\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primaryPlacementId\": \"\",\n  \"primaryPlacementIdDimensionValue\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"subaccountId\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/userprofiles/:profileId/placementGroups" {:content-type :json
                                                                                    :form-params {:accountId ""
                                                                                                  :advertiserId ""
                                                                                                  :advertiserIdDimensionValue {:dimensionName ""
                                                                                                                               :etag ""
                                                                                                                               :id ""
                                                                                                                               :kind ""
                                                                                                                               :matchType ""
                                                                                                                               :value ""}
                                                                                                  :archived false
                                                                                                  :campaignId ""
                                                                                                  :campaignIdDimensionValue {}
                                                                                                  :childPlacementIds []
                                                                                                  :comment ""
                                                                                                  :contentCategoryId ""
                                                                                                  :createInfo {:time ""}
                                                                                                  :directorySiteId ""
                                                                                                  :directorySiteIdDimensionValue {}
                                                                                                  :externalId ""
                                                                                                  :id ""
                                                                                                  :idDimensionValue {}
                                                                                                  :kind ""
                                                                                                  :lastModifiedInfo {}
                                                                                                  :name ""
                                                                                                  :placementGroupType ""
                                                                                                  :placementStrategyId ""
                                                                                                  :pricingSchedule {:capCostOption ""
                                                                                                                    :endDate ""
                                                                                                                    :flighted false
                                                                                                                    :floodlightActivityId ""
                                                                                                                    :pricingPeriods [{:endDate ""
                                                                                                                                      :pricingComment ""
                                                                                                                                      :rateOrCostNanos ""
                                                                                                                                      :startDate ""
                                                                                                                                      :units ""}]
                                                                                                                    :pricingType ""
                                                                                                                    :startDate ""
                                                                                                                    :testingStartDate ""}
                                                                                                  :primaryPlacementId ""
                                                                                                  :primaryPlacementIdDimensionValue {}
                                                                                                  :siteId ""
                                                                                                  :siteIdDimensionValue {}
                                                                                                  :subaccountId ""}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/placementGroups"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"childPlacementIds\": [],\n  \"comment\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementGroupType\": \"\",\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primaryPlacementId\": \"\",\n  \"primaryPlacementIdDimensionValue\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"subaccountId\": \"\"\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}}/userprofiles/:profileId/placementGroups"),
    Content = new StringContent("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"childPlacementIds\": [],\n  \"comment\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementGroupType\": \"\",\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primaryPlacementId\": \"\",\n  \"primaryPlacementIdDimensionValue\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"subaccountId\": \"\"\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}}/userprofiles/:profileId/placementGroups");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"childPlacementIds\": [],\n  \"comment\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementGroupType\": \"\",\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primaryPlacementId\": \"\",\n  \"primaryPlacementIdDimensionValue\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"subaccountId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/placementGroups"

	payload := strings.NewReader("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"childPlacementIds\": [],\n  \"comment\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementGroupType\": \"\",\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primaryPlacementId\": \"\",\n  \"primaryPlacementIdDimensionValue\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"subaccountId\": \"\"\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/userprofiles/:profileId/placementGroups HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 1119

{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "archived": false,
  "campaignId": "",
  "campaignIdDimensionValue": {},
  "childPlacementIds": [],
  "comment": "",
  "contentCategoryId": "",
  "createInfo": {
    "time": ""
  },
  "directorySiteId": "",
  "directorySiteIdDimensionValue": {},
  "externalId": "",
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "lastModifiedInfo": {},
  "name": "",
  "placementGroupType": "",
  "placementStrategyId": "",
  "pricingSchedule": {
    "capCostOption": "",
    "endDate": "",
    "flighted": false,
    "floodlightActivityId": "",
    "pricingPeriods": [
      {
        "endDate": "",
        "pricingComment": "",
        "rateOrCostNanos": "",
        "startDate": "",
        "units": ""
      }
    ],
    "pricingType": "",
    "startDate": "",
    "testingStartDate": ""
  },
  "primaryPlacementId": "",
  "primaryPlacementIdDimensionValue": {},
  "siteId": "",
  "siteIdDimensionValue": {},
  "subaccountId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/userprofiles/:profileId/placementGroups")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"childPlacementIds\": [],\n  \"comment\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementGroupType\": \"\",\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primaryPlacementId\": \"\",\n  \"primaryPlacementIdDimensionValue\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"subaccountId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/placementGroups"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"childPlacementIds\": [],\n  \"comment\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementGroupType\": \"\",\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primaryPlacementId\": \"\",\n  \"primaryPlacementIdDimensionValue\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"subaccountId\": \"\"\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  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"childPlacementIds\": [],\n  \"comment\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementGroupType\": \"\",\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primaryPlacementId\": \"\",\n  \"primaryPlacementIdDimensionValue\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"subaccountId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/placementGroups")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/userprofiles/:profileId/placementGroups")
  .header("content-type", "application/json")
  .body("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"childPlacementIds\": [],\n  \"comment\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementGroupType\": \"\",\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primaryPlacementId\": \"\",\n  \"primaryPlacementIdDimensionValue\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"subaccountId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  accountId: '',
  advertiserId: '',
  advertiserIdDimensionValue: {
    dimensionName: '',
    etag: '',
    id: '',
    kind: '',
    matchType: '',
    value: ''
  },
  archived: false,
  campaignId: '',
  campaignIdDimensionValue: {},
  childPlacementIds: [],
  comment: '',
  contentCategoryId: '',
  createInfo: {
    time: ''
  },
  directorySiteId: '',
  directorySiteIdDimensionValue: {},
  externalId: '',
  id: '',
  idDimensionValue: {},
  kind: '',
  lastModifiedInfo: {},
  name: '',
  placementGroupType: '',
  placementStrategyId: '',
  pricingSchedule: {
    capCostOption: '',
    endDate: '',
    flighted: false,
    floodlightActivityId: '',
    pricingPeriods: [
      {
        endDate: '',
        pricingComment: '',
        rateOrCostNanos: '',
        startDate: '',
        units: ''
      }
    ],
    pricingType: '',
    startDate: '',
    testingStartDate: ''
  },
  primaryPlacementId: '',
  primaryPlacementIdDimensionValue: {},
  siteId: '',
  siteIdDimensionValue: {},
  subaccountId: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/userprofiles/:profileId/placementGroups');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/userprofiles/:profileId/placementGroups',
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    archived: false,
    campaignId: '',
    campaignIdDimensionValue: {},
    childPlacementIds: [],
    comment: '',
    contentCategoryId: '',
    createInfo: {time: ''},
    directorySiteId: '',
    directorySiteIdDimensionValue: {},
    externalId: '',
    id: '',
    idDimensionValue: {},
    kind: '',
    lastModifiedInfo: {},
    name: '',
    placementGroupType: '',
    placementStrategyId: '',
    pricingSchedule: {
      capCostOption: '',
      endDate: '',
      flighted: false,
      floodlightActivityId: '',
      pricingPeriods: [
        {endDate: '', pricingComment: '', rateOrCostNanos: '', startDate: '', units: ''}
      ],
      pricingType: '',
      startDate: '',
      testingStartDate: ''
    },
    primaryPlacementId: '',
    primaryPlacementIdDimensionValue: {},
    siteId: '',
    siteIdDimensionValue: {},
    subaccountId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/placementGroups';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","advertiserId":"","advertiserIdDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"archived":false,"campaignId":"","campaignIdDimensionValue":{},"childPlacementIds":[],"comment":"","contentCategoryId":"","createInfo":{"time":""},"directorySiteId":"","directorySiteIdDimensionValue":{},"externalId":"","id":"","idDimensionValue":{},"kind":"","lastModifiedInfo":{},"name":"","placementGroupType":"","placementStrategyId":"","pricingSchedule":{"capCostOption":"","endDate":"","flighted":false,"floodlightActivityId":"","pricingPeriods":[{"endDate":"","pricingComment":"","rateOrCostNanos":"","startDate":"","units":""}],"pricingType":"","startDate":"","testingStartDate":""},"primaryPlacementId":"","primaryPlacementIdDimensionValue":{},"siteId":"","siteIdDimensionValue":{},"subaccountId":""}'
};

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}}/userprofiles/:profileId/placementGroups',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "accountId": "",\n  "advertiserId": "",\n  "advertiserIdDimensionValue": {\n    "dimensionName": "",\n    "etag": "",\n    "id": "",\n    "kind": "",\n    "matchType": "",\n    "value": ""\n  },\n  "archived": false,\n  "campaignId": "",\n  "campaignIdDimensionValue": {},\n  "childPlacementIds": [],\n  "comment": "",\n  "contentCategoryId": "",\n  "createInfo": {\n    "time": ""\n  },\n  "directorySiteId": "",\n  "directorySiteIdDimensionValue": {},\n  "externalId": "",\n  "id": "",\n  "idDimensionValue": {},\n  "kind": "",\n  "lastModifiedInfo": {},\n  "name": "",\n  "placementGroupType": "",\n  "placementStrategyId": "",\n  "pricingSchedule": {\n    "capCostOption": "",\n    "endDate": "",\n    "flighted": false,\n    "floodlightActivityId": "",\n    "pricingPeriods": [\n      {\n        "endDate": "",\n        "pricingComment": "",\n        "rateOrCostNanos": "",\n        "startDate": "",\n        "units": ""\n      }\n    ],\n    "pricingType": "",\n    "startDate": "",\n    "testingStartDate": ""\n  },\n  "primaryPlacementId": "",\n  "primaryPlacementIdDimensionValue": {},\n  "siteId": "",\n  "siteIdDimensionValue": {},\n  "subaccountId": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"childPlacementIds\": [],\n  \"comment\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementGroupType\": \"\",\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primaryPlacementId\": \"\",\n  \"primaryPlacementIdDimensionValue\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"subaccountId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/placementGroups")
  .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/userprofiles/:profileId/placementGroups',
  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({
  accountId: '',
  advertiserId: '',
  advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
  archived: false,
  campaignId: '',
  campaignIdDimensionValue: {},
  childPlacementIds: [],
  comment: '',
  contentCategoryId: '',
  createInfo: {time: ''},
  directorySiteId: '',
  directorySiteIdDimensionValue: {},
  externalId: '',
  id: '',
  idDimensionValue: {},
  kind: '',
  lastModifiedInfo: {},
  name: '',
  placementGroupType: '',
  placementStrategyId: '',
  pricingSchedule: {
    capCostOption: '',
    endDate: '',
    flighted: false,
    floodlightActivityId: '',
    pricingPeriods: [
      {endDate: '', pricingComment: '', rateOrCostNanos: '', startDate: '', units: ''}
    ],
    pricingType: '',
    startDate: '',
    testingStartDate: ''
  },
  primaryPlacementId: '',
  primaryPlacementIdDimensionValue: {},
  siteId: '',
  siteIdDimensionValue: {},
  subaccountId: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/userprofiles/:profileId/placementGroups',
  headers: {'content-type': 'application/json'},
  body: {
    accountId: '',
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    archived: false,
    campaignId: '',
    campaignIdDimensionValue: {},
    childPlacementIds: [],
    comment: '',
    contentCategoryId: '',
    createInfo: {time: ''},
    directorySiteId: '',
    directorySiteIdDimensionValue: {},
    externalId: '',
    id: '',
    idDimensionValue: {},
    kind: '',
    lastModifiedInfo: {},
    name: '',
    placementGroupType: '',
    placementStrategyId: '',
    pricingSchedule: {
      capCostOption: '',
      endDate: '',
      flighted: false,
      floodlightActivityId: '',
      pricingPeriods: [
        {endDate: '', pricingComment: '', rateOrCostNanos: '', startDate: '', units: ''}
      ],
      pricingType: '',
      startDate: '',
      testingStartDate: ''
    },
    primaryPlacementId: '',
    primaryPlacementIdDimensionValue: {},
    siteId: '',
    siteIdDimensionValue: {},
    subaccountId: ''
  },
  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}}/userprofiles/:profileId/placementGroups');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  accountId: '',
  advertiserId: '',
  advertiserIdDimensionValue: {
    dimensionName: '',
    etag: '',
    id: '',
    kind: '',
    matchType: '',
    value: ''
  },
  archived: false,
  campaignId: '',
  campaignIdDimensionValue: {},
  childPlacementIds: [],
  comment: '',
  contentCategoryId: '',
  createInfo: {
    time: ''
  },
  directorySiteId: '',
  directorySiteIdDimensionValue: {},
  externalId: '',
  id: '',
  idDimensionValue: {},
  kind: '',
  lastModifiedInfo: {},
  name: '',
  placementGroupType: '',
  placementStrategyId: '',
  pricingSchedule: {
    capCostOption: '',
    endDate: '',
    flighted: false,
    floodlightActivityId: '',
    pricingPeriods: [
      {
        endDate: '',
        pricingComment: '',
        rateOrCostNanos: '',
        startDate: '',
        units: ''
      }
    ],
    pricingType: '',
    startDate: '',
    testingStartDate: ''
  },
  primaryPlacementId: '',
  primaryPlacementIdDimensionValue: {},
  siteId: '',
  siteIdDimensionValue: {},
  subaccountId: ''
});

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}}/userprofiles/:profileId/placementGroups',
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    archived: false,
    campaignId: '',
    campaignIdDimensionValue: {},
    childPlacementIds: [],
    comment: '',
    contentCategoryId: '',
    createInfo: {time: ''},
    directorySiteId: '',
    directorySiteIdDimensionValue: {},
    externalId: '',
    id: '',
    idDimensionValue: {},
    kind: '',
    lastModifiedInfo: {},
    name: '',
    placementGroupType: '',
    placementStrategyId: '',
    pricingSchedule: {
      capCostOption: '',
      endDate: '',
      flighted: false,
      floodlightActivityId: '',
      pricingPeriods: [
        {endDate: '', pricingComment: '', rateOrCostNanos: '', startDate: '', units: ''}
      ],
      pricingType: '',
      startDate: '',
      testingStartDate: ''
    },
    primaryPlacementId: '',
    primaryPlacementIdDimensionValue: {},
    siteId: '',
    siteIdDimensionValue: {},
    subaccountId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/placementGroups';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","advertiserId":"","advertiserIdDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"archived":false,"campaignId":"","campaignIdDimensionValue":{},"childPlacementIds":[],"comment":"","contentCategoryId":"","createInfo":{"time":""},"directorySiteId":"","directorySiteIdDimensionValue":{},"externalId":"","id":"","idDimensionValue":{},"kind":"","lastModifiedInfo":{},"name":"","placementGroupType":"","placementStrategyId":"","pricingSchedule":{"capCostOption":"","endDate":"","flighted":false,"floodlightActivityId":"","pricingPeriods":[{"endDate":"","pricingComment":"","rateOrCostNanos":"","startDate":"","units":""}],"pricingType":"","startDate":"","testingStartDate":""},"primaryPlacementId":"","primaryPlacementIdDimensionValue":{},"siteId":"","siteIdDimensionValue":{},"subaccountId":""}'
};

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 = @{ @"accountId": @"",
                              @"advertiserId": @"",
                              @"advertiserIdDimensionValue": @{ @"dimensionName": @"", @"etag": @"", @"id": @"", @"kind": @"", @"matchType": @"", @"value": @"" },
                              @"archived": @NO,
                              @"campaignId": @"",
                              @"campaignIdDimensionValue": @{  },
                              @"childPlacementIds": @[  ],
                              @"comment": @"",
                              @"contentCategoryId": @"",
                              @"createInfo": @{ @"time": @"" },
                              @"directorySiteId": @"",
                              @"directorySiteIdDimensionValue": @{  },
                              @"externalId": @"",
                              @"id": @"",
                              @"idDimensionValue": @{  },
                              @"kind": @"",
                              @"lastModifiedInfo": @{  },
                              @"name": @"",
                              @"placementGroupType": @"",
                              @"placementStrategyId": @"",
                              @"pricingSchedule": @{ @"capCostOption": @"", @"endDate": @"", @"flighted": @NO, @"floodlightActivityId": @"", @"pricingPeriods": @[ @{ @"endDate": @"", @"pricingComment": @"", @"rateOrCostNanos": @"", @"startDate": @"", @"units": @"" } ], @"pricingType": @"", @"startDate": @"", @"testingStartDate": @"" },
                              @"primaryPlacementId": @"",
                              @"primaryPlacementIdDimensionValue": @{  },
                              @"siteId": @"",
                              @"siteIdDimensionValue": @{  },
                              @"subaccountId": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/userprofiles/:profileId/placementGroups"]
                                                       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}}/userprofiles/:profileId/placementGroups" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"childPlacementIds\": [],\n  \"comment\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementGroupType\": \"\",\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primaryPlacementId\": \"\",\n  \"primaryPlacementIdDimensionValue\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"subaccountId\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/placementGroups",
  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([
    'accountId' => '',
    'advertiserId' => '',
    'advertiserIdDimensionValue' => [
        'dimensionName' => '',
        'etag' => '',
        'id' => '',
        'kind' => '',
        'matchType' => '',
        'value' => ''
    ],
    'archived' => null,
    'campaignId' => '',
    'campaignIdDimensionValue' => [
        
    ],
    'childPlacementIds' => [
        
    ],
    'comment' => '',
    'contentCategoryId' => '',
    'createInfo' => [
        'time' => ''
    ],
    'directorySiteId' => '',
    'directorySiteIdDimensionValue' => [
        
    ],
    'externalId' => '',
    'id' => '',
    'idDimensionValue' => [
        
    ],
    'kind' => '',
    'lastModifiedInfo' => [
        
    ],
    'name' => '',
    'placementGroupType' => '',
    'placementStrategyId' => '',
    'pricingSchedule' => [
        'capCostOption' => '',
        'endDate' => '',
        'flighted' => null,
        'floodlightActivityId' => '',
        'pricingPeriods' => [
                [
                                'endDate' => '',
                                'pricingComment' => '',
                                'rateOrCostNanos' => '',
                                'startDate' => '',
                                'units' => ''
                ]
        ],
        'pricingType' => '',
        'startDate' => '',
        'testingStartDate' => ''
    ],
    'primaryPlacementId' => '',
    'primaryPlacementIdDimensionValue' => [
        
    ],
    'siteId' => '',
    'siteIdDimensionValue' => [
        
    ],
    'subaccountId' => ''
  ]),
  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}}/userprofiles/:profileId/placementGroups', [
  'body' => '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "archived": false,
  "campaignId": "",
  "campaignIdDimensionValue": {},
  "childPlacementIds": [],
  "comment": "",
  "contentCategoryId": "",
  "createInfo": {
    "time": ""
  },
  "directorySiteId": "",
  "directorySiteIdDimensionValue": {},
  "externalId": "",
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "lastModifiedInfo": {},
  "name": "",
  "placementGroupType": "",
  "placementStrategyId": "",
  "pricingSchedule": {
    "capCostOption": "",
    "endDate": "",
    "flighted": false,
    "floodlightActivityId": "",
    "pricingPeriods": [
      {
        "endDate": "",
        "pricingComment": "",
        "rateOrCostNanos": "",
        "startDate": "",
        "units": ""
      }
    ],
    "pricingType": "",
    "startDate": "",
    "testingStartDate": ""
  },
  "primaryPlacementId": "",
  "primaryPlacementIdDimensionValue": {},
  "siteId": "",
  "siteIdDimensionValue": {},
  "subaccountId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/placementGroups');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'accountId' => '',
  'advertiserId' => '',
  'advertiserIdDimensionValue' => [
    'dimensionName' => '',
    'etag' => '',
    'id' => '',
    'kind' => '',
    'matchType' => '',
    'value' => ''
  ],
  'archived' => null,
  'campaignId' => '',
  'campaignIdDimensionValue' => [
    
  ],
  'childPlacementIds' => [
    
  ],
  'comment' => '',
  'contentCategoryId' => '',
  'createInfo' => [
    'time' => ''
  ],
  'directorySiteId' => '',
  'directorySiteIdDimensionValue' => [
    
  ],
  'externalId' => '',
  'id' => '',
  'idDimensionValue' => [
    
  ],
  'kind' => '',
  'lastModifiedInfo' => [
    
  ],
  'name' => '',
  'placementGroupType' => '',
  'placementStrategyId' => '',
  'pricingSchedule' => [
    'capCostOption' => '',
    'endDate' => '',
    'flighted' => null,
    'floodlightActivityId' => '',
    'pricingPeriods' => [
        [
                'endDate' => '',
                'pricingComment' => '',
                'rateOrCostNanos' => '',
                'startDate' => '',
                'units' => ''
        ]
    ],
    'pricingType' => '',
    'startDate' => '',
    'testingStartDate' => ''
  ],
  'primaryPlacementId' => '',
  'primaryPlacementIdDimensionValue' => [
    
  ],
  'siteId' => '',
  'siteIdDimensionValue' => [
    
  ],
  'subaccountId' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'accountId' => '',
  'advertiserId' => '',
  'advertiserIdDimensionValue' => [
    'dimensionName' => '',
    'etag' => '',
    'id' => '',
    'kind' => '',
    'matchType' => '',
    'value' => ''
  ],
  'archived' => null,
  'campaignId' => '',
  'campaignIdDimensionValue' => [
    
  ],
  'childPlacementIds' => [
    
  ],
  'comment' => '',
  'contentCategoryId' => '',
  'createInfo' => [
    'time' => ''
  ],
  'directorySiteId' => '',
  'directorySiteIdDimensionValue' => [
    
  ],
  'externalId' => '',
  'id' => '',
  'idDimensionValue' => [
    
  ],
  'kind' => '',
  'lastModifiedInfo' => [
    
  ],
  'name' => '',
  'placementGroupType' => '',
  'placementStrategyId' => '',
  'pricingSchedule' => [
    'capCostOption' => '',
    'endDate' => '',
    'flighted' => null,
    'floodlightActivityId' => '',
    'pricingPeriods' => [
        [
                'endDate' => '',
                'pricingComment' => '',
                'rateOrCostNanos' => '',
                'startDate' => '',
                'units' => ''
        ]
    ],
    'pricingType' => '',
    'startDate' => '',
    'testingStartDate' => ''
  ],
  'primaryPlacementId' => '',
  'primaryPlacementIdDimensionValue' => [
    
  ],
  'siteId' => '',
  'siteIdDimensionValue' => [
    
  ],
  'subaccountId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/userprofiles/:profileId/placementGroups');
$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}}/userprofiles/:profileId/placementGroups' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "archived": false,
  "campaignId": "",
  "campaignIdDimensionValue": {},
  "childPlacementIds": [],
  "comment": "",
  "contentCategoryId": "",
  "createInfo": {
    "time": ""
  },
  "directorySiteId": "",
  "directorySiteIdDimensionValue": {},
  "externalId": "",
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "lastModifiedInfo": {},
  "name": "",
  "placementGroupType": "",
  "placementStrategyId": "",
  "pricingSchedule": {
    "capCostOption": "",
    "endDate": "",
    "flighted": false,
    "floodlightActivityId": "",
    "pricingPeriods": [
      {
        "endDate": "",
        "pricingComment": "",
        "rateOrCostNanos": "",
        "startDate": "",
        "units": ""
      }
    ],
    "pricingType": "",
    "startDate": "",
    "testingStartDate": ""
  },
  "primaryPlacementId": "",
  "primaryPlacementIdDimensionValue": {},
  "siteId": "",
  "siteIdDimensionValue": {},
  "subaccountId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/placementGroups' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "archived": false,
  "campaignId": "",
  "campaignIdDimensionValue": {},
  "childPlacementIds": [],
  "comment": "",
  "contentCategoryId": "",
  "createInfo": {
    "time": ""
  },
  "directorySiteId": "",
  "directorySiteIdDimensionValue": {},
  "externalId": "",
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "lastModifiedInfo": {},
  "name": "",
  "placementGroupType": "",
  "placementStrategyId": "",
  "pricingSchedule": {
    "capCostOption": "",
    "endDate": "",
    "flighted": false,
    "floodlightActivityId": "",
    "pricingPeriods": [
      {
        "endDate": "",
        "pricingComment": "",
        "rateOrCostNanos": "",
        "startDate": "",
        "units": ""
      }
    ],
    "pricingType": "",
    "startDate": "",
    "testingStartDate": ""
  },
  "primaryPlacementId": "",
  "primaryPlacementIdDimensionValue": {},
  "siteId": "",
  "siteIdDimensionValue": {},
  "subaccountId": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"childPlacementIds\": [],\n  \"comment\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementGroupType\": \"\",\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primaryPlacementId\": \"\",\n  \"primaryPlacementIdDimensionValue\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"subaccountId\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/userprofiles/:profileId/placementGroups", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/placementGroups"

payload = {
    "accountId": "",
    "advertiserId": "",
    "advertiserIdDimensionValue": {
        "dimensionName": "",
        "etag": "",
        "id": "",
        "kind": "",
        "matchType": "",
        "value": ""
    },
    "archived": False,
    "campaignId": "",
    "campaignIdDimensionValue": {},
    "childPlacementIds": [],
    "comment": "",
    "contentCategoryId": "",
    "createInfo": { "time": "" },
    "directorySiteId": "",
    "directorySiteIdDimensionValue": {},
    "externalId": "",
    "id": "",
    "idDimensionValue": {},
    "kind": "",
    "lastModifiedInfo": {},
    "name": "",
    "placementGroupType": "",
    "placementStrategyId": "",
    "pricingSchedule": {
        "capCostOption": "",
        "endDate": "",
        "flighted": False,
        "floodlightActivityId": "",
        "pricingPeriods": [
            {
                "endDate": "",
                "pricingComment": "",
                "rateOrCostNanos": "",
                "startDate": "",
                "units": ""
            }
        ],
        "pricingType": "",
        "startDate": "",
        "testingStartDate": ""
    },
    "primaryPlacementId": "",
    "primaryPlacementIdDimensionValue": {},
    "siteId": "",
    "siteIdDimensionValue": {},
    "subaccountId": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/placementGroups"

payload <- "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"childPlacementIds\": [],\n  \"comment\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementGroupType\": \"\",\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primaryPlacementId\": \"\",\n  \"primaryPlacementIdDimensionValue\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"subaccountId\": \"\"\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}}/userprofiles/:profileId/placementGroups")

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  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"childPlacementIds\": [],\n  \"comment\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementGroupType\": \"\",\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primaryPlacementId\": \"\",\n  \"primaryPlacementIdDimensionValue\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"subaccountId\": \"\"\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/userprofiles/:profileId/placementGroups') do |req|
  req.body = "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"childPlacementIds\": [],\n  \"comment\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementGroupType\": \"\",\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primaryPlacementId\": \"\",\n  \"primaryPlacementIdDimensionValue\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"subaccountId\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/placementGroups";

    let payload = json!({
        "accountId": "",
        "advertiserId": "",
        "advertiserIdDimensionValue": json!({
            "dimensionName": "",
            "etag": "",
            "id": "",
            "kind": "",
            "matchType": "",
            "value": ""
        }),
        "archived": false,
        "campaignId": "",
        "campaignIdDimensionValue": json!({}),
        "childPlacementIds": (),
        "comment": "",
        "contentCategoryId": "",
        "createInfo": json!({"time": ""}),
        "directorySiteId": "",
        "directorySiteIdDimensionValue": json!({}),
        "externalId": "",
        "id": "",
        "idDimensionValue": json!({}),
        "kind": "",
        "lastModifiedInfo": json!({}),
        "name": "",
        "placementGroupType": "",
        "placementStrategyId": "",
        "pricingSchedule": json!({
            "capCostOption": "",
            "endDate": "",
            "flighted": false,
            "floodlightActivityId": "",
            "pricingPeriods": (
                json!({
                    "endDate": "",
                    "pricingComment": "",
                    "rateOrCostNanos": "",
                    "startDate": "",
                    "units": ""
                })
            ),
            "pricingType": "",
            "startDate": "",
            "testingStartDate": ""
        }),
        "primaryPlacementId": "",
        "primaryPlacementIdDimensionValue": json!({}),
        "siteId": "",
        "siteIdDimensionValue": json!({}),
        "subaccountId": ""
    });

    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}}/userprofiles/:profileId/placementGroups \
  --header 'content-type: application/json' \
  --data '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "archived": false,
  "campaignId": "",
  "campaignIdDimensionValue": {},
  "childPlacementIds": [],
  "comment": "",
  "contentCategoryId": "",
  "createInfo": {
    "time": ""
  },
  "directorySiteId": "",
  "directorySiteIdDimensionValue": {},
  "externalId": "",
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "lastModifiedInfo": {},
  "name": "",
  "placementGroupType": "",
  "placementStrategyId": "",
  "pricingSchedule": {
    "capCostOption": "",
    "endDate": "",
    "flighted": false,
    "floodlightActivityId": "",
    "pricingPeriods": [
      {
        "endDate": "",
        "pricingComment": "",
        "rateOrCostNanos": "",
        "startDate": "",
        "units": ""
      }
    ],
    "pricingType": "",
    "startDate": "",
    "testingStartDate": ""
  },
  "primaryPlacementId": "",
  "primaryPlacementIdDimensionValue": {},
  "siteId": "",
  "siteIdDimensionValue": {},
  "subaccountId": ""
}'
echo '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "archived": false,
  "campaignId": "",
  "campaignIdDimensionValue": {},
  "childPlacementIds": [],
  "comment": "",
  "contentCategoryId": "",
  "createInfo": {
    "time": ""
  },
  "directorySiteId": "",
  "directorySiteIdDimensionValue": {},
  "externalId": "",
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "lastModifiedInfo": {},
  "name": "",
  "placementGroupType": "",
  "placementStrategyId": "",
  "pricingSchedule": {
    "capCostOption": "",
    "endDate": "",
    "flighted": false,
    "floodlightActivityId": "",
    "pricingPeriods": [
      {
        "endDate": "",
        "pricingComment": "",
        "rateOrCostNanos": "",
        "startDate": "",
        "units": ""
      }
    ],
    "pricingType": "",
    "startDate": "",
    "testingStartDate": ""
  },
  "primaryPlacementId": "",
  "primaryPlacementIdDimensionValue": {},
  "siteId": "",
  "siteIdDimensionValue": {},
  "subaccountId": ""
}' |  \
  http POST {{baseUrl}}/userprofiles/:profileId/placementGroups \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "accountId": "",\n  "advertiserId": "",\n  "advertiserIdDimensionValue": {\n    "dimensionName": "",\n    "etag": "",\n    "id": "",\n    "kind": "",\n    "matchType": "",\n    "value": ""\n  },\n  "archived": false,\n  "campaignId": "",\n  "campaignIdDimensionValue": {},\n  "childPlacementIds": [],\n  "comment": "",\n  "contentCategoryId": "",\n  "createInfo": {\n    "time": ""\n  },\n  "directorySiteId": "",\n  "directorySiteIdDimensionValue": {},\n  "externalId": "",\n  "id": "",\n  "idDimensionValue": {},\n  "kind": "",\n  "lastModifiedInfo": {},\n  "name": "",\n  "placementGroupType": "",\n  "placementStrategyId": "",\n  "pricingSchedule": {\n    "capCostOption": "",\n    "endDate": "",\n    "flighted": false,\n    "floodlightActivityId": "",\n    "pricingPeriods": [\n      {\n        "endDate": "",\n        "pricingComment": "",\n        "rateOrCostNanos": "",\n        "startDate": "",\n        "units": ""\n      }\n    ],\n    "pricingType": "",\n    "startDate": "",\n    "testingStartDate": ""\n  },\n  "primaryPlacementId": "",\n  "primaryPlacementIdDimensionValue": {},\n  "siteId": "",\n  "siteIdDimensionValue": {},\n  "subaccountId": ""\n}' \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/placementGroups
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": [
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  ],
  "archived": false,
  "campaignId": "",
  "campaignIdDimensionValue": [],
  "childPlacementIds": [],
  "comment": "",
  "contentCategoryId": "",
  "createInfo": ["time": ""],
  "directorySiteId": "",
  "directorySiteIdDimensionValue": [],
  "externalId": "",
  "id": "",
  "idDimensionValue": [],
  "kind": "",
  "lastModifiedInfo": [],
  "name": "",
  "placementGroupType": "",
  "placementStrategyId": "",
  "pricingSchedule": [
    "capCostOption": "",
    "endDate": "",
    "flighted": false,
    "floodlightActivityId": "",
    "pricingPeriods": [
      [
        "endDate": "",
        "pricingComment": "",
        "rateOrCostNanos": "",
        "startDate": "",
        "units": ""
      ]
    ],
    "pricingType": "",
    "startDate": "",
    "testingStartDate": ""
  ],
  "primaryPlacementId": "",
  "primaryPlacementIdDimensionValue": [],
  "siteId": "",
  "siteIdDimensionValue": [],
  "subaccountId": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/placementGroups")! 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 dfareporting.placementGroups.list
{{baseUrl}}/userprofiles/:profileId/placementGroups
QUERY PARAMS

profileId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/placementGroups");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/placementGroups")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/placementGroups"

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}}/userprofiles/:profileId/placementGroups"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/placementGroups");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/placementGroups"

	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/userprofiles/:profileId/placementGroups HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/placementGroups")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/placementGroups"))
    .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}}/userprofiles/:profileId/placementGroups")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/placementGroups")
  .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}}/userprofiles/:profileId/placementGroups');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/placementGroups'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/placementGroups';
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}}/userprofiles/:profileId/placementGroups',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/placementGroups")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/placementGroups',
  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}}/userprofiles/:profileId/placementGroups'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/placementGroups');

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}}/userprofiles/:profileId/placementGroups'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/placementGroups';
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}}/userprofiles/:profileId/placementGroups"]
                                                       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}}/userprofiles/:profileId/placementGroups" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/placementGroups",
  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}}/userprofiles/:profileId/placementGroups');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/placementGroups');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/placementGroups');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/placementGroups' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/placementGroups' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/placementGroups")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/placementGroups"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/placementGroups"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/placementGroups")

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/userprofiles/:profileId/placementGroups') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/placementGroups";

    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}}/userprofiles/:profileId/placementGroups
http GET {{baseUrl}}/userprofiles/:profileId/placementGroups
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/placementGroups
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/placementGroups")! 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 dfareporting.placementGroups.patch
{{baseUrl}}/userprofiles/:profileId/placementGroups
QUERY PARAMS

id
profileId
BODY json

{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "archived": false,
  "campaignId": "",
  "campaignIdDimensionValue": {},
  "childPlacementIds": [],
  "comment": "",
  "contentCategoryId": "",
  "createInfo": {
    "time": ""
  },
  "directorySiteId": "",
  "directorySiteIdDimensionValue": {},
  "externalId": "",
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "lastModifiedInfo": {},
  "name": "",
  "placementGroupType": "",
  "placementStrategyId": "",
  "pricingSchedule": {
    "capCostOption": "",
    "endDate": "",
    "flighted": false,
    "floodlightActivityId": "",
    "pricingPeriods": [
      {
        "endDate": "",
        "pricingComment": "",
        "rateOrCostNanos": "",
        "startDate": "",
        "units": ""
      }
    ],
    "pricingType": "",
    "startDate": "",
    "testingStartDate": ""
  },
  "primaryPlacementId": "",
  "primaryPlacementIdDimensionValue": {},
  "siteId": "",
  "siteIdDimensionValue": {},
  "subaccountId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/placementGroups?id=");

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  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"childPlacementIds\": [],\n  \"comment\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementGroupType\": \"\",\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primaryPlacementId\": \"\",\n  \"primaryPlacementIdDimensionValue\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"subaccountId\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/patch "{{baseUrl}}/userprofiles/:profileId/placementGroups" {:query-params {:id ""}
                                                                                     :content-type :json
                                                                                     :form-params {:accountId ""
                                                                                                   :advertiserId ""
                                                                                                   :advertiserIdDimensionValue {:dimensionName ""
                                                                                                                                :etag ""
                                                                                                                                :id ""
                                                                                                                                :kind ""
                                                                                                                                :matchType ""
                                                                                                                                :value ""}
                                                                                                   :archived false
                                                                                                   :campaignId ""
                                                                                                   :campaignIdDimensionValue {}
                                                                                                   :childPlacementIds []
                                                                                                   :comment ""
                                                                                                   :contentCategoryId ""
                                                                                                   :createInfo {:time ""}
                                                                                                   :directorySiteId ""
                                                                                                   :directorySiteIdDimensionValue {}
                                                                                                   :externalId ""
                                                                                                   :id ""
                                                                                                   :idDimensionValue {}
                                                                                                   :kind ""
                                                                                                   :lastModifiedInfo {}
                                                                                                   :name ""
                                                                                                   :placementGroupType ""
                                                                                                   :placementStrategyId ""
                                                                                                   :pricingSchedule {:capCostOption ""
                                                                                                                     :endDate ""
                                                                                                                     :flighted false
                                                                                                                     :floodlightActivityId ""
                                                                                                                     :pricingPeriods [{:endDate ""
                                                                                                                                       :pricingComment ""
                                                                                                                                       :rateOrCostNanos ""
                                                                                                                                       :startDate ""
                                                                                                                                       :units ""}]
                                                                                                                     :pricingType ""
                                                                                                                     :startDate ""
                                                                                                                     :testingStartDate ""}
                                                                                                   :primaryPlacementId ""
                                                                                                   :primaryPlacementIdDimensionValue {}
                                                                                                   :siteId ""
                                                                                                   :siteIdDimensionValue {}
                                                                                                   :subaccountId ""}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/placementGroups?id="
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"childPlacementIds\": [],\n  \"comment\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementGroupType\": \"\",\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primaryPlacementId\": \"\",\n  \"primaryPlacementIdDimensionValue\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"subaccountId\": \"\"\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}}/userprofiles/:profileId/placementGroups?id="),
    Content = new StringContent("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"childPlacementIds\": [],\n  \"comment\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementGroupType\": \"\",\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primaryPlacementId\": \"\",\n  \"primaryPlacementIdDimensionValue\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"subaccountId\": \"\"\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}}/userprofiles/:profileId/placementGroups?id=");
var request = new RestRequest("", Method.Patch);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"childPlacementIds\": [],\n  \"comment\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementGroupType\": \"\",\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primaryPlacementId\": \"\",\n  \"primaryPlacementIdDimensionValue\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"subaccountId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/placementGroups?id="

	payload := strings.NewReader("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"childPlacementIds\": [],\n  \"comment\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementGroupType\": \"\",\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primaryPlacementId\": \"\",\n  \"primaryPlacementIdDimensionValue\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"subaccountId\": \"\"\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/userprofiles/:profileId/placementGroups?id= HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 1119

{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "archived": false,
  "campaignId": "",
  "campaignIdDimensionValue": {},
  "childPlacementIds": [],
  "comment": "",
  "contentCategoryId": "",
  "createInfo": {
    "time": ""
  },
  "directorySiteId": "",
  "directorySiteIdDimensionValue": {},
  "externalId": "",
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "lastModifiedInfo": {},
  "name": "",
  "placementGroupType": "",
  "placementStrategyId": "",
  "pricingSchedule": {
    "capCostOption": "",
    "endDate": "",
    "flighted": false,
    "floodlightActivityId": "",
    "pricingPeriods": [
      {
        "endDate": "",
        "pricingComment": "",
        "rateOrCostNanos": "",
        "startDate": "",
        "units": ""
      }
    ],
    "pricingType": "",
    "startDate": "",
    "testingStartDate": ""
  },
  "primaryPlacementId": "",
  "primaryPlacementIdDimensionValue": {},
  "siteId": "",
  "siteIdDimensionValue": {},
  "subaccountId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/userprofiles/:profileId/placementGroups?id=")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"childPlacementIds\": [],\n  \"comment\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementGroupType\": \"\",\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primaryPlacementId\": \"\",\n  \"primaryPlacementIdDimensionValue\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"subaccountId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/placementGroups?id="))
    .header("content-type", "application/json")
    .method("PATCH", HttpRequest.BodyPublishers.ofString("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"childPlacementIds\": [],\n  \"comment\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementGroupType\": \"\",\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primaryPlacementId\": \"\",\n  \"primaryPlacementIdDimensionValue\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"subaccountId\": \"\"\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  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"childPlacementIds\": [],\n  \"comment\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementGroupType\": \"\",\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primaryPlacementId\": \"\",\n  \"primaryPlacementIdDimensionValue\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"subaccountId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/placementGroups?id=")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/userprofiles/:profileId/placementGroups?id=")
  .header("content-type", "application/json")
  .body("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"childPlacementIds\": [],\n  \"comment\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementGroupType\": \"\",\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primaryPlacementId\": \"\",\n  \"primaryPlacementIdDimensionValue\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"subaccountId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  accountId: '',
  advertiserId: '',
  advertiserIdDimensionValue: {
    dimensionName: '',
    etag: '',
    id: '',
    kind: '',
    matchType: '',
    value: ''
  },
  archived: false,
  campaignId: '',
  campaignIdDimensionValue: {},
  childPlacementIds: [],
  comment: '',
  contentCategoryId: '',
  createInfo: {
    time: ''
  },
  directorySiteId: '',
  directorySiteIdDimensionValue: {},
  externalId: '',
  id: '',
  idDimensionValue: {},
  kind: '',
  lastModifiedInfo: {},
  name: '',
  placementGroupType: '',
  placementStrategyId: '',
  pricingSchedule: {
    capCostOption: '',
    endDate: '',
    flighted: false,
    floodlightActivityId: '',
    pricingPeriods: [
      {
        endDate: '',
        pricingComment: '',
        rateOrCostNanos: '',
        startDate: '',
        units: ''
      }
    ],
    pricingType: '',
    startDate: '',
    testingStartDate: ''
  },
  primaryPlacementId: '',
  primaryPlacementIdDimensionValue: {},
  siteId: '',
  siteIdDimensionValue: {},
  subaccountId: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PATCH', '{{baseUrl}}/userprofiles/:profileId/placementGroups?id=');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/userprofiles/:profileId/placementGroups',
  params: {id: ''},
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    archived: false,
    campaignId: '',
    campaignIdDimensionValue: {},
    childPlacementIds: [],
    comment: '',
    contentCategoryId: '',
    createInfo: {time: ''},
    directorySiteId: '',
    directorySiteIdDimensionValue: {},
    externalId: '',
    id: '',
    idDimensionValue: {},
    kind: '',
    lastModifiedInfo: {},
    name: '',
    placementGroupType: '',
    placementStrategyId: '',
    pricingSchedule: {
      capCostOption: '',
      endDate: '',
      flighted: false,
      floodlightActivityId: '',
      pricingPeriods: [
        {endDate: '', pricingComment: '', rateOrCostNanos: '', startDate: '', units: ''}
      ],
      pricingType: '',
      startDate: '',
      testingStartDate: ''
    },
    primaryPlacementId: '',
    primaryPlacementIdDimensionValue: {},
    siteId: '',
    siteIdDimensionValue: {},
    subaccountId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/placementGroups?id=';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","advertiserId":"","advertiserIdDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"archived":false,"campaignId":"","campaignIdDimensionValue":{},"childPlacementIds":[],"comment":"","contentCategoryId":"","createInfo":{"time":""},"directorySiteId":"","directorySiteIdDimensionValue":{},"externalId":"","id":"","idDimensionValue":{},"kind":"","lastModifiedInfo":{},"name":"","placementGroupType":"","placementStrategyId":"","pricingSchedule":{"capCostOption":"","endDate":"","flighted":false,"floodlightActivityId":"","pricingPeriods":[{"endDate":"","pricingComment":"","rateOrCostNanos":"","startDate":"","units":""}],"pricingType":"","startDate":"","testingStartDate":""},"primaryPlacementId":"","primaryPlacementIdDimensionValue":{},"siteId":"","siteIdDimensionValue":{},"subaccountId":""}'
};

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}}/userprofiles/:profileId/placementGroups?id=',
  method: 'PATCH',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "accountId": "",\n  "advertiserId": "",\n  "advertiserIdDimensionValue": {\n    "dimensionName": "",\n    "etag": "",\n    "id": "",\n    "kind": "",\n    "matchType": "",\n    "value": ""\n  },\n  "archived": false,\n  "campaignId": "",\n  "campaignIdDimensionValue": {},\n  "childPlacementIds": [],\n  "comment": "",\n  "contentCategoryId": "",\n  "createInfo": {\n    "time": ""\n  },\n  "directorySiteId": "",\n  "directorySiteIdDimensionValue": {},\n  "externalId": "",\n  "id": "",\n  "idDimensionValue": {},\n  "kind": "",\n  "lastModifiedInfo": {},\n  "name": "",\n  "placementGroupType": "",\n  "placementStrategyId": "",\n  "pricingSchedule": {\n    "capCostOption": "",\n    "endDate": "",\n    "flighted": false,\n    "floodlightActivityId": "",\n    "pricingPeriods": [\n      {\n        "endDate": "",\n        "pricingComment": "",\n        "rateOrCostNanos": "",\n        "startDate": "",\n        "units": ""\n      }\n    ],\n    "pricingType": "",\n    "startDate": "",\n    "testingStartDate": ""\n  },\n  "primaryPlacementId": "",\n  "primaryPlacementIdDimensionValue": {},\n  "siteId": "",\n  "siteIdDimensionValue": {},\n  "subaccountId": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"childPlacementIds\": [],\n  \"comment\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementGroupType\": \"\",\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primaryPlacementId\": \"\",\n  \"primaryPlacementIdDimensionValue\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"subaccountId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/placementGroups?id=")
  .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/userprofiles/:profileId/placementGroups?id=',
  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({
  accountId: '',
  advertiserId: '',
  advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
  archived: false,
  campaignId: '',
  campaignIdDimensionValue: {},
  childPlacementIds: [],
  comment: '',
  contentCategoryId: '',
  createInfo: {time: ''},
  directorySiteId: '',
  directorySiteIdDimensionValue: {},
  externalId: '',
  id: '',
  idDimensionValue: {},
  kind: '',
  lastModifiedInfo: {},
  name: '',
  placementGroupType: '',
  placementStrategyId: '',
  pricingSchedule: {
    capCostOption: '',
    endDate: '',
    flighted: false,
    floodlightActivityId: '',
    pricingPeriods: [
      {endDate: '', pricingComment: '', rateOrCostNanos: '', startDate: '', units: ''}
    ],
    pricingType: '',
    startDate: '',
    testingStartDate: ''
  },
  primaryPlacementId: '',
  primaryPlacementIdDimensionValue: {},
  siteId: '',
  siteIdDimensionValue: {},
  subaccountId: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/userprofiles/:profileId/placementGroups',
  qs: {id: ''},
  headers: {'content-type': 'application/json'},
  body: {
    accountId: '',
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    archived: false,
    campaignId: '',
    campaignIdDimensionValue: {},
    childPlacementIds: [],
    comment: '',
    contentCategoryId: '',
    createInfo: {time: ''},
    directorySiteId: '',
    directorySiteIdDimensionValue: {},
    externalId: '',
    id: '',
    idDimensionValue: {},
    kind: '',
    lastModifiedInfo: {},
    name: '',
    placementGroupType: '',
    placementStrategyId: '',
    pricingSchedule: {
      capCostOption: '',
      endDate: '',
      flighted: false,
      floodlightActivityId: '',
      pricingPeriods: [
        {endDate: '', pricingComment: '', rateOrCostNanos: '', startDate: '', units: ''}
      ],
      pricingType: '',
      startDate: '',
      testingStartDate: ''
    },
    primaryPlacementId: '',
    primaryPlacementIdDimensionValue: {},
    siteId: '',
    siteIdDimensionValue: {},
    subaccountId: ''
  },
  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}}/userprofiles/:profileId/placementGroups');

req.query({
  id: ''
});

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  accountId: '',
  advertiserId: '',
  advertiserIdDimensionValue: {
    dimensionName: '',
    etag: '',
    id: '',
    kind: '',
    matchType: '',
    value: ''
  },
  archived: false,
  campaignId: '',
  campaignIdDimensionValue: {},
  childPlacementIds: [],
  comment: '',
  contentCategoryId: '',
  createInfo: {
    time: ''
  },
  directorySiteId: '',
  directorySiteIdDimensionValue: {},
  externalId: '',
  id: '',
  idDimensionValue: {},
  kind: '',
  lastModifiedInfo: {},
  name: '',
  placementGroupType: '',
  placementStrategyId: '',
  pricingSchedule: {
    capCostOption: '',
    endDate: '',
    flighted: false,
    floodlightActivityId: '',
    pricingPeriods: [
      {
        endDate: '',
        pricingComment: '',
        rateOrCostNanos: '',
        startDate: '',
        units: ''
      }
    ],
    pricingType: '',
    startDate: '',
    testingStartDate: ''
  },
  primaryPlacementId: '',
  primaryPlacementIdDimensionValue: {},
  siteId: '',
  siteIdDimensionValue: {},
  subaccountId: ''
});

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}}/userprofiles/:profileId/placementGroups',
  params: {id: ''},
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    archived: false,
    campaignId: '',
    campaignIdDimensionValue: {},
    childPlacementIds: [],
    comment: '',
    contentCategoryId: '',
    createInfo: {time: ''},
    directorySiteId: '',
    directorySiteIdDimensionValue: {},
    externalId: '',
    id: '',
    idDimensionValue: {},
    kind: '',
    lastModifiedInfo: {},
    name: '',
    placementGroupType: '',
    placementStrategyId: '',
    pricingSchedule: {
      capCostOption: '',
      endDate: '',
      flighted: false,
      floodlightActivityId: '',
      pricingPeriods: [
        {endDate: '', pricingComment: '', rateOrCostNanos: '', startDate: '', units: ''}
      ],
      pricingType: '',
      startDate: '',
      testingStartDate: ''
    },
    primaryPlacementId: '',
    primaryPlacementIdDimensionValue: {},
    siteId: '',
    siteIdDimensionValue: {},
    subaccountId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/placementGroups?id=';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","advertiserId":"","advertiserIdDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"archived":false,"campaignId":"","campaignIdDimensionValue":{},"childPlacementIds":[],"comment":"","contentCategoryId":"","createInfo":{"time":""},"directorySiteId":"","directorySiteIdDimensionValue":{},"externalId":"","id":"","idDimensionValue":{},"kind":"","lastModifiedInfo":{},"name":"","placementGroupType":"","placementStrategyId":"","pricingSchedule":{"capCostOption":"","endDate":"","flighted":false,"floodlightActivityId":"","pricingPeriods":[{"endDate":"","pricingComment":"","rateOrCostNanos":"","startDate":"","units":""}],"pricingType":"","startDate":"","testingStartDate":""},"primaryPlacementId":"","primaryPlacementIdDimensionValue":{},"siteId":"","siteIdDimensionValue":{},"subaccountId":""}'
};

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 = @{ @"accountId": @"",
                              @"advertiserId": @"",
                              @"advertiserIdDimensionValue": @{ @"dimensionName": @"", @"etag": @"", @"id": @"", @"kind": @"", @"matchType": @"", @"value": @"" },
                              @"archived": @NO,
                              @"campaignId": @"",
                              @"campaignIdDimensionValue": @{  },
                              @"childPlacementIds": @[  ],
                              @"comment": @"",
                              @"contentCategoryId": @"",
                              @"createInfo": @{ @"time": @"" },
                              @"directorySiteId": @"",
                              @"directorySiteIdDimensionValue": @{  },
                              @"externalId": @"",
                              @"id": @"",
                              @"idDimensionValue": @{  },
                              @"kind": @"",
                              @"lastModifiedInfo": @{  },
                              @"name": @"",
                              @"placementGroupType": @"",
                              @"placementStrategyId": @"",
                              @"pricingSchedule": @{ @"capCostOption": @"", @"endDate": @"", @"flighted": @NO, @"floodlightActivityId": @"", @"pricingPeriods": @[ @{ @"endDate": @"", @"pricingComment": @"", @"rateOrCostNanos": @"", @"startDate": @"", @"units": @"" } ], @"pricingType": @"", @"startDate": @"", @"testingStartDate": @"" },
                              @"primaryPlacementId": @"",
                              @"primaryPlacementIdDimensionValue": @{  },
                              @"siteId": @"",
                              @"siteIdDimensionValue": @{  },
                              @"subaccountId": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/userprofiles/:profileId/placementGroups?id="]
                                                       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}}/userprofiles/:profileId/placementGroups?id=" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"childPlacementIds\": [],\n  \"comment\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementGroupType\": \"\",\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primaryPlacementId\": \"\",\n  \"primaryPlacementIdDimensionValue\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"subaccountId\": \"\"\n}" in

Client.call ~headers ~body `PATCH uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/placementGroups?id=",
  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([
    'accountId' => '',
    'advertiserId' => '',
    'advertiserIdDimensionValue' => [
        'dimensionName' => '',
        'etag' => '',
        'id' => '',
        'kind' => '',
        'matchType' => '',
        'value' => ''
    ],
    'archived' => null,
    'campaignId' => '',
    'campaignIdDimensionValue' => [
        
    ],
    'childPlacementIds' => [
        
    ],
    'comment' => '',
    'contentCategoryId' => '',
    'createInfo' => [
        'time' => ''
    ],
    'directorySiteId' => '',
    'directorySiteIdDimensionValue' => [
        
    ],
    'externalId' => '',
    'id' => '',
    'idDimensionValue' => [
        
    ],
    'kind' => '',
    'lastModifiedInfo' => [
        
    ],
    'name' => '',
    'placementGroupType' => '',
    'placementStrategyId' => '',
    'pricingSchedule' => [
        'capCostOption' => '',
        'endDate' => '',
        'flighted' => null,
        'floodlightActivityId' => '',
        'pricingPeriods' => [
                [
                                'endDate' => '',
                                'pricingComment' => '',
                                'rateOrCostNanos' => '',
                                'startDate' => '',
                                'units' => ''
                ]
        ],
        'pricingType' => '',
        'startDate' => '',
        'testingStartDate' => ''
    ],
    'primaryPlacementId' => '',
    'primaryPlacementIdDimensionValue' => [
        
    ],
    'siteId' => '',
    'siteIdDimensionValue' => [
        
    ],
    'subaccountId' => ''
  ]),
  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}}/userprofiles/:profileId/placementGroups?id=', [
  'body' => '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "archived": false,
  "campaignId": "",
  "campaignIdDimensionValue": {},
  "childPlacementIds": [],
  "comment": "",
  "contentCategoryId": "",
  "createInfo": {
    "time": ""
  },
  "directorySiteId": "",
  "directorySiteIdDimensionValue": {},
  "externalId": "",
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "lastModifiedInfo": {},
  "name": "",
  "placementGroupType": "",
  "placementStrategyId": "",
  "pricingSchedule": {
    "capCostOption": "",
    "endDate": "",
    "flighted": false,
    "floodlightActivityId": "",
    "pricingPeriods": [
      {
        "endDate": "",
        "pricingComment": "",
        "rateOrCostNanos": "",
        "startDate": "",
        "units": ""
      }
    ],
    "pricingType": "",
    "startDate": "",
    "testingStartDate": ""
  },
  "primaryPlacementId": "",
  "primaryPlacementIdDimensionValue": {},
  "siteId": "",
  "siteIdDimensionValue": {},
  "subaccountId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/placementGroups');
$request->setMethod(HttpRequest::HTTP_METH_PATCH);

$request->setQueryData([
  'id' => ''
]);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'accountId' => '',
  'advertiserId' => '',
  'advertiserIdDimensionValue' => [
    'dimensionName' => '',
    'etag' => '',
    'id' => '',
    'kind' => '',
    'matchType' => '',
    'value' => ''
  ],
  'archived' => null,
  'campaignId' => '',
  'campaignIdDimensionValue' => [
    
  ],
  'childPlacementIds' => [
    
  ],
  'comment' => '',
  'contentCategoryId' => '',
  'createInfo' => [
    'time' => ''
  ],
  'directorySiteId' => '',
  'directorySiteIdDimensionValue' => [
    
  ],
  'externalId' => '',
  'id' => '',
  'idDimensionValue' => [
    
  ],
  'kind' => '',
  'lastModifiedInfo' => [
    
  ],
  'name' => '',
  'placementGroupType' => '',
  'placementStrategyId' => '',
  'pricingSchedule' => [
    'capCostOption' => '',
    'endDate' => '',
    'flighted' => null,
    'floodlightActivityId' => '',
    'pricingPeriods' => [
        [
                'endDate' => '',
                'pricingComment' => '',
                'rateOrCostNanos' => '',
                'startDate' => '',
                'units' => ''
        ]
    ],
    'pricingType' => '',
    'startDate' => '',
    'testingStartDate' => ''
  ],
  'primaryPlacementId' => '',
  'primaryPlacementIdDimensionValue' => [
    
  ],
  'siteId' => '',
  'siteIdDimensionValue' => [
    
  ],
  'subaccountId' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'accountId' => '',
  'advertiserId' => '',
  'advertiserIdDimensionValue' => [
    'dimensionName' => '',
    'etag' => '',
    'id' => '',
    'kind' => '',
    'matchType' => '',
    'value' => ''
  ],
  'archived' => null,
  'campaignId' => '',
  'campaignIdDimensionValue' => [
    
  ],
  'childPlacementIds' => [
    
  ],
  'comment' => '',
  'contentCategoryId' => '',
  'createInfo' => [
    'time' => ''
  ],
  'directorySiteId' => '',
  'directorySiteIdDimensionValue' => [
    
  ],
  'externalId' => '',
  'id' => '',
  'idDimensionValue' => [
    
  ],
  'kind' => '',
  'lastModifiedInfo' => [
    
  ],
  'name' => '',
  'placementGroupType' => '',
  'placementStrategyId' => '',
  'pricingSchedule' => [
    'capCostOption' => '',
    'endDate' => '',
    'flighted' => null,
    'floodlightActivityId' => '',
    'pricingPeriods' => [
        [
                'endDate' => '',
                'pricingComment' => '',
                'rateOrCostNanos' => '',
                'startDate' => '',
                'units' => ''
        ]
    ],
    'pricingType' => '',
    'startDate' => '',
    'testingStartDate' => ''
  ],
  'primaryPlacementId' => '',
  'primaryPlacementIdDimensionValue' => [
    
  ],
  'siteId' => '',
  'siteIdDimensionValue' => [
    
  ],
  'subaccountId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/userprofiles/:profileId/placementGroups');
$request->setRequestMethod('PATCH');
$request->setBody($body);

$request->setQuery(new http\QueryString([
  'id' => ''
]));

$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}}/userprofiles/:profileId/placementGroups?id=' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "archived": false,
  "campaignId": "",
  "campaignIdDimensionValue": {},
  "childPlacementIds": [],
  "comment": "",
  "contentCategoryId": "",
  "createInfo": {
    "time": ""
  },
  "directorySiteId": "",
  "directorySiteIdDimensionValue": {},
  "externalId": "",
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "lastModifiedInfo": {},
  "name": "",
  "placementGroupType": "",
  "placementStrategyId": "",
  "pricingSchedule": {
    "capCostOption": "",
    "endDate": "",
    "flighted": false,
    "floodlightActivityId": "",
    "pricingPeriods": [
      {
        "endDate": "",
        "pricingComment": "",
        "rateOrCostNanos": "",
        "startDate": "",
        "units": ""
      }
    ],
    "pricingType": "",
    "startDate": "",
    "testingStartDate": ""
  },
  "primaryPlacementId": "",
  "primaryPlacementIdDimensionValue": {},
  "siteId": "",
  "siteIdDimensionValue": {},
  "subaccountId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/placementGroups?id=' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "archived": false,
  "campaignId": "",
  "campaignIdDimensionValue": {},
  "childPlacementIds": [],
  "comment": "",
  "contentCategoryId": "",
  "createInfo": {
    "time": ""
  },
  "directorySiteId": "",
  "directorySiteIdDimensionValue": {},
  "externalId": "",
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "lastModifiedInfo": {},
  "name": "",
  "placementGroupType": "",
  "placementStrategyId": "",
  "pricingSchedule": {
    "capCostOption": "",
    "endDate": "",
    "flighted": false,
    "floodlightActivityId": "",
    "pricingPeriods": [
      {
        "endDate": "",
        "pricingComment": "",
        "rateOrCostNanos": "",
        "startDate": "",
        "units": ""
      }
    ],
    "pricingType": "",
    "startDate": "",
    "testingStartDate": ""
  },
  "primaryPlacementId": "",
  "primaryPlacementIdDimensionValue": {},
  "siteId": "",
  "siteIdDimensionValue": {},
  "subaccountId": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"childPlacementIds\": [],\n  \"comment\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementGroupType\": \"\",\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primaryPlacementId\": \"\",\n  \"primaryPlacementIdDimensionValue\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"subaccountId\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("PATCH", "/baseUrl/userprofiles/:profileId/placementGroups?id=", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/placementGroups"

querystring = {"id":""}

payload = {
    "accountId": "",
    "advertiserId": "",
    "advertiserIdDimensionValue": {
        "dimensionName": "",
        "etag": "",
        "id": "",
        "kind": "",
        "matchType": "",
        "value": ""
    },
    "archived": False,
    "campaignId": "",
    "campaignIdDimensionValue": {},
    "childPlacementIds": [],
    "comment": "",
    "contentCategoryId": "",
    "createInfo": { "time": "" },
    "directorySiteId": "",
    "directorySiteIdDimensionValue": {},
    "externalId": "",
    "id": "",
    "idDimensionValue": {},
    "kind": "",
    "lastModifiedInfo": {},
    "name": "",
    "placementGroupType": "",
    "placementStrategyId": "",
    "pricingSchedule": {
        "capCostOption": "",
        "endDate": "",
        "flighted": False,
        "floodlightActivityId": "",
        "pricingPeriods": [
            {
                "endDate": "",
                "pricingComment": "",
                "rateOrCostNanos": "",
                "startDate": "",
                "units": ""
            }
        ],
        "pricingType": "",
        "startDate": "",
        "testingStartDate": ""
    },
    "primaryPlacementId": "",
    "primaryPlacementIdDimensionValue": {},
    "siteId": "",
    "siteIdDimensionValue": {},
    "subaccountId": ""
}
headers = {"content-type": "application/json"}

response = requests.patch(url, json=payload, headers=headers, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/placementGroups"

queryString <- list(id = "")

payload <- "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"childPlacementIds\": [],\n  \"comment\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementGroupType\": \"\",\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primaryPlacementId\": \"\",\n  \"primaryPlacementIdDimensionValue\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"subaccountId\": \"\"\n}"

encode <- "json"

response <- VERB("PATCH", url, body = payload, query = queryString, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/placementGroups?id=")

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  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"childPlacementIds\": [],\n  \"comment\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementGroupType\": \"\",\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primaryPlacementId\": \"\",\n  \"primaryPlacementIdDimensionValue\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"subaccountId\": \"\"\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/userprofiles/:profileId/placementGroups') do |req|
  req.params['id'] = ''
  req.body = "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"childPlacementIds\": [],\n  \"comment\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementGroupType\": \"\",\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primaryPlacementId\": \"\",\n  \"primaryPlacementIdDimensionValue\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"subaccountId\": \"\"\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}}/userprofiles/:profileId/placementGroups";

    let querystring = [
        ("id", ""),
    ];

    let payload = json!({
        "accountId": "",
        "advertiserId": "",
        "advertiserIdDimensionValue": json!({
            "dimensionName": "",
            "etag": "",
            "id": "",
            "kind": "",
            "matchType": "",
            "value": ""
        }),
        "archived": false,
        "campaignId": "",
        "campaignIdDimensionValue": json!({}),
        "childPlacementIds": (),
        "comment": "",
        "contentCategoryId": "",
        "createInfo": json!({"time": ""}),
        "directorySiteId": "",
        "directorySiteIdDimensionValue": json!({}),
        "externalId": "",
        "id": "",
        "idDimensionValue": json!({}),
        "kind": "",
        "lastModifiedInfo": json!({}),
        "name": "",
        "placementGroupType": "",
        "placementStrategyId": "",
        "pricingSchedule": json!({
            "capCostOption": "",
            "endDate": "",
            "flighted": false,
            "floodlightActivityId": "",
            "pricingPeriods": (
                json!({
                    "endDate": "",
                    "pricingComment": "",
                    "rateOrCostNanos": "",
                    "startDate": "",
                    "units": ""
                })
            ),
            "pricingType": "",
            "startDate": "",
            "testingStartDate": ""
        }),
        "primaryPlacementId": "",
        "primaryPlacementIdDimensionValue": json!({}),
        "siteId": "",
        "siteIdDimensionValue": json!({}),
        "subaccountId": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PATCH").unwrap(), url)
        .query(&querystring)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PATCH \
  --url '{{baseUrl}}/userprofiles/:profileId/placementGroups?id=' \
  --header 'content-type: application/json' \
  --data '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "archived": false,
  "campaignId": "",
  "campaignIdDimensionValue": {},
  "childPlacementIds": [],
  "comment": "",
  "contentCategoryId": "",
  "createInfo": {
    "time": ""
  },
  "directorySiteId": "",
  "directorySiteIdDimensionValue": {},
  "externalId": "",
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "lastModifiedInfo": {},
  "name": "",
  "placementGroupType": "",
  "placementStrategyId": "",
  "pricingSchedule": {
    "capCostOption": "",
    "endDate": "",
    "flighted": false,
    "floodlightActivityId": "",
    "pricingPeriods": [
      {
        "endDate": "",
        "pricingComment": "",
        "rateOrCostNanos": "",
        "startDate": "",
        "units": ""
      }
    ],
    "pricingType": "",
    "startDate": "",
    "testingStartDate": ""
  },
  "primaryPlacementId": "",
  "primaryPlacementIdDimensionValue": {},
  "siteId": "",
  "siteIdDimensionValue": {},
  "subaccountId": ""
}'
echo '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "archived": false,
  "campaignId": "",
  "campaignIdDimensionValue": {},
  "childPlacementIds": [],
  "comment": "",
  "contentCategoryId": "",
  "createInfo": {
    "time": ""
  },
  "directorySiteId": "",
  "directorySiteIdDimensionValue": {},
  "externalId": "",
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "lastModifiedInfo": {},
  "name": "",
  "placementGroupType": "",
  "placementStrategyId": "",
  "pricingSchedule": {
    "capCostOption": "",
    "endDate": "",
    "flighted": false,
    "floodlightActivityId": "",
    "pricingPeriods": [
      {
        "endDate": "",
        "pricingComment": "",
        "rateOrCostNanos": "",
        "startDate": "",
        "units": ""
      }
    ],
    "pricingType": "",
    "startDate": "",
    "testingStartDate": ""
  },
  "primaryPlacementId": "",
  "primaryPlacementIdDimensionValue": {},
  "siteId": "",
  "siteIdDimensionValue": {},
  "subaccountId": ""
}' |  \
  http PATCH '{{baseUrl}}/userprofiles/:profileId/placementGroups?id=' \
  content-type:application/json
wget --quiet \
  --method PATCH \
  --header 'content-type: application/json' \
  --body-data '{\n  "accountId": "",\n  "advertiserId": "",\n  "advertiserIdDimensionValue": {\n    "dimensionName": "",\n    "etag": "",\n    "id": "",\n    "kind": "",\n    "matchType": "",\n    "value": ""\n  },\n  "archived": false,\n  "campaignId": "",\n  "campaignIdDimensionValue": {},\n  "childPlacementIds": [],\n  "comment": "",\n  "contentCategoryId": "",\n  "createInfo": {\n    "time": ""\n  },\n  "directorySiteId": "",\n  "directorySiteIdDimensionValue": {},\n  "externalId": "",\n  "id": "",\n  "idDimensionValue": {},\n  "kind": "",\n  "lastModifiedInfo": {},\n  "name": "",\n  "placementGroupType": "",\n  "placementStrategyId": "",\n  "pricingSchedule": {\n    "capCostOption": "",\n    "endDate": "",\n    "flighted": false,\n    "floodlightActivityId": "",\n    "pricingPeriods": [\n      {\n        "endDate": "",\n        "pricingComment": "",\n        "rateOrCostNanos": "",\n        "startDate": "",\n        "units": ""\n      }\n    ],\n    "pricingType": "",\n    "startDate": "",\n    "testingStartDate": ""\n  },\n  "primaryPlacementId": "",\n  "primaryPlacementIdDimensionValue": {},\n  "siteId": "",\n  "siteIdDimensionValue": {},\n  "subaccountId": ""\n}' \
  --output-document \
  - '{{baseUrl}}/userprofiles/:profileId/placementGroups?id='
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": [
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  ],
  "archived": false,
  "campaignId": "",
  "campaignIdDimensionValue": [],
  "childPlacementIds": [],
  "comment": "",
  "contentCategoryId": "",
  "createInfo": ["time": ""],
  "directorySiteId": "",
  "directorySiteIdDimensionValue": [],
  "externalId": "",
  "id": "",
  "idDimensionValue": [],
  "kind": "",
  "lastModifiedInfo": [],
  "name": "",
  "placementGroupType": "",
  "placementStrategyId": "",
  "pricingSchedule": [
    "capCostOption": "",
    "endDate": "",
    "flighted": false,
    "floodlightActivityId": "",
    "pricingPeriods": [
      [
        "endDate": "",
        "pricingComment": "",
        "rateOrCostNanos": "",
        "startDate": "",
        "units": ""
      ]
    ],
    "pricingType": "",
    "startDate": "",
    "testingStartDate": ""
  ],
  "primaryPlacementId": "",
  "primaryPlacementIdDimensionValue": [],
  "siteId": "",
  "siteIdDimensionValue": [],
  "subaccountId": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/placementGroups?id=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PATCH"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
PUT dfareporting.placementGroups.update
{{baseUrl}}/userprofiles/:profileId/placementGroups
QUERY PARAMS

profileId
BODY json

{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "archived": false,
  "campaignId": "",
  "campaignIdDimensionValue": {},
  "childPlacementIds": [],
  "comment": "",
  "contentCategoryId": "",
  "createInfo": {
    "time": ""
  },
  "directorySiteId": "",
  "directorySiteIdDimensionValue": {},
  "externalId": "",
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "lastModifiedInfo": {},
  "name": "",
  "placementGroupType": "",
  "placementStrategyId": "",
  "pricingSchedule": {
    "capCostOption": "",
    "endDate": "",
    "flighted": false,
    "floodlightActivityId": "",
    "pricingPeriods": [
      {
        "endDate": "",
        "pricingComment": "",
        "rateOrCostNanos": "",
        "startDate": "",
        "units": ""
      }
    ],
    "pricingType": "",
    "startDate": "",
    "testingStartDate": ""
  },
  "primaryPlacementId": "",
  "primaryPlacementIdDimensionValue": {},
  "siteId": "",
  "siteIdDimensionValue": {},
  "subaccountId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/placementGroups");

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  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"childPlacementIds\": [],\n  \"comment\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementGroupType\": \"\",\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primaryPlacementId\": \"\",\n  \"primaryPlacementIdDimensionValue\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"subaccountId\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/userprofiles/:profileId/placementGroups" {:content-type :json
                                                                                   :form-params {:accountId ""
                                                                                                 :advertiserId ""
                                                                                                 :advertiserIdDimensionValue {:dimensionName ""
                                                                                                                              :etag ""
                                                                                                                              :id ""
                                                                                                                              :kind ""
                                                                                                                              :matchType ""
                                                                                                                              :value ""}
                                                                                                 :archived false
                                                                                                 :campaignId ""
                                                                                                 :campaignIdDimensionValue {}
                                                                                                 :childPlacementIds []
                                                                                                 :comment ""
                                                                                                 :contentCategoryId ""
                                                                                                 :createInfo {:time ""}
                                                                                                 :directorySiteId ""
                                                                                                 :directorySiteIdDimensionValue {}
                                                                                                 :externalId ""
                                                                                                 :id ""
                                                                                                 :idDimensionValue {}
                                                                                                 :kind ""
                                                                                                 :lastModifiedInfo {}
                                                                                                 :name ""
                                                                                                 :placementGroupType ""
                                                                                                 :placementStrategyId ""
                                                                                                 :pricingSchedule {:capCostOption ""
                                                                                                                   :endDate ""
                                                                                                                   :flighted false
                                                                                                                   :floodlightActivityId ""
                                                                                                                   :pricingPeriods [{:endDate ""
                                                                                                                                     :pricingComment ""
                                                                                                                                     :rateOrCostNanos ""
                                                                                                                                     :startDate ""
                                                                                                                                     :units ""}]
                                                                                                                   :pricingType ""
                                                                                                                   :startDate ""
                                                                                                                   :testingStartDate ""}
                                                                                                 :primaryPlacementId ""
                                                                                                 :primaryPlacementIdDimensionValue {}
                                                                                                 :siteId ""
                                                                                                 :siteIdDimensionValue {}
                                                                                                 :subaccountId ""}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/placementGroups"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"childPlacementIds\": [],\n  \"comment\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementGroupType\": \"\",\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primaryPlacementId\": \"\",\n  \"primaryPlacementIdDimensionValue\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"subaccountId\": \"\"\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/userprofiles/:profileId/placementGroups"),
    Content = new StringContent("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"childPlacementIds\": [],\n  \"comment\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementGroupType\": \"\",\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primaryPlacementId\": \"\",\n  \"primaryPlacementIdDimensionValue\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"subaccountId\": \"\"\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}}/userprofiles/:profileId/placementGroups");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"childPlacementIds\": [],\n  \"comment\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementGroupType\": \"\",\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primaryPlacementId\": \"\",\n  \"primaryPlacementIdDimensionValue\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"subaccountId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/placementGroups"

	payload := strings.NewReader("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"childPlacementIds\": [],\n  \"comment\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementGroupType\": \"\",\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primaryPlacementId\": \"\",\n  \"primaryPlacementIdDimensionValue\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"subaccountId\": \"\"\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/userprofiles/:profileId/placementGroups HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 1119

{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "archived": false,
  "campaignId": "",
  "campaignIdDimensionValue": {},
  "childPlacementIds": [],
  "comment": "",
  "contentCategoryId": "",
  "createInfo": {
    "time": ""
  },
  "directorySiteId": "",
  "directorySiteIdDimensionValue": {},
  "externalId": "",
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "lastModifiedInfo": {},
  "name": "",
  "placementGroupType": "",
  "placementStrategyId": "",
  "pricingSchedule": {
    "capCostOption": "",
    "endDate": "",
    "flighted": false,
    "floodlightActivityId": "",
    "pricingPeriods": [
      {
        "endDate": "",
        "pricingComment": "",
        "rateOrCostNanos": "",
        "startDate": "",
        "units": ""
      }
    ],
    "pricingType": "",
    "startDate": "",
    "testingStartDate": ""
  },
  "primaryPlacementId": "",
  "primaryPlacementIdDimensionValue": {},
  "siteId": "",
  "siteIdDimensionValue": {},
  "subaccountId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/userprofiles/:profileId/placementGroups")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"childPlacementIds\": [],\n  \"comment\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementGroupType\": \"\",\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primaryPlacementId\": \"\",\n  \"primaryPlacementIdDimensionValue\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"subaccountId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/placementGroups"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"childPlacementIds\": [],\n  \"comment\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementGroupType\": \"\",\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primaryPlacementId\": \"\",\n  \"primaryPlacementIdDimensionValue\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"subaccountId\": \"\"\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  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"childPlacementIds\": [],\n  \"comment\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementGroupType\": \"\",\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primaryPlacementId\": \"\",\n  \"primaryPlacementIdDimensionValue\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"subaccountId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/placementGroups")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/userprofiles/:profileId/placementGroups")
  .header("content-type", "application/json")
  .body("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"childPlacementIds\": [],\n  \"comment\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementGroupType\": \"\",\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primaryPlacementId\": \"\",\n  \"primaryPlacementIdDimensionValue\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"subaccountId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  accountId: '',
  advertiserId: '',
  advertiserIdDimensionValue: {
    dimensionName: '',
    etag: '',
    id: '',
    kind: '',
    matchType: '',
    value: ''
  },
  archived: false,
  campaignId: '',
  campaignIdDimensionValue: {},
  childPlacementIds: [],
  comment: '',
  contentCategoryId: '',
  createInfo: {
    time: ''
  },
  directorySiteId: '',
  directorySiteIdDimensionValue: {},
  externalId: '',
  id: '',
  idDimensionValue: {},
  kind: '',
  lastModifiedInfo: {},
  name: '',
  placementGroupType: '',
  placementStrategyId: '',
  pricingSchedule: {
    capCostOption: '',
    endDate: '',
    flighted: false,
    floodlightActivityId: '',
    pricingPeriods: [
      {
        endDate: '',
        pricingComment: '',
        rateOrCostNanos: '',
        startDate: '',
        units: ''
      }
    ],
    pricingType: '',
    startDate: '',
    testingStartDate: ''
  },
  primaryPlacementId: '',
  primaryPlacementIdDimensionValue: {},
  siteId: '',
  siteIdDimensionValue: {},
  subaccountId: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/userprofiles/:profileId/placementGroups');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/userprofiles/:profileId/placementGroups',
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    archived: false,
    campaignId: '',
    campaignIdDimensionValue: {},
    childPlacementIds: [],
    comment: '',
    contentCategoryId: '',
    createInfo: {time: ''},
    directorySiteId: '',
    directorySiteIdDimensionValue: {},
    externalId: '',
    id: '',
    idDimensionValue: {},
    kind: '',
    lastModifiedInfo: {},
    name: '',
    placementGroupType: '',
    placementStrategyId: '',
    pricingSchedule: {
      capCostOption: '',
      endDate: '',
      flighted: false,
      floodlightActivityId: '',
      pricingPeriods: [
        {endDate: '', pricingComment: '', rateOrCostNanos: '', startDate: '', units: ''}
      ],
      pricingType: '',
      startDate: '',
      testingStartDate: ''
    },
    primaryPlacementId: '',
    primaryPlacementIdDimensionValue: {},
    siteId: '',
    siteIdDimensionValue: {},
    subaccountId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/placementGroups';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","advertiserId":"","advertiserIdDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"archived":false,"campaignId":"","campaignIdDimensionValue":{},"childPlacementIds":[],"comment":"","contentCategoryId":"","createInfo":{"time":""},"directorySiteId":"","directorySiteIdDimensionValue":{},"externalId":"","id":"","idDimensionValue":{},"kind":"","lastModifiedInfo":{},"name":"","placementGroupType":"","placementStrategyId":"","pricingSchedule":{"capCostOption":"","endDate":"","flighted":false,"floodlightActivityId":"","pricingPeriods":[{"endDate":"","pricingComment":"","rateOrCostNanos":"","startDate":"","units":""}],"pricingType":"","startDate":"","testingStartDate":""},"primaryPlacementId":"","primaryPlacementIdDimensionValue":{},"siteId":"","siteIdDimensionValue":{},"subaccountId":""}'
};

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}}/userprofiles/:profileId/placementGroups',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "accountId": "",\n  "advertiserId": "",\n  "advertiserIdDimensionValue": {\n    "dimensionName": "",\n    "etag": "",\n    "id": "",\n    "kind": "",\n    "matchType": "",\n    "value": ""\n  },\n  "archived": false,\n  "campaignId": "",\n  "campaignIdDimensionValue": {},\n  "childPlacementIds": [],\n  "comment": "",\n  "contentCategoryId": "",\n  "createInfo": {\n    "time": ""\n  },\n  "directorySiteId": "",\n  "directorySiteIdDimensionValue": {},\n  "externalId": "",\n  "id": "",\n  "idDimensionValue": {},\n  "kind": "",\n  "lastModifiedInfo": {},\n  "name": "",\n  "placementGroupType": "",\n  "placementStrategyId": "",\n  "pricingSchedule": {\n    "capCostOption": "",\n    "endDate": "",\n    "flighted": false,\n    "floodlightActivityId": "",\n    "pricingPeriods": [\n      {\n        "endDate": "",\n        "pricingComment": "",\n        "rateOrCostNanos": "",\n        "startDate": "",\n        "units": ""\n      }\n    ],\n    "pricingType": "",\n    "startDate": "",\n    "testingStartDate": ""\n  },\n  "primaryPlacementId": "",\n  "primaryPlacementIdDimensionValue": {},\n  "siteId": "",\n  "siteIdDimensionValue": {},\n  "subaccountId": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"childPlacementIds\": [],\n  \"comment\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementGroupType\": \"\",\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primaryPlacementId\": \"\",\n  \"primaryPlacementIdDimensionValue\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"subaccountId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/placementGroups")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/placementGroups',
  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({
  accountId: '',
  advertiserId: '',
  advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
  archived: false,
  campaignId: '',
  campaignIdDimensionValue: {},
  childPlacementIds: [],
  comment: '',
  contentCategoryId: '',
  createInfo: {time: ''},
  directorySiteId: '',
  directorySiteIdDimensionValue: {},
  externalId: '',
  id: '',
  idDimensionValue: {},
  kind: '',
  lastModifiedInfo: {},
  name: '',
  placementGroupType: '',
  placementStrategyId: '',
  pricingSchedule: {
    capCostOption: '',
    endDate: '',
    flighted: false,
    floodlightActivityId: '',
    pricingPeriods: [
      {endDate: '', pricingComment: '', rateOrCostNanos: '', startDate: '', units: ''}
    ],
    pricingType: '',
    startDate: '',
    testingStartDate: ''
  },
  primaryPlacementId: '',
  primaryPlacementIdDimensionValue: {},
  siteId: '',
  siteIdDimensionValue: {},
  subaccountId: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/userprofiles/:profileId/placementGroups',
  headers: {'content-type': 'application/json'},
  body: {
    accountId: '',
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    archived: false,
    campaignId: '',
    campaignIdDimensionValue: {},
    childPlacementIds: [],
    comment: '',
    contentCategoryId: '',
    createInfo: {time: ''},
    directorySiteId: '',
    directorySiteIdDimensionValue: {},
    externalId: '',
    id: '',
    idDimensionValue: {},
    kind: '',
    lastModifiedInfo: {},
    name: '',
    placementGroupType: '',
    placementStrategyId: '',
    pricingSchedule: {
      capCostOption: '',
      endDate: '',
      flighted: false,
      floodlightActivityId: '',
      pricingPeriods: [
        {endDate: '', pricingComment: '', rateOrCostNanos: '', startDate: '', units: ''}
      ],
      pricingType: '',
      startDate: '',
      testingStartDate: ''
    },
    primaryPlacementId: '',
    primaryPlacementIdDimensionValue: {},
    siteId: '',
    siteIdDimensionValue: {},
    subaccountId: ''
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/userprofiles/:profileId/placementGroups');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  accountId: '',
  advertiserId: '',
  advertiserIdDimensionValue: {
    dimensionName: '',
    etag: '',
    id: '',
    kind: '',
    matchType: '',
    value: ''
  },
  archived: false,
  campaignId: '',
  campaignIdDimensionValue: {},
  childPlacementIds: [],
  comment: '',
  contentCategoryId: '',
  createInfo: {
    time: ''
  },
  directorySiteId: '',
  directorySiteIdDimensionValue: {},
  externalId: '',
  id: '',
  idDimensionValue: {},
  kind: '',
  lastModifiedInfo: {},
  name: '',
  placementGroupType: '',
  placementStrategyId: '',
  pricingSchedule: {
    capCostOption: '',
    endDate: '',
    flighted: false,
    floodlightActivityId: '',
    pricingPeriods: [
      {
        endDate: '',
        pricingComment: '',
        rateOrCostNanos: '',
        startDate: '',
        units: ''
      }
    ],
    pricingType: '',
    startDate: '',
    testingStartDate: ''
  },
  primaryPlacementId: '',
  primaryPlacementIdDimensionValue: {},
  siteId: '',
  siteIdDimensionValue: {},
  subaccountId: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/userprofiles/:profileId/placementGroups',
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    archived: false,
    campaignId: '',
    campaignIdDimensionValue: {},
    childPlacementIds: [],
    comment: '',
    contentCategoryId: '',
    createInfo: {time: ''},
    directorySiteId: '',
    directorySiteIdDimensionValue: {},
    externalId: '',
    id: '',
    idDimensionValue: {},
    kind: '',
    lastModifiedInfo: {},
    name: '',
    placementGroupType: '',
    placementStrategyId: '',
    pricingSchedule: {
      capCostOption: '',
      endDate: '',
      flighted: false,
      floodlightActivityId: '',
      pricingPeriods: [
        {endDate: '', pricingComment: '', rateOrCostNanos: '', startDate: '', units: ''}
      ],
      pricingType: '',
      startDate: '',
      testingStartDate: ''
    },
    primaryPlacementId: '',
    primaryPlacementIdDimensionValue: {},
    siteId: '',
    siteIdDimensionValue: {},
    subaccountId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/placementGroups';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","advertiserId":"","advertiserIdDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"archived":false,"campaignId":"","campaignIdDimensionValue":{},"childPlacementIds":[],"comment":"","contentCategoryId":"","createInfo":{"time":""},"directorySiteId":"","directorySiteIdDimensionValue":{},"externalId":"","id":"","idDimensionValue":{},"kind":"","lastModifiedInfo":{},"name":"","placementGroupType":"","placementStrategyId":"","pricingSchedule":{"capCostOption":"","endDate":"","flighted":false,"floodlightActivityId":"","pricingPeriods":[{"endDate":"","pricingComment":"","rateOrCostNanos":"","startDate":"","units":""}],"pricingType":"","startDate":"","testingStartDate":""},"primaryPlacementId":"","primaryPlacementIdDimensionValue":{},"siteId":"","siteIdDimensionValue":{},"subaccountId":""}'
};

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 = @{ @"accountId": @"",
                              @"advertiserId": @"",
                              @"advertiserIdDimensionValue": @{ @"dimensionName": @"", @"etag": @"", @"id": @"", @"kind": @"", @"matchType": @"", @"value": @"" },
                              @"archived": @NO,
                              @"campaignId": @"",
                              @"campaignIdDimensionValue": @{  },
                              @"childPlacementIds": @[  ],
                              @"comment": @"",
                              @"contentCategoryId": @"",
                              @"createInfo": @{ @"time": @"" },
                              @"directorySiteId": @"",
                              @"directorySiteIdDimensionValue": @{  },
                              @"externalId": @"",
                              @"id": @"",
                              @"idDimensionValue": @{  },
                              @"kind": @"",
                              @"lastModifiedInfo": @{  },
                              @"name": @"",
                              @"placementGroupType": @"",
                              @"placementStrategyId": @"",
                              @"pricingSchedule": @{ @"capCostOption": @"", @"endDate": @"", @"flighted": @NO, @"floodlightActivityId": @"", @"pricingPeriods": @[ @{ @"endDate": @"", @"pricingComment": @"", @"rateOrCostNanos": @"", @"startDate": @"", @"units": @"" } ], @"pricingType": @"", @"startDate": @"", @"testingStartDate": @"" },
                              @"primaryPlacementId": @"",
                              @"primaryPlacementIdDimensionValue": @{  },
                              @"siteId": @"",
                              @"siteIdDimensionValue": @{  },
                              @"subaccountId": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/userprofiles/:profileId/placementGroups"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/userprofiles/:profileId/placementGroups" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"childPlacementIds\": [],\n  \"comment\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementGroupType\": \"\",\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primaryPlacementId\": \"\",\n  \"primaryPlacementIdDimensionValue\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"subaccountId\": \"\"\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/placementGroups",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'accountId' => '',
    'advertiserId' => '',
    'advertiserIdDimensionValue' => [
        'dimensionName' => '',
        'etag' => '',
        'id' => '',
        'kind' => '',
        'matchType' => '',
        'value' => ''
    ],
    'archived' => null,
    'campaignId' => '',
    'campaignIdDimensionValue' => [
        
    ],
    'childPlacementIds' => [
        
    ],
    'comment' => '',
    'contentCategoryId' => '',
    'createInfo' => [
        'time' => ''
    ],
    'directorySiteId' => '',
    'directorySiteIdDimensionValue' => [
        
    ],
    'externalId' => '',
    'id' => '',
    'idDimensionValue' => [
        
    ],
    'kind' => '',
    'lastModifiedInfo' => [
        
    ],
    'name' => '',
    'placementGroupType' => '',
    'placementStrategyId' => '',
    'pricingSchedule' => [
        'capCostOption' => '',
        'endDate' => '',
        'flighted' => null,
        'floodlightActivityId' => '',
        'pricingPeriods' => [
                [
                                'endDate' => '',
                                'pricingComment' => '',
                                'rateOrCostNanos' => '',
                                'startDate' => '',
                                'units' => ''
                ]
        ],
        'pricingType' => '',
        'startDate' => '',
        'testingStartDate' => ''
    ],
    'primaryPlacementId' => '',
    'primaryPlacementIdDimensionValue' => [
        
    ],
    'siteId' => '',
    'siteIdDimensionValue' => [
        
    ],
    'subaccountId' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/userprofiles/:profileId/placementGroups', [
  'body' => '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "archived": false,
  "campaignId": "",
  "campaignIdDimensionValue": {},
  "childPlacementIds": [],
  "comment": "",
  "contentCategoryId": "",
  "createInfo": {
    "time": ""
  },
  "directorySiteId": "",
  "directorySiteIdDimensionValue": {},
  "externalId": "",
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "lastModifiedInfo": {},
  "name": "",
  "placementGroupType": "",
  "placementStrategyId": "",
  "pricingSchedule": {
    "capCostOption": "",
    "endDate": "",
    "flighted": false,
    "floodlightActivityId": "",
    "pricingPeriods": [
      {
        "endDate": "",
        "pricingComment": "",
        "rateOrCostNanos": "",
        "startDate": "",
        "units": ""
      }
    ],
    "pricingType": "",
    "startDate": "",
    "testingStartDate": ""
  },
  "primaryPlacementId": "",
  "primaryPlacementIdDimensionValue": {},
  "siteId": "",
  "siteIdDimensionValue": {},
  "subaccountId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/placementGroups');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'accountId' => '',
  'advertiserId' => '',
  'advertiserIdDimensionValue' => [
    'dimensionName' => '',
    'etag' => '',
    'id' => '',
    'kind' => '',
    'matchType' => '',
    'value' => ''
  ],
  'archived' => null,
  'campaignId' => '',
  'campaignIdDimensionValue' => [
    
  ],
  'childPlacementIds' => [
    
  ],
  'comment' => '',
  'contentCategoryId' => '',
  'createInfo' => [
    'time' => ''
  ],
  'directorySiteId' => '',
  'directorySiteIdDimensionValue' => [
    
  ],
  'externalId' => '',
  'id' => '',
  'idDimensionValue' => [
    
  ],
  'kind' => '',
  'lastModifiedInfo' => [
    
  ],
  'name' => '',
  'placementGroupType' => '',
  'placementStrategyId' => '',
  'pricingSchedule' => [
    'capCostOption' => '',
    'endDate' => '',
    'flighted' => null,
    'floodlightActivityId' => '',
    'pricingPeriods' => [
        [
                'endDate' => '',
                'pricingComment' => '',
                'rateOrCostNanos' => '',
                'startDate' => '',
                'units' => ''
        ]
    ],
    'pricingType' => '',
    'startDate' => '',
    'testingStartDate' => ''
  ],
  'primaryPlacementId' => '',
  'primaryPlacementIdDimensionValue' => [
    
  ],
  'siteId' => '',
  'siteIdDimensionValue' => [
    
  ],
  'subaccountId' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'accountId' => '',
  'advertiserId' => '',
  'advertiserIdDimensionValue' => [
    'dimensionName' => '',
    'etag' => '',
    'id' => '',
    'kind' => '',
    'matchType' => '',
    'value' => ''
  ],
  'archived' => null,
  'campaignId' => '',
  'campaignIdDimensionValue' => [
    
  ],
  'childPlacementIds' => [
    
  ],
  'comment' => '',
  'contentCategoryId' => '',
  'createInfo' => [
    'time' => ''
  ],
  'directorySiteId' => '',
  'directorySiteIdDimensionValue' => [
    
  ],
  'externalId' => '',
  'id' => '',
  'idDimensionValue' => [
    
  ],
  'kind' => '',
  'lastModifiedInfo' => [
    
  ],
  'name' => '',
  'placementGroupType' => '',
  'placementStrategyId' => '',
  'pricingSchedule' => [
    'capCostOption' => '',
    'endDate' => '',
    'flighted' => null,
    'floodlightActivityId' => '',
    'pricingPeriods' => [
        [
                'endDate' => '',
                'pricingComment' => '',
                'rateOrCostNanos' => '',
                'startDate' => '',
                'units' => ''
        ]
    ],
    'pricingType' => '',
    'startDate' => '',
    'testingStartDate' => ''
  ],
  'primaryPlacementId' => '',
  'primaryPlacementIdDimensionValue' => [
    
  ],
  'siteId' => '',
  'siteIdDimensionValue' => [
    
  ],
  'subaccountId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/userprofiles/:profileId/placementGroups');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/placementGroups' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "archived": false,
  "campaignId": "",
  "campaignIdDimensionValue": {},
  "childPlacementIds": [],
  "comment": "",
  "contentCategoryId": "",
  "createInfo": {
    "time": ""
  },
  "directorySiteId": "",
  "directorySiteIdDimensionValue": {},
  "externalId": "",
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "lastModifiedInfo": {},
  "name": "",
  "placementGroupType": "",
  "placementStrategyId": "",
  "pricingSchedule": {
    "capCostOption": "",
    "endDate": "",
    "flighted": false,
    "floodlightActivityId": "",
    "pricingPeriods": [
      {
        "endDate": "",
        "pricingComment": "",
        "rateOrCostNanos": "",
        "startDate": "",
        "units": ""
      }
    ],
    "pricingType": "",
    "startDate": "",
    "testingStartDate": ""
  },
  "primaryPlacementId": "",
  "primaryPlacementIdDimensionValue": {},
  "siteId": "",
  "siteIdDimensionValue": {},
  "subaccountId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/placementGroups' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "archived": false,
  "campaignId": "",
  "campaignIdDimensionValue": {},
  "childPlacementIds": [],
  "comment": "",
  "contentCategoryId": "",
  "createInfo": {
    "time": ""
  },
  "directorySiteId": "",
  "directorySiteIdDimensionValue": {},
  "externalId": "",
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "lastModifiedInfo": {},
  "name": "",
  "placementGroupType": "",
  "placementStrategyId": "",
  "pricingSchedule": {
    "capCostOption": "",
    "endDate": "",
    "flighted": false,
    "floodlightActivityId": "",
    "pricingPeriods": [
      {
        "endDate": "",
        "pricingComment": "",
        "rateOrCostNanos": "",
        "startDate": "",
        "units": ""
      }
    ],
    "pricingType": "",
    "startDate": "",
    "testingStartDate": ""
  },
  "primaryPlacementId": "",
  "primaryPlacementIdDimensionValue": {},
  "siteId": "",
  "siteIdDimensionValue": {},
  "subaccountId": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"childPlacementIds\": [],\n  \"comment\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementGroupType\": \"\",\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primaryPlacementId\": \"\",\n  \"primaryPlacementIdDimensionValue\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"subaccountId\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/userprofiles/:profileId/placementGroups", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/placementGroups"

payload = {
    "accountId": "",
    "advertiserId": "",
    "advertiserIdDimensionValue": {
        "dimensionName": "",
        "etag": "",
        "id": "",
        "kind": "",
        "matchType": "",
        "value": ""
    },
    "archived": False,
    "campaignId": "",
    "campaignIdDimensionValue": {},
    "childPlacementIds": [],
    "comment": "",
    "contentCategoryId": "",
    "createInfo": { "time": "" },
    "directorySiteId": "",
    "directorySiteIdDimensionValue": {},
    "externalId": "",
    "id": "",
    "idDimensionValue": {},
    "kind": "",
    "lastModifiedInfo": {},
    "name": "",
    "placementGroupType": "",
    "placementStrategyId": "",
    "pricingSchedule": {
        "capCostOption": "",
        "endDate": "",
        "flighted": False,
        "floodlightActivityId": "",
        "pricingPeriods": [
            {
                "endDate": "",
                "pricingComment": "",
                "rateOrCostNanos": "",
                "startDate": "",
                "units": ""
            }
        ],
        "pricingType": "",
        "startDate": "",
        "testingStartDate": ""
    },
    "primaryPlacementId": "",
    "primaryPlacementIdDimensionValue": {},
    "siteId": "",
    "siteIdDimensionValue": {},
    "subaccountId": ""
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/placementGroups"

payload <- "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"childPlacementIds\": [],\n  \"comment\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementGroupType\": \"\",\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primaryPlacementId\": \"\",\n  \"primaryPlacementIdDimensionValue\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"subaccountId\": \"\"\n}"

encode <- "json"

response <- VERB("PUT", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/placementGroups")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"childPlacementIds\": [],\n  \"comment\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementGroupType\": \"\",\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primaryPlacementId\": \"\",\n  \"primaryPlacementIdDimensionValue\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"subaccountId\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.put('/baseUrl/userprofiles/:profileId/placementGroups') do |req|
  req.body = "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"childPlacementIds\": [],\n  \"comment\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"name\": \"\",\n  \"placementGroupType\": \"\",\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primaryPlacementId\": \"\",\n  \"primaryPlacementIdDimensionValue\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"subaccountId\": \"\"\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}}/userprofiles/:profileId/placementGroups";

    let payload = json!({
        "accountId": "",
        "advertiserId": "",
        "advertiserIdDimensionValue": json!({
            "dimensionName": "",
            "etag": "",
            "id": "",
            "kind": "",
            "matchType": "",
            "value": ""
        }),
        "archived": false,
        "campaignId": "",
        "campaignIdDimensionValue": json!({}),
        "childPlacementIds": (),
        "comment": "",
        "contentCategoryId": "",
        "createInfo": json!({"time": ""}),
        "directorySiteId": "",
        "directorySiteIdDimensionValue": json!({}),
        "externalId": "",
        "id": "",
        "idDimensionValue": json!({}),
        "kind": "",
        "lastModifiedInfo": json!({}),
        "name": "",
        "placementGroupType": "",
        "placementStrategyId": "",
        "pricingSchedule": json!({
            "capCostOption": "",
            "endDate": "",
            "flighted": false,
            "floodlightActivityId": "",
            "pricingPeriods": (
                json!({
                    "endDate": "",
                    "pricingComment": "",
                    "rateOrCostNanos": "",
                    "startDate": "",
                    "units": ""
                })
            ),
            "pricingType": "",
            "startDate": "",
            "testingStartDate": ""
        }),
        "primaryPlacementId": "",
        "primaryPlacementIdDimensionValue": json!({}),
        "siteId": "",
        "siteIdDimensionValue": json!({}),
        "subaccountId": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/userprofiles/:profileId/placementGroups \
  --header 'content-type: application/json' \
  --data '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "archived": false,
  "campaignId": "",
  "campaignIdDimensionValue": {},
  "childPlacementIds": [],
  "comment": "",
  "contentCategoryId": "",
  "createInfo": {
    "time": ""
  },
  "directorySiteId": "",
  "directorySiteIdDimensionValue": {},
  "externalId": "",
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "lastModifiedInfo": {},
  "name": "",
  "placementGroupType": "",
  "placementStrategyId": "",
  "pricingSchedule": {
    "capCostOption": "",
    "endDate": "",
    "flighted": false,
    "floodlightActivityId": "",
    "pricingPeriods": [
      {
        "endDate": "",
        "pricingComment": "",
        "rateOrCostNanos": "",
        "startDate": "",
        "units": ""
      }
    ],
    "pricingType": "",
    "startDate": "",
    "testingStartDate": ""
  },
  "primaryPlacementId": "",
  "primaryPlacementIdDimensionValue": {},
  "siteId": "",
  "siteIdDimensionValue": {},
  "subaccountId": ""
}'
echo '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "archived": false,
  "campaignId": "",
  "campaignIdDimensionValue": {},
  "childPlacementIds": [],
  "comment": "",
  "contentCategoryId": "",
  "createInfo": {
    "time": ""
  },
  "directorySiteId": "",
  "directorySiteIdDimensionValue": {},
  "externalId": "",
  "id": "",
  "idDimensionValue": {},
  "kind": "",
  "lastModifiedInfo": {},
  "name": "",
  "placementGroupType": "",
  "placementStrategyId": "",
  "pricingSchedule": {
    "capCostOption": "",
    "endDate": "",
    "flighted": false,
    "floodlightActivityId": "",
    "pricingPeriods": [
      {
        "endDate": "",
        "pricingComment": "",
        "rateOrCostNanos": "",
        "startDate": "",
        "units": ""
      }
    ],
    "pricingType": "",
    "startDate": "",
    "testingStartDate": ""
  },
  "primaryPlacementId": "",
  "primaryPlacementIdDimensionValue": {},
  "siteId": "",
  "siteIdDimensionValue": {},
  "subaccountId": ""
}' |  \
  http PUT {{baseUrl}}/userprofiles/:profileId/placementGroups \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "accountId": "",\n  "advertiserId": "",\n  "advertiserIdDimensionValue": {\n    "dimensionName": "",\n    "etag": "",\n    "id": "",\n    "kind": "",\n    "matchType": "",\n    "value": ""\n  },\n  "archived": false,\n  "campaignId": "",\n  "campaignIdDimensionValue": {},\n  "childPlacementIds": [],\n  "comment": "",\n  "contentCategoryId": "",\n  "createInfo": {\n    "time": ""\n  },\n  "directorySiteId": "",\n  "directorySiteIdDimensionValue": {},\n  "externalId": "",\n  "id": "",\n  "idDimensionValue": {},\n  "kind": "",\n  "lastModifiedInfo": {},\n  "name": "",\n  "placementGroupType": "",\n  "placementStrategyId": "",\n  "pricingSchedule": {\n    "capCostOption": "",\n    "endDate": "",\n    "flighted": false,\n    "floodlightActivityId": "",\n    "pricingPeriods": [\n      {\n        "endDate": "",\n        "pricingComment": "",\n        "rateOrCostNanos": "",\n        "startDate": "",\n        "units": ""\n      }\n    ],\n    "pricingType": "",\n    "startDate": "",\n    "testingStartDate": ""\n  },\n  "primaryPlacementId": "",\n  "primaryPlacementIdDimensionValue": {},\n  "siteId": "",\n  "siteIdDimensionValue": {},\n  "subaccountId": ""\n}' \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/placementGroups
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": [
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  ],
  "archived": false,
  "campaignId": "",
  "campaignIdDimensionValue": [],
  "childPlacementIds": [],
  "comment": "",
  "contentCategoryId": "",
  "createInfo": ["time": ""],
  "directorySiteId": "",
  "directorySiteIdDimensionValue": [],
  "externalId": "",
  "id": "",
  "idDimensionValue": [],
  "kind": "",
  "lastModifiedInfo": [],
  "name": "",
  "placementGroupType": "",
  "placementStrategyId": "",
  "pricingSchedule": [
    "capCostOption": "",
    "endDate": "",
    "flighted": false,
    "floodlightActivityId": "",
    "pricingPeriods": [
      [
        "endDate": "",
        "pricingComment": "",
        "rateOrCostNanos": "",
        "startDate": "",
        "units": ""
      ]
    ],
    "pricingType": "",
    "startDate": "",
    "testingStartDate": ""
  ],
  "primaryPlacementId": "",
  "primaryPlacementIdDimensionValue": [],
  "siteId": "",
  "siteIdDimensionValue": [],
  "subaccountId": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/placementGroups")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST dfareporting.placements.generatetags
{{baseUrl}}/userprofiles/:profileId/placements/generatetags
QUERY PARAMS

profileId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/placements/generatetags");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/userprofiles/:profileId/placements/generatetags")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/placements/generatetags"

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}}/userprofiles/:profileId/placements/generatetags"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/placements/generatetags");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/placements/generatetags"

	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/userprofiles/:profileId/placements/generatetags HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/userprofiles/:profileId/placements/generatetags")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/placements/generatetags"))
    .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}}/userprofiles/:profileId/placements/generatetags")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/userprofiles/:profileId/placements/generatetags")
  .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}}/userprofiles/:profileId/placements/generatetags');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/userprofiles/:profileId/placements/generatetags'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/placements/generatetags';
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}}/userprofiles/:profileId/placements/generatetags',
  method: 'POST',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/placements/generatetags")
  .post(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/placements/generatetags',
  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}}/userprofiles/:profileId/placements/generatetags'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/userprofiles/:profileId/placements/generatetags');

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}}/userprofiles/:profileId/placements/generatetags'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/placements/generatetags';
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}}/userprofiles/:profileId/placements/generatetags"]
                                                       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}}/userprofiles/:profileId/placements/generatetags" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/placements/generatetags",
  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}}/userprofiles/:profileId/placements/generatetags');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/placements/generatetags');
$request->setMethod(HTTP_METH_POST);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/placements/generatetags');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/placements/generatetags' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/placements/generatetags' -Method POST 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("POST", "/baseUrl/userprofiles/:profileId/placements/generatetags")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/placements/generatetags"

response = requests.post(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/placements/generatetags"

response <- VERB("POST", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/placements/generatetags")

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/userprofiles/:profileId/placements/generatetags') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/placements/generatetags";

    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}}/userprofiles/:profileId/placements/generatetags
http POST {{baseUrl}}/userprofiles/:profileId/placements/generatetags
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/placements/generatetags
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/placements/generatetags")! 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 dfareporting.placements.get
{{baseUrl}}/userprofiles/:profileId/placements/:id
QUERY PARAMS

profileId
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/placements/:id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/placements/:id")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/placements/:id"

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}}/userprofiles/:profileId/placements/:id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/placements/:id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/placements/:id"

	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/userprofiles/:profileId/placements/:id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/placements/:id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/placements/:id"))
    .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}}/userprofiles/:profileId/placements/:id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/placements/:id")
  .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}}/userprofiles/:profileId/placements/:id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/placements/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/placements/:id';
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}}/userprofiles/:profileId/placements/:id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/placements/:id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/placements/:id',
  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}}/userprofiles/:profileId/placements/:id'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/placements/:id');

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}}/userprofiles/:profileId/placements/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/placements/:id';
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}}/userprofiles/:profileId/placements/:id"]
                                                       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}}/userprofiles/:profileId/placements/:id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/placements/:id",
  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}}/userprofiles/:profileId/placements/:id');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/placements/:id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/placements/:id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/placements/:id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/placements/:id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/placements/:id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/placements/:id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/placements/:id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/placements/:id")

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/userprofiles/:profileId/placements/:id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/placements/:id";

    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}}/userprofiles/:profileId/placements/:id
http GET {{baseUrl}}/userprofiles/:profileId/placements/:id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/placements/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/placements/:id")! 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 dfareporting.placements.insert
{{baseUrl}}/userprofiles/:profileId/placements
QUERY PARAMS

profileId
BODY json

{
  "accountId": "",
  "adBlockingOptOut": false,
  "additionalSizes": [
    {
      "height": 0,
      "iab": false,
      "id": "",
      "kind": "",
      "width": 0
    }
  ],
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "archived": false,
  "campaignId": "",
  "campaignIdDimensionValue": {},
  "comment": "",
  "compatibility": "",
  "contentCategoryId": "",
  "createInfo": {
    "time": ""
  },
  "directorySiteId": "",
  "directorySiteIdDimensionValue": {},
  "externalId": "",
  "id": "",
  "idDimensionValue": {},
  "keyName": "",
  "kind": "",
  "lastModifiedInfo": {},
  "lookbackConfiguration": {
    "clickDuration": 0,
    "postImpressionActivitiesDuration": 0
  },
  "name": "",
  "paymentApproved": false,
  "paymentSource": "",
  "placementGroupId": "",
  "placementGroupIdDimensionValue": {},
  "placementStrategyId": "",
  "pricingSchedule": {
    "capCostOption": "",
    "endDate": "",
    "flighted": false,
    "floodlightActivityId": "",
    "pricingPeriods": [
      {
        "endDate": "",
        "pricingComment": "",
        "rateOrCostNanos": "",
        "startDate": "",
        "units": ""
      }
    ],
    "pricingType": "",
    "startDate": "",
    "testingStartDate": ""
  },
  "primary": false,
  "publisherUpdateInfo": {},
  "siteId": "",
  "siteIdDimensionValue": {},
  "size": {},
  "sslRequired": false,
  "status": "",
  "subaccountId": "",
  "tagFormats": [],
  "tagSetting": {
    "additionalKeyValues": "",
    "includeClickThroughUrls": false,
    "includeClickTracking": false,
    "keywordOption": ""
  },
  "videoActiveViewOptOut": false,
  "videoSettings": {
    "companionSettings": {
      "companionsDisabled": false,
      "enabledSizes": [
        {}
      ],
      "imageOnly": false,
      "kind": ""
    },
    "kind": "",
    "obaEnabled": false,
    "obaSettings": {
      "iconClickThroughUrl": "",
      "iconClickTrackingUrl": "",
      "iconViewTrackingUrl": "",
      "program": "",
      "resourceUrl": "",
      "size": {},
      "xPosition": "",
      "yPosition": ""
    },
    "orientation": "",
    "skippableSettings": {
      "kind": "",
      "progressOffset": {
        "offsetPercentage": 0,
        "offsetSeconds": 0
      },
      "skipOffset": {},
      "skippable": false
    },
    "transcodeSettings": {
      "enabledVideoFormats": [],
      "kind": ""
    }
  },
  "vpaidAdapterChoice": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/placements");

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  \"accountId\": \"\",\n  \"adBlockingOptOut\": false,\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"comment\": \"\",\n  \"compatibility\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"lookbackConfiguration\": {\n    \"clickDuration\": 0,\n    \"postImpressionActivitiesDuration\": 0\n  },\n  \"name\": \"\",\n  \"paymentApproved\": false,\n  \"paymentSource\": \"\",\n  \"placementGroupId\": \"\",\n  \"placementGroupIdDimensionValue\": {},\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primary\": false,\n  \"publisherUpdateInfo\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"size\": {},\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormats\": [],\n  \"tagSetting\": {\n    \"additionalKeyValues\": \"\",\n    \"includeClickThroughUrls\": false,\n    \"includeClickTracking\": false,\n    \"keywordOption\": \"\"\n  },\n  \"videoActiveViewOptOut\": false,\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {}\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\n    }\n  },\n  \"vpaidAdapterChoice\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/userprofiles/:profileId/placements" {:content-type :json
                                                                               :form-params {:accountId ""
                                                                                             :adBlockingOptOut false
                                                                                             :additionalSizes [{:height 0
                                                                                                                :iab false
                                                                                                                :id ""
                                                                                                                :kind ""
                                                                                                                :width 0}]
                                                                                             :advertiserId ""
                                                                                             :advertiserIdDimensionValue {:dimensionName ""
                                                                                                                          :etag ""
                                                                                                                          :id ""
                                                                                                                          :kind ""
                                                                                                                          :matchType ""
                                                                                                                          :value ""}
                                                                                             :archived false
                                                                                             :campaignId ""
                                                                                             :campaignIdDimensionValue {}
                                                                                             :comment ""
                                                                                             :compatibility ""
                                                                                             :contentCategoryId ""
                                                                                             :createInfo {:time ""}
                                                                                             :directorySiteId ""
                                                                                             :directorySiteIdDimensionValue {}
                                                                                             :externalId ""
                                                                                             :id ""
                                                                                             :idDimensionValue {}
                                                                                             :keyName ""
                                                                                             :kind ""
                                                                                             :lastModifiedInfo {}
                                                                                             :lookbackConfiguration {:clickDuration 0
                                                                                                                     :postImpressionActivitiesDuration 0}
                                                                                             :name ""
                                                                                             :paymentApproved false
                                                                                             :paymentSource ""
                                                                                             :placementGroupId ""
                                                                                             :placementGroupIdDimensionValue {}
                                                                                             :placementStrategyId ""
                                                                                             :pricingSchedule {:capCostOption ""
                                                                                                               :endDate ""
                                                                                                               :flighted false
                                                                                                               :floodlightActivityId ""
                                                                                                               :pricingPeriods [{:endDate ""
                                                                                                                                 :pricingComment ""
                                                                                                                                 :rateOrCostNanos ""
                                                                                                                                 :startDate ""
                                                                                                                                 :units ""}]
                                                                                                               :pricingType ""
                                                                                                               :startDate ""
                                                                                                               :testingStartDate ""}
                                                                                             :primary false
                                                                                             :publisherUpdateInfo {}
                                                                                             :siteId ""
                                                                                             :siteIdDimensionValue {}
                                                                                             :size {}
                                                                                             :sslRequired false
                                                                                             :status ""
                                                                                             :subaccountId ""
                                                                                             :tagFormats []
                                                                                             :tagSetting {:additionalKeyValues ""
                                                                                                          :includeClickThroughUrls false
                                                                                                          :includeClickTracking false
                                                                                                          :keywordOption ""}
                                                                                             :videoActiveViewOptOut false
                                                                                             :videoSettings {:companionSettings {:companionsDisabled false
                                                                                                                                 :enabledSizes [{}]
                                                                                                                                 :imageOnly false
                                                                                                                                 :kind ""}
                                                                                                             :kind ""
                                                                                                             :obaEnabled false
                                                                                                             :obaSettings {:iconClickThroughUrl ""
                                                                                                                           :iconClickTrackingUrl ""
                                                                                                                           :iconViewTrackingUrl ""
                                                                                                                           :program ""
                                                                                                                           :resourceUrl ""
                                                                                                                           :size {}
                                                                                                                           :xPosition ""
                                                                                                                           :yPosition ""}
                                                                                                             :orientation ""
                                                                                                             :skippableSettings {:kind ""
                                                                                                                                 :progressOffset {:offsetPercentage 0
                                                                                                                                                  :offsetSeconds 0}
                                                                                                                                 :skipOffset {}
                                                                                                                                 :skippable false}
                                                                                                             :transcodeSettings {:enabledVideoFormats []
                                                                                                                                 :kind ""}}
                                                                                             :vpaidAdapterChoice ""}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/placements"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"accountId\": \"\",\n  \"adBlockingOptOut\": false,\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"comment\": \"\",\n  \"compatibility\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"lookbackConfiguration\": {\n    \"clickDuration\": 0,\n    \"postImpressionActivitiesDuration\": 0\n  },\n  \"name\": \"\",\n  \"paymentApproved\": false,\n  \"paymentSource\": \"\",\n  \"placementGroupId\": \"\",\n  \"placementGroupIdDimensionValue\": {},\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primary\": false,\n  \"publisherUpdateInfo\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"size\": {},\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormats\": [],\n  \"tagSetting\": {\n    \"additionalKeyValues\": \"\",\n    \"includeClickThroughUrls\": false,\n    \"includeClickTracking\": false,\n    \"keywordOption\": \"\"\n  },\n  \"videoActiveViewOptOut\": false,\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {}\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\n    }\n  },\n  \"vpaidAdapterChoice\": \"\"\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}}/userprofiles/:profileId/placements"),
    Content = new StringContent("{\n  \"accountId\": \"\",\n  \"adBlockingOptOut\": false,\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"comment\": \"\",\n  \"compatibility\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"lookbackConfiguration\": {\n    \"clickDuration\": 0,\n    \"postImpressionActivitiesDuration\": 0\n  },\n  \"name\": \"\",\n  \"paymentApproved\": false,\n  \"paymentSource\": \"\",\n  \"placementGroupId\": \"\",\n  \"placementGroupIdDimensionValue\": {},\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primary\": false,\n  \"publisherUpdateInfo\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"size\": {},\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormats\": [],\n  \"tagSetting\": {\n    \"additionalKeyValues\": \"\",\n    \"includeClickThroughUrls\": false,\n    \"includeClickTracking\": false,\n    \"keywordOption\": \"\"\n  },\n  \"videoActiveViewOptOut\": false,\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {}\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\n    }\n  },\n  \"vpaidAdapterChoice\": \"\"\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}}/userprofiles/:profileId/placements");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"accountId\": \"\",\n  \"adBlockingOptOut\": false,\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"comment\": \"\",\n  \"compatibility\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"lookbackConfiguration\": {\n    \"clickDuration\": 0,\n    \"postImpressionActivitiesDuration\": 0\n  },\n  \"name\": \"\",\n  \"paymentApproved\": false,\n  \"paymentSource\": \"\",\n  \"placementGroupId\": \"\",\n  \"placementGroupIdDimensionValue\": {},\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primary\": false,\n  \"publisherUpdateInfo\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"size\": {},\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormats\": [],\n  \"tagSetting\": {\n    \"additionalKeyValues\": \"\",\n    \"includeClickThroughUrls\": false,\n    \"includeClickTracking\": false,\n    \"keywordOption\": \"\"\n  },\n  \"videoActiveViewOptOut\": false,\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {}\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\n    }\n  },\n  \"vpaidAdapterChoice\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/placements"

	payload := strings.NewReader("{\n  \"accountId\": \"\",\n  \"adBlockingOptOut\": false,\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"comment\": \"\",\n  \"compatibility\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"lookbackConfiguration\": {\n    \"clickDuration\": 0,\n    \"postImpressionActivitiesDuration\": 0\n  },\n  \"name\": \"\",\n  \"paymentApproved\": false,\n  \"paymentSource\": \"\",\n  \"placementGroupId\": \"\",\n  \"placementGroupIdDimensionValue\": {},\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primary\": false,\n  \"publisherUpdateInfo\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"size\": {},\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormats\": [],\n  \"tagSetting\": {\n    \"additionalKeyValues\": \"\",\n    \"includeClickThroughUrls\": false,\n    \"includeClickTracking\": false,\n    \"keywordOption\": \"\"\n  },\n  \"videoActiveViewOptOut\": false,\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {}\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\n    }\n  },\n  \"vpaidAdapterChoice\": \"\"\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/userprofiles/:profileId/placements HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 2506

{
  "accountId": "",
  "adBlockingOptOut": false,
  "additionalSizes": [
    {
      "height": 0,
      "iab": false,
      "id": "",
      "kind": "",
      "width": 0
    }
  ],
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "archived": false,
  "campaignId": "",
  "campaignIdDimensionValue": {},
  "comment": "",
  "compatibility": "",
  "contentCategoryId": "",
  "createInfo": {
    "time": ""
  },
  "directorySiteId": "",
  "directorySiteIdDimensionValue": {},
  "externalId": "",
  "id": "",
  "idDimensionValue": {},
  "keyName": "",
  "kind": "",
  "lastModifiedInfo": {},
  "lookbackConfiguration": {
    "clickDuration": 0,
    "postImpressionActivitiesDuration": 0
  },
  "name": "",
  "paymentApproved": false,
  "paymentSource": "",
  "placementGroupId": "",
  "placementGroupIdDimensionValue": {},
  "placementStrategyId": "",
  "pricingSchedule": {
    "capCostOption": "",
    "endDate": "",
    "flighted": false,
    "floodlightActivityId": "",
    "pricingPeriods": [
      {
        "endDate": "",
        "pricingComment": "",
        "rateOrCostNanos": "",
        "startDate": "",
        "units": ""
      }
    ],
    "pricingType": "",
    "startDate": "",
    "testingStartDate": ""
  },
  "primary": false,
  "publisherUpdateInfo": {},
  "siteId": "",
  "siteIdDimensionValue": {},
  "size": {},
  "sslRequired": false,
  "status": "",
  "subaccountId": "",
  "tagFormats": [],
  "tagSetting": {
    "additionalKeyValues": "",
    "includeClickThroughUrls": false,
    "includeClickTracking": false,
    "keywordOption": ""
  },
  "videoActiveViewOptOut": false,
  "videoSettings": {
    "companionSettings": {
      "companionsDisabled": false,
      "enabledSizes": [
        {}
      ],
      "imageOnly": false,
      "kind": ""
    },
    "kind": "",
    "obaEnabled": false,
    "obaSettings": {
      "iconClickThroughUrl": "",
      "iconClickTrackingUrl": "",
      "iconViewTrackingUrl": "",
      "program": "",
      "resourceUrl": "",
      "size": {},
      "xPosition": "",
      "yPosition": ""
    },
    "orientation": "",
    "skippableSettings": {
      "kind": "",
      "progressOffset": {
        "offsetPercentage": 0,
        "offsetSeconds": 0
      },
      "skipOffset": {},
      "skippable": false
    },
    "transcodeSettings": {
      "enabledVideoFormats": [],
      "kind": ""
    }
  },
  "vpaidAdapterChoice": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/userprofiles/:profileId/placements")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"accountId\": \"\",\n  \"adBlockingOptOut\": false,\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"comment\": \"\",\n  \"compatibility\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"lookbackConfiguration\": {\n    \"clickDuration\": 0,\n    \"postImpressionActivitiesDuration\": 0\n  },\n  \"name\": \"\",\n  \"paymentApproved\": false,\n  \"paymentSource\": \"\",\n  \"placementGroupId\": \"\",\n  \"placementGroupIdDimensionValue\": {},\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primary\": false,\n  \"publisherUpdateInfo\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"size\": {},\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormats\": [],\n  \"tagSetting\": {\n    \"additionalKeyValues\": \"\",\n    \"includeClickThroughUrls\": false,\n    \"includeClickTracking\": false,\n    \"keywordOption\": \"\"\n  },\n  \"videoActiveViewOptOut\": false,\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {}\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\n    }\n  },\n  \"vpaidAdapterChoice\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/placements"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"accountId\": \"\",\n  \"adBlockingOptOut\": false,\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"comment\": \"\",\n  \"compatibility\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"lookbackConfiguration\": {\n    \"clickDuration\": 0,\n    \"postImpressionActivitiesDuration\": 0\n  },\n  \"name\": \"\",\n  \"paymentApproved\": false,\n  \"paymentSource\": \"\",\n  \"placementGroupId\": \"\",\n  \"placementGroupIdDimensionValue\": {},\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primary\": false,\n  \"publisherUpdateInfo\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"size\": {},\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormats\": [],\n  \"tagSetting\": {\n    \"additionalKeyValues\": \"\",\n    \"includeClickThroughUrls\": false,\n    \"includeClickTracking\": false,\n    \"keywordOption\": \"\"\n  },\n  \"videoActiveViewOptOut\": false,\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {}\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\n    }\n  },\n  \"vpaidAdapterChoice\": \"\"\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  \"accountId\": \"\",\n  \"adBlockingOptOut\": false,\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"comment\": \"\",\n  \"compatibility\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"lookbackConfiguration\": {\n    \"clickDuration\": 0,\n    \"postImpressionActivitiesDuration\": 0\n  },\n  \"name\": \"\",\n  \"paymentApproved\": false,\n  \"paymentSource\": \"\",\n  \"placementGroupId\": \"\",\n  \"placementGroupIdDimensionValue\": {},\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primary\": false,\n  \"publisherUpdateInfo\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"size\": {},\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormats\": [],\n  \"tagSetting\": {\n    \"additionalKeyValues\": \"\",\n    \"includeClickThroughUrls\": false,\n    \"includeClickTracking\": false,\n    \"keywordOption\": \"\"\n  },\n  \"videoActiveViewOptOut\": false,\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {}\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\n    }\n  },\n  \"vpaidAdapterChoice\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/placements")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/userprofiles/:profileId/placements")
  .header("content-type", "application/json")
  .body("{\n  \"accountId\": \"\",\n  \"adBlockingOptOut\": false,\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"comment\": \"\",\n  \"compatibility\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"lookbackConfiguration\": {\n    \"clickDuration\": 0,\n    \"postImpressionActivitiesDuration\": 0\n  },\n  \"name\": \"\",\n  \"paymentApproved\": false,\n  \"paymentSource\": \"\",\n  \"placementGroupId\": \"\",\n  \"placementGroupIdDimensionValue\": {},\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primary\": false,\n  \"publisherUpdateInfo\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"size\": {},\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormats\": [],\n  \"tagSetting\": {\n    \"additionalKeyValues\": \"\",\n    \"includeClickThroughUrls\": false,\n    \"includeClickTracking\": false,\n    \"keywordOption\": \"\"\n  },\n  \"videoActiveViewOptOut\": false,\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {}\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\n    }\n  },\n  \"vpaidAdapterChoice\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  accountId: '',
  adBlockingOptOut: false,
  additionalSizes: [
    {
      height: 0,
      iab: false,
      id: '',
      kind: '',
      width: 0
    }
  ],
  advertiserId: '',
  advertiserIdDimensionValue: {
    dimensionName: '',
    etag: '',
    id: '',
    kind: '',
    matchType: '',
    value: ''
  },
  archived: false,
  campaignId: '',
  campaignIdDimensionValue: {},
  comment: '',
  compatibility: '',
  contentCategoryId: '',
  createInfo: {
    time: ''
  },
  directorySiteId: '',
  directorySiteIdDimensionValue: {},
  externalId: '',
  id: '',
  idDimensionValue: {},
  keyName: '',
  kind: '',
  lastModifiedInfo: {},
  lookbackConfiguration: {
    clickDuration: 0,
    postImpressionActivitiesDuration: 0
  },
  name: '',
  paymentApproved: false,
  paymentSource: '',
  placementGroupId: '',
  placementGroupIdDimensionValue: {},
  placementStrategyId: '',
  pricingSchedule: {
    capCostOption: '',
    endDate: '',
    flighted: false,
    floodlightActivityId: '',
    pricingPeriods: [
      {
        endDate: '',
        pricingComment: '',
        rateOrCostNanos: '',
        startDate: '',
        units: ''
      }
    ],
    pricingType: '',
    startDate: '',
    testingStartDate: ''
  },
  primary: false,
  publisherUpdateInfo: {},
  siteId: '',
  siteIdDimensionValue: {},
  size: {},
  sslRequired: false,
  status: '',
  subaccountId: '',
  tagFormats: [],
  tagSetting: {
    additionalKeyValues: '',
    includeClickThroughUrls: false,
    includeClickTracking: false,
    keywordOption: ''
  },
  videoActiveViewOptOut: false,
  videoSettings: {
    companionSettings: {
      companionsDisabled: false,
      enabledSizes: [
        {}
      ],
      imageOnly: false,
      kind: ''
    },
    kind: '',
    obaEnabled: false,
    obaSettings: {
      iconClickThroughUrl: '',
      iconClickTrackingUrl: '',
      iconViewTrackingUrl: '',
      program: '',
      resourceUrl: '',
      size: {},
      xPosition: '',
      yPosition: ''
    },
    orientation: '',
    skippableSettings: {
      kind: '',
      progressOffset: {
        offsetPercentage: 0,
        offsetSeconds: 0
      },
      skipOffset: {},
      skippable: false
    },
    transcodeSettings: {
      enabledVideoFormats: [],
      kind: ''
    }
  },
  vpaidAdapterChoice: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/userprofiles/:profileId/placements');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/userprofiles/:profileId/placements',
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    adBlockingOptOut: false,
    additionalSizes: [{height: 0, iab: false, id: '', kind: '', width: 0}],
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    archived: false,
    campaignId: '',
    campaignIdDimensionValue: {},
    comment: '',
    compatibility: '',
    contentCategoryId: '',
    createInfo: {time: ''},
    directorySiteId: '',
    directorySiteIdDimensionValue: {},
    externalId: '',
    id: '',
    idDimensionValue: {},
    keyName: '',
    kind: '',
    lastModifiedInfo: {},
    lookbackConfiguration: {clickDuration: 0, postImpressionActivitiesDuration: 0},
    name: '',
    paymentApproved: false,
    paymentSource: '',
    placementGroupId: '',
    placementGroupIdDimensionValue: {},
    placementStrategyId: '',
    pricingSchedule: {
      capCostOption: '',
      endDate: '',
      flighted: false,
      floodlightActivityId: '',
      pricingPeriods: [
        {endDate: '', pricingComment: '', rateOrCostNanos: '', startDate: '', units: ''}
      ],
      pricingType: '',
      startDate: '',
      testingStartDate: ''
    },
    primary: false,
    publisherUpdateInfo: {},
    siteId: '',
    siteIdDimensionValue: {},
    size: {},
    sslRequired: false,
    status: '',
    subaccountId: '',
    tagFormats: [],
    tagSetting: {
      additionalKeyValues: '',
      includeClickThroughUrls: false,
      includeClickTracking: false,
      keywordOption: ''
    },
    videoActiveViewOptOut: false,
    videoSettings: {
      companionSettings: {companionsDisabled: false, enabledSizes: [{}], imageOnly: false, kind: ''},
      kind: '',
      obaEnabled: false,
      obaSettings: {
        iconClickThroughUrl: '',
        iconClickTrackingUrl: '',
        iconViewTrackingUrl: '',
        program: '',
        resourceUrl: '',
        size: {},
        xPosition: '',
        yPosition: ''
      },
      orientation: '',
      skippableSettings: {
        kind: '',
        progressOffset: {offsetPercentage: 0, offsetSeconds: 0},
        skipOffset: {},
        skippable: false
      },
      transcodeSettings: {enabledVideoFormats: [], kind: ''}
    },
    vpaidAdapterChoice: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/placements';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","adBlockingOptOut":false,"additionalSizes":[{"height":0,"iab":false,"id":"","kind":"","width":0}],"advertiserId":"","advertiserIdDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"archived":false,"campaignId":"","campaignIdDimensionValue":{},"comment":"","compatibility":"","contentCategoryId":"","createInfo":{"time":""},"directorySiteId":"","directorySiteIdDimensionValue":{},"externalId":"","id":"","idDimensionValue":{},"keyName":"","kind":"","lastModifiedInfo":{},"lookbackConfiguration":{"clickDuration":0,"postImpressionActivitiesDuration":0},"name":"","paymentApproved":false,"paymentSource":"","placementGroupId":"","placementGroupIdDimensionValue":{},"placementStrategyId":"","pricingSchedule":{"capCostOption":"","endDate":"","flighted":false,"floodlightActivityId":"","pricingPeriods":[{"endDate":"","pricingComment":"","rateOrCostNanos":"","startDate":"","units":""}],"pricingType":"","startDate":"","testingStartDate":""},"primary":false,"publisherUpdateInfo":{},"siteId":"","siteIdDimensionValue":{},"size":{},"sslRequired":false,"status":"","subaccountId":"","tagFormats":[],"tagSetting":{"additionalKeyValues":"","includeClickThroughUrls":false,"includeClickTracking":false,"keywordOption":""},"videoActiveViewOptOut":false,"videoSettings":{"companionSettings":{"companionsDisabled":false,"enabledSizes":[{}],"imageOnly":false,"kind":""},"kind":"","obaEnabled":false,"obaSettings":{"iconClickThroughUrl":"","iconClickTrackingUrl":"","iconViewTrackingUrl":"","program":"","resourceUrl":"","size":{},"xPosition":"","yPosition":""},"orientation":"","skippableSettings":{"kind":"","progressOffset":{"offsetPercentage":0,"offsetSeconds":0},"skipOffset":{},"skippable":false},"transcodeSettings":{"enabledVideoFormats":[],"kind":""}},"vpaidAdapterChoice":""}'
};

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}}/userprofiles/:profileId/placements',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "accountId": "",\n  "adBlockingOptOut": false,\n  "additionalSizes": [\n    {\n      "height": 0,\n      "iab": false,\n      "id": "",\n      "kind": "",\n      "width": 0\n    }\n  ],\n  "advertiserId": "",\n  "advertiserIdDimensionValue": {\n    "dimensionName": "",\n    "etag": "",\n    "id": "",\n    "kind": "",\n    "matchType": "",\n    "value": ""\n  },\n  "archived": false,\n  "campaignId": "",\n  "campaignIdDimensionValue": {},\n  "comment": "",\n  "compatibility": "",\n  "contentCategoryId": "",\n  "createInfo": {\n    "time": ""\n  },\n  "directorySiteId": "",\n  "directorySiteIdDimensionValue": {},\n  "externalId": "",\n  "id": "",\n  "idDimensionValue": {},\n  "keyName": "",\n  "kind": "",\n  "lastModifiedInfo": {},\n  "lookbackConfiguration": {\n    "clickDuration": 0,\n    "postImpressionActivitiesDuration": 0\n  },\n  "name": "",\n  "paymentApproved": false,\n  "paymentSource": "",\n  "placementGroupId": "",\n  "placementGroupIdDimensionValue": {},\n  "placementStrategyId": "",\n  "pricingSchedule": {\n    "capCostOption": "",\n    "endDate": "",\n    "flighted": false,\n    "floodlightActivityId": "",\n    "pricingPeriods": [\n      {\n        "endDate": "",\n        "pricingComment": "",\n        "rateOrCostNanos": "",\n        "startDate": "",\n        "units": ""\n      }\n    ],\n    "pricingType": "",\n    "startDate": "",\n    "testingStartDate": ""\n  },\n  "primary": false,\n  "publisherUpdateInfo": {},\n  "siteId": "",\n  "siteIdDimensionValue": {},\n  "size": {},\n  "sslRequired": false,\n  "status": "",\n  "subaccountId": "",\n  "tagFormats": [],\n  "tagSetting": {\n    "additionalKeyValues": "",\n    "includeClickThroughUrls": false,\n    "includeClickTracking": false,\n    "keywordOption": ""\n  },\n  "videoActiveViewOptOut": false,\n  "videoSettings": {\n    "companionSettings": {\n      "companionsDisabled": false,\n      "enabledSizes": [\n        {}\n      ],\n      "imageOnly": false,\n      "kind": ""\n    },\n    "kind": "",\n    "obaEnabled": false,\n    "obaSettings": {\n      "iconClickThroughUrl": "",\n      "iconClickTrackingUrl": "",\n      "iconViewTrackingUrl": "",\n      "program": "",\n      "resourceUrl": "",\n      "size": {},\n      "xPosition": "",\n      "yPosition": ""\n    },\n    "orientation": "",\n    "skippableSettings": {\n      "kind": "",\n      "progressOffset": {\n        "offsetPercentage": 0,\n        "offsetSeconds": 0\n      },\n      "skipOffset": {},\n      "skippable": false\n    },\n    "transcodeSettings": {\n      "enabledVideoFormats": [],\n      "kind": ""\n    }\n  },\n  "vpaidAdapterChoice": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"accountId\": \"\",\n  \"adBlockingOptOut\": false,\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"comment\": \"\",\n  \"compatibility\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"lookbackConfiguration\": {\n    \"clickDuration\": 0,\n    \"postImpressionActivitiesDuration\": 0\n  },\n  \"name\": \"\",\n  \"paymentApproved\": false,\n  \"paymentSource\": \"\",\n  \"placementGroupId\": \"\",\n  \"placementGroupIdDimensionValue\": {},\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primary\": false,\n  \"publisherUpdateInfo\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"size\": {},\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormats\": [],\n  \"tagSetting\": {\n    \"additionalKeyValues\": \"\",\n    \"includeClickThroughUrls\": false,\n    \"includeClickTracking\": false,\n    \"keywordOption\": \"\"\n  },\n  \"videoActiveViewOptOut\": false,\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {}\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\n    }\n  },\n  \"vpaidAdapterChoice\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/placements")
  .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/userprofiles/:profileId/placements',
  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({
  accountId: '',
  adBlockingOptOut: false,
  additionalSizes: [{height: 0, iab: false, id: '', kind: '', width: 0}],
  advertiserId: '',
  advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
  archived: false,
  campaignId: '',
  campaignIdDimensionValue: {},
  comment: '',
  compatibility: '',
  contentCategoryId: '',
  createInfo: {time: ''},
  directorySiteId: '',
  directorySiteIdDimensionValue: {},
  externalId: '',
  id: '',
  idDimensionValue: {},
  keyName: '',
  kind: '',
  lastModifiedInfo: {},
  lookbackConfiguration: {clickDuration: 0, postImpressionActivitiesDuration: 0},
  name: '',
  paymentApproved: false,
  paymentSource: '',
  placementGroupId: '',
  placementGroupIdDimensionValue: {},
  placementStrategyId: '',
  pricingSchedule: {
    capCostOption: '',
    endDate: '',
    flighted: false,
    floodlightActivityId: '',
    pricingPeriods: [
      {endDate: '', pricingComment: '', rateOrCostNanos: '', startDate: '', units: ''}
    ],
    pricingType: '',
    startDate: '',
    testingStartDate: ''
  },
  primary: false,
  publisherUpdateInfo: {},
  siteId: '',
  siteIdDimensionValue: {},
  size: {},
  sslRequired: false,
  status: '',
  subaccountId: '',
  tagFormats: [],
  tagSetting: {
    additionalKeyValues: '',
    includeClickThroughUrls: false,
    includeClickTracking: false,
    keywordOption: ''
  },
  videoActiveViewOptOut: false,
  videoSettings: {
    companionSettings: {companionsDisabled: false, enabledSizes: [{}], imageOnly: false, kind: ''},
    kind: '',
    obaEnabled: false,
    obaSettings: {
      iconClickThroughUrl: '',
      iconClickTrackingUrl: '',
      iconViewTrackingUrl: '',
      program: '',
      resourceUrl: '',
      size: {},
      xPosition: '',
      yPosition: ''
    },
    orientation: '',
    skippableSettings: {
      kind: '',
      progressOffset: {offsetPercentage: 0, offsetSeconds: 0},
      skipOffset: {},
      skippable: false
    },
    transcodeSettings: {enabledVideoFormats: [], kind: ''}
  },
  vpaidAdapterChoice: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/userprofiles/:profileId/placements',
  headers: {'content-type': 'application/json'},
  body: {
    accountId: '',
    adBlockingOptOut: false,
    additionalSizes: [{height: 0, iab: false, id: '', kind: '', width: 0}],
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    archived: false,
    campaignId: '',
    campaignIdDimensionValue: {},
    comment: '',
    compatibility: '',
    contentCategoryId: '',
    createInfo: {time: ''},
    directorySiteId: '',
    directorySiteIdDimensionValue: {},
    externalId: '',
    id: '',
    idDimensionValue: {},
    keyName: '',
    kind: '',
    lastModifiedInfo: {},
    lookbackConfiguration: {clickDuration: 0, postImpressionActivitiesDuration: 0},
    name: '',
    paymentApproved: false,
    paymentSource: '',
    placementGroupId: '',
    placementGroupIdDimensionValue: {},
    placementStrategyId: '',
    pricingSchedule: {
      capCostOption: '',
      endDate: '',
      flighted: false,
      floodlightActivityId: '',
      pricingPeriods: [
        {endDate: '', pricingComment: '', rateOrCostNanos: '', startDate: '', units: ''}
      ],
      pricingType: '',
      startDate: '',
      testingStartDate: ''
    },
    primary: false,
    publisherUpdateInfo: {},
    siteId: '',
    siteIdDimensionValue: {},
    size: {},
    sslRequired: false,
    status: '',
    subaccountId: '',
    tagFormats: [],
    tagSetting: {
      additionalKeyValues: '',
      includeClickThroughUrls: false,
      includeClickTracking: false,
      keywordOption: ''
    },
    videoActiveViewOptOut: false,
    videoSettings: {
      companionSettings: {companionsDisabled: false, enabledSizes: [{}], imageOnly: false, kind: ''},
      kind: '',
      obaEnabled: false,
      obaSettings: {
        iconClickThroughUrl: '',
        iconClickTrackingUrl: '',
        iconViewTrackingUrl: '',
        program: '',
        resourceUrl: '',
        size: {},
        xPosition: '',
        yPosition: ''
      },
      orientation: '',
      skippableSettings: {
        kind: '',
        progressOffset: {offsetPercentage: 0, offsetSeconds: 0},
        skipOffset: {},
        skippable: false
      },
      transcodeSettings: {enabledVideoFormats: [], kind: ''}
    },
    vpaidAdapterChoice: ''
  },
  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}}/userprofiles/:profileId/placements');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  accountId: '',
  adBlockingOptOut: false,
  additionalSizes: [
    {
      height: 0,
      iab: false,
      id: '',
      kind: '',
      width: 0
    }
  ],
  advertiserId: '',
  advertiserIdDimensionValue: {
    dimensionName: '',
    etag: '',
    id: '',
    kind: '',
    matchType: '',
    value: ''
  },
  archived: false,
  campaignId: '',
  campaignIdDimensionValue: {},
  comment: '',
  compatibility: '',
  contentCategoryId: '',
  createInfo: {
    time: ''
  },
  directorySiteId: '',
  directorySiteIdDimensionValue: {},
  externalId: '',
  id: '',
  idDimensionValue: {},
  keyName: '',
  kind: '',
  lastModifiedInfo: {},
  lookbackConfiguration: {
    clickDuration: 0,
    postImpressionActivitiesDuration: 0
  },
  name: '',
  paymentApproved: false,
  paymentSource: '',
  placementGroupId: '',
  placementGroupIdDimensionValue: {},
  placementStrategyId: '',
  pricingSchedule: {
    capCostOption: '',
    endDate: '',
    flighted: false,
    floodlightActivityId: '',
    pricingPeriods: [
      {
        endDate: '',
        pricingComment: '',
        rateOrCostNanos: '',
        startDate: '',
        units: ''
      }
    ],
    pricingType: '',
    startDate: '',
    testingStartDate: ''
  },
  primary: false,
  publisherUpdateInfo: {},
  siteId: '',
  siteIdDimensionValue: {},
  size: {},
  sslRequired: false,
  status: '',
  subaccountId: '',
  tagFormats: [],
  tagSetting: {
    additionalKeyValues: '',
    includeClickThroughUrls: false,
    includeClickTracking: false,
    keywordOption: ''
  },
  videoActiveViewOptOut: false,
  videoSettings: {
    companionSettings: {
      companionsDisabled: false,
      enabledSizes: [
        {}
      ],
      imageOnly: false,
      kind: ''
    },
    kind: '',
    obaEnabled: false,
    obaSettings: {
      iconClickThroughUrl: '',
      iconClickTrackingUrl: '',
      iconViewTrackingUrl: '',
      program: '',
      resourceUrl: '',
      size: {},
      xPosition: '',
      yPosition: ''
    },
    orientation: '',
    skippableSettings: {
      kind: '',
      progressOffset: {
        offsetPercentage: 0,
        offsetSeconds: 0
      },
      skipOffset: {},
      skippable: false
    },
    transcodeSettings: {
      enabledVideoFormats: [],
      kind: ''
    }
  },
  vpaidAdapterChoice: ''
});

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}}/userprofiles/:profileId/placements',
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    adBlockingOptOut: false,
    additionalSizes: [{height: 0, iab: false, id: '', kind: '', width: 0}],
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    archived: false,
    campaignId: '',
    campaignIdDimensionValue: {},
    comment: '',
    compatibility: '',
    contentCategoryId: '',
    createInfo: {time: ''},
    directorySiteId: '',
    directorySiteIdDimensionValue: {},
    externalId: '',
    id: '',
    idDimensionValue: {},
    keyName: '',
    kind: '',
    lastModifiedInfo: {},
    lookbackConfiguration: {clickDuration: 0, postImpressionActivitiesDuration: 0},
    name: '',
    paymentApproved: false,
    paymentSource: '',
    placementGroupId: '',
    placementGroupIdDimensionValue: {},
    placementStrategyId: '',
    pricingSchedule: {
      capCostOption: '',
      endDate: '',
      flighted: false,
      floodlightActivityId: '',
      pricingPeriods: [
        {endDate: '', pricingComment: '', rateOrCostNanos: '', startDate: '', units: ''}
      ],
      pricingType: '',
      startDate: '',
      testingStartDate: ''
    },
    primary: false,
    publisherUpdateInfo: {},
    siteId: '',
    siteIdDimensionValue: {},
    size: {},
    sslRequired: false,
    status: '',
    subaccountId: '',
    tagFormats: [],
    tagSetting: {
      additionalKeyValues: '',
      includeClickThroughUrls: false,
      includeClickTracking: false,
      keywordOption: ''
    },
    videoActiveViewOptOut: false,
    videoSettings: {
      companionSettings: {companionsDisabled: false, enabledSizes: [{}], imageOnly: false, kind: ''},
      kind: '',
      obaEnabled: false,
      obaSettings: {
        iconClickThroughUrl: '',
        iconClickTrackingUrl: '',
        iconViewTrackingUrl: '',
        program: '',
        resourceUrl: '',
        size: {},
        xPosition: '',
        yPosition: ''
      },
      orientation: '',
      skippableSettings: {
        kind: '',
        progressOffset: {offsetPercentage: 0, offsetSeconds: 0},
        skipOffset: {},
        skippable: false
      },
      transcodeSettings: {enabledVideoFormats: [], kind: ''}
    },
    vpaidAdapterChoice: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/placements';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","adBlockingOptOut":false,"additionalSizes":[{"height":0,"iab":false,"id":"","kind":"","width":0}],"advertiserId":"","advertiserIdDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"archived":false,"campaignId":"","campaignIdDimensionValue":{},"comment":"","compatibility":"","contentCategoryId":"","createInfo":{"time":""},"directorySiteId":"","directorySiteIdDimensionValue":{},"externalId":"","id":"","idDimensionValue":{},"keyName":"","kind":"","lastModifiedInfo":{},"lookbackConfiguration":{"clickDuration":0,"postImpressionActivitiesDuration":0},"name":"","paymentApproved":false,"paymentSource":"","placementGroupId":"","placementGroupIdDimensionValue":{},"placementStrategyId":"","pricingSchedule":{"capCostOption":"","endDate":"","flighted":false,"floodlightActivityId":"","pricingPeriods":[{"endDate":"","pricingComment":"","rateOrCostNanos":"","startDate":"","units":""}],"pricingType":"","startDate":"","testingStartDate":""},"primary":false,"publisherUpdateInfo":{},"siteId":"","siteIdDimensionValue":{},"size":{},"sslRequired":false,"status":"","subaccountId":"","tagFormats":[],"tagSetting":{"additionalKeyValues":"","includeClickThroughUrls":false,"includeClickTracking":false,"keywordOption":""},"videoActiveViewOptOut":false,"videoSettings":{"companionSettings":{"companionsDisabled":false,"enabledSizes":[{}],"imageOnly":false,"kind":""},"kind":"","obaEnabled":false,"obaSettings":{"iconClickThroughUrl":"","iconClickTrackingUrl":"","iconViewTrackingUrl":"","program":"","resourceUrl":"","size":{},"xPosition":"","yPosition":""},"orientation":"","skippableSettings":{"kind":"","progressOffset":{"offsetPercentage":0,"offsetSeconds":0},"skipOffset":{},"skippable":false},"transcodeSettings":{"enabledVideoFormats":[],"kind":""}},"vpaidAdapterChoice":""}'
};

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 = @{ @"accountId": @"",
                              @"adBlockingOptOut": @NO,
                              @"additionalSizes": @[ @{ @"height": @0, @"iab": @NO, @"id": @"", @"kind": @"", @"width": @0 } ],
                              @"advertiserId": @"",
                              @"advertiserIdDimensionValue": @{ @"dimensionName": @"", @"etag": @"", @"id": @"", @"kind": @"", @"matchType": @"", @"value": @"" },
                              @"archived": @NO,
                              @"campaignId": @"",
                              @"campaignIdDimensionValue": @{  },
                              @"comment": @"",
                              @"compatibility": @"",
                              @"contentCategoryId": @"",
                              @"createInfo": @{ @"time": @"" },
                              @"directorySiteId": @"",
                              @"directorySiteIdDimensionValue": @{  },
                              @"externalId": @"",
                              @"id": @"",
                              @"idDimensionValue": @{  },
                              @"keyName": @"",
                              @"kind": @"",
                              @"lastModifiedInfo": @{  },
                              @"lookbackConfiguration": @{ @"clickDuration": @0, @"postImpressionActivitiesDuration": @0 },
                              @"name": @"",
                              @"paymentApproved": @NO,
                              @"paymentSource": @"",
                              @"placementGroupId": @"",
                              @"placementGroupIdDimensionValue": @{  },
                              @"placementStrategyId": @"",
                              @"pricingSchedule": @{ @"capCostOption": @"", @"endDate": @"", @"flighted": @NO, @"floodlightActivityId": @"", @"pricingPeriods": @[ @{ @"endDate": @"", @"pricingComment": @"", @"rateOrCostNanos": @"", @"startDate": @"", @"units": @"" } ], @"pricingType": @"", @"startDate": @"", @"testingStartDate": @"" },
                              @"primary": @NO,
                              @"publisherUpdateInfo": @{  },
                              @"siteId": @"",
                              @"siteIdDimensionValue": @{  },
                              @"size": @{  },
                              @"sslRequired": @NO,
                              @"status": @"",
                              @"subaccountId": @"",
                              @"tagFormats": @[  ],
                              @"tagSetting": @{ @"additionalKeyValues": @"", @"includeClickThroughUrls": @NO, @"includeClickTracking": @NO, @"keywordOption": @"" },
                              @"videoActiveViewOptOut": @NO,
                              @"videoSettings": @{ @"companionSettings": @{ @"companionsDisabled": @NO, @"enabledSizes": @[ @{  } ], @"imageOnly": @NO, @"kind": @"" }, @"kind": @"", @"obaEnabled": @NO, @"obaSettings": @{ @"iconClickThroughUrl": @"", @"iconClickTrackingUrl": @"", @"iconViewTrackingUrl": @"", @"program": @"", @"resourceUrl": @"", @"size": @{  }, @"xPosition": @"", @"yPosition": @"" }, @"orientation": @"", @"skippableSettings": @{ @"kind": @"", @"progressOffset": @{ @"offsetPercentage": @0, @"offsetSeconds": @0 }, @"skipOffset": @{  }, @"skippable": @NO }, @"transcodeSettings": @{ @"enabledVideoFormats": @[  ], @"kind": @"" } },
                              @"vpaidAdapterChoice": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/userprofiles/:profileId/placements"]
                                                       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}}/userprofiles/:profileId/placements" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"accountId\": \"\",\n  \"adBlockingOptOut\": false,\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"comment\": \"\",\n  \"compatibility\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"lookbackConfiguration\": {\n    \"clickDuration\": 0,\n    \"postImpressionActivitiesDuration\": 0\n  },\n  \"name\": \"\",\n  \"paymentApproved\": false,\n  \"paymentSource\": \"\",\n  \"placementGroupId\": \"\",\n  \"placementGroupIdDimensionValue\": {},\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primary\": false,\n  \"publisherUpdateInfo\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"size\": {},\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormats\": [],\n  \"tagSetting\": {\n    \"additionalKeyValues\": \"\",\n    \"includeClickThroughUrls\": false,\n    \"includeClickTracking\": false,\n    \"keywordOption\": \"\"\n  },\n  \"videoActiveViewOptOut\": false,\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {}\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\n    }\n  },\n  \"vpaidAdapterChoice\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/placements",
  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([
    'accountId' => '',
    'adBlockingOptOut' => null,
    'additionalSizes' => [
        [
                'height' => 0,
                'iab' => null,
                'id' => '',
                'kind' => '',
                'width' => 0
        ]
    ],
    'advertiserId' => '',
    'advertiserIdDimensionValue' => [
        'dimensionName' => '',
        'etag' => '',
        'id' => '',
        'kind' => '',
        'matchType' => '',
        'value' => ''
    ],
    'archived' => null,
    'campaignId' => '',
    'campaignIdDimensionValue' => [
        
    ],
    'comment' => '',
    'compatibility' => '',
    'contentCategoryId' => '',
    'createInfo' => [
        'time' => ''
    ],
    'directorySiteId' => '',
    'directorySiteIdDimensionValue' => [
        
    ],
    'externalId' => '',
    'id' => '',
    'idDimensionValue' => [
        
    ],
    'keyName' => '',
    'kind' => '',
    'lastModifiedInfo' => [
        
    ],
    'lookbackConfiguration' => [
        'clickDuration' => 0,
        'postImpressionActivitiesDuration' => 0
    ],
    'name' => '',
    'paymentApproved' => null,
    'paymentSource' => '',
    'placementGroupId' => '',
    'placementGroupIdDimensionValue' => [
        
    ],
    'placementStrategyId' => '',
    'pricingSchedule' => [
        'capCostOption' => '',
        'endDate' => '',
        'flighted' => null,
        'floodlightActivityId' => '',
        'pricingPeriods' => [
                [
                                'endDate' => '',
                                'pricingComment' => '',
                                'rateOrCostNanos' => '',
                                'startDate' => '',
                                'units' => ''
                ]
        ],
        'pricingType' => '',
        'startDate' => '',
        'testingStartDate' => ''
    ],
    'primary' => null,
    'publisherUpdateInfo' => [
        
    ],
    'siteId' => '',
    'siteIdDimensionValue' => [
        
    ],
    'size' => [
        
    ],
    'sslRequired' => null,
    'status' => '',
    'subaccountId' => '',
    'tagFormats' => [
        
    ],
    'tagSetting' => [
        'additionalKeyValues' => '',
        'includeClickThroughUrls' => null,
        'includeClickTracking' => null,
        'keywordOption' => ''
    ],
    'videoActiveViewOptOut' => null,
    'videoSettings' => [
        'companionSettings' => [
                'companionsDisabled' => null,
                'enabledSizes' => [
                                [
                                                                
                                ]
                ],
                'imageOnly' => null,
                'kind' => ''
        ],
        'kind' => '',
        'obaEnabled' => null,
        'obaSettings' => [
                'iconClickThroughUrl' => '',
                'iconClickTrackingUrl' => '',
                'iconViewTrackingUrl' => '',
                'program' => '',
                'resourceUrl' => '',
                'size' => [
                                
                ],
                'xPosition' => '',
                'yPosition' => ''
        ],
        'orientation' => '',
        'skippableSettings' => [
                'kind' => '',
                'progressOffset' => [
                                'offsetPercentage' => 0,
                                'offsetSeconds' => 0
                ],
                'skipOffset' => [
                                
                ],
                'skippable' => null
        ],
        'transcodeSettings' => [
                'enabledVideoFormats' => [
                                
                ],
                'kind' => ''
        ]
    ],
    'vpaidAdapterChoice' => ''
  ]),
  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}}/userprofiles/:profileId/placements', [
  'body' => '{
  "accountId": "",
  "adBlockingOptOut": false,
  "additionalSizes": [
    {
      "height": 0,
      "iab": false,
      "id": "",
      "kind": "",
      "width": 0
    }
  ],
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "archived": false,
  "campaignId": "",
  "campaignIdDimensionValue": {},
  "comment": "",
  "compatibility": "",
  "contentCategoryId": "",
  "createInfo": {
    "time": ""
  },
  "directorySiteId": "",
  "directorySiteIdDimensionValue": {},
  "externalId": "",
  "id": "",
  "idDimensionValue": {},
  "keyName": "",
  "kind": "",
  "lastModifiedInfo": {},
  "lookbackConfiguration": {
    "clickDuration": 0,
    "postImpressionActivitiesDuration": 0
  },
  "name": "",
  "paymentApproved": false,
  "paymentSource": "",
  "placementGroupId": "",
  "placementGroupIdDimensionValue": {},
  "placementStrategyId": "",
  "pricingSchedule": {
    "capCostOption": "",
    "endDate": "",
    "flighted": false,
    "floodlightActivityId": "",
    "pricingPeriods": [
      {
        "endDate": "",
        "pricingComment": "",
        "rateOrCostNanos": "",
        "startDate": "",
        "units": ""
      }
    ],
    "pricingType": "",
    "startDate": "",
    "testingStartDate": ""
  },
  "primary": false,
  "publisherUpdateInfo": {},
  "siteId": "",
  "siteIdDimensionValue": {},
  "size": {},
  "sslRequired": false,
  "status": "",
  "subaccountId": "",
  "tagFormats": [],
  "tagSetting": {
    "additionalKeyValues": "",
    "includeClickThroughUrls": false,
    "includeClickTracking": false,
    "keywordOption": ""
  },
  "videoActiveViewOptOut": false,
  "videoSettings": {
    "companionSettings": {
      "companionsDisabled": false,
      "enabledSizes": [
        {}
      ],
      "imageOnly": false,
      "kind": ""
    },
    "kind": "",
    "obaEnabled": false,
    "obaSettings": {
      "iconClickThroughUrl": "",
      "iconClickTrackingUrl": "",
      "iconViewTrackingUrl": "",
      "program": "",
      "resourceUrl": "",
      "size": {},
      "xPosition": "",
      "yPosition": ""
    },
    "orientation": "",
    "skippableSettings": {
      "kind": "",
      "progressOffset": {
        "offsetPercentage": 0,
        "offsetSeconds": 0
      },
      "skipOffset": {},
      "skippable": false
    },
    "transcodeSettings": {
      "enabledVideoFormats": [],
      "kind": ""
    }
  },
  "vpaidAdapterChoice": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/placements');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'accountId' => '',
  'adBlockingOptOut' => null,
  'additionalSizes' => [
    [
        'height' => 0,
        'iab' => null,
        'id' => '',
        'kind' => '',
        'width' => 0
    ]
  ],
  'advertiserId' => '',
  'advertiserIdDimensionValue' => [
    'dimensionName' => '',
    'etag' => '',
    'id' => '',
    'kind' => '',
    'matchType' => '',
    'value' => ''
  ],
  'archived' => null,
  'campaignId' => '',
  'campaignIdDimensionValue' => [
    
  ],
  'comment' => '',
  'compatibility' => '',
  'contentCategoryId' => '',
  'createInfo' => [
    'time' => ''
  ],
  'directorySiteId' => '',
  'directorySiteIdDimensionValue' => [
    
  ],
  'externalId' => '',
  'id' => '',
  'idDimensionValue' => [
    
  ],
  'keyName' => '',
  'kind' => '',
  'lastModifiedInfo' => [
    
  ],
  'lookbackConfiguration' => [
    'clickDuration' => 0,
    'postImpressionActivitiesDuration' => 0
  ],
  'name' => '',
  'paymentApproved' => null,
  'paymentSource' => '',
  'placementGroupId' => '',
  'placementGroupIdDimensionValue' => [
    
  ],
  'placementStrategyId' => '',
  'pricingSchedule' => [
    'capCostOption' => '',
    'endDate' => '',
    'flighted' => null,
    'floodlightActivityId' => '',
    'pricingPeriods' => [
        [
                'endDate' => '',
                'pricingComment' => '',
                'rateOrCostNanos' => '',
                'startDate' => '',
                'units' => ''
        ]
    ],
    'pricingType' => '',
    'startDate' => '',
    'testingStartDate' => ''
  ],
  'primary' => null,
  'publisherUpdateInfo' => [
    
  ],
  'siteId' => '',
  'siteIdDimensionValue' => [
    
  ],
  'size' => [
    
  ],
  'sslRequired' => null,
  'status' => '',
  'subaccountId' => '',
  'tagFormats' => [
    
  ],
  'tagSetting' => [
    'additionalKeyValues' => '',
    'includeClickThroughUrls' => null,
    'includeClickTracking' => null,
    'keywordOption' => ''
  ],
  'videoActiveViewOptOut' => null,
  'videoSettings' => [
    'companionSettings' => [
        'companionsDisabled' => null,
        'enabledSizes' => [
                [
                                
                ]
        ],
        'imageOnly' => null,
        'kind' => ''
    ],
    'kind' => '',
    'obaEnabled' => null,
    'obaSettings' => [
        'iconClickThroughUrl' => '',
        'iconClickTrackingUrl' => '',
        'iconViewTrackingUrl' => '',
        'program' => '',
        'resourceUrl' => '',
        'size' => [
                
        ],
        'xPosition' => '',
        'yPosition' => ''
    ],
    'orientation' => '',
    'skippableSettings' => [
        'kind' => '',
        'progressOffset' => [
                'offsetPercentage' => 0,
                'offsetSeconds' => 0
        ],
        'skipOffset' => [
                
        ],
        'skippable' => null
    ],
    'transcodeSettings' => [
        'enabledVideoFormats' => [
                
        ],
        'kind' => ''
    ]
  ],
  'vpaidAdapterChoice' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'accountId' => '',
  'adBlockingOptOut' => null,
  'additionalSizes' => [
    [
        'height' => 0,
        'iab' => null,
        'id' => '',
        'kind' => '',
        'width' => 0
    ]
  ],
  'advertiserId' => '',
  'advertiserIdDimensionValue' => [
    'dimensionName' => '',
    'etag' => '',
    'id' => '',
    'kind' => '',
    'matchType' => '',
    'value' => ''
  ],
  'archived' => null,
  'campaignId' => '',
  'campaignIdDimensionValue' => [
    
  ],
  'comment' => '',
  'compatibility' => '',
  'contentCategoryId' => '',
  'createInfo' => [
    'time' => ''
  ],
  'directorySiteId' => '',
  'directorySiteIdDimensionValue' => [
    
  ],
  'externalId' => '',
  'id' => '',
  'idDimensionValue' => [
    
  ],
  'keyName' => '',
  'kind' => '',
  'lastModifiedInfo' => [
    
  ],
  'lookbackConfiguration' => [
    'clickDuration' => 0,
    'postImpressionActivitiesDuration' => 0
  ],
  'name' => '',
  'paymentApproved' => null,
  'paymentSource' => '',
  'placementGroupId' => '',
  'placementGroupIdDimensionValue' => [
    
  ],
  'placementStrategyId' => '',
  'pricingSchedule' => [
    'capCostOption' => '',
    'endDate' => '',
    'flighted' => null,
    'floodlightActivityId' => '',
    'pricingPeriods' => [
        [
                'endDate' => '',
                'pricingComment' => '',
                'rateOrCostNanos' => '',
                'startDate' => '',
                'units' => ''
        ]
    ],
    'pricingType' => '',
    'startDate' => '',
    'testingStartDate' => ''
  ],
  'primary' => null,
  'publisherUpdateInfo' => [
    
  ],
  'siteId' => '',
  'siteIdDimensionValue' => [
    
  ],
  'size' => [
    
  ],
  'sslRequired' => null,
  'status' => '',
  'subaccountId' => '',
  'tagFormats' => [
    
  ],
  'tagSetting' => [
    'additionalKeyValues' => '',
    'includeClickThroughUrls' => null,
    'includeClickTracking' => null,
    'keywordOption' => ''
  ],
  'videoActiveViewOptOut' => null,
  'videoSettings' => [
    'companionSettings' => [
        'companionsDisabled' => null,
        'enabledSizes' => [
                [
                                
                ]
        ],
        'imageOnly' => null,
        'kind' => ''
    ],
    'kind' => '',
    'obaEnabled' => null,
    'obaSettings' => [
        'iconClickThroughUrl' => '',
        'iconClickTrackingUrl' => '',
        'iconViewTrackingUrl' => '',
        'program' => '',
        'resourceUrl' => '',
        'size' => [
                
        ],
        'xPosition' => '',
        'yPosition' => ''
    ],
    'orientation' => '',
    'skippableSettings' => [
        'kind' => '',
        'progressOffset' => [
                'offsetPercentage' => 0,
                'offsetSeconds' => 0
        ],
        'skipOffset' => [
                
        ],
        'skippable' => null
    ],
    'transcodeSettings' => [
        'enabledVideoFormats' => [
                
        ],
        'kind' => ''
    ]
  ],
  'vpaidAdapterChoice' => ''
]));
$request->setRequestUrl('{{baseUrl}}/userprofiles/:profileId/placements');
$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}}/userprofiles/:profileId/placements' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "adBlockingOptOut": false,
  "additionalSizes": [
    {
      "height": 0,
      "iab": false,
      "id": "",
      "kind": "",
      "width": 0
    }
  ],
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "archived": false,
  "campaignId": "",
  "campaignIdDimensionValue": {},
  "comment": "",
  "compatibility": "",
  "contentCategoryId": "",
  "createInfo": {
    "time": ""
  },
  "directorySiteId": "",
  "directorySiteIdDimensionValue": {},
  "externalId": "",
  "id": "",
  "idDimensionValue": {},
  "keyName": "",
  "kind": "",
  "lastModifiedInfo": {},
  "lookbackConfiguration": {
    "clickDuration": 0,
    "postImpressionActivitiesDuration": 0
  },
  "name": "",
  "paymentApproved": false,
  "paymentSource": "",
  "placementGroupId": "",
  "placementGroupIdDimensionValue": {},
  "placementStrategyId": "",
  "pricingSchedule": {
    "capCostOption": "",
    "endDate": "",
    "flighted": false,
    "floodlightActivityId": "",
    "pricingPeriods": [
      {
        "endDate": "",
        "pricingComment": "",
        "rateOrCostNanos": "",
        "startDate": "",
        "units": ""
      }
    ],
    "pricingType": "",
    "startDate": "",
    "testingStartDate": ""
  },
  "primary": false,
  "publisherUpdateInfo": {},
  "siteId": "",
  "siteIdDimensionValue": {},
  "size": {},
  "sslRequired": false,
  "status": "",
  "subaccountId": "",
  "tagFormats": [],
  "tagSetting": {
    "additionalKeyValues": "",
    "includeClickThroughUrls": false,
    "includeClickTracking": false,
    "keywordOption": ""
  },
  "videoActiveViewOptOut": false,
  "videoSettings": {
    "companionSettings": {
      "companionsDisabled": false,
      "enabledSizes": [
        {}
      ],
      "imageOnly": false,
      "kind": ""
    },
    "kind": "",
    "obaEnabled": false,
    "obaSettings": {
      "iconClickThroughUrl": "",
      "iconClickTrackingUrl": "",
      "iconViewTrackingUrl": "",
      "program": "",
      "resourceUrl": "",
      "size": {},
      "xPosition": "",
      "yPosition": ""
    },
    "orientation": "",
    "skippableSettings": {
      "kind": "",
      "progressOffset": {
        "offsetPercentage": 0,
        "offsetSeconds": 0
      },
      "skipOffset": {},
      "skippable": false
    },
    "transcodeSettings": {
      "enabledVideoFormats": [],
      "kind": ""
    }
  },
  "vpaidAdapterChoice": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/placements' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "adBlockingOptOut": false,
  "additionalSizes": [
    {
      "height": 0,
      "iab": false,
      "id": "",
      "kind": "",
      "width": 0
    }
  ],
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "archived": false,
  "campaignId": "",
  "campaignIdDimensionValue": {},
  "comment": "",
  "compatibility": "",
  "contentCategoryId": "",
  "createInfo": {
    "time": ""
  },
  "directorySiteId": "",
  "directorySiteIdDimensionValue": {},
  "externalId": "",
  "id": "",
  "idDimensionValue": {},
  "keyName": "",
  "kind": "",
  "lastModifiedInfo": {},
  "lookbackConfiguration": {
    "clickDuration": 0,
    "postImpressionActivitiesDuration": 0
  },
  "name": "",
  "paymentApproved": false,
  "paymentSource": "",
  "placementGroupId": "",
  "placementGroupIdDimensionValue": {},
  "placementStrategyId": "",
  "pricingSchedule": {
    "capCostOption": "",
    "endDate": "",
    "flighted": false,
    "floodlightActivityId": "",
    "pricingPeriods": [
      {
        "endDate": "",
        "pricingComment": "",
        "rateOrCostNanos": "",
        "startDate": "",
        "units": ""
      }
    ],
    "pricingType": "",
    "startDate": "",
    "testingStartDate": ""
  },
  "primary": false,
  "publisherUpdateInfo": {},
  "siteId": "",
  "siteIdDimensionValue": {},
  "size": {},
  "sslRequired": false,
  "status": "",
  "subaccountId": "",
  "tagFormats": [],
  "tagSetting": {
    "additionalKeyValues": "",
    "includeClickThroughUrls": false,
    "includeClickTracking": false,
    "keywordOption": ""
  },
  "videoActiveViewOptOut": false,
  "videoSettings": {
    "companionSettings": {
      "companionsDisabled": false,
      "enabledSizes": [
        {}
      ],
      "imageOnly": false,
      "kind": ""
    },
    "kind": "",
    "obaEnabled": false,
    "obaSettings": {
      "iconClickThroughUrl": "",
      "iconClickTrackingUrl": "",
      "iconViewTrackingUrl": "",
      "program": "",
      "resourceUrl": "",
      "size": {},
      "xPosition": "",
      "yPosition": ""
    },
    "orientation": "",
    "skippableSettings": {
      "kind": "",
      "progressOffset": {
        "offsetPercentage": 0,
        "offsetSeconds": 0
      },
      "skipOffset": {},
      "skippable": false
    },
    "transcodeSettings": {
      "enabledVideoFormats": [],
      "kind": ""
    }
  },
  "vpaidAdapterChoice": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"accountId\": \"\",\n  \"adBlockingOptOut\": false,\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"comment\": \"\",\n  \"compatibility\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"lookbackConfiguration\": {\n    \"clickDuration\": 0,\n    \"postImpressionActivitiesDuration\": 0\n  },\n  \"name\": \"\",\n  \"paymentApproved\": false,\n  \"paymentSource\": \"\",\n  \"placementGroupId\": \"\",\n  \"placementGroupIdDimensionValue\": {},\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primary\": false,\n  \"publisherUpdateInfo\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"size\": {},\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormats\": [],\n  \"tagSetting\": {\n    \"additionalKeyValues\": \"\",\n    \"includeClickThroughUrls\": false,\n    \"includeClickTracking\": false,\n    \"keywordOption\": \"\"\n  },\n  \"videoActiveViewOptOut\": false,\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {}\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\n    }\n  },\n  \"vpaidAdapterChoice\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/userprofiles/:profileId/placements", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/placements"

payload = {
    "accountId": "",
    "adBlockingOptOut": False,
    "additionalSizes": [
        {
            "height": 0,
            "iab": False,
            "id": "",
            "kind": "",
            "width": 0
        }
    ],
    "advertiserId": "",
    "advertiserIdDimensionValue": {
        "dimensionName": "",
        "etag": "",
        "id": "",
        "kind": "",
        "matchType": "",
        "value": ""
    },
    "archived": False,
    "campaignId": "",
    "campaignIdDimensionValue": {},
    "comment": "",
    "compatibility": "",
    "contentCategoryId": "",
    "createInfo": { "time": "" },
    "directorySiteId": "",
    "directorySiteIdDimensionValue": {},
    "externalId": "",
    "id": "",
    "idDimensionValue": {},
    "keyName": "",
    "kind": "",
    "lastModifiedInfo": {},
    "lookbackConfiguration": {
        "clickDuration": 0,
        "postImpressionActivitiesDuration": 0
    },
    "name": "",
    "paymentApproved": False,
    "paymentSource": "",
    "placementGroupId": "",
    "placementGroupIdDimensionValue": {},
    "placementStrategyId": "",
    "pricingSchedule": {
        "capCostOption": "",
        "endDate": "",
        "flighted": False,
        "floodlightActivityId": "",
        "pricingPeriods": [
            {
                "endDate": "",
                "pricingComment": "",
                "rateOrCostNanos": "",
                "startDate": "",
                "units": ""
            }
        ],
        "pricingType": "",
        "startDate": "",
        "testingStartDate": ""
    },
    "primary": False,
    "publisherUpdateInfo": {},
    "siteId": "",
    "siteIdDimensionValue": {},
    "size": {},
    "sslRequired": False,
    "status": "",
    "subaccountId": "",
    "tagFormats": [],
    "tagSetting": {
        "additionalKeyValues": "",
        "includeClickThroughUrls": False,
        "includeClickTracking": False,
        "keywordOption": ""
    },
    "videoActiveViewOptOut": False,
    "videoSettings": {
        "companionSettings": {
            "companionsDisabled": False,
            "enabledSizes": [{}],
            "imageOnly": False,
            "kind": ""
        },
        "kind": "",
        "obaEnabled": False,
        "obaSettings": {
            "iconClickThroughUrl": "",
            "iconClickTrackingUrl": "",
            "iconViewTrackingUrl": "",
            "program": "",
            "resourceUrl": "",
            "size": {},
            "xPosition": "",
            "yPosition": ""
        },
        "orientation": "",
        "skippableSettings": {
            "kind": "",
            "progressOffset": {
                "offsetPercentage": 0,
                "offsetSeconds": 0
            },
            "skipOffset": {},
            "skippable": False
        },
        "transcodeSettings": {
            "enabledVideoFormats": [],
            "kind": ""
        }
    },
    "vpaidAdapterChoice": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/placements"

payload <- "{\n  \"accountId\": \"\",\n  \"adBlockingOptOut\": false,\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"comment\": \"\",\n  \"compatibility\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"lookbackConfiguration\": {\n    \"clickDuration\": 0,\n    \"postImpressionActivitiesDuration\": 0\n  },\n  \"name\": \"\",\n  \"paymentApproved\": false,\n  \"paymentSource\": \"\",\n  \"placementGroupId\": \"\",\n  \"placementGroupIdDimensionValue\": {},\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primary\": false,\n  \"publisherUpdateInfo\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"size\": {},\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormats\": [],\n  \"tagSetting\": {\n    \"additionalKeyValues\": \"\",\n    \"includeClickThroughUrls\": false,\n    \"includeClickTracking\": false,\n    \"keywordOption\": \"\"\n  },\n  \"videoActiveViewOptOut\": false,\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {}\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\n    }\n  },\n  \"vpaidAdapterChoice\": \"\"\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}}/userprofiles/:profileId/placements")

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  \"accountId\": \"\",\n  \"adBlockingOptOut\": false,\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"comment\": \"\",\n  \"compatibility\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"lookbackConfiguration\": {\n    \"clickDuration\": 0,\n    \"postImpressionActivitiesDuration\": 0\n  },\n  \"name\": \"\",\n  \"paymentApproved\": false,\n  \"paymentSource\": \"\",\n  \"placementGroupId\": \"\",\n  \"placementGroupIdDimensionValue\": {},\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primary\": false,\n  \"publisherUpdateInfo\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"size\": {},\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormats\": [],\n  \"tagSetting\": {\n    \"additionalKeyValues\": \"\",\n    \"includeClickThroughUrls\": false,\n    \"includeClickTracking\": false,\n    \"keywordOption\": \"\"\n  },\n  \"videoActiveViewOptOut\": false,\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {}\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\n    }\n  },\n  \"vpaidAdapterChoice\": \"\"\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/userprofiles/:profileId/placements') do |req|
  req.body = "{\n  \"accountId\": \"\",\n  \"adBlockingOptOut\": false,\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"comment\": \"\",\n  \"compatibility\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"lookbackConfiguration\": {\n    \"clickDuration\": 0,\n    \"postImpressionActivitiesDuration\": 0\n  },\n  \"name\": \"\",\n  \"paymentApproved\": false,\n  \"paymentSource\": \"\",\n  \"placementGroupId\": \"\",\n  \"placementGroupIdDimensionValue\": {},\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primary\": false,\n  \"publisherUpdateInfo\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"size\": {},\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormats\": [],\n  \"tagSetting\": {\n    \"additionalKeyValues\": \"\",\n    \"includeClickThroughUrls\": false,\n    \"includeClickTracking\": false,\n    \"keywordOption\": \"\"\n  },\n  \"videoActiveViewOptOut\": false,\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {}\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\n    }\n  },\n  \"vpaidAdapterChoice\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/placements";

    let payload = json!({
        "accountId": "",
        "adBlockingOptOut": false,
        "additionalSizes": (
            json!({
                "height": 0,
                "iab": false,
                "id": "",
                "kind": "",
                "width": 0
            })
        ),
        "advertiserId": "",
        "advertiserIdDimensionValue": json!({
            "dimensionName": "",
            "etag": "",
            "id": "",
            "kind": "",
            "matchType": "",
            "value": ""
        }),
        "archived": false,
        "campaignId": "",
        "campaignIdDimensionValue": json!({}),
        "comment": "",
        "compatibility": "",
        "contentCategoryId": "",
        "createInfo": json!({"time": ""}),
        "directorySiteId": "",
        "directorySiteIdDimensionValue": json!({}),
        "externalId": "",
        "id": "",
        "idDimensionValue": json!({}),
        "keyName": "",
        "kind": "",
        "lastModifiedInfo": json!({}),
        "lookbackConfiguration": json!({
            "clickDuration": 0,
            "postImpressionActivitiesDuration": 0
        }),
        "name": "",
        "paymentApproved": false,
        "paymentSource": "",
        "placementGroupId": "",
        "placementGroupIdDimensionValue": json!({}),
        "placementStrategyId": "",
        "pricingSchedule": json!({
            "capCostOption": "",
            "endDate": "",
            "flighted": false,
            "floodlightActivityId": "",
            "pricingPeriods": (
                json!({
                    "endDate": "",
                    "pricingComment": "",
                    "rateOrCostNanos": "",
                    "startDate": "",
                    "units": ""
                })
            ),
            "pricingType": "",
            "startDate": "",
            "testingStartDate": ""
        }),
        "primary": false,
        "publisherUpdateInfo": json!({}),
        "siteId": "",
        "siteIdDimensionValue": json!({}),
        "size": json!({}),
        "sslRequired": false,
        "status": "",
        "subaccountId": "",
        "tagFormats": (),
        "tagSetting": json!({
            "additionalKeyValues": "",
            "includeClickThroughUrls": false,
            "includeClickTracking": false,
            "keywordOption": ""
        }),
        "videoActiveViewOptOut": false,
        "videoSettings": json!({
            "companionSettings": json!({
                "companionsDisabled": false,
                "enabledSizes": (json!({})),
                "imageOnly": false,
                "kind": ""
            }),
            "kind": "",
            "obaEnabled": false,
            "obaSettings": json!({
                "iconClickThroughUrl": "",
                "iconClickTrackingUrl": "",
                "iconViewTrackingUrl": "",
                "program": "",
                "resourceUrl": "",
                "size": json!({}),
                "xPosition": "",
                "yPosition": ""
            }),
            "orientation": "",
            "skippableSettings": json!({
                "kind": "",
                "progressOffset": json!({
                    "offsetPercentage": 0,
                    "offsetSeconds": 0
                }),
                "skipOffset": json!({}),
                "skippable": false
            }),
            "transcodeSettings": json!({
                "enabledVideoFormats": (),
                "kind": ""
            })
        }),
        "vpaidAdapterChoice": ""
    });

    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}}/userprofiles/:profileId/placements \
  --header 'content-type: application/json' \
  --data '{
  "accountId": "",
  "adBlockingOptOut": false,
  "additionalSizes": [
    {
      "height": 0,
      "iab": false,
      "id": "",
      "kind": "",
      "width": 0
    }
  ],
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "archived": false,
  "campaignId": "",
  "campaignIdDimensionValue": {},
  "comment": "",
  "compatibility": "",
  "contentCategoryId": "",
  "createInfo": {
    "time": ""
  },
  "directorySiteId": "",
  "directorySiteIdDimensionValue": {},
  "externalId": "",
  "id": "",
  "idDimensionValue": {},
  "keyName": "",
  "kind": "",
  "lastModifiedInfo": {},
  "lookbackConfiguration": {
    "clickDuration": 0,
    "postImpressionActivitiesDuration": 0
  },
  "name": "",
  "paymentApproved": false,
  "paymentSource": "",
  "placementGroupId": "",
  "placementGroupIdDimensionValue": {},
  "placementStrategyId": "",
  "pricingSchedule": {
    "capCostOption": "",
    "endDate": "",
    "flighted": false,
    "floodlightActivityId": "",
    "pricingPeriods": [
      {
        "endDate": "",
        "pricingComment": "",
        "rateOrCostNanos": "",
        "startDate": "",
        "units": ""
      }
    ],
    "pricingType": "",
    "startDate": "",
    "testingStartDate": ""
  },
  "primary": false,
  "publisherUpdateInfo": {},
  "siteId": "",
  "siteIdDimensionValue": {},
  "size": {},
  "sslRequired": false,
  "status": "",
  "subaccountId": "",
  "tagFormats": [],
  "tagSetting": {
    "additionalKeyValues": "",
    "includeClickThroughUrls": false,
    "includeClickTracking": false,
    "keywordOption": ""
  },
  "videoActiveViewOptOut": false,
  "videoSettings": {
    "companionSettings": {
      "companionsDisabled": false,
      "enabledSizes": [
        {}
      ],
      "imageOnly": false,
      "kind": ""
    },
    "kind": "",
    "obaEnabled": false,
    "obaSettings": {
      "iconClickThroughUrl": "",
      "iconClickTrackingUrl": "",
      "iconViewTrackingUrl": "",
      "program": "",
      "resourceUrl": "",
      "size": {},
      "xPosition": "",
      "yPosition": ""
    },
    "orientation": "",
    "skippableSettings": {
      "kind": "",
      "progressOffset": {
        "offsetPercentage": 0,
        "offsetSeconds": 0
      },
      "skipOffset": {},
      "skippable": false
    },
    "transcodeSettings": {
      "enabledVideoFormats": [],
      "kind": ""
    }
  },
  "vpaidAdapterChoice": ""
}'
echo '{
  "accountId": "",
  "adBlockingOptOut": false,
  "additionalSizes": [
    {
      "height": 0,
      "iab": false,
      "id": "",
      "kind": "",
      "width": 0
    }
  ],
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "archived": false,
  "campaignId": "",
  "campaignIdDimensionValue": {},
  "comment": "",
  "compatibility": "",
  "contentCategoryId": "",
  "createInfo": {
    "time": ""
  },
  "directorySiteId": "",
  "directorySiteIdDimensionValue": {},
  "externalId": "",
  "id": "",
  "idDimensionValue": {},
  "keyName": "",
  "kind": "",
  "lastModifiedInfo": {},
  "lookbackConfiguration": {
    "clickDuration": 0,
    "postImpressionActivitiesDuration": 0
  },
  "name": "",
  "paymentApproved": false,
  "paymentSource": "",
  "placementGroupId": "",
  "placementGroupIdDimensionValue": {},
  "placementStrategyId": "",
  "pricingSchedule": {
    "capCostOption": "",
    "endDate": "",
    "flighted": false,
    "floodlightActivityId": "",
    "pricingPeriods": [
      {
        "endDate": "",
        "pricingComment": "",
        "rateOrCostNanos": "",
        "startDate": "",
        "units": ""
      }
    ],
    "pricingType": "",
    "startDate": "",
    "testingStartDate": ""
  },
  "primary": false,
  "publisherUpdateInfo": {},
  "siteId": "",
  "siteIdDimensionValue": {},
  "size": {},
  "sslRequired": false,
  "status": "",
  "subaccountId": "",
  "tagFormats": [],
  "tagSetting": {
    "additionalKeyValues": "",
    "includeClickThroughUrls": false,
    "includeClickTracking": false,
    "keywordOption": ""
  },
  "videoActiveViewOptOut": false,
  "videoSettings": {
    "companionSettings": {
      "companionsDisabled": false,
      "enabledSizes": [
        {}
      ],
      "imageOnly": false,
      "kind": ""
    },
    "kind": "",
    "obaEnabled": false,
    "obaSettings": {
      "iconClickThroughUrl": "",
      "iconClickTrackingUrl": "",
      "iconViewTrackingUrl": "",
      "program": "",
      "resourceUrl": "",
      "size": {},
      "xPosition": "",
      "yPosition": ""
    },
    "orientation": "",
    "skippableSettings": {
      "kind": "",
      "progressOffset": {
        "offsetPercentage": 0,
        "offsetSeconds": 0
      },
      "skipOffset": {},
      "skippable": false
    },
    "transcodeSettings": {
      "enabledVideoFormats": [],
      "kind": ""
    }
  },
  "vpaidAdapterChoice": ""
}' |  \
  http POST {{baseUrl}}/userprofiles/:profileId/placements \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "accountId": "",\n  "adBlockingOptOut": false,\n  "additionalSizes": [\n    {\n      "height": 0,\n      "iab": false,\n      "id": "",\n      "kind": "",\n      "width": 0\n    }\n  ],\n  "advertiserId": "",\n  "advertiserIdDimensionValue": {\n    "dimensionName": "",\n    "etag": "",\n    "id": "",\n    "kind": "",\n    "matchType": "",\n    "value": ""\n  },\n  "archived": false,\n  "campaignId": "",\n  "campaignIdDimensionValue": {},\n  "comment": "",\n  "compatibility": "",\n  "contentCategoryId": "",\n  "createInfo": {\n    "time": ""\n  },\n  "directorySiteId": "",\n  "directorySiteIdDimensionValue": {},\n  "externalId": "",\n  "id": "",\n  "idDimensionValue": {},\n  "keyName": "",\n  "kind": "",\n  "lastModifiedInfo": {},\n  "lookbackConfiguration": {\n    "clickDuration": 0,\n    "postImpressionActivitiesDuration": 0\n  },\n  "name": "",\n  "paymentApproved": false,\n  "paymentSource": "",\n  "placementGroupId": "",\n  "placementGroupIdDimensionValue": {},\n  "placementStrategyId": "",\n  "pricingSchedule": {\n    "capCostOption": "",\n    "endDate": "",\n    "flighted": false,\n    "floodlightActivityId": "",\n    "pricingPeriods": [\n      {\n        "endDate": "",\n        "pricingComment": "",\n        "rateOrCostNanos": "",\n        "startDate": "",\n        "units": ""\n      }\n    ],\n    "pricingType": "",\n    "startDate": "",\n    "testingStartDate": ""\n  },\n  "primary": false,\n  "publisherUpdateInfo": {},\n  "siteId": "",\n  "siteIdDimensionValue": {},\n  "size": {},\n  "sslRequired": false,\n  "status": "",\n  "subaccountId": "",\n  "tagFormats": [],\n  "tagSetting": {\n    "additionalKeyValues": "",\n    "includeClickThroughUrls": false,\n    "includeClickTracking": false,\n    "keywordOption": ""\n  },\n  "videoActiveViewOptOut": false,\n  "videoSettings": {\n    "companionSettings": {\n      "companionsDisabled": false,\n      "enabledSizes": [\n        {}\n      ],\n      "imageOnly": false,\n      "kind": ""\n    },\n    "kind": "",\n    "obaEnabled": false,\n    "obaSettings": {\n      "iconClickThroughUrl": "",\n      "iconClickTrackingUrl": "",\n      "iconViewTrackingUrl": "",\n      "program": "",\n      "resourceUrl": "",\n      "size": {},\n      "xPosition": "",\n      "yPosition": ""\n    },\n    "orientation": "",\n    "skippableSettings": {\n      "kind": "",\n      "progressOffset": {\n        "offsetPercentage": 0,\n        "offsetSeconds": 0\n      },\n      "skipOffset": {},\n      "skippable": false\n    },\n    "transcodeSettings": {\n      "enabledVideoFormats": [],\n      "kind": ""\n    }\n  },\n  "vpaidAdapterChoice": ""\n}' \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/placements
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "accountId": "",
  "adBlockingOptOut": false,
  "additionalSizes": [
    [
      "height": 0,
      "iab": false,
      "id": "",
      "kind": "",
      "width": 0
    ]
  ],
  "advertiserId": "",
  "advertiserIdDimensionValue": [
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  ],
  "archived": false,
  "campaignId": "",
  "campaignIdDimensionValue": [],
  "comment": "",
  "compatibility": "",
  "contentCategoryId": "",
  "createInfo": ["time": ""],
  "directorySiteId": "",
  "directorySiteIdDimensionValue": [],
  "externalId": "",
  "id": "",
  "idDimensionValue": [],
  "keyName": "",
  "kind": "",
  "lastModifiedInfo": [],
  "lookbackConfiguration": [
    "clickDuration": 0,
    "postImpressionActivitiesDuration": 0
  ],
  "name": "",
  "paymentApproved": false,
  "paymentSource": "",
  "placementGroupId": "",
  "placementGroupIdDimensionValue": [],
  "placementStrategyId": "",
  "pricingSchedule": [
    "capCostOption": "",
    "endDate": "",
    "flighted": false,
    "floodlightActivityId": "",
    "pricingPeriods": [
      [
        "endDate": "",
        "pricingComment": "",
        "rateOrCostNanos": "",
        "startDate": "",
        "units": ""
      ]
    ],
    "pricingType": "",
    "startDate": "",
    "testingStartDate": ""
  ],
  "primary": false,
  "publisherUpdateInfo": [],
  "siteId": "",
  "siteIdDimensionValue": [],
  "size": [],
  "sslRequired": false,
  "status": "",
  "subaccountId": "",
  "tagFormats": [],
  "tagSetting": [
    "additionalKeyValues": "",
    "includeClickThroughUrls": false,
    "includeClickTracking": false,
    "keywordOption": ""
  ],
  "videoActiveViewOptOut": false,
  "videoSettings": [
    "companionSettings": [
      "companionsDisabled": false,
      "enabledSizes": [[]],
      "imageOnly": false,
      "kind": ""
    ],
    "kind": "",
    "obaEnabled": false,
    "obaSettings": [
      "iconClickThroughUrl": "",
      "iconClickTrackingUrl": "",
      "iconViewTrackingUrl": "",
      "program": "",
      "resourceUrl": "",
      "size": [],
      "xPosition": "",
      "yPosition": ""
    ],
    "orientation": "",
    "skippableSettings": [
      "kind": "",
      "progressOffset": [
        "offsetPercentage": 0,
        "offsetSeconds": 0
      ],
      "skipOffset": [],
      "skippable": false
    ],
    "transcodeSettings": [
      "enabledVideoFormats": [],
      "kind": ""
    ]
  ],
  "vpaidAdapterChoice": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/placements")! 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 dfareporting.placements.list
{{baseUrl}}/userprofiles/:profileId/placements
QUERY PARAMS

profileId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/placements");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/placements")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/placements"

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}}/userprofiles/:profileId/placements"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/placements");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/placements"

	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/userprofiles/:profileId/placements HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/placements")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/placements"))
    .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}}/userprofiles/:profileId/placements")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/placements")
  .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}}/userprofiles/:profileId/placements');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/placements'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/placements';
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}}/userprofiles/:profileId/placements',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/placements")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/placements',
  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}}/userprofiles/:profileId/placements'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/placements');

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}}/userprofiles/:profileId/placements'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/placements';
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}}/userprofiles/:profileId/placements"]
                                                       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}}/userprofiles/:profileId/placements" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/placements",
  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}}/userprofiles/:profileId/placements');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/placements');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/placements');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/placements' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/placements' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/placements")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/placements"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/placements"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/placements")

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/userprofiles/:profileId/placements') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/placements";

    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}}/userprofiles/:profileId/placements
http GET {{baseUrl}}/userprofiles/:profileId/placements
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/placements
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/placements")! 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 dfareporting.placements.patch
{{baseUrl}}/userprofiles/:profileId/placements
QUERY PARAMS

id
profileId
BODY json

{
  "accountId": "",
  "adBlockingOptOut": false,
  "additionalSizes": [
    {
      "height": 0,
      "iab": false,
      "id": "",
      "kind": "",
      "width": 0
    }
  ],
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "archived": false,
  "campaignId": "",
  "campaignIdDimensionValue": {},
  "comment": "",
  "compatibility": "",
  "contentCategoryId": "",
  "createInfo": {
    "time": ""
  },
  "directorySiteId": "",
  "directorySiteIdDimensionValue": {},
  "externalId": "",
  "id": "",
  "idDimensionValue": {},
  "keyName": "",
  "kind": "",
  "lastModifiedInfo": {},
  "lookbackConfiguration": {
    "clickDuration": 0,
    "postImpressionActivitiesDuration": 0
  },
  "name": "",
  "paymentApproved": false,
  "paymentSource": "",
  "placementGroupId": "",
  "placementGroupIdDimensionValue": {},
  "placementStrategyId": "",
  "pricingSchedule": {
    "capCostOption": "",
    "endDate": "",
    "flighted": false,
    "floodlightActivityId": "",
    "pricingPeriods": [
      {
        "endDate": "",
        "pricingComment": "",
        "rateOrCostNanos": "",
        "startDate": "",
        "units": ""
      }
    ],
    "pricingType": "",
    "startDate": "",
    "testingStartDate": ""
  },
  "primary": false,
  "publisherUpdateInfo": {},
  "siteId": "",
  "siteIdDimensionValue": {},
  "size": {},
  "sslRequired": false,
  "status": "",
  "subaccountId": "",
  "tagFormats": [],
  "tagSetting": {
    "additionalKeyValues": "",
    "includeClickThroughUrls": false,
    "includeClickTracking": false,
    "keywordOption": ""
  },
  "videoActiveViewOptOut": false,
  "videoSettings": {
    "companionSettings": {
      "companionsDisabled": false,
      "enabledSizes": [
        {}
      ],
      "imageOnly": false,
      "kind": ""
    },
    "kind": "",
    "obaEnabled": false,
    "obaSettings": {
      "iconClickThroughUrl": "",
      "iconClickTrackingUrl": "",
      "iconViewTrackingUrl": "",
      "program": "",
      "resourceUrl": "",
      "size": {},
      "xPosition": "",
      "yPosition": ""
    },
    "orientation": "",
    "skippableSettings": {
      "kind": "",
      "progressOffset": {
        "offsetPercentage": 0,
        "offsetSeconds": 0
      },
      "skipOffset": {},
      "skippable": false
    },
    "transcodeSettings": {
      "enabledVideoFormats": [],
      "kind": ""
    }
  },
  "vpaidAdapterChoice": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/placements?id=");

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  \"accountId\": \"\",\n  \"adBlockingOptOut\": false,\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"comment\": \"\",\n  \"compatibility\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"lookbackConfiguration\": {\n    \"clickDuration\": 0,\n    \"postImpressionActivitiesDuration\": 0\n  },\n  \"name\": \"\",\n  \"paymentApproved\": false,\n  \"paymentSource\": \"\",\n  \"placementGroupId\": \"\",\n  \"placementGroupIdDimensionValue\": {},\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primary\": false,\n  \"publisherUpdateInfo\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"size\": {},\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormats\": [],\n  \"tagSetting\": {\n    \"additionalKeyValues\": \"\",\n    \"includeClickThroughUrls\": false,\n    \"includeClickTracking\": false,\n    \"keywordOption\": \"\"\n  },\n  \"videoActiveViewOptOut\": false,\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {}\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\n    }\n  },\n  \"vpaidAdapterChoice\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/patch "{{baseUrl}}/userprofiles/:profileId/placements" {:query-params {:id ""}
                                                                                :content-type :json
                                                                                :form-params {:accountId ""
                                                                                              :adBlockingOptOut false
                                                                                              :additionalSizes [{:height 0
                                                                                                                 :iab false
                                                                                                                 :id ""
                                                                                                                 :kind ""
                                                                                                                 :width 0}]
                                                                                              :advertiserId ""
                                                                                              :advertiserIdDimensionValue {:dimensionName ""
                                                                                                                           :etag ""
                                                                                                                           :id ""
                                                                                                                           :kind ""
                                                                                                                           :matchType ""
                                                                                                                           :value ""}
                                                                                              :archived false
                                                                                              :campaignId ""
                                                                                              :campaignIdDimensionValue {}
                                                                                              :comment ""
                                                                                              :compatibility ""
                                                                                              :contentCategoryId ""
                                                                                              :createInfo {:time ""}
                                                                                              :directorySiteId ""
                                                                                              :directorySiteIdDimensionValue {}
                                                                                              :externalId ""
                                                                                              :id ""
                                                                                              :idDimensionValue {}
                                                                                              :keyName ""
                                                                                              :kind ""
                                                                                              :lastModifiedInfo {}
                                                                                              :lookbackConfiguration {:clickDuration 0
                                                                                                                      :postImpressionActivitiesDuration 0}
                                                                                              :name ""
                                                                                              :paymentApproved false
                                                                                              :paymentSource ""
                                                                                              :placementGroupId ""
                                                                                              :placementGroupIdDimensionValue {}
                                                                                              :placementStrategyId ""
                                                                                              :pricingSchedule {:capCostOption ""
                                                                                                                :endDate ""
                                                                                                                :flighted false
                                                                                                                :floodlightActivityId ""
                                                                                                                :pricingPeriods [{:endDate ""
                                                                                                                                  :pricingComment ""
                                                                                                                                  :rateOrCostNanos ""
                                                                                                                                  :startDate ""
                                                                                                                                  :units ""}]
                                                                                                                :pricingType ""
                                                                                                                :startDate ""
                                                                                                                :testingStartDate ""}
                                                                                              :primary false
                                                                                              :publisherUpdateInfo {}
                                                                                              :siteId ""
                                                                                              :siteIdDimensionValue {}
                                                                                              :size {}
                                                                                              :sslRequired false
                                                                                              :status ""
                                                                                              :subaccountId ""
                                                                                              :tagFormats []
                                                                                              :tagSetting {:additionalKeyValues ""
                                                                                                           :includeClickThroughUrls false
                                                                                                           :includeClickTracking false
                                                                                                           :keywordOption ""}
                                                                                              :videoActiveViewOptOut false
                                                                                              :videoSettings {:companionSettings {:companionsDisabled false
                                                                                                                                  :enabledSizes [{}]
                                                                                                                                  :imageOnly false
                                                                                                                                  :kind ""}
                                                                                                              :kind ""
                                                                                                              :obaEnabled false
                                                                                                              :obaSettings {:iconClickThroughUrl ""
                                                                                                                            :iconClickTrackingUrl ""
                                                                                                                            :iconViewTrackingUrl ""
                                                                                                                            :program ""
                                                                                                                            :resourceUrl ""
                                                                                                                            :size {}
                                                                                                                            :xPosition ""
                                                                                                                            :yPosition ""}
                                                                                                              :orientation ""
                                                                                                              :skippableSettings {:kind ""
                                                                                                                                  :progressOffset {:offsetPercentage 0
                                                                                                                                                   :offsetSeconds 0}
                                                                                                                                  :skipOffset {}
                                                                                                                                  :skippable false}
                                                                                                              :transcodeSettings {:enabledVideoFormats []
                                                                                                                                  :kind ""}}
                                                                                              :vpaidAdapterChoice ""}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/placements?id="
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"accountId\": \"\",\n  \"adBlockingOptOut\": false,\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"comment\": \"\",\n  \"compatibility\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"lookbackConfiguration\": {\n    \"clickDuration\": 0,\n    \"postImpressionActivitiesDuration\": 0\n  },\n  \"name\": \"\",\n  \"paymentApproved\": false,\n  \"paymentSource\": \"\",\n  \"placementGroupId\": \"\",\n  \"placementGroupIdDimensionValue\": {},\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primary\": false,\n  \"publisherUpdateInfo\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"size\": {},\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormats\": [],\n  \"tagSetting\": {\n    \"additionalKeyValues\": \"\",\n    \"includeClickThroughUrls\": false,\n    \"includeClickTracking\": false,\n    \"keywordOption\": \"\"\n  },\n  \"videoActiveViewOptOut\": false,\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {}\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\n    }\n  },\n  \"vpaidAdapterChoice\": \"\"\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}}/userprofiles/:profileId/placements?id="),
    Content = new StringContent("{\n  \"accountId\": \"\",\n  \"adBlockingOptOut\": false,\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"comment\": \"\",\n  \"compatibility\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"lookbackConfiguration\": {\n    \"clickDuration\": 0,\n    \"postImpressionActivitiesDuration\": 0\n  },\n  \"name\": \"\",\n  \"paymentApproved\": false,\n  \"paymentSource\": \"\",\n  \"placementGroupId\": \"\",\n  \"placementGroupIdDimensionValue\": {},\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primary\": false,\n  \"publisherUpdateInfo\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"size\": {},\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormats\": [],\n  \"tagSetting\": {\n    \"additionalKeyValues\": \"\",\n    \"includeClickThroughUrls\": false,\n    \"includeClickTracking\": false,\n    \"keywordOption\": \"\"\n  },\n  \"videoActiveViewOptOut\": false,\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {}\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\n    }\n  },\n  \"vpaidAdapterChoice\": \"\"\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}}/userprofiles/:profileId/placements?id=");
var request = new RestRequest("", Method.Patch);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"accountId\": \"\",\n  \"adBlockingOptOut\": false,\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"comment\": \"\",\n  \"compatibility\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"lookbackConfiguration\": {\n    \"clickDuration\": 0,\n    \"postImpressionActivitiesDuration\": 0\n  },\n  \"name\": \"\",\n  \"paymentApproved\": false,\n  \"paymentSource\": \"\",\n  \"placementGroupId\": \"\",\n  \"placementGroupIdDimensionValue\": {},\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primary\": false,\n  \"publisherUpdateInfo\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"size\": {},\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormats\": [],\n  \"tagSetting\": {\n    \"additionalKeyValues\": \"\",\n    \"includeClickThroughUrls\": false,\n    \"includeClickTracking\": false,\n    \"keywordOption\": \"\"\n  },\n  \"videoActiveViewOptOut\": false,\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {}\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\n    }\n  },\n  \"vpaidAdapterChoice\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/placements?id="

	payload := strings.NewReader("{\n  \"accountId\": \"\",\n  \"adBlockingOptOut\": false,\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"comment\": \"\",\n  \"compatibility\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"lookbackConfiguration\": {\n    \"clickDuration\": 0,\n    \"postImpressionActivitiesDuration\": 0\n  },\n  \"name\": \"\",\n  \"paymentApproved\": false,\n  \"paymentSource\": \"\",\n  \"placementGroupId\": \"\",\n  \"placementGroupIdDimensionValue\": {},\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primary\": false,\n  \"publisherUpdateInfo\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"size\": {},\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormats\": [],\n  \"tagSetting\": {\n    \"additionalKeyValues\": \"\",\n    \"includeClickThroughUrls\": false,\n    \"includeClickTracking\": false,\n    \"keywordOption\": \"\"\n  },\n  \"videoActiveViewOptOut\": false,\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {}\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\n    }\n  },\n  \"vpaidAdapterChoice\": \"\"\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/userprofiles/:profileId/placements?id= HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 2506

{
  "accountId": "",
  "adBlockingOptOut": false,
  "additionalSizes": [
    {
      "height": 0,
      "iab": false,
      "id": "",
      "kind": "",
      "width": 0
    }
  ],
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "archived": false,
  "campaignId": "",
  "campaignIdDimensionValue": {},
  "comment": "",
  "compatibility": "",
  "contentCategoryId": "",
  "createInfo": {
    "time": ""
  },
  "directorySiteId": "",
  "directorySiteIdDimensionValue": {},
  "externalId": "",
  "id": "",
  "idDimensionValue": {},
  "keyName": "",
  "kind": "",
  "lastModifiedInfo": {},
  "lookbackConfiguration": {
    "clickDuration": 0,
    "postImpressionActivitiesDuration": 0
  },
  "name": "",
  "paymentApproved": false,
  "paymentSource": "",
  "placementGroupId": "",
  "placementGroupIdDimensionValue": {},
  "placementStrategyId": "",
  "pricingSchedule": {
    "capCostOption": "",
    "endDate": "",
    "flighted": false,
    "floodlightActivityId": "",
    "pricingPeriods": [
      {
        "endDate": "",
        "pricingComment": "",
        "rateOrCostNanos": "",
        "startDate": "",
        "units": ""
      }
    ],
    "pricingType": "",
    "startDate": "",
    "testingStartDate": ""
  },
  "primary": false,
  "publisherUpdateInfo": {},
  "siteId": "",
  "siteIdDimensionValue": {},
  "size": {},
  "sslRequired": false,
  "status": "",
  "subaccountId": "",
  "tagFormats": [],
  "tagSetting": {
    "additionalKeyValues": "",
    "includeClickThroughUrls": false,
    "includeClickTracking": false,
    "keywordOption": ""
  },
  "videoActiveViewOptOut": false,
  "videoSettings": {
    "companionSettings": {
      "companionsDisabled": false,
      "enabledSizes": [
        {}
      ],
      "imageOnly": false,
      "kind": ""
    },
    "kind": "",
    "obaEnabled": false,
    "obaSettings": {
      "iconClickThroughUrl": "",
      "iconClickTrackingUrl": "",
      "iconViewTrackingUrl": "",
      "program": "",
      "resourceUrl": "",
      "size": {},
      "xPosition": "",
      "yPosition": ""
    },
    "orientation": "",
    "skippableSettings": {
      "kind": "",
      "progressOffset": {
        "offsetPercentage": 0,
        "offsetSeconds": 0
      },
      "skipOffset": {},
      "skippable": false
    },
    "transcodeSettings": {
      "enabledVideoFormats": [],
      "kind": ""
    }
  },
  "vpaidAdapterChoice": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/userprofiles/:profileId/placements?id=")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"accountId\": \"\",\n  \"adBlockingOptOut\": false,\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"comment\": \"\",\n  \"compatibility\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"lookbackConfiguration\": {\n    \"clickDuration\": 0,\n    \"postImpressionActivitiesDuration\": 0\n  },\n  \"name\": \"\",\n  \"paymentApproved\": false,\n  \"paymentSource\": \"\",\n  \"placementGroupId\": \"\",\n  \"placementGroupIdDimensionValue\": {},\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primary\": false,\n  \"publisherUpdateInfo\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"size\": {},\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormats\": [],\n  \"tagSetting\": {\n    \"additionalKeyValues\": \"\",\n    \"includeClickThroughUrls\": false,\n    \"includeClickTracking\": false,\n    \"keywordOption\": \"\"\n  },\n  \"videoActiveViewOptOut\": false,\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {}\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\n    }\n  },\n  \"vpaidAdapterChoice\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/placements?id="))
    .header("content-type", "application/json")
    .method("PATCH", HttpRequest.BodyPublishers.ofString("{\n  \"accountId\": \"\",\n  \"adBlockingOptOut\": false,\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"comment\": \"\",\n  \"compatibility\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"lookbackConfiguration\": {\n    \"clickDuration\": 0,\n    \"postImpressionActivitiesDuration\": 0\n  },\n  \"name\": \"\",\n  \"paymentApproved\": false,\n  \"paymentSource\": \"\",\n  \"placementGroupId\": \"\",\n  \"placementGroupIdDimensionValue\": {},\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primary\": false,\n  \"publisherUpdateInfo\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"size\": {},\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormats\": [],\n  \"tagSetting\": {\n    \"additionalKeyValues\": \"\",\n    \"includeClickThroughUrls\": false,\n    \"includeClickTracking\": false,\n    \"keywordOption\": \"\"\n  },\n  \"videoActiveViewOptOut\": false,\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {}\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\n    }\n  },\n  \"vpaidAdapterChoice\": \"\"\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  \"accountId\": \"\",\n  \"adBlockingOptOut\": false,\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"comment\": \"\",\n  \"compatibility\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"lookbackConfiguration\": {\n    \"clickDuration\": 0,\n    \"postImpressionActivitiesDuration\": 0\n  },\n  \"name\": \"\",\n  \"paymentApproved\": false,\n  \"paymentSource\": \"\",\n  \"placementGroupId\": \"\",\n  \"placementGroupIdDimensionValue\": {},\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primary\": false,\n  \"publisherUpdateInfo\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"size\": {},\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormats\": [],\n  \"tagSetting\": {\n    \"additionalKeyValues\": \"\",\n    \"includeClickThroughUrls\": false,\n    \"includeClickTracking\": false,\n    \"keywordOption\": \"\"\n  },\n  \"videoActiveViewOptOut\": false,\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {}\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\n    }\n  },\n  \"vpaidAdapterChoice\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/placements?id=")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/userprofiles/:profileId/placements?id=")
  .header("content-type", "application/json")
  .body("{\n  \"accountId\": \"\",\n  \"adBlockingOptOut\": false,\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"comment\": \"\",\n  \"compatibility\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"lookbackConfiguration\": {\n    \"clickDuration\": 0,\n    \"postImpressionActivitiesDuration\": 0\n  },\n  \"name\": \"\",\n  \"paymentApproved\": false,\n  \"paymentSource\": \"\",\n  \"placementGroupId\": \"\",\n  \"placementGroupIdDimensionValue\": {},\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primary\": false,\n  \"publisherUpdateInfo\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"size\": {},\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormats\": [],\n  \"tagSetting\": {\n    \"additionalKeyValues\": \"\",\n    \"includeClickThroughUrls\": false,\n    \"includeClickTracking\": false,\n    \"keywordOption\": \"\"\n  },\n  \"videoActiveViewOptOut\": false,\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {}\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\n    }\n  },\n  \"vpaidAdapterChoice\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  accountId: '',
  adBlockingOptOut: false,
  additionalSizes: [
    {
      height: 0,
      iab: false,
      id: '',
      kind: '',
      width: 0
    }
  ],
  advertiserId: '',
  advertiserIdDimensionValue: {
    dimensionName: '',
    etag: '',
    id: '',
    kind: '',
    matchType: '',
    value: ''
  },
  archived: false,
  campaignId: '',
  campaignIdDimensionValue: {},
  comment: '',
  compatibility: '',
  contentCategoryId: '',
  createInfo: {
    time: ''
  },
  directorySiteId: '',
  directorySiteIdDimensionValue: {},
  externalId: '',
  id: '',
  idDimensionValue: {},
  keyName: '',
  kind: '',
  lastModifiedInfo: {},
  lookbackConfiguration: {
    clickDuration: 0,
    postImpressionActivitiesDuration: 0
  },
  name: '',
  paymentApproved: false,
  paymentSource: '',
  placementGroupId: '',
  placementGroupIdDimensionValue: {},
  placementStrategyId: '',
  pricingSchedule: {
    capCostOption: '',
    endDate: '',
    flighted: false,
    floodlightActivityId: '',
    pricingPeriods: [
      {
        endDate: '',
        pricingComment: '',
        rateOrCostNanos: '',
        startDate: '',
        units: ''
      }
    ],
    pricingType: '',
    startDate: '',
    testingStartDate: ''
  },
  primary: false,
  publisherUpdateInfo: {},
  siteId: '',
  siteIdDimensionValue: {},
  size: {},
  sslRequired: false,
  status: '',
  subaccountId: '',
  tagFormats: [],
  tagSetting: {
    additionalKeyValues: '',
    includeClickThroughUrls: false,
    includeClickTracking: false,
    keywordOption: ''
  },
  videoActiveViewOptOut: false,
  videoSettings: {
    companionSettings: {
      companionsDisabled: false,
      enabledSizes: [
        {}
      ],
      imageOnly: false,
      kind: ''
    },
    kind: '',
    obaEnabled: false,
    obaSettings: {
      iconClickThroughUrl: '',
      iconClickTrackingUrl: '',
      iconViewTrackingUrl: '',
      program: '',
      resourceUrl: '',
      size: {},
      xPosition: '',
      yPosition: ''
    },
    orientation: '',
    skippableSettings: {
      kind: '',
      progressOffset: {
        offsetPercentage: 0,
        offsetSeconds: 0
      },
      skipOffset: {},
      skippable: false
    },
    transcodeSettings: {
      enabledVideoFormats: [],
      kind: ''
    }
  },
  vpaidAdapterChoice: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PATCH', '{{baseUrl}}/userprofiles/:profileId/placements?id=');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/userprofiles/:profileId/placements',
  params: {id: ''},
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    adBlockingOptOut: false,
    additionalSizes: [{height: 0, iab: false, id: '', kind: '', width: 0}],
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    archived: false,
    campaignId: '',
    campaignIdDimensionValue: {},
    comment: '',
    compatibility: '',
    contentCategoryId: '',
    createInfo: {time: ''},
    directorySiteId: '',
    directorySiteIdDimensionValue: {},
    externalId: '',
    id: '',
    idDimensionValue: {},
    keyName: '',
    kind: '',
    lastModifiedInfo: {},
    lookbackConfiguration: {clickDuration: 0, postImpressionActivitiesDuration: 0},
    name: '',
    paymentApproved: false,
    paymentSource: '',
    placementGroupId: '',
    placementGroupIdDimensionValue: {},
    placementStrategyId: '',
    pricingSchedule: {
      capCostOption: '',
      endDate: '',
      flighted: false,
      floodlightActivityId: '',
      pricingPeriods: [
        {endDate: '', pricingComment: '', rateOrCostNanos: '', startDate: '', units: ''}
      ],
      pricingType: '',
      startDate: '',
      testingStartDate: ''
    },
    primary: false,
    publisherUpdateInfo: {},
    siteId: '',
    siteIdDimensionValue: {},
    size: {},
    sslRequired: false,
    status: '',
    subaccountId: '',
    tagFormats: [],
    tagSetting: {
      additionalKeyValues: '',
      includeClickThroughUrls: false,
      includeClickTracking: false,
      keywordOption: ''
    },
    videoActiveViewOptOut: false,
    videoSettings: {
      companionSettings: {companionsDisabled: false, enabledSizes: [{}], imageOnly: false, kind: ''},
      kind: '',
      obaEnabled: false,
      obaSettings: {
        iconClickThroughUrl: '',
        iconClickTrackingUrl: '',
        iconViewTrackingUrl: '',
        program: '',
        resourceUrl: '',
        size: {},
        xPosition: '',
        yPosition: ''
      },
      orientation: '',
      skippableSettings: {
        kind: '',
        progressOffset: {offsetPercentage: 0, offsetSeconds: 0},
        skipOffset: {},
        skippable: false
      },
      transcodeSettings: {enabledVideoFormats: [], kind: ''}
    },
    vpaidAdapterChoice: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/placements?id=';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","adBlockingOptOut":false,"additionalSizes":[{"height":0,"iab":false,"id":"","kind":"","width":0}],"advertiserId":"","advertiserIdDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"archived":false,"campaignId":"","campaignIdDimensionValue":{},"comment":"","compatibility":"","contentCategoryId":"","createInfo":{"time":""},"directorySiteId":"","directorySiteIdDimensionValue":{},"externalId":"","id":"","idDimensionValue":{},"keyName":"","kind":"","lastModifiedInfo":{},"lookbackConfiguration":{"clickDuration":0,"postImpressionActivitiesDuration":0},"name":"","paymentApproved":false,"paymentSource":"","placementGroupId":"","placementGroupIdDimensionValue":{},"placementStrategyId":"","pricingSchedule":{"capCostOption":"","endDate":"","flighted":false,"floodlightActivityId":"","pricingPeriods":[{"endDate":"","pricingComment":"","rateOrCostNanos":"","startDate":"","units":""}],"pricingType":"","startDate":"","testingStartDate":""},"primary":false,"publisherUpdateInfo":{},"siteId":"","siteIdDimensionValue":{},"size":{},"sslRequired":false,"status":"","subaccountId":"","tagFormats":[],"tagSetting":{"additionalKeyValues":"","includeClickThroughUrls":false,"includeClickTracking":false,"keywordOption":""},"videoActiveViewOptOut":false,"videoSettings":{"companionSettings":{"companionsDisabled":false,"enabledSizes":[{}],"imageOnly":false,"kind":""},"kind":"","obaEnabled":false,"obaSettings":{"iconClickThroughUrl":"","iconClickTrackingUrl":"","iconViewTrackingUrl":"","program":"","resourceUrl":"","size":{},"xPosition":"","yPosition":""},"orientation":"","skippableSettings":{"kind":"","progressOffset":{"offsetPercentage":0,"offsetSeconds":0},"skipOffset":{},"skippable":false},"transcodeSettings":{"enabledVideoFormats":[],"kind":""}},"vpaidAdapterChoice":""}'
};

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}}/userprofiles/:profileId/placements?id=',
  method: 'PATCH',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "accountId": "",\n  "adBlockingOptOut": false,\n  "additionalSizes": [\n    {\n      "height": 0,\n      "iab": false,\n      "id": "",\n      "kind": "",\n      "width": 0\n    }\n  ],\n  "advertiserId": "",\n  "advertiserIdDimensionValue": {\n    "dimensionName": "",\n    "etag": "",\n    "id": "",\n    "kind": "",\n    "matchType": "",\n    "value": ""\n  },\n  "archived": false,\n  "campaignId": "",\n  "campaignIdDimensionValue": {},\n  "comment": "",\n  "compatibility": "",\n  "contentCategoryId": "",\n  "createInfo": {\n    "time": ""\n  },\n  "directorySiteId": "",\n  "directorySiteIdDimensionValue": {},\n  "externalId": "",\n  "id": "",\n  "idDimensionValue": {},\n  "keyName": "",\n  "kind": "",\n  "lastModifiedInfo": {},\n  "lookbackConfiguration": {\n    "clickDuration": 0,\n    "postImpressionActivitiesDuration": 0\n  },\n  "name": "",\n  "paymentApproved": false,\n  "paymentSource": "",\n  "placementGroupId": "",\n  "placementGroupIdDimensionValue": {},\n  "placementStrategyId": "",\n  "pricingSchedule": {\n    "capCostOption": "",\n    "endDate": "",\n    "flighted": false,\n    "floodlightActivityId": "",\n    "pricingPeriods": [\n      {\n        "endDate": "",\n        "pricingComment": "",\n        "rateOrCostNanos": "",\n        "startDate": "",\n        "units": ""\n      }\n    ],\n    "pricingType": "",\n    "startDate": "",\n    "testingStartDate": ""\n  },\n  "primary": false,\n  "publisherUpdateInfo": {},\n  "siteId": "",\n  "siteIdDimensionValue": {},\n  "size": {},\n  "sslRequired": false,\n  "status": "",\n  "subaccountId": "",\n  "tagFormats": [],\n  "tagSetting": {\n    "additionalKeyValues": "",\n    "includeClickThroughUrls": false,\n    "includeClickTracking": false,\n    "keywordOption": ""\n  },\n  "videoActiveViewOptOut": false,\n  "videoSettings": {\n    "companionSettings": {\n      "companionsDisabled": false,\n      "enabledSizes": [\n        {}\n      ],\n      "imageOnly": false,\n      "kind": ""\n    },\n    "kind": "",\n    "obaEnabled": false,\n    "obaSettings": {\n      "iconClickThroughUrl": "",\n      "iconClickTrackingUrl": "",\n      "iconViewTrackingUrl": "",\n      "program": "",\n      "resourceUrl": "",\n      "size": {},\n      "xPosition": "",\n      "yPosition": ""\n    },\n    "orientation": "",\n    "skippableSettings": {\n      "kind": "",\n      "progressOffset": {\n        "offsetPercentage": 0,\n        "offsetSeconds": 0\n      },\n      "skipOffset": {},\n      "skippable": false\n    },\n    "transcodeSettings": {\n      "enabledVideoFormats": [],\n      "kind": ""\n    }\n  },\n  "vpaidAdapterChoice": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"accountId\": \"\",\n  \"adBlockingOptOut\": false,\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"comment\": \"\",\n  \"compatibility\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"lookbackConfiguration\": {\n    \"clickDuration\": 0,\n    \"postImpressionActivitiesDuration\": 0\n  },\n  \"name\": \"\",\n  \"paymentApproved\": false,\n  \"paymentSource\": \"\",\n  \"placementGroupId\": \"\",\n  \"placementGroupIdDimensionValue\": {},\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primary\": false,\n  \"publisherUpdateInfo\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"size\": {},\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormats\": [],\n  \"tagSetting\": {\n    \"additionalKeyValues\": \"\",\n    \"includeClickThroughUrls\": false,\n    \"includeClickTracking\": false,\n    \"keywordOption\": \"\"\n  },\n  \"videoActiveViewOptOut\": false,\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {}\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\n    }\n  },\n  \"vpaidAdapterChoice\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/placements?id=")
  .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/userprofiles/:profileId/placements?id=',
  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({
  accountId: '',
  adBlockingOptOut: false,
  additionalSizes: [{height: 0, iab: false, id: '', kind: '', width: 0}],
  advertiserId: '',
  advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
  archived: false,
  campaignId: '',
  campaignIdDimensionValue: {},
  comment: '',
  compatibility: '',
  contentCategoryId: '',
  createInfo: {time: ''},
  directorySiteId: '',
  directorySiteIdDimensionValue: {},
  externalId: '',
  id: '',
  idDimensionValue: {},
  keyName: '',
  kind: '',
  lastModifiedInfo: {},
  lookbackConfiguration: {clickDuration: 0, postImpressionActivitiesDuration: 0},
  name: '',
  paymentApproved: false,
  paymentSource: '',
  placementGroupId: '',
  placementGroupIdDimensionValue: {},
  placementStrategyId: '',
  pricingSchedule: {
    capCostOption: '',
    endDate: '',
    flighted: false,
    floodlightActivityId: '',
    pricingPeriods: [
      {endDate: '', pricingComment: '', rateOrCostNanos: '', startDate: '', units: ''}
    ],
    pricingType: '',
    startDate: '',
    testingStartDate: ''
  },
  primary: false,
  publisherUpdateInfo: {},
  siteId: '',
  siteIdDimensionValue: {},
  size: {},
  sslRequired: false,
  status: '',
  subaccountId: '',
  tagFormats: [],
  tagSetting: {
    additionalKeyValues: '',
    includeClickThroughUrls: false,
    includeClickTracking: false,
    keywordOption: ''
  },
  videoActiveViewOptOut: false,
  videoSettings: {
    companionSettings: {companionsDisabled: false, enabledSizes: [{}], imageOnly: false, kind: ''},
    kind: '',
    obaEnabled: false,
    obaSettings: {
      iconClickThroughUrl: '',
      iconClickTrackingUrl: '',
      iconViewTrackingUrl: '',
      program: '',
      resourceUrl: '',
      size: {},
      xPosition: '',
      yPosition: ''
    },
    orientation: '',
    skippableSettings: {
      kind: '',
      progressOffset: {offsetPercentage: 0, offsetSeconds: 0},
      skipOffset: {},
      skippable: false
    },
    transcodeSettings: {enabledVideoFormats: [], kind: ''}
  },
  vpaidAdapterChoice: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/userprofiles/:profileId/placements',
  qs: {id: ''},
  headers: {'content-type': 'application/json'},
  body: {
    accountId: '',
    adBlockingOptOut: false,
    additionalSizes: [{height: 0, iab: false, id: '', kind: '', width: 0}],
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    archived: false,
    campaignId: '',
    campaignIdDimensionValue: {},
    comment: '',
    compatibility: '',
    contentCategoryId: '',
    createInfo: {time: ''},
    directorySiteId: '',
    directorySiteIdDimensionValue: {},
    externalId: '',
    id: '',
    idDimensionValue: {},
    keyName: '',
    kind: '',
    lastModifiedInfo: {},
    lookbackConfiguration: {clickDuration: 0, postImpressionActivitiesDuration: 0},
    name: '',
    paymentApproved: false,
    paymentSource: '',
    placementGroupId: '',
    placementGroupIdDimensionValue: {},
    placementStrategyId: '',
    pricingSchedule: {
      capCostOption: '',
      endDate: '',
      flighted: false,
      floodlightActivityId: '',
      pricingPeriods: [
        {endDate: '', pricingComment: '', rateOrCostNanos: '', startDate: '', units: ''}
      ],
      pricingType: '',
      startDate: '',
      testingStartDate: ''
    },
    primary: false,
    publisherUpdateInfo: {},
    siteId: '',
    siteIdDimensionValue: {},
    size: {},
    sslRequired: false,
    status: '',
    subaccountId: '',
    tagFormats: [],
    tagSetting: {
      additionalKeyValues: '',
      includeClickThroughUrls: false,
      includeClickTracking: false,
      keywordOption: ''
    },
    videoActiveViewOptOut: false,
    videoSettings: {
      companionSettings: {companionsDisabled: false, enabledSizes: [{}], imageOnly: false, kind: ''},
      kind: '',
      obaEnabled: false,
      obaSettings: {
        iconClickThroughUrl: '',
        iconClickTrackingUrl: '',
        iconViewTrackingUrl: '',
        program: '',
        resourceUrl: '',
        size: {},
        xPosition: '',
        yPosition: ''
      },
      orientation: '',
      skippableSettings: {
        kind: '',
        progressOffset: {offsetPercentage: 0, offsetSeconds: 0},
        skipOffset: {},
        skippable: false
      },
      transcodeSettings: {enabledVideoFormats: [], kind: ''}
    },
    vpaidAdapterChoice: ''
  },
  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}}/userprofiles/:profileId/placements');

req.query({
  id: ''
});

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  accountId: '',
  adBlockingOptOut: false,
  additionalSizes: [
    {
      height: 0,
      iab: false,
      id: '',
      kind: '',
      width: 0
    }
  ],
  advertiserId: '',
  advertiserIdDimensionValue: {
    dimensionName: '',
    etag: '',
    id: '',
    kind: '',
    matchType: '',
    value: ''
  },
  archived: false,
  campaignId: '',
  campaignIdDimensionValue: {},
  comment: '',
  compatibility: '',
  contentCategoryId: '',
  createInfo: {
    time: ''
  },
  directorySiteId: '',
  directorySiteIdDimensionValue: {},
  externalId: '',
  id: '',
  idDimensionValue: {},
  keyName: '',
  kind: '',
  lastModifiedInfo: {},
  lookbackConfiguration: {
    clickDuration: 0,
    postImpressionActivitiesDuration: 0
  },
  name: '',
  paymentApproved: false,
  paymentSource: '',
  placementGroupId: '',
  placementGroupIdDimensionValue: {},
  placementStrategyId: '',
  pricingSchedule: {
    capCostOption: '',
    endDate: '',
    flighted: false,
    floodlightActivityId: '',
    pricingPeriods: [
      {
        endDate: '',
        pricingComment: '',
        rateOrCostNanos: '',
        startDate: '',
        units: ''
      }
    ],
    pricingType: '',
    startDate: '',
    testingStartDate: ''
  },
  primary: false,
  publisherUpdateInfo: {},
  siteId: '',
  siteIdDimensionValue: {},
  size: {},
  sslRequired: false,
  status: '',
  subaccountId: '',
  tagFormats: [],
  tagSetting: {
    additionalKeyValues: '',
    includeClickThroughUrls: false,
    includeClickTracking: false,
    keywordOption: ''
  },
  videoActiveViewOptOut: false,
  videoSettings: {
    companionSettings: {
      companionsDisabled: false,
      enabledSizes: [
        {}
      ],
      imageOnly: false,
      kind: ''
    },
    kind: '',
    obaEnabled: false,
    obaSettings: {
      iconClickThroughUrl: '',
      iconClickTrackingUrl: '',
      iconViewTrackingUrl: '',
      program: '',
      resourceUrl: '',
      size: {},
      xPosition: '',
      yPosition: ''
    },
    orientation: '',
    skippableSettings: {
      kind: '',
      progressOffset: {
        offsetPercentage: 0,
        offsetSeconds: 0
      },
      skipOffset: {},
      skippable: false
    },
    transcodeSettings: {
      enabledVideoFormats: [],
      kind: ''
    }
  },
  vpaidAdapterChoice: ''
});

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}}/userprofiles/:profileId/placements',
  params: {id: ''},
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    adBlockingOptOut: false,
    additionalSizes: [{height: 0, iab: false, id: '', kind: '', width: 0}],
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    archived: false,
    campaignId: '',
    campaignIdDimensionValue: {},
    comment: '',
    compatibility: '',
    contentCategoryId: '',
    createInfo: {time: ''},
    directorySiteId: '',
    directorySiteIdDimensionValue: {},
    externalId: '',
    id: '',
    idDimensionValue: {},
    keyName: '',
    kind: '',
    lastModifiedInfo: {},
    lookbackConfiguration: {clickDuration: 0, postImpressionActivitiesDuration: 0},
    name: '',
    paymentApproved: false,
    paymentSource: '',
    placementGroupId: '',
    placementGroupIdDimensionValue: {},
    placementStrategyId: '',
    pricingSchedule: {
      capCostOption: '',
      endDate: '',
      flighted: false,
      floodlightActivityId: '',
      pricingPeriods: [
        {endDate: '', pricingComment: '', rateOrCostNanos: '', startDate: '', units: ''}
      ],
      pricingType: '',
      startDate: '',
      testingStartDate: ''
    },
    primary: false,
    publisherUpdateInfo: {},
    siteId: '',
    siteIdDimensionValue: {},
    size: {},
    sslRequired: false,
    status: '',
    subaccountId: '',
    tagFormats: [],
    tagSetting: {
      additionalKeyValues: '',
      includeClickThroughUrls: false,
      includeClickTracking: false,
      keywordOption: ''
    },
    videoActiveViewOptOut: false,
    videoSettings: {
      companionSettings: {companionsDisabled: false, enabledSizes: [{}], imageOnly: false, kind: ''},
      kind: '',
      obaEnabled: false,
      obaSettings: {
        iconClickThroughUrl: '',
        iconClickTrackingUrl: '',
        iconViewTrackingUrl: '',
        program: '',
        resourceUrl: '',
        size: {},
        xPosition: '',
        yPosition: ''
      },
      orientation: '',
      skippableSettings: {
        kind: '',
        progressOffset: {offsetPercentage: 0, offsetSeconds: 0},
        skipOffset: {},
        skippable: false
      },
      transcodeSettings: {enabledVideoFormats: [], kind: ''}
    },
    vpaidAdapterChoice: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/placements?id=';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","adBlockingOptOut":false,"additionalSizes":[{"height":0,"iab":false,"id":"","kind":"","width":0}],"advertiserId":"","advertiserIdDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"archived":false,"campaignId":"","campaignIdDimensionValue":{},"comment":"","compatibility":"","contentCategoryId":"","createInfo":{"time":""},"directorySiteId":"","directorySiteIdDimensionValue":{},"externalId":"","id":"","idDimensionValue":{},"keyName":"","kind":"","lastModifiedInfo":{},"lookbackConfiguration":{"clickDuration":0,"postImpressionActivitiesDuration":0},"name":"","paymentApproved":false,"paymentSource":"","placementGroupId":"","placementGroupIdDimensionValue":{},"placementStrategyId":"","pricingSchedule":{"capCostOption":"","endDate":"","flighted":false,"floodlightActivityId":"","pricingPeriods":[{"endDate":"","pricingComment":"","rateOrCostNanos":"","startDate":"","units":""}],"pricingType":"","startDate":"","testingStartDate":""},"primary":false,"publisherUpdateInfo":{},"siteId":"","siteIdDimensionValue":{},"size":{},"sslRequired":false,"status":"","subaccountId":"","tagFormats":[],"tagSetting":{"additionalKeyValues":"","includeClickThroughUrls":false,"includeClickTracking":false,"keywordOption":""},"videoActiveViewOptOut":false,"videoSettings":{"companionSettings":{"companionsDisabled":false,"enabledSizes":[{}],"imageOnly":false,"kind":""},"kind":"","obaEnabled":false,"obaSettings":{"iconClickThroughUrl":"","iconClickTrackingUrl":"","iconViewTrackingUrl":"","program":"","resourceUrl":"","size":{},"xPosition":"","yPosition":""},"orientation":"","skippableSettings":{"kind":"","progressOffset":{"offsetPercentage":0,"offsetSeconds":0},"skipOffset":{},"skippable":false},"transcodeSettings":{"enabledVideoFormats":[],"kind":""}},"vpaidAdapterChoice":""}'
};

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 = @{ @"accountId": @"",
                              @"adBlockingOptOut": @NO,
                              @"additionalSizes": @[ @{ @"height": @0, @"iab": @NO, @"id": @"", @"kind": @"", @"width": @0 } ],
                              @"advertiserId": @"",
                              @"advertiserIdDimensionValue": @{ @"dimensionName": @"", @"etag": @"", @"id": @"", @"kind": @"", @"matchType": @"", @"value": @"" },
                              @"archived": @NO,
                              @"campaignId": @"",
                              @"campaignIdDimensionValue": @{  },
                              @"comment": @"",
                              @"compatibility": @"",
                              @"contentCategoryId": @"",
                              @"createInfo": @{ @"time": @"" },
                              @"directorySiteId": @"",
                              @"directorySiteIdDimensionValue": @{  },
                              @"externalId": @"",
                              @"id": @"",
                              @"idDimensionValue": @{  },
                              @"keyName": @"",
                              @"kind": @"",
                              @"lastModifiedInfo": @{  },
                              @"lookbackConfiguration": @{ @"clickDuration": @0, @"postImpressionActivitiesDuration": @0 },
                              @"name": @"",
                              @"paymentApproved": @NO,
                              @"paymentSource": @"",
                              @"placementGroupId": @"",
                              @"placementGroupIdDimensionValue": @{  },
                              @"placementStrategyId": @"",
                              @"pricingSchedule": @{ @"capCostOption": @"", @"endDate": @"", @"flighted": @NO, @"floodlightActivityId": @"", @"pricingPeriods": @[ @{ @"endDate": @"", @"pricingComment": @"", @"rateOrCostNanos": @"", @"startDate": @"", @"units": @"" } ], @"pricingType": @"", @"startDate": @"", @"testingStartDate": @"" },
                              @"primary": @NO,
                              @"publisherUpdateInfo": @{  },
                              @"siteId": @"",
                              @"siteIdDimensionValue": @{  },
                              @"size": @{  },
                              @"sslRequired": @NO,
                              @"status": @"",
                              @"subaccountId": @"",
                              @"tagFormats": @[  ],
                              @"tagSetting": @{ @"additionalKeyValues": @"", @"includeClickThroughUrls": @NO, @"includeClickTracking": @NO, @"keywordOption": @"" },
                              @"videoActiveViewOptOut": @NO,
                              @"videoSettings": @{ @"companionSettings": @{ @"companionsDisabled": @NO, @"enabledSizes": @[ @{  } ], @"imageOnly": @NO, @"kind": @"" }, @"kind": @"", @"obaEnabled": @NO, @"obaSettings": @{ @"iconClickThroughUrl": @"", @"iconClickTrackingUrl": @"", @"iconViewTrackingUrl": @"", @"program": @"", @"resourceUrl": @"", @"size": @{  }, @"xPosition": @"", @"yPosition": @"" }, @"orientation": @"", @"skippableSettings": @{ @"kind": @"", @"progressOffset": @{ @"offsetPercentage": @0, @"offsetSeconds": @0 }, @"skipOffset": @{  }, @"skippable": @NO }, @"transcodeSettings": @{ @"enabledVideoFormats": @[  ], @"kind": @"" } },
                              @"vpaidAdapterChoice": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/userprofiles/:profileId/placements?id="]
                                                       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}}/userprofiles/:profileId/placements?id=" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"accountId\": \"\",\n  \"adBlockingOptOut\": false,\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"comment\": \"\",\n  \"compatibility\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"lookbackConfiguration\": {\n    \"clickDuration\": 0,\n    \"postImpressionActivitiesDuration\": 0\n  },\n  \"name\": \"\",\n  \"paymentApproved\": false,\n  \"paymentSource\": \"\",\n  \"placementGroupId\": \"\",\n  \"placementGroupIdDimensionValue\": {},\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primary\": false,\n  \"publisherUpdateInfo\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"size\": {},\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormats\": [],\n  \"tagSetting\": {\n    \"additionalKeyValues\": \"\",\n    \"includeClickThroughUrls\": false,\n    \"includeClickTracking\": false,\n    \"keywordOption\": \"\"\n  },\n  \"videoActiveViewOptOut\": false,\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {}\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\n    }\n  },\n  \"vpaidAdapterChoice\": \"\"\n}" in

Client.call ~headers ~body `PATCH uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/placements?id=",
  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([
    'accountId' => '',
    'adBlockingOptOut' => null,
    'additionalSizes' => [
        [
                'height' => 0,
                'iab' => null,
                'id' => '',
                'kind' => '',
                'width' => 0
        ]
    ],
    'advertiserId' => '',
    'advertiserIdDimensionValue' => [
        'dimensionName' => '',
        'etag' => '',
        'id' => '',
        'kind' => '',
        'matchType' => '',
        'value' => ''
    ],
    'archived' => null,
    'campaignId' => '',
    'campaignIdDimensionValue' => [
        
    ],
    'comment' => '',
    'compatibility' => '',
    'contentCategoryId' => '',
    'createInfo' => [
        'time' => ''
    ],
    'directorySiteId' => '',
    'directorySiteIdDimensionValue' => [
        
    ],
    'externalId' => '',
    'id' => '',
    'idDimensionValue' => [
        
    ],
    'keyName' => '',
    'kind' => '',
    'lastModifiedInfo' => [
        
    ],
    'lookbackConfiguration' => [
        'clickDuration' => 0,
        'postImpressionActivitiesDuration' => 0
    ],
    'name' => '',
    'paymentApproved' => null,
    'paymentSource' => '',
    'placementGroupId' => '',
    'placementGroupIdDimensionValue' => [
        
    ],
    'placementStrategyId' => '',
    'pricingSchedule' => [
        'capCostOption' => '',
        'endDate' => '',
        'flighted' => null,
        'floodlightActivityId' => '',
        'pricingPeriods' => [
                [
                                'endDate' => '',
                                'pricingComment' => '',
                                'rateOrCostNanos' => '',
                                'startDate' => '',
                                'units' => ''
                ]
        ],
        'pricingType' => '',
        'startDate' => '',
        'testingStartDate' => ''
    ],
    'primary' => null,
    'publisherUpdateInfo' => [
        
    ],
    'siteId' => '',
    'siteIdDimensionValue' => [
        
    ],
    'size' => [
        
    ],
    'sslRequired' => null,
    'status' => '',
    'subaccountId' => '',
    'tagFormats' => [
        
    ],
    'tagSetting' => [
        'additionalKeyValues' => '',
        'includeClickThroughUrls' => null,
        'includeClickTracking' => null,
        'keywordOption' => ''
    ],
    'videoActiveViewOptOut' => null,
    'videoSettings' => [
        'companionSettings' => [
                'companionsDisabled' => null,
                'enabledSizes' => [
                                [
                                                                
                                ]
                ],
                'imageOnly' => null,
                'kind' => ''
        ],
        'kind' => '',
        'obaEnabled' => null,
        'obaSettings' => [
                'iconClickThroughUrl' => '',
                'iconClickTrackingUrl' => '',
                'iconViewTrackingUrl' => '',
                'program' => '',
                'resourceUrl' => '',
                'size' => [
                                
                ],
                'xPosition' => '',
                'yPosition' => ''
        ],
        'orientation' => '',
        'skippableSettings' => [
                'kind' => '',
                'progressOffset' => [
                                'offsetPercentage' => 0,
                                'offsetSeconds' => 0
                ],
                'skipOffset' => [
                                
                ],
                'skippable' => null
        ],
        'transcodeSettings' => [
                'enabledVideoFormats' => [
                                
                ],
                'kind' => ''
        ]
    ],
    'vpaidAdapterChoice' => ''
  ]),
  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}}/userprofiles/:profileId/placements?id=', [
  'body' => '{
  "accountId": "",
  "adBlockingOptOut": false,
  "additionalSizes": [
    {
      "height": 0,
      "iab": false,
      "id": "",
      "kind": "",
      "width": 0
    }
  ],
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "archived": false,
  "campaignId": "",
  "campaignIdDimensionValue": {},
  "comment": "",
  "compatibility": "",
  "contentCategoryId": "",
  "createInfo": {
    "time": ""
  },
  "directorySiteId": "",
  "directorySiteIdDimensionValue": {},
  "externalId": "",
  "id": "",
  "idDimensionValue": {},
  "keyName": "",
  "kind": "",
  "lastModifiedInfo": {},
  "lookbackConfiguration": {
    "clickDuration": 0,
    "postImpressionActivitiesDuration": 0
  },
  "name": "",
  "paymentApproved": false,
  "paymentSource": "",
  "placementGroupId": "",
  "placementGroupIdDimensionValue": {},
  "placementStrategyId": "",
  "pricingSchedule": {
    "capCostOption": "",
    "endDate": "",
    "flighted": false,
    "floodlightActivityId": "",
    "pricingPeriods": [
      {
        "endDate": "",
        "pricingComment": "",
        "rateOrCostNanos": "",
        "startDate": "",
        "units": ""
      }
    ],
    "pricingType": "",
    "startDate": "",
    "testingStartDate": ""
  },
  "primary": false,
  "publisherUpdateInfo": {},
  "siteId": "",
  "siteIdDimensionValue": {},
  "size": {},
  "sslRequired": false,
  "status": "",
  "subaccountId": "",
  "tagFormats": [],
  "tagSetting": {
    "additionalKeyValues": "",
    "includeClickThroughUrls": false,
    "includeClickTracking": false,
    "keywordOption": ""
  },
  "videoActiveViewOptOut": false,
  "videoSettings": {
    "companionSettings": {
      "companionsDisabled": false,
      "enabledSizes": [
        {}
      ],
      "imageOnly": false,
      "kind": ""
    },
    "kind": "",
    "obaEnabled": false,
    "obaSettings": {
      "iconClickThroughUrl": "",
      "iconClickTrackingUrl": "",
      "iconViewTrackingUrl": "",
      "program": "",
      "resourceUrl": "",
      "size": {},
      "xPosition": "",
      "yPosition": ""
    },
    "orientation": "",
    "skippableSettings": {
      "kind": "",
      "progressOffset": {
        "offsetPercentage": 0,
        "offsetSeconds": 0
      },
      "skipOffset": {},
      "skippable": false
    },
    "transcodeSettings": {
      "enabledVideoFormats": [],
      "kind": ""
    }
  },
  "vpaidAdapterChoice": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/placements');
$request->setMethod(HttpRequest::HTTP_METH_PATCH);

$request->setQueryData([
  'id' => ''
]);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'accountId' => '',
  'adBlockingOptOut' => null,
  'additionalSizes' => [
    [
        'height' => 0,
        'iab' => null,
        'id' => '',
        'kind' => '',
        'width' => 0
    ]
  ],
  'advertiserId' => '',
  'advertiserIdDimensionValue' => [
    'dimensionName' => '',
    'etag' => '',
    'id' => '',
    'kind' => '',
    'matchType' => '',
    'value' => ''
  ],
  'archived' => null,
  'campaignId' => '',
  'campaignIdDimensionValue' => [
    
  ],
  'comment' => '',
  'compatibility' => '',
  'contentCategoryId' => '',
  'createInfo' => [
    'time' => ''
  ],
  'directorySiteId' => '',
  'directorySiteIdDimensionValue' => [
    
  ],
  'externalId' => '',
  'id' => '',
  'idDimensionValue' => [
    
  ],
  'keyName' => '',
  'kind' => '',
  'lastModifiedInfo' => [
    
  ],
  'lookbackConfiguration' => [
    'clickDuration' => 0,
    'postImpressionActivitiesDuration' => 0
  ],
  'name' => '',
  'paymentApproved' => null,
  'paymentSource' => '',
  'placementGroupId' => '',
  'placementGroupIdDimensionValue' => [
    
  ],
  'placementStrategyId' => '',
  'pricingSchedule' => [
    'capCostOption' => '',
    'endDate' => '',
    'flighted' => null,
    'floodlightActivityId' => '',
    'pricingPeriods' => [
        [
                'endDate' => '',
                'pricingComment' => '',
                'rateOrCostNanos' => '',
                'startDate' => '',
                'units' => ''
        ]
    ],
    'pricingType' => '',
    'startDate' => '',
    'testingStartDate' => ''
  ],
  'primary' => null,
  'publisherUpdateInfo' => [
    
  ],
  'siteId' => '',
  'siteIdDimensionValue' => [
    
  ],
  'size' => [
    
  ],
  'sslRequired' => null,
  'status' => '',
  'subaccountId' => '',
  'tagFormats' => [
    
  ],
  'tagSetting' => [
    'additionalKeyValues' => '',
    'includeClickThroughUrls' => null,
    'includeClickTracking' => null,
    'keywordOption' => ''
  ],
  'videoActiveViewOptOut' => null,
  'videoSettings' => [
    'companionSettings' => [
        'companionsDisabled' => null,
        'enabledSizes' => [
                [
                                
                ]
        ],
        'imageOnly' => null,
        'kind' => ''
    ],
    'kind' => '',
    'obaEnabled' => null,
    'obaSettings' => [
        'iconClickThroughUrl' => '',
        'iconClickTrackingUrl' => '',
        'iconViewTrackingUrl' => '',
        'program' => '',
        'resourceUrl' => '',
        'size' => [
                
        ],
        'xPosition' => '',
        'yPosition' => ''
    ],
    'orientation' => '',
    'skippableSettings' => [
        'kind' => '',
        'progressOffset' => [
                'offsetPercentage' => 0,
                'offsetSeconds' => 0
        ],
        'skipOffset' => [
                
        ],
        'skippable' => null
    ],
    'transcodeSettings' => [
        'enabledVideoFormats' => [
                
        ],
        'kind' => ''
    ]
  ],
  'vpaidAdapterChoice' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'accountId' => '',
  'adBlockingOptOut' => null,
  'additionalSizes' => [
    [
        'height' => 0,
        'iab' => null,
        'id' => '',
        'kind' => '',
        'width' => 0
    ]
  ],
  'advertiserId' => '',
  'advertiserIdDimensionValue' => [
    'dimensionName' => '',
    'etag' => '',
    'id' => '',
    'kind' => '',
    'matchType' => '',
    'value' => ''
  ],
  'archived' => null,
  'campaignId' => '',
  'campaignIdDimensionValue' => [
    
  ],
  'comment' => '',
  'compatibility' => '',
  'contentCategoryId' => '',
  'createInfo' => [
    'time' => ''
  ],
  'directorySiteId' => '',
  'directorySiteIdDimensionValue' => [
    
  ],
  'externalId' => '',
  'id' => '',
  'idDimensionValue' => [
    
  ],
  'keyName' => '',
  'kind' => '',
  'lastModifiedInfo' => [
    
  ],
  'lookbackConfiguration' => [
    'clickDuration' => 0,
    'postImpressionActivitiesDuration' => 0
  ],
  'name' => '',
  'paymentApproved' => null,
  'paymentSource' => '',
  'placementGroupId' => '',
  'placementGroupIdDimensionValue' => [
    
  ],
  'placementStrategyId' => '',
  'pricingSchedule' => [
    'capCostOption' => '',
    'endDate' => '',
    'flighted' => null,
    'floodlightActivityId' => '',
    'pricingPeriods' => [
        [
                'endDate' => '',
                'pricingComment' => '',
                'rateOrCostNanos' => '',
                'startDate' => '',
                'units' => ''
        ]
    ],
    'pricingType' => '',
    'startDate' => '',
    'testingStartDate' => ''
  ],
  'primary' => null,
  'publisherUpdateInfo' => [
    
  ],
  'siteId' => '',
  'siteIdDimensionValue' => [
    
  ],
  'size' => [
    
  ],
  'sslRequired' => null,
  'status' => '',
  'subaccountId' => '',
  'tagFormats' => [
    
  ],
  'tagSetting' => [
    'additionalKeyValues' => '',
    'includeClickThroughUrls' => null,
    'includeClickTracking' => null,
    'keywordOption' => ''
  ],
  'videoActiveViewOptOut' => null,
  'videoSettings' => [
    'companionSettings' => [
        'companionsDisabled' => null,
        'enabledSizes' => [
                [
                                
                ]
        ],
        'imageOnly' => null,
        'kind' => ''
    ],
    'kind' => '',
    'obaEnabled' => null,
    'obaSettings' => [
        'iconClickThroughUrl' => '',
        'iconClickTrackingUrl' => '',
        'iconViewTrackingUrl' => '',
        'program' => '',
        'resourceUrl' => '',
        'size' => [
                
        ],
        'xPosition' => '',
        'yPosition' => ''
    ],
    'orientation' => '',
    'skippableSettings' => [
        'kind' => '',
        'progressOffset' => [
                'offsetPercentage' => 0,
                'offsetSeconds' => 0
        ],
        'skipOffset' => [
                
        ],
        'skippable' => null
    ],
    'transcodeSettings' => [
        'enabledVideoFormats' => [
                
        ],
        'kind' => ''
    ]
  ],
  'vpaidAdapterChoice' => ''
]));
$request->setRequestUrl('{{baseUrl}}/userprofiles/:profileId/placements');
$request->setRequestMethod('PATCH');
$request->setBody($body);

$request->setQuery(new http\QueryString([
  'id' => ''
]));

$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}}/userprofiles/:profileId/placements?id=' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "adBlockingOptOut": false,
  "additionalSizes": [
    {
      "height": 0,
      "iab": false,
      "id": "",
      "kind": "",
      "width": 0
    }
  ],
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "archived": false,
  "campaignId": "",
  "campaignIdDimensionValue": {},
  "comment": "",
  "compatibility": "",
  "contentCategoryId": "",
  "createInfo": {
    "time": ""
  },
  "directorySiteId": "",
  "directorySiteIdDimensionValue": {},
  "externalId": "",
  "id": "",
  "idDimensionValue": {},
  "keyName": "",
  "kind": "",
  "lastModifiedInfo": {},
  "lookbackConfiguration": {
    "clickDuration": 0,
    "postImpressionActivitiesDuration": 0
  },
  "name": "",
  "paymentApproved": false,
  "paymentSource": "",
  "placementGroupId": "",
  "placementGroupIdDimensionValue": {},
  "placementStrategyId": "",
  "pricingSchedule": {
    "capCostOption": "",
    "endDate": "",
    "flighted": false,
    "floodlightActivityId": "",
    "pricingPeriods": [
      {
        "endDate": "",
        "pricingComment": "",
        "rateOrCostNanos": "",
        "startDate": "",
        "units": ""
      }
    ],
    "pricingType": "",
    "startDate": "",
    "testingStartDate": ""
  },
  "primary": false,
  "publisherUpdateInfo": {},
  "siteId": "",
  "siteIdDimensionValue": {},
  "size": {},
  "sslRequired": false,
  "status": "",
  "subaccountId": "",
  "tagFormats": [],
  "tagSetting": {
    "additionalKeyValues": "",
    "includeClickThroughUrls": false,
    "includeClickTracking": false,
    "keywordOption": ""
  },
  "videoActiveViewOptOut": false,
  "videoSettings": {
    "companionSettings": {
      "companionsDisabled": false,
      "enabledSizes": [
        {}
      ],
      "imageOnly": false,
      "kind": ""
    },
    "kind": "",
    "obaEnabled": false,
    "obaSettings": {
      "iconClickThroughUrl": "",
      "iconClickTrackingUrl": "",
      "iconViewTrackingUrl": "",
      "program": "",
      "resourceUrl": "",
      "size": {},
      "xPosition": "",
      "yPosition": ""
    },
    "orientation": "",
    "skippableSettings": {
      "kind": "",
      "progressOffset": {
        "offsetPercentage": 0,
        "offsetSeconds": 0
      },
      "skipOffset": {},
      "skippable": false
    },
    "transcodeSettings": {
      "enabledVideoFormats": [],
      "kind": ""
    }
  },
  "vpaidAdapterChoice": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/placements?id=' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "adBlockingOptOut": false,
  "additionalSizes": [
    {
      "height": 0,
      "iab": false,
      "id": "",
      "kind": "",
      "width": 0
    }
  ],
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "archived": false,
  "campaignId": "",
  "campaignIdDimensionValue": {},
  "comment": "",
  "compatibility": "",
  "contentCategoryId": "",
  "createInfo": {
    "time": ""
  },
  "directorySiteId": "",
  "directorySiteIdDimensionValue": {},
  "externalId": "",
  "id": "",
  "idDimensionValue": {},
  "keyName": "",
  "kind": "",
  "lastModifiedInfo": {},
  "lookbackConfiguration": {
    "clickDuration": 0,
    "postImpressionActivitiesDuration": 0
  },
  "name": "",
  "paymentApproved": false,
  "paymentSource": "",
  "placementGroupId": "",
  "placementGroupIdDimensionValue": {},
  "placementStrategyId": "",
  "pricingSchedule": {
    "capCostOption": "",
    "endDate": "",
    "flighted": false,
    "floodlightActivityId": "",
    "pricingPeriods": [
      {
        "endDate": "",
        "pricingComment": "",
        "rateOrCostNanos": "",
        "startDate": "",
        "units": ""
      }
    ],
    "pricingType": "",
    "startDate": "",
    "testingStartDate": ""
  },
  "primary": false,
  "publisherUpdateInfo": {},
  "siteId": "",
  "siteIdDimensionValue": {},
  "size": {},
  "sslRequired": false,
  "status": "",
  "subaccountId": "",
  "tagFormats": [],
  "tagSetting": {
    "additionalKeyValues": "",
    "includeClickThroughUrls": false,
    "includeClickTracking": false,
    "keywordOption": ""
  },
  "videoActiveViewOptOut": false,
  "videoSettings": {
    "companionSettings": {
      "companionsDisabled": false,
      "enabledSizes": [
        {}
      ],
      "imageOnly": false,
      "kind": ""
    },
    "kind": "",
    "obaEnabled": false,
    "obaSettings": {
      "iconClickThroughUrl": "",
      "iconClickTrackingUrl": "",
      "iconViewTrackingUrl": "",
      "program": "",
      "resourceUrl": "",
      "size": {},
      "xPosition": "",
      "yPosition": ""
    },
    "orientation": "",
    "skippableSettings": {
      "kind": "",
      "progressOffset": {
        "offsetPercentage": 0,
        "offsetSeconds": 0
      },
      "skipOffset": {},
      "skippable": false
    },
    "transcodeSettings": {
      "enabledVideoFormats": [],
      "kind": ""
    }
  },
  "vpaidAdapterChoice": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"accountId\": \"\",\n  \"adBlockingOptOut\": false,\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"comment\": \"\",\n  \"compatibility\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"lookbackConfiguration\": {\n    \"clickDuration\": 0,\n    \"postImpressionActivitiesDuration\": 0\n  },\n  \"name\": \"\",\n  \"paymentApproved\": false,\n  \"paymentSource\": \"\",\n  \"placementGroupId\": \"\",\n  \"placementGroupIdDimensionValue\": {},\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primary\": false,\n  \"publisherUpdateInfo\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"size\": {},\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormats\": [],\n  \"tagSetting\": {\n    \"additionalKeyValues\": \"\",\n    \"includeClickThroughUrls\": false,\n    \"includeClickTracking\": false,\n    \"keywordOption\": \"\"\n  },\n  \"videoActiveViewOptOut\": false,\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {}\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\n    }\n  },\n  \"vpaidAdapterChoice\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("PATCH", "/baseUrl/userprofiles/:profileId/placements?id=", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/placements"

querystring = {"id":""}

payload = {
    "accountId": "",
    "adBlockingOptOut": False,
    "additionalSizes": [
        {
            "height": 0,
            "iab": False,
            "id": "",
            "kind": "",
            "width": 0
        }
    ],
    "advertiserId": "",
    "advertiserIdDimensionValue": {
        "dimensionName": "",
        "etag": "",
        "id": "",
        "kind": "",
        "matchType": "",
        "value": ""
    },
    "archived": False,
    "campaignId": "",
    "campaignIdDimensionValue": {},
    "comment": "",
    "compatibility": "",
    "contentCategoryId": "",
    "createInfo": { "time": "" },
    "directorySiteId": "",
    "directorySiteIdDimensionValue": {},
    "externalId": "",
    "id": "",
    "idDimensionValue": {},
    "keyName": "",
    "kind": "",
    "lastModifiedInfo": {},
    "lookbackConfiguration": {
        "clickDuration": 0,
        "postImpressionActivitiesDuration": 0
    },
    "name": "",
    "paymentApproved": False,
    "paymentSource": "",
    "placementGroupId": "",
    "placementGroupIdDimensionValue": {},
    "placementStrategyId": "",
    "pricingSchedule": {
        "capCostOption": "",
        "endDate": "",
        "flighted": False,
        "floodlightActivityId": "",
        "pricingPeriods": [
            {
                "endDate": "",
                "pricingComment": "",
                "rateOrCostNanos": "",
                "startDate": "",
                "units": ""
            }
        ],
        "pricingType": "",
        "startDate": "",
        "testingStartDate": ""
    },
    "primary": False,
    "publisherUpdateInfo": {},
    "siteId": "",
    "siteIdDimensionValue": {},
    "size": {},
    "sslRequired": False,
    "status": "",
    "subaccountId": "",
    "tagFormats": [],
    "tagSetting": {
        "additionalKeyValues": "",
        "includeClickThroughUrls": False,
        "includeClickTracking": False,
        "keywordOption": ""
    },
    "videoActiveViewOptOut": False,
    "videoSettings": {
        "companionSettings": {
            "companionsDisabled": False,
            "enabledSizes": [{}],
            "imageOnly": False,
            "kind": ""
        },
        "kind": "",
        "obaEnabled": False,
        "obaSettings": {
            "iconClickThroughUrl": "",
            "iconClickTrackingUrl": "",
            "iconViewTrackingUrl": "",
            "program": "",
            "resourceUrl": "",
            "size": {},
            "xPosition": "",
            "yPosition": ""
        },
        "orientation": "",
        "skippableSettings": {
            "kind": "",
            "progressOffset": {
                "offsetPercentage": 0,
                "offsetSeconds": 0
            },
            "skipOffset": {},
            "skippable": False
        },
        "transcodeSettings": {
            "enabledVideoFormats": [],
            "kind": ""
        }
    },
    "vpaidAdapterChoice": ""
}
headers = {"content-type": "application/json"}

response = requests.patch(url, json=payload, headers=headers, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/placements"

queryString <- list(id = "")

payload <- "{\n  \"accountId\": \"\",\n  \"adBlockingOptOut\": false,\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"comment\": \"\",\n  \"compatibility\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"lookbackConfiguration\": {\n    \"clickDuration\": 0,\n    \"postImpressionActivitiesDuration\": 0\n  },\n  \"name\": \"\",\n  \"paymentApproved\": false,\n  \"paymentSource\": \"\",\n  \"placementGroupId\": \"\",\n  \"placementGroupIdDimensionValue\": {},\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primary\": false,\n  \"publisherUpdateInfo\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"size\": {},\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormats\": [],\n  \"tagSetting\": {\n    \"additionalKeyValues\": \"\",\n    \"includeClickThroughUrls\": false,\n    \"includeClickTracking\": false,\n    \"keywordOption\": \"\"\n  },\n  \"videoActiveViewOptOut\": false,\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {}\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\n    }\n  },\n  \"vpaidAdapterChoice\": \"\"\n}"

encode <- "json"

response <- VERB("PATCH", url, body = payload, query = queryString, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/placements?id=")

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  \"accountId\": \"\",\n  \"adBlockingOptOut\": false,\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"comment\": \"\",\n  \"compatibility\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"lookbackConfiguration\": {\n    \"clickDuration\": 0,\n    \"postImpressionActivitiesDuration\": 0\n  },\n  \"name\": \"\",\n  \"paymentApproved\": false,\n  \"paymentSource\": \"\",\n  \"placementGroupId\": \"\",\n  \"placementGroupIdDimensionValue\": {},\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primary\": false,\n  \"publisherUpdateInfo\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"size\": {},\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormats\": [],\n  \"tagSetting\": {\n    \"additionalKeyValues\": \"\",\n    \"includeClickThroughUrls\": false,\n    \"includeClickTracking\": false,\n    \"keywordOption\": \"\"\n  },\n  \"videoActiveViewOptOut\": false,\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {}\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\n    }\n  },\n  \"vpaidAdapterChoice\": \"\"\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/userprofiles/:profileId/placements') do |req|
  req.params['id'] = ''
  req.body = "{\n  \"accountId\": \"\",\n  \"adBlockingOptOut\": false,\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"comment\": \"\",\n  \"compatibility\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"lookbackConfiguration\": {\n    \"clickDuration\": 0,\n    \"postImpressionActivitiesDuration\": 0\n  },\n  \"name\": \"\",\n  \"paymentApproved\": false,\n  \"paymentSource\": \"\",\n  \"placementGroupId\": \"\",\n  \"placementGroupIdDimensionValue\": {},\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primary\": false,\n  \"publisherUpdateInfo\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"size\": {},\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormats\": [],\n  \"tagSetting\": {\n    \"additionalKeyValues\": \"\",\n    \"includeClickThroughUrls\": false,\n    \"includeClickTracking\": false,\n    \"keywordOption\": \"\"\n  },\n  \"videoActiveViewOptOut\": false,\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {}\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\n    }\n  },\n  \"vpaidAdapterChoice\": \"\"\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}}/userprofiles/:profileId/placements";

    let querystring = [
        ("id", ""),
    ];

    let payload = json!({
        "accountId": "",
        "adBlockingOptOut": false,
        "additionalSizes": (
            json!({
                "height": 0,
                "iab": false,
                "id": "",
                "kind": "",
                "width": 0
            })
        ),
        "advertiserId": "",
        "advertiserIdDimensionValue": json!({
            "dimensionName": "",
            "etag": "",
            "id": "",
            "kind": "",
            "matchType": "",
            "value": ""
        }),
        "archived": false,
        "campaignId": "",
        "campaignIdDimensionValue": json!({}),
        "comment": "",
        "compatibility": "",
        "contentCategoryId": "",
        "createInfo": json!({"time": ""}),
        "directorySiteId": "",
        "directorySiteIdDimensionValue": json!({}),
        "externalId": "",
        "id": "",
        "idDimensionValue": json!({}),
        "keyName": "",
        "kind": "",
        "lastModifiedInfo": json!({}),
        "lookbackConfiguration": json!({
            "clickDuration": 0,
            "postImpressionActivitiesDuration": 0
        }),
        "name": "",
        "paymentApproved": false,
        "paymentSource": "",
        "placementGroupId": "",
        "placementGroupIdDimensionValue": json!({}),
        "placementStrategyId": "",
        "pricingSchedule": json!({
            "capCostOption": "",
            "endDate": "",
            "flighted": false,
            "floodlightActivityId": "",
            "pricingPeriods": (
                json!({
                    "endDate": "",
                    "pricingComment": "",
                    "rateOrCostNanos": "",
                    "startDate": "",
                    "units": ""
                })
            ),
            "pricingType": "",
            "startDate": "",
            "testingStartDate": ""
        }),
        "primary": false,
        "publisherUpdateInfo": json!({}),
        "siteId": "",
        "siteIdDimensionValue": json!({}),
        "size": json!({}),
        "sslRequired": false,
        "status": "",
        "subaccountId": "",
        "tagFormats": (),
        "tagSetting": json!({
            "additionalKeyValues": "",
            "includeClickThroughUrls": false,
            "includeClickTracking": false,
            "keywordOption": ""
        }),
        "videoActiveViewOptOut": false,
        "videoSettings": json!({
            "companionSettings": json!({
                "companionsDisabled": false,
                "enabledSizes": (json!({})),
                "imageOnly": false,
                "kind": ""
            }),
            "kind": "",
            "obaEnabled": false,
            "obaSettings": json!({
                "iconClickThroughUrl": "",
                "iconClickTrackingUrl": "",
                "iconViewTrackingUrl": "",
                "program": "",
                "resourceUrl": "",
                "size": json!({}),
                "xPosition": "",
                "yPosition": ""
            }),
            "orientation": "",
            "skippableSettings": json!({
                "kind": "",
                "progressOffset": json!({
                    "offsetPercentage": 0,
                    "offsetSeconds": 0
                }),
                "skipOffset": json!({}),
                "skippable": false
            }),
            "transcodeSettings": json!({
                "enabledVideoFormats": (),
                "kind": ""
            })
        }),
        "vpaidAdapterChoice": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PATCH").unwrap(), url)
        .query(&querystring)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PATCH \
  --url '{{baseUrl}}/userprofiles/:profileId/placements?id=' \
  --header 'content-type: application/json' \
  --data '{
  "accountId": "",
  "adBlockingOptOut": false,
  "additionalSizes": [
    {
      "height": 0,
      "iab": false,
      "id": "",
      "kind": "",
      "width": 0
    }
  ],
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "archived": false,
  "campaignId": "",
  "campaignIdDimensionValue": {},
  "comment": "",
  "compatibility": "",
  "contentCategoryId": "",
  "createInfo": {
    "time": ""
  },
  "directorySiteId": "",
  "directorySiteIdDimensionValue": {},
  "externalId": "",
  "id": "",
  "idDimensionValue": {},
  "keyName": "",
  "kind": "",
  "lastModifiedInfo": {},
  "lookbackConfiguration": {
    "clickDuration": 0,
    "postImpressionActivitiesDuration": 0
  },
  "name": "",
  "paymentApproved": false,
  "paymentSource": "",
  "placementGroupId": "",
  "placementGroupIdDimensionValue": {},
  "placementStrategyId": "",
  "pricingSchedule": {
    "capCostOption": "",
    "endDate": "",
    "flighted": false,
    "floodlightActivityId": "",
    "pricingPeriods": [
      {
        "endDate": "",
        "pricingComment": "",
        "rateOrCostNanos": "",
        "startDate": "",
        "units": ""
      }
    ],
    "pricingType": "",
    "startDate": "",
    "testingStartDate": ""
  },
  "primary": false,
  "publisherUpdateInfo": {},
  "siteId": "",
  "siteIdDimensionValue": {},
  "size": {},
  "sslRequired": false,
  "status": "",
  "subaccountId": "",
  "tagFormats": [],
  "tagSetting": {
    "additionalKeyValues": "",
    "includeClickThroughUrls": false,
    "includeClickTracking": false,
    "keywordOption": ""
  },
  "videoActiveViewOptOut": false,
  "videoSettings": {
    "companionSettings": {
      "companionsDisabled": false,
      "enabledSizes": [
        {}
      ],
      "imageOnly": false,
      "kind": ""
    },
    "kind": "",
    "obaEnabled": false,
    "obaSettings": {
      "iconClickThroughUrl": "",
      "iconClickTrackingUrl": "",
      "iconViewTrackingUrl": "",
      "program": "",
      "resourceUrl": "",
      "size": {},
      "xPosition": "",
      "yPosition": ""
    },
    "orientation": "",
    "skippableSettings": {
      "kind": "",
      "progressOffset": {
        "offsetPercentage": 0,
        "offsetSeconds": 0
      },
      "skipOffset": {},
      "skippable": false
    },
    "transcodeSettings": {
      "enabledVideoFormats": [],
      "kind": ""
    }
  },
  "vpaidAdapterChoice": ""
}'
echo '{
  "accountId": "",
  "adBlockingOptOut": false,
  "additionalSizes": [
    {
      "height": 0,
      "iab": false,
      "id": "",
      "kind": "",
      "width": 0
    }
  ],
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "archived": false,
  "campaignId": "",
  "campaignIdDimensionValue": {},
  "comment": "",
  "compatibility": "",
  "contentCategoryId": "",
  "createInfo": {
    "time": ""
  },
  "directorySiteId": "",
  "directorySiteIdDimensionValue": {},
  "externalId": "",
  "id": "",
  "idDimensionValue": {},
  "keyName": "",
  "kind": "",
  "lastModifiedInfo": {},
  "lookbackConfiguration": {
    "clickDuration": 0,
    "postImpressionActivitiesDuration": 0
  },
  "name": "",
  "paymentApproved": false,
  "paymentSource": "",
  "placementGroupId": "",
  "placementGroupIdDimensionValue": {},
  "placementStrategyId": "",
  "pricingSchedule": {
    "capCostOption": "",
    "endDate": "",
    "flighted": false,
    "floodlightActivityId": "",
    "pricingPeriods": [
      {
        "endDate": "",
        "pricingComment": "",
        "rateOrCostNanos": "",
        "startDate": "",
        "units": ""
      }
    ],
    "pricingType": "",
    "startDate": "",
    "testingStartDate": ""
  },
  "primary": false,
  "publisherUpdateInfo": {},
  "siteId": "",
  "siteIdDimensionValue": {},
  "size": {},
  "sslRequired": false,
  "status": "",
  "subaccountId": "",
  "tagFormats": [],
  "tagSetting": {
    "additionalKeyValues": "",
    "includeClickThroughUrls": false,
    "includeClickTracking": false,
    "keywordOption": ""
  },
  "videoActiveViewOptOut": false,
  "videoSettings": {
    "companionSettings": {
      "companionsDisabled": false,
      "enabledSizes": [
        {}
      ],
      "imageOnly": false,
      "kind": ""
    },
    "kind": "",
    "obaEnabled": false,
    "obaSettings": {
      "iconClickThroughUrl": "",
      "iconClickTrackingUrl": "",
      "iconViewTrackingUrl": "",
      "program": "",
      "resourceUrl": "",
      "size": {},
      "xPosition": "",
      "yPosition": ""
    },
    "orientation": "",
    "skippableSettings": {
      "kind": "",
      "progressOffset": {
        "offsetPercentage": 0,
        "offsetSeconds": 0
      },
      "skipOffset": {},
      "skippable": false
    },
    "transcodeSettings": {
      "enabledVideoFormats": [],
      "kind": ""
    }
  },
  "vpaidAdapterChoice": ""
}' |  \
  http PATCH '{{baseUrl}}/userprofiles/:profileId/placements?id=' \
  content-type:application/json
wget --quiet \
  --method PATCH \
  --header 'content-type: application/json' \
  --body-data '{\n  "accountId": "",\n  "adBlockingOptOut": false,\n  "additionalSizes": [\n    {\n      "height": 0,\n      "iab": false,\n      "id": "",\n      "kind": "",\n      "width": 0\n    }\n  ],\n  "advertiserId": "",\n  "advertiserIdDimensionValue": {\n    "dimensionName": "",\n    "etag": "",\n    "id": "",\n    "kind": "",\n    "matchType": "",\n    "value": ""\n  },\n  "archived": false,\n  "campaignId": "",\n  "campaignIdDimensionValue": {},\n  "comment": "",\n  "compatibility": "",\n  "contentCategoryId": "",\n  "createInfo": {\n    "time": ""\n  },\n  "directorySiteId": "",\n  "directorySiteIdDimensionValue": {},\n  "externalId": "",\n  "id": "",\n  "idDimensionValue": {},\n  "keyName": "",\n  "kind": "",\n  "lastModifiedInfo": {},\n  "lookbackConfiguration": {\n    "clickDuration": 0,\n    "postImpressionActivitiesDuration": 0\n  },\n  "name": "",\n  "paymentApproved": false,\n  "paymentSource": "",\n  "placementGroupId": "",\n  "placementGroupIdDimensionValue": {},\n  "placementStrategyId": "",\n  "pricingSchedule": {\n    "capCostOption": "",\n    "endDate": "",\n    "flighted": false,\n    "floodlightActivityId": "",\n    "pricingPeriods": [\n      {\n        "endDate": "",\n        "pricingComment": "",\n        "rateOrCostNanos": "",\n        "startDate": "",\n        "units": ""\n      }\n    ],\n    "pricingType": "",\n    "startDate": "",\n    "testingStartDate": ""\n  },\n  "primary": false,\n  "publisherUpdateInfo": {},\n  "siteId": "",\n  "siteIdDimensionValue": {},\n  "size": {},\n  "sslRequired": false,\n  "status": "",\n  "subaccountId": "",\n  "tagFormats": [],\n  "tagSetting": {\n    "additionalKeyValues": "",\n    "includeClickThroughUrls": false,\n    "includeClickTracking": false,\n    "keywordOption": ""\n  },\n  "videoActiveViewOptOut": false,\n  "videoSettings": {\n    "companionSettings": {\n      "companionsDisabled": false,\n      "enabledSizes": [\n        {}\n      ],\n      "imageOnly": false,\n      "kind": ""\n    },\n    "kind": "",\n    "obaEnabled": false,\n    "obaSettings": {\n      "iconClickThroughUrl": "",\n      "iconClickTrackingUrl": "",\n      "iconViewTrackingUrl": "",\n      "program": "",\n      "resourceUrl": "",\n      "size": {},\n      "xPosition": "",\n      "yPosition": ""\n    },\n    "orientation": "",\n    "skippableSettings": {\n      "kind": "",\n      "progressOffset": {\n        "offsetPercentage": 0,\n        "offsetSeconds": 0\n      },\n      "skipOffset": {},\n      "skippable": false\n    },\n    "transcodeSettings": {\n      "enabledVideoFormats": [],\n      "kind": ""\n    }\n  },\n  "vpaidAdapterChoice": ""\n}' \
  --output-document \
  - '{{baseUrl}}/userprofiles/:profileId/placements?id='
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "accountId": "",
  "adBlockingOptOut": false,
  "additionalSizes": [
    [
      "height": 0,
      "iab": false,
      "id": "",
      "kind": "",
      "width": 0
    ]
  ],
  "advertiserId": "",
  "advertiserIdDimensionValue": [
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  ],
  "archived": false,
  "campaignId": "",
  "campaignIdDimensionValue": [],
  "comment": "",
  "compatibility": "",
  "contentCategoryId": "",
  "createInfo": ["time": ""],
  "directorySiteId": "",
  "directorySiteIdDimensionValue": [],
  "externalId": "",
  "id": "",
  "idDimensionValue": [],
  "keyName": "",
  "kind": "",
  "lastModifiedInfo": [],
  "lookbackConfiguration": [
    "clickDuration": 0,
    "postImpressionActivitiesDuration": 0
  ],
  "name": "",
  "paymentApproved": false,
  "paymentSource": "",
  "placementGroupId": "",
  "placementGroupIdDimensionValue": [],
  "placementStrategyId": "",
  "pricingSchedule": [
    "capCostOption": "",
    "endDate": "",
    "flighted": false,
    "floodlightActivityId": "",
    "pricingPeriods": [
      [
        "endDate": "",
        "pricingComment": "",
        "rateOrCostNanos": "",
        "startDate": "",
        "units": ""
      ]
    ],
    "pricingType": "",
    "startDate": "",
    "testingStartDate": ""
  ],
  "primary": false,
  "publisherUpdateInfo": [],
  "siteId": "",
  "siteIdDimensionValue": [],
  "size": [],
  "sslRequired": false,
  "status": "",
  "subaccountId": "",
  "tagFormats": [],
  "tagSetting": [
    "additionalKeyValues": "",
    "includeClickThroughUrls": false,
    "includeClickTracking": false,
    "keywordOption": ""
  ],
  "videoActiveViewOptOut": false,
  "videoSettings": [
    "companionSettings": [
      "companionsDisabled": false,
      "enabledSizes": [[]],
      "imageOnly": false,
      "kind": ""
    ],
    "kind": "",
    "obaEnabled": false,
    "obaSettings": [
      "iconClickThroughUrl": "",
      "iconClickTrackingUrl": "",
      "iconViewTrackingUrl": "",
      "program": "",
      "resourceUrl": "",
      "size": [],
      "xPosition": "",
      "yPosition": ""
    ],
    "orientation": "",
    "skippableSettings": [
      "kind": "",
      "progressOffset": [
        "offsetPercentage": 0,
        "offsetSeconds": 0
      ],
      "skipOffset": [],
      "skippable": false
    ],
    "transcodeSettings": [
      "enabledVideoFormats": [],
      "kind": ""
    ]
  ],
  "vpaidAdapterChoice": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/placements?id=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PATCH"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
PUT dfareporting.placements.update
{{baseUrl}}/userprofiles/:profileId/placements
QUERY PARAMS

profileId
BODY json

{
  "accountId": "",
  "adBlockingOptOut": false,
  "additionalSizes": [
    {
      "height": 0,
      "iab": false,
      "id": "",
      "kind": "",
      "width": 0
    }
  ],
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "archived": false,
  "campaignId": "",
  "campaignIdDimensionValue": {},
  "comment": "",
  "compatibility": "",
  "contentCategoryId": "",
  "createInfo": {
    "time": ""
  },
  "directorySiteId": "",
  "directorySiteIdDimensionValue": {},
  "externalId": "",
  "id": "",
  "idDimensionValue": {},
  "keyName": "",
  "kind": "",
  "lastModifiedInfo": {},
  "lookbackConfiguration": {
    "clickDuration": 0,
    "postImpressionActivitiesDuration": 0
  },
  "name": "",
  "paymentApproved": false,
  "paymentSource": "",
  "placementGroupId": "",
  "placementGroupIdDimensionValue": {},
  "placementStrategyId": "",
  "pricingSchedule": {
    "capCostOption": "",
    "endDate": "",
    "flighted": false,
    "floodlightActivityId": "",
    "pricingPeriods": [
      {
        "endDate": "",
        "pricingComment": "",
        "rateOrCostNanos": "",
        "startDate": "",
        "units": ""
      }
    ],
    "pricingType": "",
    "startDate": "",
    "testingStartDate": ""
  },
  "primary": false,
  "publisherUpdateInfo": {},
  "siteId": "",
  "siteIdDimensionValue": {},
  "size": {},
  "sslRequired": false,
  "status": "",
  "subaccountId": "",
  "tagFormats": [],
  "tagSetting": {
    "additionalKeyValues": "",
    "includeClickThroughUrls": false,
    "includeClickTracking": false,
    "keywordOption": ""
  },
  "videoActiveViewOptOut": false,
  "videoSettings": {
    "companionSettings": {
      "companionsDisabled": false,
      "enabledSizes": [
        {}
      ],
      "imageOnly": false,
      "kind": ""
    },
    "kind": "",
    "obaEnabled": false,
    "obaSettings": {
      "iconClickThroughUrl": "",
      "iconClickTrackingUrl": "",
      "iconViewTrackingUrl": "",
      "program": "",
      "resourceUrl": "",
      "size": {},
      "xPosition": "",
      "yPosition": ""
    },
    "orientation": "",
    "skippableSettings": {
      "kind": "",
      "progressOffset": {
        "offsetPercentage": 0,
        "offsetSeconds": 0
      },
      "skipOffset": {},
      "skippable": false
    },
    "transcodeSettings": {
      "enabledVideoFormats": [],
      "kind": ""
    }
  },
  "vpaidAdapterChoice": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/placements");

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  \"accountId\": \"\",\n  \"adBlockingOptOut\": false,\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"comment\": \"\",\n  \"compatibility\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"lookbackConfiguration\": {\n    \"clickDuration\": 0,\n    \"postImpressionActivitiesDuration\": 0\n  },\n  \"name\": \"\",\n  \"paymentApproved\": false,\n  \"paymentSource\": \"\",\n  \"placementGroupId\": \"\",\n  \"placementGroupIdDimensionValue\": {},\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primary\": false,\n  \"publisherUpdateInfo\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"size\": {},\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormats\": [],\n  \"tagSetting\": {\n    \"additionalKeyValues\": \"\",\n    \"includeClickThroughUrls\": false,\n    \"includeClickTracking\": false,\n    \"keywordOption\": \"\"\n  },\n  \"videoActiveViewOptOut\": false,\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {}\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\n    }\n  },\n  \"vpaidAdapterChoice\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/userprofiles/:profileId/placements" {:content-type :json
                                                                              :form-params {:accountId ""
                                                                                            :adBlockingOptOut false
                                                                                            :additionalSizes [{:height 0
                                                                                                               :iab false
                                                                                                               :id ""
                                                                                                               :kind ""
                                                                                                               :width 0}]
                                                                                            :advertiserId ""
                                                                                            :advertiserIdDimensionValue {:dimensionName ""
                                                                                                                         :etag ""
                                                                                                                         :id ""
                                                                                                                         :kind ""
                                                                                                                         :matchType ""
                                                                                                                         :value ""}
                                                                                            :archived false
                                                                                            :campaignId ""
                                                                                            :campaignIdDimensionValue {}
                                                                                            :comment ""
                                                                                            :compatibility ""
                                                                                            :contentCategoryId ""
                                                                                            :createInfo {:time ""}
                                                                                            :directorySiteId ""
                                                                                            :directorySiteIdDimensionValue {}
                                                                                            :externalId ""
                                                                                            :id ""
                                                                                            :idDimensionValue {}
                                                                                            :keyName ""
                                                                                            :kind ""
                                                                                            :lastModifiedInfo {}
                                                                                            :lookbackConfiguration {:clickDuration 0
                                                                                                                    :postImpressionActivitiesDuration 0}
                                                                                            :name ""
                                                                                            :paymentApproved false
                                                                                            :paymentSource ""
                                                                                            :placementGroupId ""
                                                                                            :placementGroupIdDimensionValue {}
                                                                                            :placementStrategyId ""
                                                                                            :pricingSchedule {:capCostOption ""
                                                                                                              :endDate ""
                                                                                                              :flighted false
                                                                                                              :floodlightActivityId ""
                                                                                                              :pricingPeriods [{:endDate ""
                                                                                                                                :pricingComment ""
                                                                                                                                :rateOrCostNanos ""
                                                                                                                                :startDate ""
                                                                                                                                :units ""}]
                                                                                                              :pricingType ""
                                                                                                              :startDate ""
                                                                                                              :testingStartDate ""}
                                                                                            :primary false
                                                                                            :publisherUpdateInfo {}
                                                                                            :siteId ""
                                                                                            :siteIdDimensionValue {}
                                                                                            :size {}
                                                                                            :sslRequired false
                                                                                            :status ""
                                                                                            :subaccountId ""
                                                                                            :tagFormats []
                                                                                            :tagSetting {:additionalKeyValues ""
                                                                                                         :includeClickThroughUrls false
                                                                                                         :includeClickTracking false
                                                                                                         :keywordOption ""}
                                                                                            :videoActiveViewOptOut false
                                                                                            :videoSettings {:companionSettings {:companionsDisabled false
                                                                                                                                :enabledSizes [{}]
                                                                                                                                :imageOnly false
                                                                                                                                :kind ""}
                                                                                                            :kind ""
                                                                                                            :obaEnabled false
                                                                                                            :obaSettings {:iconClickThroughUrl ""
                                                                                                                          :iconClickTrackingUrl ""
                                                                                                                          :iconViewTrackingUrl ""
                                                                                                                          :program ""
                                                                                                                          :resourceUrl ""
                                                                                                                          :size {}
                                                                                                                          :xPosition ""
                                                                                                                          :yPosition ""}
                                                                                                            :orientation ""
                                                                                                            :skippableSettings {:kind ""
                                                                                                                                :progressOffset {:offsetPercentage 0
                                                                                                                                                 :offsetSeconds 0}
                                                                                                                                :skipOffset {}
                                                                                                                                :skippable false}
                                                                                                            :transcodeSettings {:enabledVideoFormats []
                                                                                                                                :kind ""}}
                                                                                            :vpaidAdapterChoice ""}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/placements"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"accountId\": \"\",\n  \"adBlockingOptOut\": false,\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"comment\": \"\",\n  \"compatibility\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"lookbackConfiguration\": {\n    \"clickDuration\": 0,\n    \"postImpressionActivitiesDuration\": 0\n  },\n  \"name\": \"\",\n  \"paymentApproved\": false,\n  \"paymentSource\": \"\",\n  \"placementGroupId\": \"\",\n  \"placementGroupIdDimensionValue\": {},\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primary\": false,\n  \"publisherUpdateInfo\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"size\": {},\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormats\": [],\n  \"tagSetting\": {\n    \"additionalKeyValues\": \"\",\n    \"includeClickThroughUrls\": false,\n    \"includeClickTracking\": false,\n    \"keywordOption\": \"\"\n  },\n  \"videoActiveViewOptOut\": false,\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {}\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\n    }\n  },\n  \"vpaidAdapterChoice\": \"\"\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/userprofiles/:profileId/placements"),
    Content = new StringContent("{\n  \"accountId\": \"\",\n  \"adBlockingOptOut\": false,\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"comment\": \"\",\n  \"compatibility\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"lookbackConfiguration\": {\n    \"clickDuration\": 0,\n    \"postImpressionActivitiesDuration\": 0\n  },\n  \"name\": \"\",\n  \"paymentApproved\": false,\n  \"paymentSource\": \"\",\n  \"placementGroupId\": \"\",\n  \"placementGroupIdDimensionValue\": {},\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primary\": false,\n  \"publisherUpdateInfo\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"size\": {},\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormats\": [],\n  \"tagSetting\": {\n    \"additionalKeyValues\": \"\",\n    \"includeClickThroughUrls\": false,\n    \"includeClickTracking\": false,\n    \"keywordOption\": \"\"\n  },\n  \"videoActiveViewOptOut\": false,\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {}\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\n    }\n  },\n  \"vpaidAdapterChoice\": \"\"\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}}/userprofiles/:profileId/placements");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"accountId\": \"\",\n  \"adBlockingOptOut\": false,\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"comment\": \"\",\n  \"compatibility\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"lookbackConfiguration\": {\n    \"clickDuration\": 0,\n    \"postImpressionActivitiesDuration\": 0\n  },\n  \"name\": \"\",\n  \"paymentApproved\": false,\n  \"paymentSource\": \"\",\n  \"placementGroupId\": \"\",\n  \"placementGroupIdDimensionValue\": {},\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primary\": false,\n  \"publisherUpdateInfo\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"size\": {},\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormats\": [],\n  \"tagSetting\": {\n    \"additionalKeyValues\": \"\",\n    \"includeClickThroughUrls\": false,\n    \"includeClickTracking\": false,\n    \"keywordOption\": \"\"\n  },\n  \"videoActiveViewOptOut\": false,\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {}\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\n    }\n  },\n  \"vpaidAdapterChoice\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/placements"

	payload := strings.NewReader("{\n  \"accountId\": \"\",\n  \"adBlockingOptOut\": false,\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"comment\": \"\",\n  \"compatibility\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"lookbackConfiguration\": {\n    \"clickDuration\": 0,\n    \"postImpressionActivitiesDuration\": 0\n  },\n  \"name\": \"\",\n  \"paymentApproved\": false,\n  \"paymentSource\": \"\",\n  \"placementGroupId\": \"\",\n  \"placementGroupIdDimensionValue\": {},\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primary\": false,\n  \"publisherUpdateInfo\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"size\": {},\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormats\": [],\n  \"tagSetting\": {\n    \"additionalKeyValues\": \"\",\n    \"includeClickThroughUrls\": false,\n    \"includeClickTracking\": false,\n    \"keywordOption\": \"\"\n  },\n  \"videoActiveViewOptOut\": false,\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {}\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\n    }\n  },\n  \"vpaidAdapterChoice\": \"\"\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/userprofiles/:profileId/placements HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 2506

{
  "accountId": "",
  "adBlockingOptOut": false,
  "additionalSizes": [
    {
      "height": 0,
      "iab": false,
      "id": "",
      "kind": "",
      "width": 0
    }
  ],
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "archived": false,
  "campaignId": "",
  "campaignIdDimensionValue": {},
  "comment": "",
  "compatibility": "",
  "contentCategoryId": "",
  "createInfo": {
    "time": ""
  },
  "directorySiteId": "",
  "directorySiteIdDimensionValue": {},
  "externalId": "",
  "id": "",
  "idDimensionValue": {},
  "keyName": "",
  "kind": "",
  "lastModifiedInfo": {},
  "lookbackConfiguration": {
    "clickDuration": 0,
    "postImpressionActivitiesDuration": 0
  },
  "name": "",
  "paymentApproved": false,
  "paymentSource": "",
  "placementGroupId": "",
  "placementGroupIdDimensionValue": {},
  "placementStrategyId": "",
  "pricingSchedule": {
    "capCostOption": "",
    "endDate": "",
    "flighted": false,
    "floodlightActivityId": "",
    "pricingPeriods": [
      {
        "endDate": "",
        "pricingComment": "",
        "rateOrCostNanos": "",
        "startDate": "",
        "units": ""
      }
    ],
    "pricingType": "",
    "startDate": "",
    "testingStartDate": ""
  },
  "primary": false,
  "publisherUpdateInfo": {},
  "siteId": "",
  "siteIdDimensionValue": {},
  "size": {},
  "sslRequired": false,
  "status": "",
  "subaccountId": "",
  "tagFormats": [],
  "tagSetting": {
    "additionalKeyValues": "",
    "includeClickThroughUrls": false,
    "includeClickTracking": false,
    "keywordOption": ""
  },
  "videoActiveViewOptOut": false,
  "videoSettings": {
    "companionSettings": {
      "companionsDisabled": false,
      "enabledSizes": [
        {}
      ],
      "imageOnly": false,
      "kind": ""
    },
    "kind": "",
    "obaEnabled": false,
    "obaSettings": {
      "iconClickThroughUrl": "",
      "iconClickTrackingUrl": "",
      "iconViewTrackingUrl": "",
      "program": "",
      "resourceUrl": "",
      "size": {},
      "xPosition": "",
      "yPosition": ""
    },
    "orientation": "",
    "skippableSettings": {
      "kind": "",
      "progressOffset": {
        "offsetPercentage": 0,
        "offsetSeconds": 0
      },
      "skipOffset": {},
      "skippable": false
    },
    "transcodeSettings": {
      "enabledVideoFormats": [],
      "kind": ""
    }
  },
  "vpaidAdapterChoice": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/userprofiles/:profileId/placements")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"accountId\": \"\",\n  \"adBlockingOptOut\": false,\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"comment\": \"\",\n  \"compatibility\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"lookbackConfiguration\": {\n    \"clickDuration\": 0,\n    \"postImpressionActivitiesDuration\": 0\n  },\n  \"name\": \"\",\n  \"paymentApproved\": false,\n  \"paymentSource\": \"\",\n  \"placementGroupId\": \"\",\n  \"placementGroupIdDimensionValue\": {},\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primary\": false,\n  \"publisherUpdateInfo\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"size\": {},\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormats\": [],\n  \"tagSetting\": {\n    \"additionalKeyValues\": \"\",\n    \"includeClickThroughUrls\": false,\n    \"includeClickTracking\": false,\n    \"keywordOption\": \"\"\n  },\n  \"videoActiveViewOptOut\": false,\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {}\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\n    }\n  },\n  \"vpaidAdapterChoice\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/placements"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"accountId\": \"\",\n  \"adBlockingOptOut\": false,\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"comment\": \"\",\n  \"compatibility\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"lookbackConfiguration\": {\n    \"clickDuration\": 0,\n    \"postImpressionActivitiesDuration\": 0\n  },\n  \"name\": \"\",\n  \"paymentApproved\": false,\n  \"paymentSource\": \"\",\n  \"placementGroupId\": \"\",\n  \"placementGroupIdDimensionValue\": {},\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primary\": false,\n  \"publisherUpdateInfo\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"size\": {},\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormats\": [],\n  \"tagSetting\": {\n    \"additionalKeyValues\": \"\",\n    \"includeClickThroughUrls\": false,\n    \"includeClickTracking\": false,\n    \"keywordOption\": \"\"\n  },\n  \"videoActiveViewOptOut\": false,\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {}\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\n    }\n  },\n  \"vpaidAdapterChoice\": \"\"\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  \"accountId\": \"\",\n  \"adBlockingOptOut\": false,\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"comment\": \"\",\n  \"compatibility\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"lookbackConfiguration\": {\n    \"clickDuration\": 0,\n    \"postImpressionActivitiesDuration\": 0\n  },\n  \"name\": \"\",\n  \"paymentApproved\": false,\n  \"paymentSource\": \"\",\n  \"placementGroupId\": \"\",\n  \"placementGroupIdDimensionValue\": {},\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primary\": false,\n  \"publisherUpdateInfo\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"size\": {},\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormats\": [],\n  \"tagSetting\": {\n    \"additionalKeyValues\": \"\",\n    \"includeClickThroughUrls\": false,\n    \"includeClickTracking\": false,\n    \"keywordOption\": \"\"\n  },\n  \"videoActiveViewOptOut\": false,\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {}\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\n    }\n  },\n  \"vpaidAdapterChoice\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/placements")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/userprofiles/:profileId/placements")
  .header("content-type", "application/json")
  .body("{\n  \"accountId\": \"\",\n  \"adBlockingOptOut\": false,\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"comment\": \"\",\n  \"compatibility\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"lookbackConfiguration\": {\n    \"clickDuration\": 0,\n    \"postImpressionActivitiesDuration\": 0\n  },\n  \"name\": \"\",\n  \"paymentApproved\": false,\n  \"paymentSource\": \"\",\n  \"placementGroupId\": \"\",\n  \"placementGroupIdDimensionValue\": {},\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primary\": false,\n  \"publisherUpdateInfo\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"size\": {},\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormats\": [],\n  \"tagSetting\": {\n    \"additionalKeyValues\": \"\",\n    \"includeClickThroughUrls\": false,\n    \"includeClickTracking\": false,\n    \"keywordOption\": \"\"\n  },\n  \"videoActiveViewOptOut\": false,\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {}\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\n    }\n  },\n  \"vpaidAdapterChoice\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  accountId: '',
  adBlockingOptOut: false,
  additionalSizes: [
    {
      height: 0,
      iab: false,
      id: '',
      kind: '',
      width: 0
    }
  ],
  advertiserId: '',
  advertiserIdDimensionValue: {
    dimensionName: '',
    etag: '',
    id: '',
    kind: '',
    matchType: '',
    value: ''
  },
  archived: false,
  campaignId: '',
  campaignIdDimensionValue: {},
  comment: '',
  compatibility: '',
  contentCategoryId: '',
  createInfo: {
    time: ''
  },
  directorySiteId: '',
  directorySiteIdDimensionValue: {},
  externalId: '',
  id: '',
  idDimensionValue: {},
  keyName: '',
  kind: '',
  lastModifiedInfo: {},
  lookbackConfiguration: {
    clickDuration: 0,
    postImpressionActivitiesDuration: 0
  },
  name: '',
  paymentApproved: false,
  paymentSource: '',
  placementGroupId: '',
  placementGroupIdDimensionValue: {},
  placementStrategyId: '',
  pricingSchedule: {
    capCostOption: '',
    endDate: '',
    flighted: false,
    floodlightActivityId: '',
    pricingPeriods: [
      {
        endDate: '',
        pricingComment: '',
        rateOrCostNanos: '',
        startDate: '',
        units: ''
      }
    ],
    pricingType: '',
    startDate: '',
    testingStartDate: ''
  },
  primary: false,
  publisherUpdateInfo: {},
  siteId: '',
  siteIdDimensionValue: {},
  size: {},
  sslRequired: false,
  status: '',
  subaccountId: '',
  tagFormats: [],
  tagSetting: {
    additionalKeyValues: '',
    includeClickThroughUrls: false,
    includeClickTracking: false,
    keywordOption: ''
  },
  videoActiveViewOptOut: false,
  videoSettings: {
    companionSettings: {
      companionsDisabled: false,
      enabledSizes: [
        {}
      ],
      imageOnly: false,
      kind: ''
    },
    kind: '',
    obaEnabled: false,
    obaSettings: {
      iconClickThroughUrl: '',
      iconClickTrackingUrl: '',
      iconViewTrackingUrl: '',
      program: '',
      resourceUrl: '',
      size: {},
      xPosition: '',
      yPosition: ''
    },
    orientation: '',
    skippableSettings: {
      kind: '',
      progressOffset: {
        offsetPercentage: 0,
        offsetSeconds: 0
      },
      skipOffset: {},
      skippable: false
    },
    transcodeSettings: {
      enabledVideoFormats: [],
      kind: ''
    }
  },
  vpaidAdapterChoice: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/userprofiles/:profileId/placements');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/userprofiles/:profileId/placements',
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    adBlockingOptOut: false,
    additionalSizes: [{height: 0, iab: false, id: '', kind: '', width: 0}],
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    archived: false,
    campaignId: '',
    campaignIdDimensionValue: {},
    comment: '',
    compatibility: '',
    contentCategoryId: '',
    createInfo: {time: ''},
    directorySiteId: '',
    directorySiteIdDimensionValue: {},
    externalId: '',
    id: '',
    idDimensionValue: {},
    keyName: '',
    kind: '',
    lastModifiedInfo: {},
    lookbackConfiguration: {clickDuration: 0, postImpressionActivitiesDuration: 0},
    name: '',
    paymentApproved: false,
    paymentSource: '',
    placementGroupId: '',
    placementGroupIdDimensionValue: {},
    placementStrategyId: '',
    pricingSchedule: {
      capCostOption: '',
      endDate: '',
      flighted: false,
      floodlightActivityId: '',
      pricingPeriods: [
        {endDate: '', pricingComment: '', rateOrCostNanos: '', startDate: '', units: ''}
      ],
      pricingType: '',
      startDate: '',
      testingStartDate: ''
    },
    primary: false,
    publisherUpdateInfo: {},
    siteId: '',
    siteIdDimensionValue: {},
    size: {},
    sslRequired: false,
    status: '',
    subaccountId: '',
    tagFormats: [],
    tagSetting: {
      additionalKeyValues: '',
      includeClickThroughUrls: false,
      includeClickTracking: false,
      keywordOption: ''
    },
    videoActiveViewOptOut: false,
    videoSettings: {
      companionSettings: {companionsDisabled: false, enabledSizes: [{}], imageOnly: false, kind: ''},
      kind: '',
      obaEnabled: false,
      obaSettings: {
        iconClickThroughUrl: '',
        iconClickTrackingUrl: '',
        iconViewTrackingUrl: '',
        program: '',
        resourceUrl: '',
        size: {},
        xPosition: '',
        yPosition: ''
      },
      orientation: '',
      skippableSettings: {
        kind: '',
        progressOffset: {offsetPercentage: 0, offsetSeconds: 0},
        skipOffset: {},
        skippable: false
      },
      transcodeSettings: {enabledVideoFormats: [], kind: ''}
    },
    vpaidAdapterChoice: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/placements';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","adBlockingOptOut":false,"additionalSizes":[{"height":0,"iab":false,"id":"","kind":"","width":0}],"advertiserId":"","advertiserIdDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"archived":false,"campaignId":"","campaignIdDimensionValue":{},"comment":"","compatibility":"","contentCategoryId":"","createInfo":{"time":""},"directorySiteId":"","directorySiteIdDimensionValue":{},"externalId":"","id":"","idDimensionValue":{},"keyName":"","kind":"","lastModifiedInfo":{},"lookbackConfiguration":{"clickDuration":0,"postImpressionActivitiesDuration":0},"name":"","paymentApproved":false,"paymentSource":"","placementGroupId":"","placementGroupIdDimensionValue":{},"placementStrategyId":"","pricingSchedule":{"capCostOption":"","endDate":"","flighted":false,"floodlightActivityId":"","pricingPeriods":[{"endDate":"","pricingComment":"","rateOrCostNanos":"","startDate":"","units":""}],"pricingType":"","startDate":"","testingStartDate":""},"primary":false,"publisherUpdateInfo":{},"siteId":"","siteIdDimensionValue":{},"size":{},"sslRequired":false,"status":"","subaccountId":"","tagFormats":[],"tagSetting":{"additionalKeyValues":"","includeClickThroughUrls":false,"includeClickTracking":false,"keywordOption":""},"videoActiveViewOptOut":false,"videoSettings":{"companionSettings":{"companionsDisabled":false,"enabledSizes":[{}],"imageOnly":false,"kind":""},"kind":"","obaEnabled":false,"obaSettings":{"iconClickThroughUrl":"","iconClickTrackingUrl":"","iconViewTrackingUrl":"","program":"","resourceUrl":"","size":{},"xPosition":"","yPosition":""},"orientation":"","skippableSettings":{"kind":"","progressOffset":{"offsetPercentage":0,"offsetSeconds":0},"skipOffset":{},"skippable":false},"transcodeSettings":{"enabledVideoFormats":[],"kind":""}},"vpaidAdapterChoice":""}'
};

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}}/userprofiles/:profileId/placements',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "accountId": "",\n  "adBlockingOptOut": false,\n  "additionalSizes": [\n    {\n      "height": 0,\n      "iab": false,\n      "id": "",\n      "kind": "",\n      "width": 0\n    }\n  ],\n  "advertiserId": "",\n  "advertiserIdDimensionValue": {\n    "dimensionName": "",\n    "etag": "",\n    "id": "",\n    "kind": "",\n    "matchType": "",\n    "value": ""\n  },\n  "archived": false,\n  "campaignId": "",\n  "campaignIdDimensionValue": {},\n  "comment": "",\n  "compatibility": "",\n  "contentCategoryId": "",\n  "createInfo": {\n    "time": ""\n  },\n  "directorySiteId": "",\n  "directorySiteIdDimensionValue": {},\n  "externalId": "",\n  "id": "",\n  "idDimensionValue": {},\n  "keyName": "",\n  "kind": "",\n  "lastModifiedInfo": {},\n  "lookbackConfiguration": {\n    "clickDuration": 0,\n    "postImpressionActivitiesDuration": 0\n  },\n  "name": "",\n  "paymentApproved": false,\n  "paymentSource": "",\n  "placementGroupId": "",\n  "placementGroupIdDimensionValue": {},\n  "placementStrategyId": "",\n  "pricingSchedule": {\n    "capCostOption": "",\n    "endDate": "",\n    "flighted": false,\n    "floodlightActivityId": "",\n    "pricingPeriods": [\n      {\n        "endDate": "",\n        "pricingComment": "",\n        "rateOrCostNanos": "",\n        "startDate": "",\n        "units": ""\n      }\n    ],\n    "pricingType": "",\n    "startDate": "",\n    "testingStartDate": ""\n  },\n  "primary": false,\n  "publisherUpdateInfo": {},\n  "siteId": "",\n  "siteIdDimensionValue": {},\n  "size": {},\n  "sslRequired": false,\n  "status": "",\n  "subaccountId": "",\n  "tagFormats": [],\n  "tagSetting": {\n    "additionalKeyValues": "",\n    "includeClickThroughUrls": false,\n    "includeClickTracking": false,\n    "keywordOption": ""\n  },\n  "videoActiveViewOptOut": false,\n  "videoSettings": {\n    "companionSettings": {\n      "companionsDisabled": false,\n      "enabledSizes": [\n        {}\n      ],\n      "imageOnly": false,\n      "kind": ""\n    },\n    "kind": "",\n    "obaEnabled": false,\n    "obaSettings": {\n      "iconClickThroughUrl": "",\n      "iconClickTrackingUrl": "",\n      "iconViewTrackingUrl": "",\n      "program": "",\n      "resourceUrl": "",\n      "size": {},\n      "xPosition": "",\n      "yPosition": ""\n    },\n    "orientation": "",\n    "skippableSettings": {\n      "kind": "",\n      "progressOffset": {\n        "offsetPercentage": 0,\n        "offsetSeconds": 0\n      },\n      "skipOffset": {},\n      "skippable": false\n    },\n    "transcodeSettings": {\n      "enabledVideoFormats": [],\n      "kind": ""\n    }\n  },\n  "vpaidAdapterChoice": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"accountId\": \"\",\n  \"adBlockingOptOut\": false,\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"comment\": \"\",\n  \"compatibility\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"lookbackConfiguration\": {\n    \"clickDuration\": 0,\n    \"postImpressionActivitiesDuration\": 0\n  },\n  \"name\": \"\",\n  \"paymentApproved\": false,\n  \"paymentSource\": \"\",\n  \"placementGroupId\": \"\",\n  \"placementGroupIdDimensionValue\": {},\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primary\": false,\n  \"publisherUpdateInfo\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"size\": {},\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormats\": [],\n  \"tagSetting\": {\n    \"additionalKeyValues\": \"\",\n    \"includeClickThroughUrls\": false,\n    \"includeClickTracking\": false,\n    \"keywordOption\": \"\"\n  },\n  \"videoActiveViewOptOut\": false,\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {}\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\n    }\n  },\n  \"vpaidAdapterChoice\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/placements")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/placements',
  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({
  accountId: '',
  adBlockingOptOut: false,
  additionalSizes: [{height: 0, iab: false, id: '', kind: '', width: 0}],
  advertiserId: '',
  advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
  archived: false,
  campaignId: '',
  campaignIdDimensionValue: {},
  comment: '',
  compatibility: '',
  contentCategoryId: '',
  createInfo: {time: ''},
  directorySiteId: '',
  directorySiteIdDimensionValue: {},
  externalId: '',
  id: '',
  idDimensionValue: {},
  keyName: '',
  kind: '',
  lastModifiedInfo: {},
  lookbackConfiguration: {clickDuration: 0, postImpressionActivitiesDuration: 0},
  name: '',
  paymentApproved: false,
  paymentSource: '',
  placementGroupId: '',
  placementGroupIdDimensionValue: {},
  placementStrategyId: '',
  pricingSchedule: {
    capCostOption: '',
    endDate: '',
    flighted: false,
    floodlightActivityId: '',
    pricingPeriods: [
      {endDate: '', pricingComment: '', rateOrCostNanos: '', startDate: '', units: ''}
    ],
    pricingType: '',
    startDate: '',
    testingStartDate: ''
  },
  primary: false,
  publisherUpdateInfo: {},
  siteId: '',
  siteIdDimensionValue: {},
  size: {},
  sslRequired: false,
  status: '',
  subaccountId: '',
  tagFormats: [],
  tagSetting: {
    additionalKeyValues: '',
    includeClickThroughUrls: false,
    includeClickTracking: false,
    keywordOption: ''
  },
  videoActiveViewOptOut: false,
  videoSettings: {
    companionSettings: {companionsDisabled: false, enabledSizes: [{}], imageOnly: false, kind: ''},
    kind: '',
    obaEnabled: false,
    obaSettings: {
      iconClickThroughUrl: '',
      iconClickTrackingUrl: '',
      iconViewTrackingUrl: '',
      program: '',
      resourceUrl: '',
      size: {},
      xPosition: '',
      yPosition: ''
    },
    orientation: '',
    skippableSettings: {
      kind: '',
      progressOffset: {offsetPercentage: 0, offsetSeconds: 0},
      skipOffset: {},
      skippable: false
    },
    transcodeSettings: {enabledVideoFormats: [], kind: ''}
  },
  vpaidAdapterChoice: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/userprofiles/:profileId/placements',
  headers: {'content-type': 'application/json'},
  body: {
    accountId: '',
    adBlockingOptOut: false,
    additionalSizes: [{height: 0, iab: false, id: '', kind: '', width: 0}],
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    archived: false,
    campaignId: '',
    campaignIdDimensionValue: {},
    comment: '',
    compatibility: '',
    contentCategoryId: '',
    createInfo: {time: ''},
    directorySiteId: '',
    directorySiteIdDimensionValue: {},
    externalId: '',
    id: '',
    idDimensionValue: {},
    keyName: '',
    kind: '',
    lastModifiedInfo: {},
    lookbackConfiguration: {clickDuration: 0, postImpressionActivitiesDuration: 0},
    name: '',
    paymentApproved: false,
    paymentSource: '',
    placementGroupId: '',
    placementGroupIdDimensionValue: {},
    placementStrategyId: '',
    pricingSchedule: {
      capCostOption: '',
      endDate: '',
      flighted: false,
      floodlightActivityId: '',
      pricingPeriods: [
        {endDate: '', pricingComment: '', rateOrCostNanos: '', startDate: '', units: ''}
      ],
      pricingType: '',
      startDate: '',
      testingStartDate: ''
    },
    primary: false,
    publisherUpdateInfo: {},
    siteId: '',
    siteIdDimensionValue: {},
    size: {},
    sslRequired: false,
    status: '',
    subaccountId: '',
    tagFormats: [],
    tagSetting: {
      additionalKeyValues: '',
      includeClickThroughUrls: false,
      includeClickTracking: false,
      keywordOption: ''
    },
    videoActiveViewOptOut: false,
    videoSettings: {
      companionSettings: {companionsDisabled: false, enabledSizes: [{}], imageOnly: false, kind: ''},
      kind: '',
      obaEnabled: false,
      obaSettings: {
        iconClickThroughUrl: '',
        iconClickTrackingUrl: '',
        iconViewTrackingUrl: '',
        program: '',
        resourceUrl: '',
        size: {},
        xPosition: '',
        yPosition: ''
      },
      orientation: '',
      skippableSettings: {
        kind: '',
        progressOffset: {offsetPercentage: 0, offsetSeconds: 0},
        skipOffset: {},
        skippable: false
      },
      transcodeSettings: {enabledVideoFormats: [], kind: ''}
    },
    vpaidAdapterChoice: ''
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/userprofiles/:profileId/placements');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  accountId: '',
  adBlockingOptOut: false,
  additionalSizes: [
    {
      height: 0,
      iab: false,
      id: '',
      kind: '',
      width: 0
    }
  ],
  advertiserId: '',
  advertiserIdDimensionValue: {
    dimensionName: '',
    etag: '',
    id: '',
    kind: '',
    matchType: '',
    value: ''
  },
  archived: false,
  campaignId: '',
  campaignIdDimensionValue: {},
  comment: '',
  compatibility: '',
  contentCategoryId: '',
  createInfo: {
    time: ''
  },
  directorySiteId: '',
  directorySiteIdDimensionValue: {},
  externalId: '',
  id: '',
  idDimensionValue: {},
  keyName: '',
  kind: '',
  lastModifiedInfo: {},
  lookbackConfiguration: {
    clickDuration: 0,
    postImpressionActivitiesDuration: 0
  },
  name: '',
  paymentApproved: false,
  paymentSource: '',
  placementGroupId: '',
  placementGroupIdDimensionValue: {},
  placementStrategyId: '',
  pricingSchedule: {
    capCostOption: '',
    endDate: '',
    flighted: false,
    floodlightActivityId: '',
    pricingPeriods: [
      {
        endDate: '',
        pricingComment: '',
        rateOrCostNanos: '',
        startDate: '',
        units: ''
      }
    ],
    pricingType: '',
    startDate: '',
    testingStartDate: ''
  },
  primary: false,
  publisherUpdateInfo: {},
  siteId: '',
  siteIdDimensionValue: {},
  size: {},
  sslRequired: false,
  status: '',
  subaccountId: '',
  tagFormats: [],
  tagSetting: {
    additionalKeyValues: '',
    includeClickThroughUrls: false,
    includeClickTracking: false,
    keywordOption: ''
  },
  videoActiveViewOptOut: false,
  videoSettings: {
    companionSettings: {
      companionsDisabled: false,
      enabledSizes: [
        {}
      ],
      imageOnly: false,
      kind: ''
    },
    kind: '',
    obaEnabled: false,
    obaSettings: {
      iconClickThroughUrl: '',
      iconClickTrackingUrl: '',
      iconViewTrackingUrl: '',
      program: '',
      resourceUrl: '',
      size: {},
      xPosition: '',
      yPosition: ''
    },
    orientation: '',
    skippableSettings: {
      kind: '',
      progressOffset: {
        offsetPercentage: 0,
        offsetSeconds: 0
      },
      skipOffset: {},
      skippable: false
    },
    transcodeSettings: {
      enabledVideoFormats: [],
      kind: ''
    }
  },
  vpaidAdapterChoice: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/userprofiles/:profileId/placements',
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    adBlockingOptOut: false,
    additionalSizes: [{height: 0, iab: false, id: '', kind: '', width: 0}],
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    archived: false,
    campaignId: '',
    campaignIdDimensionValue: {},
    comment: '',
    compatibility: '',
    contentCategoryId: '',
    createInfo: {time: ''},
    directorySiteId: '',
    directorySiteIdDimensionValue: {},
    externalId: '',
    id: '',
    idDimensionValue: {},
    keyName: '',
    kind: '',
    lastModifiedInfo: {},
    lookbackConfiguration: {clickDuration: 0, postImpressionActivitiesDuration: 0},
    name: '',
    paymentApproved: false,
    paymentSource: '',
    placementGroupId: '',
    placementGroupIdDimensionValue: {},
    placementStrategyId: '',
    pricingSchedule: {
      capCostOption: '',
      endDate: '',
      flighted: false,
      floodlightActivityId: '',
      pricingPeriods: [
        {endDate: '', pricingComment: '', rateOrCostNanos: '', startDate: '', units: ''}
      ],
      pricingType: '',
      startDate: '',
      testingStartDate: ''
    },
    primary: false,
    publisherUpdateInfo: {},
    siteId: '',
    siteIdDimensionValue: {},
    size: {},
    sslRequired: false,
    status: '',
    subaccountId: '',
    tagFormats: [],
    tagSetting: {
      additionalKeyValues: '',
      includeClickThroughUrls: false,
      includeClickTracking: false,
      keywordOption: ''
    },
    videoActiveViewOptOut: false,
    videoSettings: {
      companionSettings: {companionsDisabled: false, enabledSizes: [{}], imageOnly: false, kind: ''},
      kind: '',
      obaEnabled: false,
      obaSettings: {
        iconClickThroughUrl: '',
        iconClickTrackingUrl: '',
        iconViewTrackingUrl: '',
        program: '',
        resourceUrl: '',
        size: {},
        xPosition: '',
        yPosition: ''
      },
      orientation: '',
      skippableSettings: {
        kind: '',
        progressOffset: {offsetPercentage: 0, offsetSeconds: 0},
        skipOffset: {},
        skippable: false
      },
      transcodeSettings: {enabledVideoFormats: [], kind: ''}
    },
    vpaidAdapterChoice: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/placements';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","adBlockingOptOut":false,"additionalSizes":[{"height":0,"iab":false,"id":"","kind":"","width":0}],"advertiserId":"","advertiserIdDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"archived":false,"campaignId":"","campaignIdDimensionValue":{},"comment":"","compatibility":"","contentCategoryId":"","createInfo":{"time":""},"directorySiteId":"","directorySiteIdDimensionValue":{},"externalId":"","id":"","idDimensionValue":{},"keyName":"","kind":"","lastModifiedInfo":{},"lookbackConfiguration":{"clickDuration":0,"postImpressionActivitiesDuration":0},"name":"","paymentApproved":false,"paymentSource":"","placementGroupId":"","placementGroupIdDimensionValue":{},"placementStrategyId":"","pricingSchedule":{"capCostOption":"","endDate":"","flighted":false,"floodlightActivityId":"","pricingPeriods":[{"endDate":"","pricingComment":"","rateOrCostNanos":"","startDate":"","units":""}],"pricingType":"","startDate":"","testingStartDate":""},"primary":false,"publisherUpdateInfo":{},"siteId":"","siteIdDimensionValue":{},"size":{},"sslRequired":false,"status":"","subaccountId":"","tagFormats":[],"tagSetting":{"additionalKeyValues":"","includeClickThroughUrls":false,"includeClickTracking":false,"keywordOption":""},"videoActiveViewOptOut":false,"videoSettings":{"companionSettings":{"companionsDisabled":false,"enabledSizes":[{}],"imageOnly":false,"kind":""},"kind":"","obaEnabled":false,"obaSettings":{"iconClickThroughUrl":"","iconClickTrackingUrl":"","iconViewTrackingUrl":"","program":"","resourceUrl":"","size":{},"xPosition":"","yPosition":""},"orientation":"","skippableSettings":{"kind":"","progressOffset":{"offsetPercentage":0,"offsetSeconds":0},"skipOffset":{},"skippable":false},"transcodeSettings":{"enabledVideoFormats":[],"kind":""}},"vpaidAdapterChoice":""}'
};

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 = @{ @"accountId": @"",
                              @"adBlockingOptOut": @NO,
                              @"additionalSizes": @[ @{ @"height": @0, @"iab": @NO, @"id": @"", @"kind": @"", @"width": @0 } ],
                              @"advertiserId": @"",
                              @"advertiserIdDimensionValue": @{ @"dimensionName": @"", @"etag": @"", @"id": @"", @"kind": @"", @"matchType": @"", @"value": @"" },
                              @"archived": @NO,
                              @"campaignId": @"",
                              @"campaignIdDimensionValue": @{  },
                              @"comment": @"",
                              @"compatibility": @"",
                              @"contentCategoryId": @"",
                              @"createInfo": @{ @"time": @"" },
                              @"directorySiteId": @"",
                              @"directorySiteIdDimensionValue": @{  },
                              @"externalId": @"",
                              @"id": @"",
                              @"idDimensionValue": @{  },
                              @"keyName": @"",
                              @"kind": @"",
                              @"lastModifiedInfo": @{  },
                              @"lookbackConfiguration": @{ @"clickDuration": @0, @"postImpressionActivitiesDuration": @0 },
                              @"name": @"",
                              @"paymentApproved": @NO,
                              @"paymentSource": @"",
                              @"placementGroupId": @"",
                              @"placementGroupIdDimensionValue": @{  },
                              @"placementStrategyId": @"",
                              @"pricingSchedule": @{ @"capCostOption": @"", @"endDate": @"", @"flighted": @NO, @"floodlightActivityId": @"", @"pricingPeriods": @[ @{ @"endDate": @"", @"pricingComment": @"", @"rateOrCostNanos": @"", @"startDate": @"", @"units": @"" } ], @"pricingType": @"", @"startDate": @"", @"testingStartDate": @"" },
                              @"primary": @NO,
                              @"publisherUpdateInfo": @{  },
                              @"siteId": @"",
                              @"siteIdDimensionValue": @{  },
                              @"size": @{  },
                              @"sslRequired": @NO,
                              @"status": @"",
                              @"subaccountId": @"",
                              @"tagFormats": @[  ],
                              @"tagSetting": @{ @"additionalKeyValues": @"", @"includeClickThroughUrls": @NO, @"includeClickTracking": @NO, @"keywordOption": @"" },
                              @"videoActiveViewOptOut": @NO,
                              @"videoSettings": @{ @"companionSettings": @{ @"companionsDisabled": @NO, @"enabledSizes": @[ @{  } ], @"imageOnly": @NO, @"kind": @"" }, @"kind": @"", @"obaEnabled": @NO, @"obaSettings": @{ @"iconClickThroughUrl": @"", @"iconClickTrackingUrl": @"", @"iconViewTrackingUrl": @"", @"program": @"", @"resourceUrl": @"", @"size": @{  }, @"xPosition": @"", @"yPosition": @"" }, @"orientation": @"", @"skippableSettings": @{ @"kind": @"", @"progressOffset": @{ @"offsetPercentage": @0, @"offsetSeconds": @0 }, @"skipOffset": @{  }, @"skippable": @NO }, @"transcodeSettings": @{ @"enabledVideoFormats": @[  ], @"kind": @"" } },
                              @"vpaidAdapterChoice": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/userprofiles/:profileId/placements"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/userprofiles/:profileId/placements" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"accountId\": \"\",\n  \"adBlockingOptOut\": false,\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"comment\": \"\",\n  \"compatibility\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"lookbackConfiguration\": {\n    \"clickDuration\": 0,\n    \"postImpressionActivitiesDuration\": 0\n  },\n  \"name\": \"\",\n  \"paymentApproved\": false,\n  \"paymentSource\": \"\",\n  \"placementGroupId\": \"\",\n  \"placementGroupIdDimensionValue\": {},\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primary\": false,\n  \"publisherUpdateInfo\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"size\": {},\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormats\": [],\n  \"tagSetting\": {\n    \"additionalKeyValues\": \"\",\n    \"includeClickThroughUrls\": false,\n    \"includeClickTracking\": false,\n    \"keywordOption\": \"\"\n  },\n  \"videoActiveViewOptOut\": false,\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {}\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\n    }\n  },\n  \"vpaidAdapterChoice\": \"\"\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/placements",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'accountId' => '',
    'adBlockingOptOut' => null,
    'additionalSizes' => [
        [
                'height' => 0,
                'iab' => null,
                'id' => '',
                'kind' => '',
                'width' => 0
        ]
    ],
    'advertiserId' => '',
    'advertiserIdDimensionValue' => [
        'dimensionName' => '',
        'etag' => '',
        'id' => '',
        'kind' => '',
        'matchType' => '',
        'value' => ''
    ],
    'archived' => null,
    'campaignId' => '',
    'campaignIdDimensionValue' => [
        
    ],
    'comment' => '',
    'compatibility' => '',
    'contentCategoryId' => '',
    'createInfo' => [
        'time' => ''
    ],
    'directorySiteId' => '',
    'directorySiteIdDimensionValue' => [
        
    ],
    'externalId' => '',
    'id' => '',
    'idDimensionValue' => [
        
    ],
    'keyName' => '',
    'kind' => '',
    'lastModifiedInfo' => [
        
    ],
    'lookbackConfiguration' => [
        'clickDuration' => 0,
        'postImpressionActivitiesDuration' => 0
    ],
    'name' => '',
    'paymentApproved' => null,
    'paymentSource' => '',
    'placementGroupId' => '',
    'placementGroupIdDimensionValue' => [
        
    ],
    'placementStrategyId' => '',
    'pricingSchedule' => [
        'capCostOption' => '',
        'endDate' => '',
        'flighted' => null,
        'floodlightActivityId' => '',
        'pricingPeriods' => [
                [
                                'endDate' => '',
                                'pricingComment' => '',
                                'rateOrCostNanos' => '',
                                'startDate' => '',
                                'units' => ''
                ]
        ],
        'pricingType' => '',
        'startDate' => '',
        'testingStartDate' => ''
    ],
    'primary' => null,
    'publisherUpdateInfo' => [
        
    ],
    'siteId' => '',
    'siteIdDimensionValue' => [
        
    ],
    'size' => [
        
    ],
    'sslRequired' => null,
    'status' => '',
    'subaccountId' => '',
    'tagFormats' => [
        
    ],
    'tagSetting' => [
        'additionalKeyValues' => '',
        'includeClickThroughUrls' => null,
        'includeClickTracking' => null,
        'keywordOption' => ''
    ],
    'videoActiveViewOptOut' => null,
    'videoSettings' => [
        'companionSettings' => [
                'companionsDisabled' => null,
                'enabledSizes' => [
                                [
                                                                
                                ]
                ],
                'imageOnly' => null,
                'kind' => ''
        ],
        'kind' => '',
        'obaEnabled' => null,
        'obaSettings' => [
                'iconClickThroughUrl' => '',
                'iconClickTrackingUrl' => '',
                'iconViewTrackingUrl' => '',
                'program' => '',
                'resourceUrl' => '',
                'size' => [
                                
                ],
                'xPosition' => '',
                'yPosition' => ''
        ],
        'orientation' => '',
        'skippableSettings' => [
                'kind' => '',
                'progressOffset' => [
                                'offsetPercentage' => 0,
                                'offsetSeconds' => 0
                ],
                'skipOffset' => [
                                
                ],
                'skippable' => null
        ],
        'transcodeSettings' => [
                'enabledVideoFormats' => [
                                
                ],
                'kind' => ''
        ]
    ],
    'vpaidAdapterChoice' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/userprofiles/:profileId/placements', [
  'body' => '{
  "accountId": "",
  "adBlockingOptOut": false,
  "additionalSizes": [
    {
      "height": 0,
      "iab": false,
      "id": "",
      "kind": "",
      "width": 0
    }
  ],
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "archived": false,
  "campaignId": "",
  "campaignIdDimensionValue": {},
  "comment": "",
  "compatibility": "",
  "contentCategoryId": "",
  "createInfo": {
    "time": ""
  },
  "directorySiteId": "",
  "directorySiteIdDimensionValue": {},
  "externalId": "",
  "id": "",
  "idDimensionValue": {},
  "keyName": "",
  "kind": "",
  "lastModifiedInfo": {},
  "lookbackConfiguration": {
    "clickDuration": 0,
    "postImpressionActivitiesDuration": 0
  },
  "name": "",
  "paymentApproved": false,
  "paymentSource": "",
  "placementGroupId": "",
  "placementGroupIdDimensionValue": {},
  "placementStrategyId": "",
  "pricingSchedule": {
    "capCostOption": "",
    "endDate": "",
    "flighted": false,
    "floodlightActivityId": "",
    "pricingPeriods": [
      {
        "endDate": "",
        "pricingComment": "",
        "rateOrCostNanos": "",
        "startDate": "",
        "units": ""
      }
    ],
    "pricingType": "",
    "startDate": "",
    "testingStartDate": ""
  },
  "primary": false,
  "publisherUpdateInfo": {},
  "siteId": "",
  "siteIdDimensionValue": {},
  "size": {},
  "sslRequired": false,
  "status": "",
  "subaccountId": "",
  "tagFormats": [],
  "tagSetting": {
    "additionalKeyValues": "",
    "includeClickThroughUrls": false,
    "includeClickTracking": false,
    "keywordOption": ""
  },
  "videoActiveViewOptOut": false,
  "videoSettings": {
    "companionSettings": {
      "companionsDisabled": false,
      "enabledSizes": [
        {}
      ],
      "imageOnly": false,
      "kind": ""
    },
    "kind": "",
    "obaEnabled": false,
    "obaSettings": {
      "iconClickThroughUrl": "",
      "iconClickTrackingUrl": "",
      "iconViewTrackingUrl": "",
      "program": "",
      "resourceUrl": "",
      "size": {},
      "xPosition": "",
      "yPosition": ""
    },
    "orientation": "",
    "skippableSettings": {
      "kind": "",
      "progressOffset": {
        "offsetPercentage": 0,
        "offsetSeconds": 0
      },
      "skipOffset": {},
      "skippable": false
    },
    "transcodeSettings": {
      "enabledVideoFormats": [],
      "kind": ""
    }
  },
  "vpaidAdapterChoice": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/placements');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'accountId' => '',
  'adBlockingOptOut' => null,
  'additionalSizes' => [
    [
        'height' => 0,
        'iab' => null,
        'id' => '',
        'kind' => '',
        'width' => 0
    ]
  ],
  'advertiserId' => '',
  'advertiserIdDimensionValue' => [
    'dimensionName' => '',
    'etag' => '',
    'id' => '',
    'kind' => '',
    'matchType' => '',
    'value' => ''
  ],
  'archived' => null,
  'campaignId' => '',
  'campaignIdDimensionValue' => [
    
  ],
  'comment' => '',
  'compatibility' => '',
  'contentCategoryId' => '',
  'createInfo' => [
    'time' => ''
  ],
  'directorySiteId' => '',
  'directorySiteIdDimensionValue' => [
    
  ],
  'externalId' => '',
  'id' => '',
  'idDimensionValue' => [
    
  ],
  'keyName' => '',
  'kind' => '',
  'lastModifiedInfo' => [
    
  ],
  'lookbackConfiguration' => [
    'clickDuration' => 0,
    'postImpressionActivitiesDuration' => 0
  ],
  'name' => '',
  'paymentApproved' => null,
  'paymentSource' => '',
  'placementGroupId' => '',
  'placementGroupIdDimensionValue' => [
    
  ],
  'placementStrategyId' => '',
  'pricingSchedule' => [
    'capCostOption' => '',
    'endDate' => '',
    'flighted' => null,
    'floodlightActivityId' => '',
    'pricingPeriods' => [
        [
                'endDate' => '',
                'pricingComment' => '',
                'rateOrCostNanos' => '',
                'startDate' => '',
                'units' => ''
        ]
    ],
    'pricingType' => '',
    'startDate' => '',
    'testingStartDate' => ''
  ],
  'primary' => null,
  'publisherUpdateInfo' => [
    
  ],
  'siteId' => '',
  'siteIdDimensionValue' => [
    
  ],
  'size' => [
    
  ],
  'sslRequired' => null,
  'status' => '',
  'subaccountId' => '',
  'tagFormats' => [
    
  ],
  'tagSetting' => [
    'additionalKeyValues' => '',
    'includeClickThroughUrls' => null,
    'includeClickTracking' => null,
    'keywordOption' => ''
  ],
  'videoActiveViewOptOut' => null,
  'videoSettings' => [
    'companionSettings' => [
        'companionsDisabled' => null,
        'enabledSizes' => [
                [
                                
                ]
        ],
        'imageOnly' => null,
        'kind' => ''
    ],
    'kind' => '',
    'obaEnabled' => null,
    'obaSettings' => [
        'iconClickThroughUrl' => '',
        'iconClickTrackingUrl' => '',
        'iconViewTrackingUrl' => '',
        'program' => '',
        'resourceUrl' => '',
        'size' => [
                
        ],
        'xPosition' => '',
        'yPosition' => ''
    ],
    'orientation' => '',
    'skippableSettings' => [
        'kind' => '',
        'progressOffset' => [
                'offsetPercentage' => 0,
                'offsetSeconds' => 0
        ],
        'skipOffset' => [
                
        ],
        'skippable' => null
    ],
    'transcodeSettings' => [
        'enabledVideoFormats' => [
                
        ],
        'kind' => ''
    ]
  ],
  'vpaidAdapterChoice' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'accountId' => '',
  'adBlockingOptOut' => null,
  'additionalSizes' => [
    [
        'height' => 0,
        'iab' => null,
        'id' => '',
        'kind' => '',
        'width' => 0
    ]
  ],
  'advertiserId' => '',
  'advertiserIdDimensionValue' => [
    'dimensionName' => '',
    'etag' => '',
    'id' => '',
    'kind' => '',
    'matchType' => '',
    'value' => ''
  ],
  'archived' => null,
  'campaignId' => '',
  'campaignIdDimensionValue' => [
    
  ],
  'comment' => '',
  'compatibility' => '',
  'contentCategoryId' => '',
  'createInfo' => [
    'time' => ''
  ],
  'directorySiteId' => '',
  'directorySiteIdDimensionValue' => [
    
  ],
  'externalId' => '',
  'id' => '',
  'idDimensionValue' => [
    
  ],
  'keyName' => '',
  'kind' => '',
  'lastModifiedInfo' => [
    
  ],
  'lookbackConfiguration' => [
    'clickDuration' => 0,
    'postImpressionActivitiesDuration' => 0
  ],
  'name' => '',
  'paymentApproved' => null,
  'paymentSource' => '',
  'placementGroupId' => '',
  'placementGroupIdDimensionValue' => [
    
  ],
  'placementStrategyId' => '',
  'pricingSchedule' => [
    'capCostOption' => '',
    'endDate' => '',
    'flighted' => null,
    'floodlightActivityId' => '',
    'pricingPeriods' => [
        [
                'endDate' => '',
                'pricingComment' => '',
                'rateOrCostNanos' => '',
                'startDate' => '',
                'units' => ''
        ]
    ],
    'pricingType' => '',
    'startDate' => '',
    'testingStartDate' => ''
  ],
  'primary' => null,
  'publisherUpdateInfo' => [
    
  ],
  'siteId' => '',
  'siteIdDimensionValue' => [
    
  ],
  'size' => [
    
  ],
  'sslRequired' => null,
  'status' => '',
  'subaccountId' => '',
  'tagFormats' => [
    
  ],
  'tagSetting' => [
    'additionalKeyValues' => '',
    'includeClickThroughUrls' => null,
    'includeClickTracking' => null,
    'keywordOption' => ''
  ],
  'videoActiveViewOptOut' => null,
  'videoSettings' => [
    'companionSettings' => [
        'companionsDisabled' => null,
        'enabledSizes' => [
                [
                                
                ]
        ],
        'imageOnly' => null,
        'kind' => ''
    ],
    'kind' => '',
    'obaEnabled' => null,
    'obaSettings' => [
        'iconClickThroughUrl' => '',
        'iconClickTrackingUrl' => '',
        'iconViewTrackingUrl' => '',
        'program' => '',
        'resourceUrl' => '',
        'size' => [
                
        ],
        'xPosition' => '',
        'yPosition' => ''
    ],
    'orientation' => '',
    'skippableSettings' => [
        'kind' => '',
        'progressOffset' => [
                'offsetPercentage' => 0,
                'offsetSeconds' => 0
        ],
        'skipOffset' => [
                
        ],
        'skippable' => null
    ],
    'transcodeSettings' => [
        'enabledVideoFormats' => [
                
        ],
        'kind' => ''
    ]
  ],
  'vpaidAdapterChoice' => ''
]));
$request->setRequestUrl('{{baseUrl}}/userprofiles/:profileId/placements');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/placements' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "adBlockingOptOut": false,
  "additionalSizes": [
    {
      "height": 0,
      "iab": false,
      "id": "",
      "kind": "",
      "width": 0
    }
  ],
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "archived": false,
  "campaignId": "",
  "campaignIdDimensionValue": {},
  "comment": "",
  "compatibility": "",
  "contentCategoryId": "",
  "createInfo": {
    "time": ""
  },
  "directorySiteId": "",
  "directorySiteIdDimensionValue": {},
  "externalId": "",
  "id": "",
  "idDimensionValue": {},
  "keyName": "",
  "kind": "",
  "lastModifiedInfo": {},
  "lookbackConfiguration": {
    "clickDuration": 0,
    "postImpressionActivitiesDuration": 0
  },
  "name": "",
  "paymentApproved": false,
  "paymentSource": "",
  "placementGroupId": "",
  "placementGroupIdDimensionValue": {},
  "placementStrategyId": "",
  "pricingSchedule": {
    "capCostOption": "",
    "endDate": "",
    "flighted": false,
    "floodlightActivityId": "",
    "pricingPeriods": [
      {
        "endDate": "",
        "pricingComment": "",
        "rateOrCostNanos": "",
        "startDate": "",
        "units": ""
      }
    ],
    "pricingType": "",
    "startDate": "",
    "testingStartDate": ""
  },
  "primary": false,
  "publisherUpdateInfo": {},
  "siteId": "",
  "siteIdDimensionValue": {},
  "size": {},
  "sslRequired": false,
  "status": "",
  "subaccountId": "",
  "tagFormats": [],
  "tagSetting": {
    "additionalKeyValues": "",
    "includeClickThroughUrls": false,
    "includeClickTracking": false,
    "keywordOption": ""
  },
  "videoActiveViewOptOut": false,
  "videoSettings": {
    "companionSettings": {
      "companionsDisabled": false,
      "enabledSizes": [
        {}
      ],
      "imageOnly": false,
      "kind": ""
    },
    "kind": "",
    "obaEnabled": false,
    "obaSettings": {
      "iconClickThroughUrl": "",
      "iconClickTrackingUrl": "",
      "iconViewTrackingUrl": "",
      "program": "",
      "resourceUrl": "",
      "size": {},
      "xPosition": "",
      "yPosition": ""
    },
    "orientation": "",
    "skippableSettings": {
      "kind": "",
      "progressOffset": {
        "offsetPercentage": 0,
        "offsetSeconds": 0
      },
      "skipOffset": {},
      "skippable": false
    },
    "transcodeSettings": {
      "enabledVideoFormats": [],
      "kind": ""
    }
  },
  "vpaidAdapterChoice": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/placements' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "adBlockingOptOut": false,
  "additionalSizes": [
    {
      "height": 0,
      "iab": false,
      "id": "",
      "kind": "",
      "width": 0
    }
  ],
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "archived": false,
  "campaignId": "",
  "campaignIdDimensionValue": {},
  "comment": "",
  "compatibility": "",
  "contentCategoryId": "",
  "createInfo": {
    "time": ""
  },
  "directorySiteId": "",
  "directorySiteIdDimensionValue": {},
  "externalId": "",
  "id": "",
  "idDimensionValue": {},
  "keyName": "",
  "kind": "",
  "lastModifiedInfo": {},
  "lookbackConfiguration": {
    "clickDuration": 0,
    "postImpressionActivitiesDuration": 0
  },
  "name": "",
  "paymentApproved": false,
  "paymentSource": "",
  "placementGroupId": "",
  "placementGroupIdDimensionValue": {},
  "placementStrategyId": "",
  "pricingSchedule": {
    "capCostOption": "",
    "endDate": "",
    "flighted": false,
    "floodlightActivityId": "",
    "pricingPeriods": [
      {
        "endDate": "",
        "pricingComment": "",
        "rateOrCostNanos": "",
        "startDate": "",
        "units": ""
      }
    ],
    "pricingType": "",
    "startDate": "",
    "testingStartDate": ""
  },
  "primary": false,
  "publisherUpdateInfo": {},
  "siteId": "",
  "siteIdDimensionValue": {},
  "size": {},
  "sslRequired": false,
  "status": "",
  "subaccountId": "",
  "tagFormats": [],
  "tagSetting": {
    "additionalKeyValues": "",
    "includeClickThroughUrls": false,
    "includeClickTracking": false,
    "keywordOption": ""
  },
  "videoActiveViewOptOut": false,
  "videoSettings": {
    "companionSettings": {
      "companionsDisabled": false,
      "enabledSizes": [
        {}
      ],
      "imageOnly": false,
      "kind": ""
    },
    "kind": "",
    "obaEnabled": false,
    "obaSettings": {
      "iconClickThroughUrl": "",
      "iconClickTrackingUrl": "",
      "iconViewTrackingUrl": "",
      "program": "",
      "resourceUrl": "",
      "size": {},
      "xPosition": "",
      "yPosition": ""
    },
    "orientation": "",
    "skippableSettings": {
      "kind": "",
      "progressOffset": {
        "offsetPercentage": 0,
        "offsetSeconds": 0
      },
      "skipOffset": {},
      "skippable": false
    },
    "transcodeSettings": {
      "enabledVideoFormats": [],
      "kind": ""
    }
  },
  "vpaidAdapterChoice": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"accountId\": \"\",\n  \"adBlockingOptOut\": false,\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"comment\": \"\",\n  \"compatibility\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"lookbackConfiguration\": {\n    \"clickDuration\": 0,\n    \"postImpressionActivitiesDuration\": 0\n  },\n  \"name\": \"\",\n  \"paymentApproved\": false,\n  \"paymentSource\": \"\",\n  \"placementGroupId\": \"\",\n  \"placementGroupIdDimensionValue\": {},\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primary\": false,\n  \"publisherUpdateInfo\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"size\": {},\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormats\": [],\n  \"tagSetting\": {\n    \"additionalKeyValues\": \"\",\n    \"includeClickThroughUrls\": false,\n    \"includeClickTracking\": false,\n    \"keywordOption\": \"\"\n  },\n  \"videoActiveViewOptOut\": false,\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {}\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\n    }\n  },\n  \"vpaidAdapterChoice\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/userprofiles/:profileId/placements", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/placements"

payload = {
    "accountId": "",
    "adBlockingOptOut": False,
    "additionalSizes": [
        {
            "height": 0,
            "iab": False,
            "id": "",
            "kind": "",
            "width": 0
        }
    ],
    "advertiserId": "",
    "advertiserIdDimensionValue": {
        "dimensionName": "",
        "etag": "",
        "id": "",
        "kind": "",
        "matchType": "",
        "value": ""
    },
    "archived": False,
    "campaignId": "",
    "campaignIdDimensionValue": {},
    "comment": "",
    "compatibility": "",
    "contentCategoryId": "",
    "createInfo": { "time": "" },
    "directorySiteId": "",
    "directorySiteIdDimensionValue": {},
    "externalId": "",
    "id": "",
    "idDimensionValue": {},
    "keyName": "",
    "kind": "",
    "lastModifiedInfo": {},
    "lookbackConfiguration": {
        "clickDuration": 0,
        "postImpressionActivitiesDuration": 0
    },
    "name": "",
    "paymentApproved": False,
    "paymentSource": "",
    "placementGroupId": "",
    "placementGroupIdDimensionValue": {},
    "placementStrategyId": "",
    "pricingSchedule": {
        "capCostOption": "",
        "endDate": "",
        "flighted": False,
        "floodlightActivityId": "",
        "pricingPeriods": [
            {
                "endDate": "",
                "pricingComment": "",
                "rateOrCostNanos": "",
                "startDate": "",
                "units": ""
            }
        ],
        "pricingType": "",
        "startDate": "",
        "testingStartDate": ""
    },
    "primary": False,
    "publisherUpdateInfo": {},
    "siteId": "",
    "siteIdDimensionValue": {},
    "size": {},
    "sslRequired": False,
    "status": "",
    "subaccountId": "",
    "tagFormats": [],
    "tagSetting": {
        "additionalKeyValues": "",
        "includeClickThroughUrls": False,
        "includeClickTracking": False,
        "keywordOption": ""
    },
    "videoActiveViewOptOut": False,
    "videoSettings": {
        "companionSettings": {
            "companionsDisabled": False,
            "enabledSizes": [{}],
            "imageOnly": False,
            "kind": ""
        },
        "kind": "",
        "obaEnabled": False,
        "obaSettings": {
            "iconClickThroughUrl": "",
            "iconClickTrackingUrl": "",
            "iconViewTrackingUrl": "",
            "program": "",
            "resourceUrl": "",
            "size": {},
            "xPosition": "",
            "yPosition": ""
        },
        "orientation": "",
        "skippableSettings": {
            "kind": "",
            "progressOffset": {
                "offsetPercentage": 0,
                "offsetSeconds": 0
            },
            "skipOffset": {},
            "skippable": False
        },
        "transcodeSettings": {
            "enabledVideoFormats": [],
            "kind": ""
        }
    },
    "vpaidAdapterChoice": ""
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/placements"

payload <- "{\n  \"accountId\": \"\",\n  \"adBlockingOptOut\": false,\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"comment\": \"\",\n  \"compatibility\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"lookbackConfiguration\": {\n    \"clickDuration\": 0,\n    \"postImpressionActivitiesDuration\": 0\n  },\n  \"name\": \"\",\n  \"paymentApproved\": false,\n  \"paymentSource\": \"\",\n  \"placementGroupId\": \"\",\n  \"placementGroupIdDimensionValue\": {},\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primary\": false,\n  \"publisherUpdateInfo\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"size\": {},\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormats\": [],\n  \"tagSetting\": {\n    \"additionalKeyValues\": \"\",\n    \"includeClickThroughUrls\": false,\n    \"includeClickTracking\": false,\n    \"keywordOption\": \"\"\n  },\n  \"videoActiveViewOptOut\": false,\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {}\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\n    }\n  },\n  \"vpaidAdapterChoice\": \"\"\n}"

encode <- "json"

response <- VERB("PUT", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/placements")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"accountId\": \"\",\n  \"adBlockingOptOut\": false,\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"comment\": \"\",\n  \"compatibility\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"lookbackConfiguration\": {\n    \"clickDuration\": 0,\n    \"postImpressionActivitiesDuration\": 0\n  },\n  \"name\": \"\",\n  \"paymentApproved\": false,\n  \"paymentSource\": \"\",\n  \"placementGroupId\": \"\",\n  \"placementGroupIdDimensionValue\": {},\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primary\": false,\n  \"publisherUpdateInfo\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"size\": {},\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormats\": [],\n  \"tagSetting\": {\n    \"additionalKeyValues\": \"\",\n    \"includeClickThroughUrls\": false,\n    \"includeClickTracking\": false,\n    \"keywordOption\": \"\"\n  },\n  \"videoActiveViewOptOut\": false,\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {}\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\n    }\n  },\n  \"vpaidAdapterChoice\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.put('/baseUrl/userprofiles/:profileId/placements') do |req|
  req.body = "{\n  \"accountId\": \"\",\n  \"adBlockingOptOut\": false,\n  \"additionalSizes\": [\n    {\n      \"height\": 0,\n      \"iab\": false,\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"width\": 0\n    }\n  ],\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"archived\": false,\n  \"campaignId\": \"\",\n  \"campaignIdDimensionValue\": {},\n  \"comment\": \"\",\n  \"compatibility\": \"\",\n  \"contentCategoryId\": \"\",\n  \"createInfo\": {\n    \"time\": \"\"\n  },\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {},\n  \"externalId\": \"\",\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedInfo\": {},\n  \"lookbackConfiguration\": {\n    \"clickDuration\": 0,\n    \"postImpressionActivitiesDuration\": 0\n  },\n  \"name\": \"\",\n  \"paymentApproved\": false,\n  \"paymentSource\": \"\",\n  \"placementGroupId\": \"\",\n  \"placementGroupIdDimensionValue\": {},\n  \"placementStrategyId\": \"\",\n  \"pricingSchedule\": {\n    \"capCostOption\": \"\",\n    \"endDate\": \"\",\n    \"flighted\": false,\n    \"floodlightActivityId\": \"\",\n    \"pricingPeriods\": [\n      {\n        \"endDate\": \"\",\n        \"pricingComment\": \"\",\n        \"rateOrCostNanos\": \"\",\n        \"startDate\": \"\",\n        \"units\": \"\"\n      }\n    ],\n    \"pricingType\": \"\",\n    \"startDate\": \"\",\n    \"testingStartDate\": \"\"\n  },\n  \"primary\": false,\n  \"publisherUpdateInfo\": {},\n  \"siteId\": \"\",\n  \"siteIdDimensionValue\": {},\n  \"size\": {},\n  \"sslRequired\": false,\n  \"status\": \"\",\n  \"subaccountId\": \"\",\n  \"tagFormats\": [],\n  \"tagSetting\": {\n    \"additionalKeyValues\": \"\",\n    \"includeClickThroughUrls\": false,\n    \"includeClickTracking\": false,\n    \"keywordOption\": \"\"\n  },\n  \"videoActiveViewOptOut\": false,\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {}\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\n    }\n  },\n  \"vpaidAdapterChoice\": \"\"\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}}/userprofiles/:profileId/placements";

    let payload = json!({
        "accountId": "",
        "adBlockingOptOut": false,
        "additionalSizes": (
            json!({
                "height": 0,
                "iab": false,
                "id": "",
                "kind": "",
                "width": 0
            })
        ),
        "advertiserId": "",
        "advertiserIdDimensionValue": json!({
            "dimensionName": "",
            "etag": "",
            "id": "",
            "kind": "",
            "matchType": "",
            "value": ""
        }),
        "archived": false,
        "campaignId": "",
        "campaignIdDimensionValue": json!({}),
        "comment": "",
        "compatibility": "",
        "contentCategoryId": "",
        "createInfo": json!({"time": ""}),
        "directorySiteId": "",
        "directorySiteIdDimensionValue": json!({}),
        "externalId": "",
        "id": "",
        "idDimensionValue": json!({}),
        "keyName": "",
        "kind": "",
        "lastModifiedInfo": json!({}),
        "lookbackConfiguration": json!({
            "clickDuration": 0,
            "postImpressionActivitiesDuration": 0
        }),
        "name": "",
        "paymentApproved": false,
        "paymentSource": "",
        "placementGroupId": "",
        "placementGroupIdDimensionValue": json!({}),
        "placementStrategyId": "",
        "pricingSchedule": json!({
            "capCostOption": "",
            "endDate": "",
            "flighted": false,
            "floodlightActivityId": "",
            "pricingPeriods": (
                json!({
                    "endDate": "",
                    "pricingComment": "",
                    "rateOrCostNanos": "",
                    "startDate": "",
                    "units": ""
                })
            ),
            "pricingType": "",
            "startDate": "",
            "testingStartDate": ""
        }),
        "primary": false,
        "publisherUpdateInfo": json!({}),
        "siteId": "",
        "siteIdDimensionValue": json!({}),
        "size": json!({}),
        "sslRequired": false,
        "status": "",
        "subaccountId": "",
        "tagFormats": (),
        "tagSetting": json!({
            "additionalKeyValues": "",
            "includeClickThroughUrls": false,
            "includeClickTracking": false,
            "keywordOption": ""
        }),
        "videoActiveViewOptOut": false,
        "videoSettings": json!({
            "companionSettings": json!({
                "companionsDisabled": false,
                "enabledSizes": (json!({})),
                "imageOnly": false,
                "kind": ""
            }),
            "kind": "",
            "obaEnabled": false,
            "obaSettings": json!({
                "iconClickThroughUrl": "",
                "iconClickTrackingUrl": "",
                "iconViewTrackingUrl": "",
                "program": "",
                "resourceUrl": "",
                "size": json!({}),
                "xPosition": "",
                "yPosition": ""
            }),
            "orientation": "",
            "skippableSettings": json!({
                "kind": "",
                "progressOffset": json!({
                    "offsetPercentage": 0,
                    "offsetSeconds": 0
                }),
                "skipOffset": json!({}),
                "skippable": false
            }),
            "transcodeSettings": json!({
                "enabledVideoFormats": (),
                "kind": ""
            })
        }),
        "vpaidAdapterChoice": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/userprofiles/:profileId/placements \
  --header 'content-type: application/json' \
  --data '{
  "accountId": "",
  "adBlockingOptOut": false,
  "additionalSizes": [
    {
      "height": 0,
      "iab": false,
      "id": "",
      "kind": "",
      "width": 0
    }
  ],
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "archived": false,
  "campaignId": "",
  "campaignIdDimensionValue": {},
  "comment": "",
  "compatibility": "",
  "contentCategoryId": "",
  "createInfo": {
    "time": ""
  },
  "directorySiteId": "",
  "directorySiteIdDimensionValue": {},
  "externalId": "",
  "id": "",
  "idDimensionValue": {},
  "keyName": "",
  "kind": "",
  "lastModifiedInfo": {},
  "lookbackConfiguration": {
    "clickDuration": 0,
    "postImpressionActivitiesDuration": 0
  },
  "name": "",
  "paymentApproved": false,
  "paymentSource": "",
  "placementGroupId": "",
  "placementGroupIdDimensionValue": {},
  "placementStrategyId": "",
  "pricingSchedule": {
    "capCostOption": "",
    "endDate": "",
    "flighted": false,
    "floodlightActivityId": "",
    "pricingPeriods": [
      {
        "endDate": "",
        "pricingComment": "",
        "rateOrCostNanos": "",
        "startDate": "",
        "units": ""
      }
    ],
    "pricingType": "",
    "startDate": "",
    "testingStartDate": ""
  },
  "primary": false,
  "publisherUpdateInfo": {},
  "siteId": "",
  "siteIdDimensionValue": {},
  "size": {},
  "sslRequired": false,
  "status": "",
  "subaccountId": "",
  "tagFormats": [],
  "tagSetting": {
    "additionalKeyValues": "",
    "includeClickThroughUrls": false,
    "includeClickTracking": false,
    "keywordOption": ""
  },
  "videoActiveViewOptOut": false,
  "videoSettings": {
    "companionSettings": {
      "companionsDisabled": false,
      "enabledSizes": [
        {}
      ],
      "imageOnly": false,
      "kind": ""
    },
    "kind": "",
    "obaEnabled": false,
    "obaSettings": {
      "iconClickThroughUrl": "",
      "iconClickTrackingUrl": "",
      "iconViewTrackingUrl": "",
      "program": "",
      "resourceUrl": "",
      "size": {},
      "xPosition": "",
      "yPosition": ""
    },
    "orientation": "",
    "skippableSettings": {
      "kind": "",
      "progressOffset": {
        "offsetPercentage": 0,
        "offsetSeconds": 0
      },
      "skipOffset": {},
      "skippable": false
    },
    "transcodeSettings": {
      "enabledVideoFormats": [],
      "kind": ""
    }
  },
  "vpaidAdapterChoice": ""
}'
echo '{
  "accountId": "",
  "adBlockingOptOut": false,
  "additionalSizes": [
    {
      "height": 0,
      "iab": false,
      "id": "",
      "kind": "",
      "width": 0
    }
  ],
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "archived": false,
  "campaignId": "",
  "campaignIdDimensionValue": {},
  "comment": "",
  "compatibility": "",
  "contentCategoryId": "",
  "createInfo": {
    "time": ""
  },
  "directorySiteId": "",
  "directorySiteIdDimensionValue": {},
  "externalId": "",
  "id": "",
  "idDimensionValue": {},
  "keyName": "",
  "kind": "",
  "lastModifiedInfo": {},
  "lookbackConfiguration": {
    "clickDuration": 0,
    "postImpressionActivitiesDuration": 0
  },
  "name": "",
  "paymentApproved": false,
  "paymentSource": "",
  "placementGroupId": "",
  "placementGroupIdDimensionValue": {},
  "placementStrategyId": "",
  "pricingSchedule": {
    "capCostOption": "",
    "endDate": "",
    "flighted": false,
    "floodlightActivityId": "",
    "pricingPeriods": [
      {
        "endDate": "",
        "pricingComment": "",
        "rateOrCostNanos": "",
        "startDate": "",
        "units": ""
      }
    ],
    "pricingType": "",
    "startDate": "",
    "testingStartDate": ""
  },
  "primary": false,
  "publisherUpdateInfo": {},
  "siteId": "",
  "siteIdDimensionValue": {},
  "size": {},
  "sslRequired": false,
  "status": "",
  "subaccountId": "",
  "tagFormats": [],
  "tagSetting": {
    "additionalKeyValues": "",
    "includeClickThroughUrls": false,
    "includeClickTracking": false,
    "keywordOption": ""
  },
  "videoActiveViewOptOut": false,
  "videoSettings": {
    "companionSettings": {
      "companionsDisabled": false,
      "enabledSizes": [
        {}
      ],
      "imageOnly": false,
      "kind": ""
    },
    "kind": "",
    "obaEnabled": false,
    "obaSettings": {
      "iconClickThroughUrl": "",
      "iconClickTrackingUrl": "",
      "iconViewTrackingUrl": "",
      "program": "",
      "resourceUrl": "",
      "size": {},
      "xPosition": "",
      "yPosition": ""
    },
    "orientation": "",
    "skippableSettings": {
      "kind": "",
      "progressOffset": {
        "offsetPercentage": 0,
        "offsetSeconds": 0
      },
      "skipOffset": {},
      "skippable": false
    },
    "transcodeSettings": {
      "enabledVideoFormats": [],
      "kind": ""
    }
  },
  "vpaidAdapterChoice": ""
}' |  \
  http PUT {{baseUrl}}/userprofiles/:profileId/placements \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "accountId": "",\n  "adBlockingOptOut": false,\n  "additionalSizes": [\n    {\n      "height": 0,\n      "iab": false,\n      "id": "",\n      "kind": "",\n      "width": 0\n    }\n  ],\n  "advertiserId": "",\n  "advertiserIdDimensionValue": {\n    "dimensionName": "",\n    "etag": "",\n    "id": "",\n    "kind": "",\n    "matchType": "",\n    "value": ""\n  },\n  "archived": false,\n  "campaignId": "",\n  "campaignIdDimensionValue": {},\n  "comment": "",\n  "compatibility": "",\n  "contentCategoryId": "",\n  "createInfo": {\n    "time": ""\n  },\n  "directorySiteId": "",\n  "directorySiteIdDimensionValue": {},\n  "externalId": "",\n  "id": "",\n  "idDimensionValue": {},\n  "keyName": "",\n  "kind": "",\n  "lastModifiedInfo": {},\n  "lookbackConfiguration": {\n    "clickDuration": 0,\n    "postImpressionActivitiesDuration": 0\n  },\n  "name": "",\n  "paymentApproved": false,\n  "paymentSource": "",\n  "placementGroupId": "",\n  "placementGroupIdDimensionValue": {},\n  "placementStrategyId": "",\n  "pricingSchedule": {\n    "capCostOption": "",\n    "endDate": "",\n    "flighted": false,\n    "floodlightActivityId": "",\n    "pricingPeriods": [\n      {\n        "endDate": "",\n        "pricingComment": "",\n        "rateOrCostNanos": "",\n        "startDate": "",\n        "units": ""\n      }\n    ],\n    "pricingType": "",\n    "startDate": "",\n    "testingStartDate": ""\n  },\n  "primary": false,\n  "publisherUpdateInfo": {},\n  "siteId": "",\n  "siteIdDimensionValue": {},\n  "size": {},\n  "sslRequired": false,\n  "status": "",\n  "subaccountId": "",\n  "tagFormats": [],\n  "tagSetting": {\n    "additionalKeyValues": "",\n    "includeClickThroughUrls": false,\n    "includeClickTracking": false,\n    "keywordOption": ""\n  },\n  "videoActiveViewOptOut": false,\n  "videoSettings": {\n    "companionSettings": {\n      "companionsDisabled": false,\n      "enabledSizes": [\n        {}\n      ],\n      "imageOnly": false,\n      "kind": ""\n    },\n    "kind": "",\n    "obaEnabled": false,\n    "obaSettings": {\n      "iconClickThroughUrl": "",\n      "iconClickTrackingUrl": "",\n      "iconViewTrackingUrl": "",\n      "program": "",\n      "resourceUrl": "",\n      "size": {},\n      "xPosition": "",\n      "yPosition": ""\n    },\n    "orientation": "",\n    "skippableSettings": {\n      "kind": "",\n      "progressOffset": {\n        "offsetPercentage": 0,\n        "offsetSeconds": 0\n      },\n      "skipOffset": {},\n      "skippable": false\n    },\n    "transcodeSettings": {\n      "enabledVideoFormats": [],\n      "kind": ""\n    }\n  },\n  "vpaidAdapterChoice": ""\n}' \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/placements
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "accountId": "",
  "adBlockingOptOut": false,
  "additionalSizes": [
    [
      "height": 0,
      "iab": false,
      "id": "",
      "kind": "",
      "width": 0
    ]
  ],
  "advertiserId": "",
  "advertiserIdDimensionValue": [
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  ],
  "archived": false,
  "campaignId": "",
  "campaignIdDimensionValue": [],
  "comment": "",
  "compatibility": "",
  "contentCategoryId": "",
  "createInfo": ["time": ""],
  "directorySiteId": "",
  "directorySiteIdDimensionValue": [],
  "externalId": "",
  "id": "",
  "idDimensionValue": [],
  "keyName": "",
  "kind": "",
  "lastModifiedInfo": [],
  "lookbackConfiguration": [
    "clickDuration": 0,
    "postImpressionActivitiesDuration": 0
  ],
  "name": "",
  "paymentApproved": false,
  "paymentSource": "",
  "placementGroupId": "",
  "placementGroupIdDimensionValue": [],
  "placementStrategyId": "",
  "pricingSchedule": [
    "capCostOption": "",
    "endDate": "",
    "flighted": false,
    "floodlightActivityId": "",
    "pricingPeriods": [
      [
        "endDate": "",
        "pricingComment": "",
        "rateOrCostNanos": "",
        "startDate": "",
        "units": ""
      ]
    ],
    "pricingType": "",
    "startDate": "",
    "testingStartDate": ""
  ],
  "primary": false,
  "publisherUpdateInfo": [],
  "siteId": "",
  "siteIdDimensionValue": [],
  "size": [],
  "sslRequired": false,
  "status": "",
  "subaccountId": "",
  "tagFormats": [],
  "tagSetting": [
    "additionalKeyValues": "",
    "includeClickThroughUrls": false,
    "includeClickTracking": false,
    "keywordOption": ""
  ],
  "videoActiveViewOptOut": false,
  "videoSettings": [
    "companionSettings": [
      "companionsDisabled": false,
      "enabledSizes": [[]],
      "imageOnly": false,
      "kind": ""
    ],
    "kind": "",
    "obaEnabled": false,
    "obaSettings": [
      "iconClickThroughUrl": "",
      "iconClickTrackingUrl": "",
      "iconViewTrackingUrl": "",
      "program": "",
      "resourceUrl": "",
      "size": [],
      "xPosition": "",
      "yPosition": ""
    ],
    "orientation": "",
    "skippableSettings": [
      "kind": "",
      "progressOffset": [
        "offsetPercentage": 0,
        "offsetSeconds": 0
      ],
      "skipOffset": [],
      "skippable": false
    ],
    "transcodeSettings": [
      "enabledVideoFormats": [],
      "kind": ""
    ]
  ],
  "vpaidAdapterChoice": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/placements")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
DELETE dfareporting.placementStrategies.delete
{{baseUrl}}/userprofiles/:profileId/placementStrategies/:id
QUERY PARAMS

profileId
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/placementStrategies/:id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/userprofiles/:profileId/placementStrategies/:id")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/placementStrategies/:id"

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}}/userprofiles/:profileId/placementStrategies/:id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/placementStrategies/:id");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/placementStrategies/:id"

	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/userprofiles/:profileId/placementStrategies/:id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/userprofiles/:profileId/placementStrategies/:id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/placementStrategies/:id"))
    .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}}/userprofiles/:profileId/placementStrategies/:id")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/userprofiles/:profileId/placementStrategies/:id")
  .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}}/userprofiles/:profileId/placementStrategies/:id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/userprofiles/:profileId/placementStrategies/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/placementStrategies/:id';
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}}/userprofiles/:profileId/placementStrategies/:id',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/placementStrategies/:id")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/placementStrategies/:id',
  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}}/userprofiles/:profileId/placementStrategies/:id'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/userprofiles/:profileId/placementStrategies/:id');

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}}/userprofiles/:profileId/placementStrategies/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/placementStrategies/:id';
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}}/userprofiles/:profileId/placementStrategies/:id"]
                                                       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}}/userprofiles/:profileId/placementStrategies/:id" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/placementStrategies/:id",
  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}}/userprofiles/:profileId/placementStrategies/:id');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/placementStrategies/:id');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/placementStrategies/:id');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/placementStrategies/:id' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/placementStrategies/:id' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/userprofiles/:profileId/placementStrategies/:id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/placementStrategies/:id"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/placementStrategies/:id"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/placementStrategies/:id")

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/userprofiles/:profileId/placementStrategies/:id') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/placementStrategies/:id";

    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}}/userprofiles/:profileId/placementStrategies/:id
http DELETE {{baseUrl}}/userprofiles/:profileId/placementStrategies/:id
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/placementStrategies/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/placementStrategies/:id")! 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 dfareporting.placementStrategies.get
{{baseUrl}}/userprofiles/:profileId/placementStrategies/:id
QUERY PARAMS

profileId
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/placementStrategies/:id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/placementStrategies/:id")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/placementStrategies/:id"

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}}/userprofiles/:profileId/placementStrategies/:id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/placementStrategies/:id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/placementStrategies/:id"

	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/userprofiles/:profileId/placementStrategies/:id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/placementStrategies/:id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/placementStrategies/:id"))
    .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}}/userprofiles/:profileId/placementStrategies/:id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/placementStrategies/:id")
  .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}}/userprofiles/:profileId/placementStrategies/:id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/placementStrategies/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/placementStrategies/:id';
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}}/userprofiles/:profileId/placementStrategies/:id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/placementStrategies/:id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/placementStrategies/:id',
  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}}/userprofiles/:profileId/placementStrategies/:id'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/placementStrategies/:id');

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}}/userprofiles/:profileId/placementStrategies/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/placementStrategies/:id';
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}}/userprofiles/:profileId/placementStrategies/:id"]
                                                       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}}/userprofiles/:profileId/placementStrategies/:id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/placementStrategies/:id",
  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}}/userprofiles/:profileId/placementStrategies/:id');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/placementStrategies/:id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/placementStrategies/:id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/placementStrategies/:id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/placementStrategies/:id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/placementStrategies/:id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/placementStrategies/:id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/placementStrategies/:id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/placementStrategies/:id")

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/userprofiles/:profileId/placementStrategies/:id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/placementStrategies/:id";

    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}}/userprofiles/:profileId/placementStrategies/:id
http GET {{baseUrl}}/userprofiles/:profileId/placementStrategies/:id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/placementStrategies/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/placementStrategies/:id")! 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 dfareporting.placementStrategies.insert
{{baseUrl}}/userprofiles/:profileId/placementStrategies
QUERY PARAMS

profileId
BODY json

{
  "accountId": "",
  "id": "",
  "kind": "",
  "name": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/placementStrategies");

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  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/userprofiles/:profileId/placementStrategies" {:content-type :json
                                                                                        :form-params {:accountId ""
                                                                                                      :id ""
                                                                                                      :kind ""
                                                                                                      :name ""}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/placementStrategies"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/userprofiles/:profileId/placementStrategies"),
    Content = new StringContent("{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/placementStrategies");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/placementStrategies"

	payload := strings.NewReader("{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/userprofiles/:profileId/placementStrategies HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 61

{
  "accountId": "",
  "id": "",
  "kind": "",
  "name": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/userprofiles/:profileId/placementStrategies")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/placementStrategies"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/placementStrategies")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/userprofiles/:profileId/placementStrategies")
  .header("content-type", "application/json")
  .body("{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  accountId: '',
  id: '',
  kind: '',
  name: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/userprofiles/:profileId/placementStrategies');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/userprofiles/:profileId/placementStrategies',
  headers: {'content-type': 'application/json'},
  data: {accountId: '', id: '', kind: '', name: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/placementStrategies';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","id":"","kind":"","name":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/userprofiles/:profileId/placementStrategies',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "accountId": "",\n  "id": "",\n  "kind": "",\n  "name": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/placementStrategies")
  .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/userprofiles/:profileId/placementStrategies',
  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({accountId: '', id: '', kind: '', name: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/userprofiles/:profileId/placementStrategies',
  headers: {'content-type': 'application/json'},
  body: {accountId: '', id: '', kind: '', name: ''},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/userprofiles/:profileId/placementStrategies');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  accountId: '',
  id: '',
  kind: '',
  name: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/userprofiles/:profileId/placementStrategies',
  headers: {'content-type': 'application/json'},
  data: {accountId: '', id: '', kind: '', name: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/placementStrategies';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","id":"","kind":"","name":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"accountId": @"",
                              @"id": @"",
                              @"kind": @"",
                              @"name": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/userprofiles/:profileId/placementStrategies"]
                                                       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}}/userprofiles/:profileId/placementStrategies" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/placementStrategies",
  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([
    'accountId' => '',
    'id' => '',
    'kind' => '',
    'name' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/userprofiles/:profileId/placementStrategies', [
  'body' => '{
  "accountId": "",
  "id": "",
  "kind": "",
  "name": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/placementStrategies');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'accountId' => '',
  'id' => '',
  'kind' => '',
  'name' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'accountId' => '',
  'id' => '',
  'kind' => '',
  'name' => ''
]));
$request->setRequestUrl('{{baseUrl}}/userprofiles/:profileId/placementStrategies');
$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}}/userprofiles/:profileId/placementStrategies' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "id": "",
  "kind": "",
  "name": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/placementStrategies' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "id": "",
  "kind": "",
  "name": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/userprofiles/:profileId/placementStrategies", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/placementStrategies"

payload = {
    "accountId": "",
    "id": "",
    "kind": "",
    "name": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/placementStrategies"

payload <- "{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/placementStrategies")

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  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/userprofiles/:profileId/placementStrategies') do |req|
  req.body = "{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/placementStrategies";

    let payload = json!({
        "accountId": "",
        "id": "",
        "kind": "",
        "name": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/userprofiles/:profileId/placementStrategies \
  --header 'content-type: application/json' \
  --data '{
  "accountId": "",
  "id": "",
  "kind": "",
  "name": ""
}'
echo '{
  "accountId": "",
  "id": "",
  "kind": "",
  "name": ""
}' |  \
  http POST {{baseUrl}}/userprofiles/:profileId/placementStrategies \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "accountId": "",\n  "id": "",\n  "kind": "",\n  "name": ""\n}' \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/placementStrategies
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "accountId": "",
  "id": "",
  "kind": "",
  "name": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/placementStrategies")! 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 dfareporting.placementStrategies.list
{{baseUrl}}/userprofiles/:profileId/placementStrategies
QUERY PARAMS

profileId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/placementStrategies");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/placementStrategies")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/placementStrategies"

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}}/userprofiles/:profileId/placementStrategies"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/placementStrategies");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/placementStrategies"

	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/userprofiles/:profileId/placementStrategies HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/placementStrategies")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/placementStrategies"))
    .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}}/userprofiles/:profileId/placementStrategies")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/placementStrategies")
  .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}}/userprofiles/:profileId/placementStrategies');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/placementStrategies'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/placementStrategies';
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}}/userprofiles/:profileId/placementStrategies',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/placementStrategies")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/placementStrategies',
  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}}/userprofiles/:profileId/placementStrategies'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/placementStrategies');

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}}/userprofiles/:profileId/placementStrategies'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/placementStrategies';
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}}/userprofiles/:profileId/placementStrategies"]
                                                       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}}/userprofiles/:profileId/placementStrategies" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/placementStrategies",
  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}}/userprofiles/:profileId/placementStrategies');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/placementStrategies');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/placementStrategies');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/placementStrategies' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/placementStrategies' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/placementStrategies")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/placementStrategies"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/placementStrategies"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/placementStrategies")

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/userprofiles/:profileId/placementStrategies') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/placementStrategies";

    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}}/userprofiles/:profileId/placementStrategies
http GET {{baseUrl}}/userprofiles/:profileId/placementStrategies
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/placementStrategies
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/placementStrategies")! 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 dfareporting.placementStrategies.patch
{{baseUrl}}/userprofiles/:profileId/placementStrategies
QUERY PARAMS

id
profileId
BODY json

{
  "accountId": "",
  "id": "",
  "kind": "",
  "name": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/placementStrategies?id=");

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  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/patch "{{baseUrl}}/userprofiles/:profileId/placementStrategies" {:query-params {:id ""}
                                                                                         :content-type :json
                                                                                         :form-params {:accountId ""
                                                                                                       :id ""
                                                                                                       :kind ""
                                                                                                       :name ""}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/placementStrategies?id="
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"

response = HTTP::Client.patch url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Patch,
    RequestUri = new Uri("{{baseUrl}}/userprofiles/:profileId/placementStrategies?id="),
    Content = new StringContent("{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/placementStrategies?id=");
var request = new RestRequest("", Method.Patch);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/placementStrategies?id="

	payload := strings.NewReader("{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}")

	req, _ := http.NewRequest("PATCH", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PATCH /baseUrl/userprofiles/:profileId/placementStrategies?id= HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 61

{
  "accountId": "",
  "id": "",
  "kind": "",
  "name": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/userprofiles/:profileId/placementStrategies?id=")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/placementStrategies?id="))
    .header("content-type", "application/json")
    .method("PATCH", HttpRequest.BodyPublishers.ofString("{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/placementStrategies?id=")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/userprofiles/:profileId/placementStrategies?id=")
  .header("content-type", "application/json")
  .body("{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  accountId: '',
  id: '',
  kind: '',
  name: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PATCH', '{{baseUrl}}/userprofiles/:profileId/placementStrategies?id=');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/userprofiles/:profileId/placementStrategies',
  params: {id: ''},
  headers: {'content-type': 'application/json'},
  data: {accountId: '', id: '', kind: '', name: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/placementStrategies?id=';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","id":"","kind":"","name":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/userprofiles/:profileId/placementStrategies?id=',
  method: 'PATCH',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "accountId": "",\n  "id": "",\n  "kind": "",\n  "name": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/placementStrategies?id=")
  .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/userprofiles/:profileId/placementStrategies?id=',
  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({accountId: '', id: '', kind: '', name: ''}));
req.end();
const request = require('request');

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/userprofiles/:profileId/placementStrategies',
  qs: {id: ''},
  headers: {'content-type': 'application/json'},
  body: {accountId: '', id: '', kind: '', name: ''},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PATCH', '{{baseUrl}}/userprofiles/:profileId/placementStrategies');

req.query({
  id: ''
});

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  accountId: '',
  id: '',
  kind: '',
  name: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/userprofiles/:profileId/placementStrategies',
  params: {id: ''},
  headers: {'content-type': 'application/json'},
  data: {accountId: '', id: '', kind: '', name: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/placementStrategies?id=';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","id":"","kind":"","name":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"accountId": @"",
                              @"id": @"",
                              @"kind": @"",
                              @"name": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/userprofiles/:profileId/placementStrategies?id="]
                                                       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}}/userprofiles/:profileId/placementStrategies?id=" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}" in

Client.call ~headers ~body `PATCH uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/placementStrategies?id=",
  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([
    'accountId' => '',
    'id' => '',
    'kind' => '',
    'name' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PATCH', '{{baseUrl}}/userprofiles/:profileId/placementStrategies?id=', [
  'body' => '{
  "accountId": "",
  "id": "",
  "kind": "",
  "name": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/placementStrategies');
$request->setMethod(HttpRequest::HTTP_METH_PATCH);

$request->setQueryData([
  'id' => ''
]);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'accountId' => '',
  'id' => '',
  'kind' => '',
  'name' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'accountId' => '',
  'id' => '',
  'kind' => '',
  'name' => ''
]));
$request->setRequestUrl('{{baseUrl}}/userprofiles/:profileId/placementStrategies');
$request->setRequestMethod('PATCH');
$request->setBody($body);

$request->setQuery(new http\QueryString([
  'id' => ''
]));

$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}}/userprofiles/:profileId/placementStrategies?id=' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "id": "",
  "kind": "",
  "name": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/placementStrategies?id=' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "id": "",
  "kind": "",
  "name": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("PATCH", "/baseUrl/userprofiles/:profileId/placementStrategies?id=", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/placementStrategies"

querystring = {"id":""}

payload = {
    "accountId": "",
    "id": "",
    "kind": "",
    "name": ""
}
headers = {"content-type": "application/json"}

response = requests.patch(url, json=payload, headers=headers, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/placementStrategies"

queryString <- list(id = "")

payload <- "{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"

encode <- "json"

response <- VERB("PATCH", url, body = payload, query = queryString, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/placementStrategies?id=")

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  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.patch('/baseUrl/userprofiles/:profileId/placementStrategies') do |req|
  req.params['id'] = ''
  req.body = "{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"
end

puts response.status
puts response.body
use std::str::FromStr;
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/placementStrategies";

    let querystring = [
        ("id", ""),
    ];

    let payload = json!({
        "accountId": "",
        "id": "",
        "kind": "",
        "name": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PATCH").unwrap(), url)
        .query(&querystring)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PATCH \
  --url '{{baseUrl}}/userprofiles/:profileId/placementStrategies?id=' \
  --header 'content-type: application/json' \
  --data '{
  "accountId": "",
  "id": "",
  "kind": "",
  "name": ""
}'
echo '{
  "accountId": "",
  "id": "",
  "kind": "",
  "name": ""
}' |  \
  http PATCH '{{baseUrl}}/userprofiles/:profileId/placementStrategies?id=' \
  content-type:application/json
wget --quiet \
  --method PATCH \
  --header 'content-type: application/json' \
  --body-data '{\n  "accountId": "",\n  "id": "",\n  "kind": "",\n  "name": ""\n}' \
  --output-document \
  - '{{baseUrl}}/userprofiles/:profileId/placementStrategies?id='
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "accountId": "",
  "id": "",
  "kind": "",
  "name": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/placementStrategies?id=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PATCH"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
PUT dfareporting.placementStrategies.update
{{baseUrl}}/userprofiles/:profileId/placementStrategies
QUERY PARAMS

profileId
BODY json

{
  "accountId": "",
  "id": "",
  "kind": "",
  "name": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/placementStrategies");

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  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/userprofiles/:profileId/placementStrategies" {:content-type :json
                                                                                       :form-params {:accountId ""
                                                                                                     :id ""
                                                                                                     :kind ""
                                                                                                     :name ""}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/placementStrategies"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/userprofiles/:profileId/placementStrategies"),
    Content = new StringContent("{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/placementStrategies");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/placementStrategies"

	payload := strings.NewReader("{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/userprofiles/:profileId/placementStrategies HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 61

{
  "accountId": "",
  "id": "",
  "kind": "",
  "name": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/userprofiles/:profileId/placementStrategies")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/placementStrategies"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/placementStrategies")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/userprofiles/:profileId/placementStrategies")
  .header("content-type", "application/json")
  .body("{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  accountId: '',
  id: '',
  kind: '',
  name: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/userprofiles/:profileId/placementStrategies');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/userprofiles/:profileId/placementStrategies',
  headers: {'content-type': 'application/json'},
  data: {accountId: '', id: '', kind: '', name: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/placementStrategies';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","id":"","kind":"","name":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/userprofiles/:profileId/placementStrategies',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "accountId": "",\n  "id": "",\n  "kind": "",\n  "name": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/placementStrategies")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/placementStrategies',
  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({accountId: '', id: '', kind: '', name: ''}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/userprofiles/:profileId/placementStrategies',
  headers: {'content-type': 'application/json'},
  body: {accountId: '', id: '', kind: '', name: ''},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/userprofiles/:profileId/placementStrategies');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  accountId: '',
  id: '',
  kind: '',
  name: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/userprofiles/:profileId/placementStrategies',
  headers: {'content-type': 'application/json'},
  data: {accountId: '', id: '', kind: '', name: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/placementStrategies';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","id":"","kind":"","name":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"accountId": @"",
                              @"id": @"",
                              @"kind": @"",
                              @"name": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/userprofiles/:profileId/placementStrategies"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/userprofiles/:profileId/placementStrategies" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/placementStrategies",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'accountId' => '',
    'id' => '',
    'kind' => '',
    'name' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/userprofiles/:profileId/placementStrategies', [
  'body' => '{
  "accountId": "",
  "id": "",
  "kind": "",
  "name": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/placementStrategies');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'accountId' => '',
  'id' => '',
  'kind' => '',
  'name' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'accountId' => '',
  'id' => '',
  'kind' => '',
  'name' => ''
]));
$request->setRequestUrl('{{baseUrl}}/userprofiles/:profileId/placementStrategies');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/placementStrategies' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "id": "",
  "kind": "",
  "name": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/placementStrategies' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "id": "",
  "kind": "",
  "name": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/userprofiles/:profileId/placementStrategies", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/placementStrategies"

payload = {
    "accountId": "",
    "id": "",
    "kind": "",
    "name": ""
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/placementStrategies"

payload <- "{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"

encode <- "json"

response <- VERB("PUT", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/placementStrategies")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.put('/baseUrl/userprofiles/:profileId/placementStrategies') do |req|
  req.body = "{\n  \"accountId\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"
end

puts response.status
puts response.body
use std::str::FromStr;
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/placementStrategies";

    let payload = json!({
        "accountId": "",
        "id": "",
        "kind": "",
        "name": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/userprofiles/:profileId/placementStrategies \
  --header 'content-type: application/json' \
  --data '{
  "accountId": "",
  "id": "",
  "kind": "",
  "name": ""
}'
echo '{
  "accountId": "",
  "id": "",
  "kind": "",
  "name": ""
}' |  \
  http PUT {{baseUrl}}/userprofiles/:profileId/placementStrategies \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "accountId": "",\n  "id": "",\n  "kind": "",\n  "name": ""\n}' \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/placementStrategies
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "accountId": "",
  "id": "",
  "kind": "",
  "name": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/placementStrategies")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET dfareporting.platformTypes.get
{{baseUrl}}/userprofiles/:profileId/platformTypes/:id
QUERY PARAMS

profileId
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/platformTypes/:id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/platformTypes/:id")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/platformTypes/:id"

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}}/userprofiles/:profileId/platformTypes/:id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/platformTypes/:id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/platformTypes/:id"

	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/userprofiles/:profileId/platformTypes/:id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/platformTypes/:id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/platformTypes/:id"))
    .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}}/userprofiles/:profileId/platformTypes/:id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/platformTypes/:id")
  .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}}/userprofiles/:profileId/platformTypes/:id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/platformTypes/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/platformTypes/:id';
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}}/userprofiles/:profileId/platformTypes/:id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/platformTypes/:id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/platformTypes/:id',
  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}}/userprofiles/:profileId/platformTypes/:id'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/platformTypes/:id');

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}}/userprofiles/:profileId/platformTypes/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/platformTypes/:id';
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}}/userprofiles/:profileId/platformTypes/:id"]
                                                       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}}/userprofiles/:profileId/platformTypes/:id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/platformTypes/:id",
  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}}/userprofiles/:profileId/platformTypes/:id');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/platformTypes/:id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/platformTypes/:id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/platformTypes/:id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/platformTypes/:id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/platformTypes/:id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/platformTypes/:id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/platformTypes/:id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/platformTypes/:id")

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/userprofiles/:profileId/platformTypes/:id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/platformTypes/:id";

    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}}/userprofiles/:profileId/platformTypes/:id
http GET {{baseUrl}}/userprofiles/:profileId/platformTypes/:id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/platformTypes/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/platformTypes/:id")! 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 dfareporting.platformTypes.list
{{baseUrl}}/userprofiles/:profileId/platformTypes
QUERY PARAMS

profileId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/platformTypes");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/platformTypes")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/platformTypes"

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}}/userprofiles/:profileId/platformTypes"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/platformTypes");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/platformTypes"

	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/userprofiles/:profileId/platformTypes HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/platformTypes")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/platformTypes"))
    .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}}/userprofiles/:profileId/platformTypes")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/platformTypes")
  .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}}/userprofiles/:profileId/platformTypes');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/platformTypes'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/platformTypes';
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}}/userprofiles/:profileId/platformTypes',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/platformTypes")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/platformTypes',
  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}}/userprofiles/:profileId/platformTypes'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/platformTypes');

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}}/userprofiles/:profileId/platformTypes'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/platformTypes';
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}}/userprofiles/:profileId/platformTypes"]
                                                       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}}/userprofiles/:profileId/platformTypes" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/platformTypes",
  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}}/userprofiles/:profileId/platformTypes');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/platformTypes');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/platformTypes');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/platformTypes' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/platformTypes' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/platformTypes")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/platformTypes"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/platformTypes"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/platformTypes")

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/userprofiles/:profileId/platformTypes') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/platformTypes";

    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}}/userprofiles/:profileId/platformTypes
http GET {{baseUrl}}/userprofiles/:profileId/platformTypes
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/platformTypes
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/platformTypes")! 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 dfareporting.postalCodes.get
{{baseUrl}}/userprofiles/:profileId/postalCodes/:code
QUERY PARAMS

profileId
code
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/postalCodes/:code");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/postalCodes/:code")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/postalCodes/:code"

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}}/userprofiles/:profileId/postalCodes/:code"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/postalCodes/:code");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/postalCodes/:code"

	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/userprofiles/:profileId/postalCodes/:code HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/postalCodes/:code")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/postalCodes/:code"))
    .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}}/userprofiles/:profileId/postalCodes/:code")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/postalCodes/:code")
  .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}}/userprofiles/:profileId/postalCodes/:code');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/postalCodes/:code'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/postalCodes/:code';
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}}/userprofiles/:profileId/postalCodes/:code',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/postalCodes/:code")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/postalCodes/:code',
  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}}/userprofiles/:profileId/postalCodes/:code'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/postalCodes/:code');

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}}/userprofiles/:profileId/postalCodes/:code'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/postalCodes/:code';
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}}/userprofiles/:profileId/postalCodes/:code"]
                                                       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}}/userprofiles/:profileId/postalCodes/:code" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/postalCodes/:code",
  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}}/userprofiles/:profileId/postalCodes/:code');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/postalCodes/:code');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/postalCodes/:code');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/postalCodes/:code' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/postalCodes/:code' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/postalCodes/:code")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/postalCodes/:code"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/postalCodes/:code"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/postalCodes/:code")

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/userprofiles/:profileId/postalCodes/:code') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/postalCodes/:code";

    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}}/userprofiles/:profileId/postalCodes/:code
http GET {{baseUrl}}/userprofiles/:profileId/postalCodes/:code
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/postalCodes/:code
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/postalCodes/:code")! 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 dfareporting.postalCodes.list
{{baseUrl}}/userprofiles/:profileId/postalCodes
QUERY PARAMS

profileId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/postalCodes");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/postalCodes")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/postalCodes"

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}}/userprofiles/:profileId/postalCodes"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/postalCodes");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/postalCodes"

	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/userprofiles/:profileId/postalCodes HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/postalCodes")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/postalCodes"))
    .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}}/userprofiles/:profileId/postalCodes")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/postalCodes")
  .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}}/userprofiles/:profileId/postalCodes');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/postalCodes'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/postalCodes';
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}}/userprofiles/:profileId/postalCodes',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/postalCodes")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/postalCodes',
  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}}/userprofiles/:profileId/postalCodes'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/postalCodes');

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}}/userprofiles/:profileId/postalCodes'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/postalCodes';
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}}/userprofiles/:profileId/postalCodes"]
                                                       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}}/userprofiles/:profileId/postalCodes" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/postalCodes",
  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}}/userprofiles/:profileId/postalCodes');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/postalCodes');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/postalCodes');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/postalCodes' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/postalCodes' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/postalCodes")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/postalCodes"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/postalCodes"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/postalCodes")

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/userprofiles/:profileId/postalCodes') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/postalCodes";

    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}}/userprofiles/:profileId/postalCodes
http GET {{baseUrl}}/userprofiles/:profileId/postalCodes
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/postalCodes
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/postalCodes")! 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 dfareporting.projects.get
{{baseUrl}}/userprofiles/:profileId/projects/:id
QUERY PARAMS

profileId
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/projects/:id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/projects/:id")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/projects/:id"

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}}/userprofiles/:profileId/projects/:id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/projects/:id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/projects/:id"

	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/userprofiles/:profileId/projects/:id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/projects/:id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/projects/:id"))
    .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}}/userprofiles/:profileId/projects/:id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/projects/:id")
  .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}}/userprofiles/:profileId/projects/:id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/projects/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/projects/:id';
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}}/userprofiles/:profileId/projects/:id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/projects/:id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/projects/:id',
  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}}/userprofiles/:profileId/projects/:id'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/projects/:id');

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}}/userprofiles/:profileId/projects/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/projects/:id';
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}}/userprofiles/:profileId/projects/:id"]
                                                       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}}/userprofiles/:profileId/projects/:id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/projects/:id",
  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}}/userprofiles/:profileId/projects/:id');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/projects/:id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/projects/:id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/projects/:id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/projects/:id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/projects/:id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/projects/:id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/projects/:id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/projects/:id")

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/userprofiles/:profileId/projects/:id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/projects/:id";

    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}}/userprofiles/:profileId/projects/:id
http GET {{baseUrl}}/userprofiles/:profileId/projects/:id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/projects/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/projects/:id")! 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 dfareporting.projects.list
{{baseUrl}}/userprofiles/:profileId/projects
QUERY PARAMS

profileId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/projects");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/projects")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/projects"

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}}/userprofiles/:profileId/projects"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/projects");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/projects"

	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/userprofiles/:profileId/projects HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/projects")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/projects"))
    .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}}/userprofiles/:profileId/projects")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/projects")
  .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}}/userprofiles/:profileId/projects');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/projects'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/projects';
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}}/userprofiles/:profileId/projects',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/projects")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/projects',
  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}}/userprofiles/:profileId/projects'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/projects');

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}}/userprofiles/:profileId/projects'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/projects';
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}}/userprofiles/:profileId/projects"]
                                                       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}}/userprofiles/:profileId/projects" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/projects",
  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}}/userprofiles/:profileId/projects');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/projects');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/projects');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/projects' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/projects' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/projects")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/projects"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/projects"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/projects")

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/userprofiles/:profileId/projects') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/projects";

    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}}/userprofiles/:profileId/projects
http GET {{baseUrl}}/userprofiles/:profileId/projects
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/projects
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/projects")! 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 dfareporting.regions.list
{{baseUrl}}/userprofiles/:profileId/regions
QUERY PARAMS

profileId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/regions");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/regions")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/regions"

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}}/userprofiles/:profileId/regions"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/regions");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/regions"

	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/userprofiles/:profileId/regions HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/regions")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/regions"))
    .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}}/userprofiles/:profileId/regions")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/regions")
  .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}}/userprofiles/:profileId/regions');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/regions'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/regions';
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}}/userprofiles/:profileId/regions',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/regions")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/regions',
  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}}/userprofiles/:profileId/regions'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/regions');

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}}/userprofiles/:profileId/regions'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/regions';
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}}/userprofiles/:profileId/regions"]
                                                       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}}/userprofiles/:profileId/regions" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/regions",
  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}}/userprofiles/:profileId/regions');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/regions');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/regions');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/regions' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/regions' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/regions")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/regions"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/regions"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/regions")

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/userprofiles/:profileId/regions') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/regions";

    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}}/userprofiles/:profileId/regions
http GET {{baseUrl}}/userprofiles/:profileId/regions
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/regions
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/regions")! 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 dfareporting.remarketingLists.get
{{baseUrl}}/userprofiles/:profileId/remarketingLists/:id
QUERY PARAMS

profileId
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/remarketingLists/:id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/remarketingLists/:id")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/remarketingLists/:id"

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}}/userprofiles/:profileId/remarketingLists/:id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/remarketingLists/:id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/remarketingLists/:id"

	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/userprofiles/:profileId/remarketingLists/:id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/remarketingLists/:id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/remarketingLists/:id"))
    .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}}/userprofiles/:profileId/remarketingLists/:id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/remarketingLists/:id")
  .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}}/userprofiles/:profileId/remarketingLists/:id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/remarketingLists/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/remarketingLists/:id';
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}}/userprofiles/:profileId/remarketingLists/:id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/remarketingLists/:id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/remarketingLists/:id',
  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}}/userprofiles/:profileId/remarketingLists/:id'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/remarketingLists/:id');

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}}/userprofiles/:profileId/remarketingLists/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/remarketingLists/:id';
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}}/userprofiles/:profileId/remarketingLists/:id"]
                                                       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}}/userprofiles/:profileId/remarketingLists/:id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/remarketingLists/:id",
  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}}/userprofiles/:profileId/remarketingLists/:id');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/remarketingLists/:id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/remarketingLists/:id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/remarketingLists/:id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/remarketingLists/:id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/remarketingLists/:id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/remarketingLists/:id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/remarketingLists/:id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/remarketingLists/:id")

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/userprofiles/:profileId/remarketingLists/:id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/remarketingLists/:id";

    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}}/userprofiles/:profileId/remarketingLists/:id
http GET {{baseUrl}}/userprofiles/:profileId/remarketingLists/:id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/remarketingLists/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/remarketingLists/:id")! 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 dfareporting.remarketingLists.insert
{{baseUrl}}/userprofiles/:profileId/remarketingLists
QUERY PARAMS

profileId
BODY json

{
  "accountId": "",
  "active": false,
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "description": "",
  "id": "",
  "kind": "",
  "lifeSpan": "",
  "listPopulationRule": {
    "floodlightActivityId": "",
    "floodlightActivityName": "",
    "listPopulationClauses": [
      {
        "terms": [
          {
            "contains": false,
            "negation": false,
            "operator": "",
            "remarketingListId": "",
            "type": "",
            "value": "",
            "variableFriendlyName": "",
            "variableName": ""
          }
        ]
      }
    ]
  },
  "listSize": "",
  "listSource": "",
  "name": "",
  "subaccountId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/remarketingLists");

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  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"description\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lifeSpan\": \"\",\n  \"listPopulationRule\": {\n    \"floodlightActivityId\": \"\",\n    \"floodlightActivityName\": \"\",\n    \"listPopulationClauses\": [\n      {\n        \"terms\": [\n          {\n            \"contains\": false,\n            \"negation\": false,\n            \"operator\": \"\",\n            \"remarketingListId\": \"\",\n            \"type\": \"\",\n            \"value\": \"\",\n            \"variableFriendlyName\": \"\",\n            \"variableName\": \"\"\n          }\n        ]\n      }\n    ]\n  },\n  \"listSize\": \"\",\n  \"listSource\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/userprofiles/:profileId/remarketingLists" {:content-type :json
                                                                                     :form-params {:accountId ""
                                                                                                   :active false
                                                                                                   :advertiserId ""
                                                                                                   :advertiserIdDimensionValue {:dimensionName ""
                                                                                                                                :etag ""
                                                                                                                                :id ""
                                                                                                                                :kind ""
                                                                                                                                :matchType ""
                                                                                                                                :value ""}
                                                                                                   :description ""
                                                                                                   :id ""
                                                                                                   :kind ""
                                                                                                   :lifeSpan ""
                                                                                                   :listPopulationRule {:floodlightActivityId ""
                                                                                                                        :floodlightActivityName ""
                                                                                                                        :listPopulationClauses [{:terms [{:contains false
                                                                                                                                                          :negation false
                                                                                                                                                          :operator ""
                                                                                                                                                          :remarketingListId ""
                                                                                                                                                          :type ""
                                                                                                                                                          :value ""
                                                                                                                                                          :variableFriendlyName ""
                                                                                                                                                          :variableName ""}]}]}
                                                                                                   :listSize ""
                                                                                                   :listSource ""
                                                                                                   :name ""
                                                                                                   :subaccountId ""}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/remarketingLists"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"description\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lifeSpan\": \"\",\n  \"listPopulationRule\": {\n    \"floodlightActivityId\": \"\",\n    \"floodlightActivityName\": \"\",\n    \"listPopulationClauses\": [\n      {\n        \"terms\": [\n          {\n            \"contains\": false,\n            \"negation\": false,\n            \"operator\": \"\",\n            \"remarketingListId\": \"\",\n            \"type\": \"\",\n            \"value\": \"\",\n            \"variableFriendlyName\": \"\",\n            \"variableName\": \"\"\n          }\n        ]\n      }\n    ]\n  },\n  \"listSize\": \"\",\n  \"listSource\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\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}}/userprofiles/:profileId/remarketingLists"),
    Content = new StringContent("{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"description\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lifeSpan\": \"\",\n  \"listPopulationRule\": {\n    \"floodlightActivityId\": \"\",\n    \"floodlightActivityName\": \"\",\n    \"listPopulationClauses\": [\n      {\n        \"terms\": [\n          {\n            \"contains\": false,\n            \"negation\": false,\n            \"operator\": \"\",\n            \"remarketingListId\": \"\",\n            \"type\": \"\",\n            \"value\": \"\",\n            \"variableFriendlyName\": \"\",\n            \"variableName\": \"\"\n          }\n        ]\n      }\n    ]\n  },\n  \"listSize\": \"\",\n  \"listSource\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\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}}/userprofiles/:profileId/remarketingLists");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"description\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lifeSpan\": \"\",\n  \"listPopulationRule\": {\n    \"floodlightActivityId\": \"\",\n    \"floodlightActivityName\": \"\",\n    \"listPopulationClauses\": [\n      {\n        \"terms\": [\n          {\n            \"contains\": false,\n            \"negation\": false,\n            \"operator\": \"\",\n            \"remarketingListId\": \"\",\n            \"type\": \"\",\n            \"value\": \"\",\n            \"variableFriendlyName\": \"\",\n            \"variableName\": \"\"\n          }\n        ]\n      }\n    ]\n  },\n  \"listSize\": \"\",\n  \"listSource\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/remarketingLists"

	payload := strings.NewReader("{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"description\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lifeSpan\": \"\",\n  \"listPopulationRule\": {\n    \"floodlightActivityId\": \"\",\n    \"floodlightActivityName\": \"\",\n    \"listPopulationClauses\": [\n      {\n        \"terms\": [\n          {\n            \"contains\": false,\n            \"negation\": false,\n            \"operator\": \"\",\n            \"remarketingListId\": \"\",\n            \"type\": \"\",\n            \"value\": \"\",\n            \"variableFriendlyName\": \"\",\n            \"variableName\": \"\"\n          }\n        ]\n      }\n    ]\n  },\n  \"listSize\": \"\",\n  \"listSource\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\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/userprofiles/:profileId/remarketingLists HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 798

{
  "accountId": "",
  "active": false,
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "description": "",
  "id": "",
  "kind": "",
  "lifeSpan": "",
  "listPopulationRule": {
    "floodlightActivityId": "",
    "floodlightActivityName": "",
    "listPopulationClauses": [
      {
        "terms": [
          {
            "contains": false,
            "negation": false,
            "operator": "",
            "remarketingListId": "",
            "type": "",
            "value": "",
            "variableFriendlyName": "",
            "variableName": ""
          }
        ]
      }
    ]
  },
  "listSize": "",
  "listSource": "",
  "name": "",
  "subaccountId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/userprofiles/:profileId/remarketingLists")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"description\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lifeSpan\": \"\",\n  \"listPopulationRule\": {\n    \"floodlightActivityId\": \"\",\n    \"floodlightActivityName\": \"\",\n    \"listPopulationClauses\": [\n      {\n        \"terms\": [\n          {\n            \"contains\": false,\n            \"negation\": false,\n            \"operator\": \"\",\n            \"remarketingListId\": \"\",\n            \"type\": \"\",\n            \"value\": \"\",\n            \"variableFriendlyName\": \"\",\n            \"variableName\": \"\"\n          }\n        ]\n      }\n    ]\n  },\n  \"listSize\": \"\",\n  \"listSource\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/remarketingLists"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"description\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lifeSpan\": \"\",\n  \"listPopulationRule\": {\n    \"floodlightActivityId\": \"\",\n    \"floodlightActivityName\": \"\",\n    \"listPopulationClauses\": [\n      {\n        \"terms\": [\n          {\n            \"contains\": false,\n            \"negation\": false,\n            \"operator\": \"\",\n            \"remarketingListId\": \"\",\n            \"type\": \"\",\n            \"value\": \"\",\n            \"variableFriendlyName\": \"\",\n            \"variableName\": \"\"\n          }\n        ]\n      }\n    ]\n  },\n  \"listSize\": \"\",\n  \"listSource\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\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  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"description\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lifeSpan\": \"\",\n  \"listPopulationRule\": {\n    \"floodlightActivityId\": \"\",\n    \"floodlightActivityName\": \"\",\n    \"listPopulationClauses\": [\n      {\n        \"terms\": [\n          {\n            \"contains\": false,\n            \"negation\": false,\n            \"operator\": \"\",\n            \"remarketingListId\": \"\",\n            \"type\": \"\",\n            \"value\": \"\",\n            \"variableFriendlyName\": \"\",\n            \"variableName\": \"\"\n          }\n        ]\n      }\n    ]\n  },\n  \"listSize\": \"\",\n  \"listSource\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/remarketingLists")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/userprofiles/:profileId/remarketingLists")
  .header("content-type", "application/json")
  .body("{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"description\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lifeSpan\": \"\",\n  \"listPopulationRule\": {\n    \"floodlightActivityId\": \"\",\n    \"floodlightActivityName\": \"\",\n    \"listPopulationClauses\": [\n      {\n        \"terms\": [\n          {\n            \"contains\": false,\n            \"negation\": false,\n            \"operator\": \"\",\n            \"remarketingListId\": \"\",\n            \"type\": \"\",\n            \"value\": \"\",\n            \"variableFriendlyName\": \"\",\n            \"variableName\": \"\"\n          }\n        ]\n      }\n    ]\n  },\n  \"listSize\": \"\",\n  \"listSource\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  accountId: '',
  active: false,
  advertiserId: '',
  advertiserIdDimensionValue: {
    dimensionName: '',
    etag: '',
    id: '',
    kind: '',
    matchType: '',
    value: ''
  },
  description: '',
  id: '',
  kind: '',
  lifeSpan: '',
  listPopulationRule: {
    floodlightActivityId: '',
    floodlightActivityName: '',
    listPopulationClauses: [
      {
        terms: [
          {
            contains: false,
            negation: false,
            operator: '',
            remarketingListId: '',
            type: '',
            value: '',
            variableFriendlyName: '',
            variableName: ''
          }
        ]
      }
    ]
  },
  listSize: '',
  listSource: '',
  name: '',
  subaccountId: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/userprofiles/:profileId/remarketingLists');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/userprofiles/:profileId/remarketingLists',
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    active: false,
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    description: '',
    id: '',
    kind: '',
    lifeSpan: '',
    listPopulationRule: {
      floodlightActivityId: '',
      floodlightActivityName: '',
      listPopulationClauses: [
        {
          terms: [
            {
              contains: false,
              negation: false,
              operator: '',
              remarketingListId: '',
              type: '',
              value: '',
              variableFriendlyName: '',
              variableName: ''
            }
          ]
        }
      ]
    },
    listSize: '',
    listSource: '',
    name: '',
    subaccountId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/remarketingLists';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","active":false,"advertiserId":"","advertiserIdDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"description":"","id":"","kind":"","lifeSpan":"","listPopulationRule":{"floodlightActivityId":"","floodlightActivityName":"","listPopulationClauses":[{"terms":[{"contains":false,"negation":false,"operator":"","remarketingListId":"","type":"","value":"","variableFriendlyName":"","variableName":""}]}]},"listSize":"","listSource":"","name":"","subaccountId":""}'
};

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}}/userprofiles/:profileId/remarketingLists',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "accountId": "",\n  "active": false,\n  "advertiserId": "",\n  "advertiserIdDimensionValue": {\n    "dimensionName": "",\n    "etag": "",\n    "id": "",\n    "kind": "",\n    "matchType": "",\n    "value": ""\n  },\n  "description": "",\n  "id": "",\n  "kind": "",\n  "lifeSpan": "",\n  "listPopulationRule": {\n    "floodlightActivityId": "",\n    "floodlightActivityName": "",\n    "listPopulationClauses": [\n      {\n        "terms": [\n          {\n            "contains": false,\n            "negation": false,\n            "operator": "",\n            "remarketingListId": "",\n            "type": "",\n            "value": "",\n            "variableFriendlyName": "",\n            "variableName": ""\n          }\n        ]\n      }\n    ]\n  },\n  "listSize": "",\n  "listSource": "",\n  "name": "",\n  "subaccountId": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"description\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lifeSpan\": \"\",\n  \"listPopulationRule\": {\n    \"floodlightActivityId\": \"\",\n    \"floodlightActivityName\": \"\",\n    \"listPopulationClauses\": [\n      {\n        \"terms\": [\n          {\n            \"contains\": false,\n            \"negation\": false,\n            \"operator\": \"\",\n            \"remarketingListId\": \"\",\n            \"type\": \"\",\n            \"value\": \"\",\n            \"variableFriendlyName\": \"\",\n            \"variableName\": \"\"\n          }\n        ]\n      }\n    ]\n  },\n  \"listSize\": \"\",\n  \"listSource\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/remarketingLists")
  .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/userprofiles/:profileId/remarketingLists',
  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({
  accountId: '',
  active: false,
  advertiserId: '',
  advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
  description: '',
  id: '',
  kind: '',
  lifeSpan: '',
  listPopulationRule: {
    floodlightActivityId: '',
    floodlightActivityName: '',
    listPopulationClauses: [
      {
        terms: [
          {
            contains: false,
            negation: false,
            operator: '',
            remarketingListId: '',
            type: '',
            value: '',
            variableFriendlyName: '',
            variableName: ''
          }
        ]
      }
    ]
  },
  listSize: '',
  listSource: '',
  name: '',
  subaccountId: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/userprofiles/:profileId/remarketingLists',
  headers: {'content-type': 'application/json'},
  body: {
    accountId: '',
    active: false,
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    description: '',
    id: '',
    kind: '',
    lifeSpan: '',
    listPopulationRule: {
      floodlightActivityId: '',
      floodlightActivityName: '',
      listPopulationClauses: [
        {
          terms: [
            {
              contains: false,
              negation: false,
              operator: '',
              remarketingListId: '',
              type: '',
              value: '',
              variableFriendlyName: '',
              variableName: ''
            }
          ]
        }
      ]
    },
    listSize: '',
    listSource: '',
    name: '',
    subaccountId: ''
  },
  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}}/userprofiles/:profileId/remarketingLists');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  accountId: '',
  active: false,
  advertiserId: '',
  advertiserIdDimensionValue: {
    dimensionName: '',
    etag: '',
    id: '',
    kind: '',
    matchType: '',
    value: ''
  },
  description: '',
  id: '',
  kind: '',
  lifeSpan: '',
  listPopulationRule: {
    floodlightActivityId: '',
    floodlightActivityName: '',
    listPopulationClauses: [
      {
        terms: [
          {
            contains: false,
            negation: false,
            operator: '',
            remarketingListId: '',
            type: '',
            value: '',
            variableFriendlyName: '',
            variableName: ''
          }
        ]
      }
    ]
  },
  listSize: '',
  listSource: '',
  name: '',
  subaccountId: ''
});

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}}/userprofiles/:profileId/remarketingLists',
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    active: false,
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    description: '',
    id: '',
    kind: '',
    lifeSpan: '',
    listPopulationRule: {
      floodlightActivityId: '',
      floodlightActivityName: '',
      listPopulationClauses: [
        {
          terms: [
            {
              contains: false,
              negation: false,
              operator: '',
              remarketingListId: '',
              type: '',
              value: '',
              variableFriendlyName: '',
              variableName: ''
            }
          ]
        }
      ]
    },
    listSize: '',
    listSource: '',
    name: '',
    subaccountId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/remarketingLists';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","active":false,"advertiserId":"","advertiserIdDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"description":"","id":"","kind":"","lifeSpan":"","listPopulationRule":{"floodlightActivityId":"","floodlightActivityName":"","listPopulationClauses":[{"terms":[{"contains":false,"negation":false,"operator":"","remarketingListId":"","type":"","value":"","variableFriendlyName":"","variableName":""}]}]},"listSize":"","listSource":"","name":"","subaccountId":""}'
};

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 = @{ @"accountId": @"",
                              @"active": @NO,
                              @"advertiserId": @"",
                              @"advertiserIdDimensionValue": @{ @"dimensionName": @"", @"etag": @"", @"id": @"", @"kind": @"", @"matchType": @"", @"value": @"" },
                              @"description": @"",
                              @"id": @"",
                              @"kind": @"",
                              @"lifeSpan": @"",
                              @"listPopulationRule": @{ @"floodlightActivityId": @"", @"floodlightActivityName": @"", @"listPopulationClauses": @[ @{ @"terms": @[ @{ @"contains": @NO, @"negation": @NO, @"operator": @"", @"remarketingListId": @"", @"type": @"", @"value": @"", @"variableFriendlyName": @"", @"variableName": @"" } ] } ] },
                              @"listSize": @"",
                              @"listSource": @"",
                              @"name": @"",
                              @"subaccountId": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/userprofiles/:profileId/remarketingLists"]
                                                       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}}/userprofiles/:profileId/remarketingLists" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"description\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lifeSpan\": \"\",\n  \"listPopulationRule\": {\n    \"floodlightActivityId\": \"\",\n    \"floodlightActivityName\": \"\",\n    \"listPopulationClauses\": [\n      {\n        \"terms\": [\n          {\n            \"contains\": false,\n            \"negation\": false,\n            \"operator\": \"\",\n            \"remarketingListId\": \"\",\n            \"type\": \"\",\n            \"value\": \"\",\n            \"variableFriendlyName\": \"\",\n            \"variableName\": \"\"\n          }\n        ]\n      }\n    ]\n  },\n  \"listSize\": \"\",\n  \"listSource\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/remarketingLists",
  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([
    'accountId' => '',
    'active' => null,
    'advertiserId' => '',
    'advertiserIdDimensionValue' => [
        'dimensionName' => '',
        'etag' => '',
        'id' => '',
        'kind' => '',
        'matchType' => '',
        'value' => ''
    ],
    'description' => '',
    'id' => '',
    'kind' => '',
    'lifeSpan' => '',
    'listPopulationRule' => [
        'floodlightActivityId' => '',
        'floodlightActivityName' => '',
        'listPopulationClauses' => [
                [
                                'terms' => [
                                                                [
                                                                                                                                'contains' => null,
                                                                                                                                'negation' => null,
                                                                                                                                'operator' => '',
                                                                                                                                'remarketingListId' => '',
                                                                                                                                'type' => '',
                                                                                                                                'value' => '',
                                                                                                                                'variableFriendlyName' => '',
                                                                                                                                'variableName' => ''
                                                                ]
                                ]
                ]
        ]
    ],
    'listSize' => '',
    'listSource' => '',
    'name' => '',
    'subaccountId' => ''
  ]),
  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}}/userprofiles/:profileId/remarketingLists', [
  'body' => '{
  "accountId": "",
  "active": false,
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "description": "",
  "id": "",
  "kind": "",
  "lifeSpan": "",
  "listPopulationRule": {
    "floodlightActivityId": "",
    "floodlightActivityName": "",
    "listPopulationClauses": [
      {
        "terms": [
          {
            "contains": false,
            "negation": false,
            "operator": "",
            "remarketingListId": "",
            "type": "",
            "value": "",
            "variableFriendlyName": "",
            "variableName": ""
          }
        ]
      }
    ]
  },
  "listSize": "",
  "listSource": "",
  "name": "",
  "subaccountId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/remarketingLists');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'accountId' => '',
  'active' => null,
  'advertiserId' => '',
  'advertiserIdDimensionValue' => [
    'dimensionName' => '',
    'etag' => '',
    'id' => '',
    'kind' => '',
    'matchType' => '',
    'value' => ''
  ],
  'description' => '',
  'id' => '',
  'kind' => '',
  'lifeSpan' => '',
  'listPopulationRule' => [
    'floodlightActivityId' => '',
    'floodlightActivityName' => '',
    'listPopulationClauses' => [
        [
                'terms' => [
                                [
                                                                'contains' => null,
                                                                'negation' => null,
                                                                'operator' => '',
                                                                'remarketingListId' => '',
                                                                'type' => '',
                                                                'value' => '',
                                                                'variableFriendlyName' => '',
                                                                'variableName' => ''
                                ]
                ]
        ]
    ]
  ],
  'listSize' => '',
  'listSource' => '',
  'name' => '',
  'subaccountId' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'accountId' => '',
  'active' => null,
  'advertiserId' => '',
  'advertiserIdDimensionValue' => [
    'dimensionName' => '',
    'etag' => '',
    'id' => '',
    'kind' => '',
    'matchType' => '',
    'value' => ''
  ],
  'description' => '',
  'id' => '',
  'kind' => '',
  'lifeSpan' => '',
  'listPopulationRule' => [
    'floodlightActivityId' => '',
    'floodlightActivityName' => '',
    'listPopulationClauses' => [
        [
                'terms' => [
                                [
                                                                'contains' => null,
                                                                'negation' => null,
                                                                'operator' => '',
                                                                'remarketingListId' => '',
                                                                'type' => '',
                                                                'value' => '',
                                                                'variableFriendlyName' => '',
                                                                'variableName' => ''
                                ]
                ]
        ]
    ]
  ],
  'listSize' => '',
  'listSource' => '',
  'name' => '',
  'subaccountId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/userprofiles/:profileId/remarketingLists');
$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}}/userprofiles/:profileId/remarketingLists' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "active": false,
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "description": "",
  "id": "",
  "kind": "",
  "lifeSpan": "",
  "listPopulationRule": {
    "floodlightActivityId": "",
    "floodlightActivityName": "",
    "listPopulationClauses": [
      {
        "terms": [
          {
            "contains": false,
            "negation": false,
            "operator": "",
            "remarketingListId": "",
            "type": "",
            "value": "",
            "variableFriendlyName": "",
            "variableName": ""
          }
        ]
      }
    ]
  },
  "listSize": "",
  "listSource": "",
  "name": "",
  "subaccountId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/remarketingLists' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "active": false,
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "description": "",
  "id": "",
  "kind": "",
  "lifeSpan": "",
  "listPopulationRule": {
    "floodlightActivityId": "",
    "floodlightActivityName": "",
    "listPopulationClauses": [
      {
        "terms": [
          {
            "contains": false,
            "negation": false,
            "operator": "",
            "remarketingListId": "",
            "type": "",
            "value": "",
            "variableFriendlyName": "",
            "variableName": ""
          }
        ]
      }
    ]
  },
  "listSize": "",
  "listSource": "",
  "name": "",
  "subaccountId": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"description\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lifeSpan\": \"\",\n  \"listPopulationRule\": {\n    \"floodlightActivityId\": \"\",\n    \"floodlightActivityName\": \"\",\n    \"listPopulationClauses\": [\n      {\n        \"terms\": [\n          {\n            \"contains\": false,\n            \"negation\": false,\n            \"operator\": \"\",\n            \"remarketingListId\": \"\",\n            \"type\": \"\",\n            \"value\": \"\",\n            \"variableFriendlyName\": \"\",\n            \"variableName\": \"\"\n          }\n        ]\n      }\n    ]\n  },\n  \"listSize\": \"\",\n  \"listSource\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/userprofiles/:profileId/remarketingLists", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/remarketingLists"

payload = {
    "accountId": "",
    "active": False,
    "advertiserId": "",
    "advertiserIdDimensionValue": {
        "dimensionName": "",
        "etag": "",
        "id": "",
        "kind": "",
        "matchType": "",
        "value": ""
    },
    "description": "",
    "id": "",
    "kind": "",
    "lifeSpan": "",
    "listPopulationRule": {
        "floodlightActivityId": "",
        "floodlightActivityName": "",
        "listPopulationClauses": [{ "terms": [
                    {
                        "contains": False,
                        "negation": False,
                        "operator": "",
                        "remarketingListId": "",
                        "type": "",
                        "value": "",
                        "variableFriendlyName": "",
                        "variableName": ""
                    }
                ] }]
    },
    "listSize": "",
    "listSource": "",
    "name": "",
    "subaccountId": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/remarketingLists"

payload <- "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"description\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lifeSpan\": \"\",\n  \"listPopulationRule\": {\n    \"floodlightActivityId\": \"\",\n    \"floodlightActivityName\": \"\",\n    \"listPopulationClauses\": [\n      {\n        \"terms\": [\n          {\n            \"contains\": false,\n            \"negation\": false,\n            \"operator\": \"\",\n            \"remarketingListId\": \"\",\n            \"type\": \"\",\n            \"value\": \"\",\n            \"variableFriendlyName\": \"\",\n            \"variableName\": \"\"\n          }\n        ]\n      }\n    ]\n  },\n  \"listSize\": \"\",\n  \"listSource\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\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}}/userprofiles/:profileId/remarketingLists")

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  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"description\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lifeSpan\": \"\",\n  \"listPopulationRule\": {\n    \"floodlightActivityId\": \"\",\n    \"floodlightActivityName\": \"\",\n    \"listPopulationClauses\": [\n      {\n        \"terms\": [\n          {\n            \"contains\": false,\n            \"negation\": false,\n            \"operator\": \"\",\n            \"remarketingListId\": \"\",\n            \"type\": \"\",\n            \"value\": \"\",\n            \"variableFriendlyName\": \"\",\n            \"variableName\": \"\"\n          }\n        ]\n      }\n    ]\n  },\n  \"listSize\": \"\",\n  \"listSource\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\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/userprofiles/:profileId/remarketingLists') do |req|
  req.body = "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"description\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lifeSpan\": \"\",\n  \"listPopulationRule\": {\n    \"floodlightActivityId\": \"\",\n    \"floodlightActivityName\": \"\",\n    \"listPopulationClauses\": [\n      {\n        \"terms\": [\n          {\n            \"contains\": false,\n            \"negation\": false,\n            \"operator\": \"\",\n            \"remarketingListId\": \"\",\n            \"type\": \"\",\n            \"value\": \"\",\n            \"variableFriendlyName\": \"\",\n            \"variableName\": \"\"\n          }\n        ]\n      }\n    ]\n  },\n  \"listSize\": \"\",\n  \"listSource\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/remarketingLists";

    let payload = json!({
        "accountId": "",
        "active": false,
        "advertiserId": "",
        "advertiserIdDimensionValue": json!({
            "dimensionName": "",
            "etag": "",
            "id": "",
            "kind": "",
            "matchType": "",
            "value": ""
        }),
        "description": "",
        "id": "",
        "kind": "",
        "lifeSpan": "",
        "listPopulationRule": json!({
            "floodlightActivityId": "",
            "floodlightActivityName": "",
            "listPopulationClauses": (json!({"terms": (
                        json!({
                            "contains": false,
                            "negation": false,
                            "operator": "",
                            "remarketingListId": "",
                            "type": "",
                            "value": "",
                            "variableFriendlyName": "",
                            "variableName": ""
                        })
                    )}))
        }),
        "listSize": "",
        "listSource": "",
        "name": "",
        "subaccountId": ""
    });

    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}}/userprofiles/:profileId/remarketingLists \
  --header 'content-type: application/json' \
  --data '{
  "accountId": "",
  "active": false,
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "description": "",
  "id": "",
  "kind": "",
  "lifeSpan": "",
  "listPopulationRule": {
    "floodlightActivityId": "",
    "floodlightActivityName": "",
    "listPopulationClauses": [
      {
        "terms": [
          {
            "contains": false,
            "negation": false,
            "operator": "",
            "remarketingListId": "",
            "type": "",
            "value": "",
            "variableFriendlyName": "",
            "variableName": ""
          }
        ]
      }
    ]
  },
  "listSize": "",
  "listSource": "",
  "name": "",
  "subaccountId": ""
}'
echo '{
  "accountId": "",
  "active": false,
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "description": "",
  "id": "",
  "kind": "",
  "lifeSpan": "",
  "listPopulationRule": {
    "floodlightActivityId": "",
    "floodlightActivityName": "",
    "listPopulationClauses": [
      {
        "terms": [
          {
            "contains": false,
            "negation": false,
            "operator": "",
            "remarketingListId": "",
            "type": "",
            "value": "",
            "variableFriendlyName": "",
            "variableName": ""
          }
        ]
      }
    ]
  },
  "listSize": "",
  "listSource": "",
  "name": "",
  "subaccountId": ""
}' |  \
  http POST {{baseUrl}}/userprofiles/:profileId/remarketingLists \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "accountId": "",\n  "active": false,\n  "advertiserId": "",\n  "advertiserIdDimensionValue": {\n    "dimensionName": "",\n    "etag": "",\n    "id": "",\n    "kind": "",\n    "matchType": "",\n    "value": ""\n  },\n  "description": "",\n  "id": "",\n  "kind": "",\n  "lifeSpan": "",\n  "listPopulationRule": {\n    "floodlightActivityId": "",\n    "floodlightActivityName": "",\n    "listPopulationClauses": [\n      {\n        "terms": [\n          {\n            "contains": false,\n            "negation": false,\n            "operator": "",\n            "remarketingListId": "",\n            "type": "",\n            "value": "",\n            "variableFriendlyName": "",\n            "variableName": ""\n          }\n        ]\n      }\n    ]\n  },\n  "listSize": "",\n  "listSource": "",\n  "name": "",\n  "subaccountId": ""\n}' \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/remarketingLists
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "accountId": "",
  "active": false,
  "advertiserId": "",
  "advertiserIdDimensionValue": [
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  ],
  "description": "",
  "id": "",
  "kind": "",
  "lifeSpan": "",
  "listPopulationRule": [
    "floodlightActivityId": "",
    "floodlightActivityName": "",
    "listPopulationClauses": [["terms": [
          [
            "contains": false,
            "negation": false,
            "operator": "",
            "remarketingListId": "",
            "type": "",
            "value": "",
            "variableFriendlyName": "",
            "variableName": ""
          ]
        ]]]
  ],
  "listSize": "",
  "listSource": "",
  "name": "",
  "subaccountId": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/remarketingLists")! 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 dfareporting.remarketingLists.list
{{baseUrl}}/userprofiles/:profileId/remarketingLists
QUERY PARAMS

advertiserId
profileId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/remarketingLists?advertiserId=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/remarketingLists" {:query-params {:advertiserId ""}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/remarketingLists?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}}/userprofiles/:profileId/remarketingLists?advertiserId="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/remarketingLists?advertiserId=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/remarketingLists?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/userprofiles/:profileId/remarketingLists?advertiserId= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/remarketingLists?advertiserId=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/remarketingLists?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}}/userprofiles/:profileId/remarketingLists?advertiserId=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/remarketingLists?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}}/userprofiles/:profileId/remarketingLists?advertiserId=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/remarketingLists',
  params: {advertiserId: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/remarketingLists?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}}/userprofiles/:profileId/remarketingLists?advertiserId=',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/remarketingLists?advertiserId=")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/remarketingLists?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}}/userprofiles/:profileId/remarketingLists',
  qs: {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}}/userprofiles/:profileId/remarketingLists');

req.query({
  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}}/userprofiles/:profileId/remarketingLists',
  params: {advertiserId: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/remarketingLists?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}}/userprofiles/:profileId/remarketingLists?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}}/userprofiles/:profileId/remarketingLists?advertiserId=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/remarketingLists?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}}/userprofiles/:profileId/remarketingLists?advertiserId=');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/remarketingLists');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'advertiserId' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/remarketingLists');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'advertiserId' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/remarketingLists?advertiserId=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/remarketingLists?advertiserId=' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/remarketingLists?advertiserId=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/remarketingLists"

querystring = {"advertiserId":""}

response = requests.get(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/remarketingLists"

queryString <- list(advertiserId = "")

response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/remarketingLists?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/userprofiles/:profileId/remarketingLists') do |req|
  req.params['advertiserId'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/remarketingLists";

    let querystring = [
        ("advertiserId", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/userprofiles/:profileId/remarketingLists?advertiserId='
http GET '{{baseUrl}}/userprofiles/:profileId/remarketingLists?advertiserId='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/userprofiles/:profileId/remarketingLists?advertiserId='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/remarketingLists?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()
PATCH dfareporting.remarketingLists.patch
{{baseUrl}}/userprofiles/:profileId/remarketingLists
QUERY PARAMS

id
profileId
BODY json

{
  "accountId": "",
  "active": false,
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "description": "",
  "id": "",
  "kind": "",
  "lifeSpan": "",
  "listPopulationRule": {
    "floodlightActivityId": "",
    "floodlightActivityName": "",
    "listPopulationClauses": [
      {
        "terms": [
          {
            "contains": false,
            "negation": false,
            "operator": "",
            "remarketingListId": "",
            "type": "",
            "value": "",
            "variableFriendlyName": "",
            "variableName": ""
          }
        ]
      }
    ]
  },
  "listSize": "",
  "listSource": "",
  "name": "",
  "subaccountId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/remarketingLists?id=");

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  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"description\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lifeSpan\": \"\",\n  \"listPopulationRule\": {\n    \"floodlightActivityId\": \"\",\n    \"floodlightActivityName\": \"\",\n    \"listPopulationClauses\": [\n      {\n        \"terms\": [\n          {\n            \"contains\": false,\n            \"negation\": false,\n            \"operator\": \"\",\n            \"remarketingListId\": \"\",\n            \"type\": \"\",\n            \"value\": \"\",\n            \"variableFriendlyName\": \"\",\n            \"variableName\": \"\"\n          }\n        ]\n      }\n    ]\n  },\n  \"listSize\": \"\",\n  \"listSource\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/patch "{{baseUrl}}/userprofiles/:profileId/remarketingLists" {:query-params {:id ""}
                                                                                      :content-type :json
                                                                                      :form-params {:accountId ""
                                                                                                    :active false
                                                                                                    :advertiserId ""
                                                                                                    :advertiserIdDimensionValue {:dimensionName ""
                                                                                                                                 :etag ""
                                                                                                                                 :id ""
                                                                                                                                 :kind ""
                                                                                                                                 :matchType ""
                                                                                                                                 :value ""}
                                                                                                    :description ""
                                                                                                    :id ""
                                                                                                    :kind ""
                                                                                                    :lifeSpan ""
                                                                                                    :listPopulationRule {:floodlightActivityId ""
                                                                                                                         :floodlightActivityName ""
                                                                                                                         :listPopulationClauses [{:terms [{:contains false
                                                                                                                                                           :negation false
                                                                                                                                                           :operator ""
                                                                                                                                                           :remarketingListId ""
                                                                                                                                                           :type ""
                                                                                                                                                           :value ""
                                                                                                                                                           :variableFriendlyName ""
                                                                                                                                                           :variableName ""}]}]}
                                                                                                    :listSize ""
                                                                                                    :listSource ""
                                                                                                    :name ""
                                                                                                    :subaccountId ""}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/remarketingLists?id="
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"description\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lifeSpan\": \"\",\n  \"listPopulationRule\": {\n    \"floodlightActivityId\": \"\",\n    \"floodlightActivityName\": \"\",\n    \"listPopulationClauses\": [\n      {\n        \"terms\": [\n          {\n            \"contains\": false,\n            \"negation\": false,\n            \"operator\": \"\",\n            \"remarketingListId\": \"\",\n            \"type\": \"\",\n            \"value\": \"\",\n            \"variableFriendlyName\": \"\",\n            \"variableName\": \"\"\n          }\n        ]\n      }\n    ]\n  },\n  \"listSize\": \"\",\n  \"listSource\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\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}}/userprofiles/:profileId/remarketingLists?id="),
    Content = new StringContent("{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"description\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lifeSpan\": \"\",\n  \"listPopulationRule\": {\n    \"floodlightActivityId\": \"\",\n    \"floodlightActivityName\": \"\",\n    \"listPopulationClauses\": [\n      {\n        \"terms\": [\n          {\n            \"contains\": false,\n            \"negation\": false,\n            \"operator\": \"\",\n            \"remarketingListId\": \"\",\n            \"type\": \"\",\n            \"value\": \"\",\n            \"variableFriendlyName\": \"\",\n            \"variableName\": \"\"\n          }\n        ]\n      }\n    ]\n  },\n  \"listSize\": \"\",\n  \"listSource\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\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}}/userprofiles/:profileId/remarketingLists?id=");
var request = new RestRequest("", Method.Patch);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"description\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lifeSpan\": \"\",\n  \"listPopulationRule\": {\n    \"floodlightActivityId\": \"\",\n    \"floodlightActivityName\": \"\",\n    \"listPopulationClauses\": [\n      {\n        \"terms\": [\n          {\n            \"contains\": false,\n            \"negation\": false,\n            \"operator\": \"\",\n            \"remarketingListId\": \"\",\n            \"type\": \"\",\n            \"value\": \"\",\n            \"variableFriendlyName\": \"\",\n            \"variableName\": \"\"\n          }\n        ]\n      }\n    ]\n  },\n  \"listSize\": \"\",\n  \"listSource\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/remarketingLists?id="

	payload := strings.NewReader("{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"description\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lifeSpan\": \"\",\n  \"listPopulationRule\": {\n    \"floodlightActivityId\": \"\",\n    \"floodlightActivityName\": \"\",\n    \"listPopulationClauses\": [\n      {\n        \"terms\": [\n          {\n            \"contains\": false,\n            \"negation\": false,\n            \"operator\": \"\",\n            \"remarketingListId\": \"\",\n            \"type\": \"\",\n            \"value\": \"\",\n            \"variableFriendlyName\": \"\",\n            \"variableName\": \"\"\n          }\n        ]\n      }\n    ]\n  },\n  \"listSize\": \"\",\n  \"listSource\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\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/userprofiles/:profileId/remarketingLists?id= HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 798

{
  "accountId": "",
  "active": false,
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "description": "",
  "id": "",
  "kind": "",
  "lifeSpan": "",
  "listPopulationRule": {
    "floodlightActivityId": "",
    "floodlightActivityName": "",
    "listPopulationClauses": [
      {
        "terms": [
          {
            "contains": false,
            "negation": false,
            "operator": "",
            "remarketingListId": "",
            "type": "",
            "value": "",
            "variableFriendlyName": "",
            "variableName": ""
          }
        ]
      }
    ]
  },
  "listSize": "",
  "listSource": "",
  "name": "",
  "subaccountId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/userprofiles/:profileId/remarketingLists?id=")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"description\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lifeSpan\": \"\",\n  \"listPopulationRule\": {\n    \"floodlightActivityId\": \"\",\n    \"floodlightActivityName\": \"\",\n    \"listPopulationClauses\": [\n      {\n        \"terms\": [\n          {\n            \"contains\": false,\n            \"negation\": false,\n            \"operator\": \"\",\n            \"remarketingListId\": \"\",\n            \"type\": \"\",\n            \"value\": \"\",\n            \"variableFriendlyName\": \"\",\n            \"variableName\": \"\"\n          }\n        ]\n      }\n    ]\n  },\n  \"listSize\": \"\",\n  \"listSource\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/remarketingLists?id="))
    .header("content-type", "application/json")
    .method("PATCH", HttpRequest.BodyPublishers.ofString("{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"description\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lifeSpan\": \"\",\n  \"listPopulationRule\": {\n    \"floodlightActivityId\": \"\",\n    \"floodlightActivityName\": \"\",\n    \"listPopulationClauses\": [\n      {\n        \"terms\": [\n          {\n            \"contains\": false,\n            \"negation\": false,\n            \"operator\": \"\",\n            \"remarketingListId\": \"\",\n            \"type\": \"\",\n            \"value\": \"\",\n            \"variableFriendlyName\": \"\",\n            \"variableName\": \"\"\n          }\n        ]\n      }\n    ]\n  },\n  \"listSize\": \"\",\n  \"listSource\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\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  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"description\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lifeSpan\": \"\",\n  \"listPopulationRule\": {\n    \"floodlightActivityId\": \"\",\n    \"floodlightActivityName\": \"\",\n    \"listPopulationClauses\": [\n      {\n        \"terms\": [\n          {\n            \"contains\": false,\n            \"negation\": false,\n            \"operator\": \"\",\n            \"remarketingListId\": \"\",\n            \"type\": \"\",\n            \"value\": \"\",\n            \"variableFriendlyName\": \"\",\n            \"variableName\": \"\"\n          }\n        ]\n      }\n    ]\n  },\n  \"listSize\": \"\",\n  \"listSource\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/remarketingLists?id=")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/userprofiles/:profileId/remarketingLists?id=")
  .header("content-type", "application/json")
  .body("{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"description\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lifeSpan\": \"\",\n  \"listPopulationRule\": {\n    \"floodlightActivityId\": \"\",\n    \"floodlightActivityName\": \"\",\n    \"listPopulationClauses\": [\n      {\n        \"terms\": [\n          {\n            \"contains\": false,\n            \"negation\": false,\n            \"operator\": \"\",\n            \"remarketingListId\": \"\",\n            \"type\": \"\",\n            \"value\": \"\",\n            \"variableFriendlyName\": \"\",\n            \"variableName\": \"\"\n          }\n        ]\n      }\n    ]\n  },\n  \"listSize\": \"\",\n  \"listSource\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  accountId: '',
  active: false,
  advertiserId: '',
  advertiserIdDimensionValue: {
    dimensionName: '',
    etag: '',
    id: '',
    kind: '',
    matchType: '',
    value: ''
  },
  description: '',
  id: '',
  kind: '',
  lifeSpan: '',
  listPopulationRule: {
    floodlightActivityId: '',
    floodlightActivityName: '',
    listPopulationClauses: [
      {
        terms: [
          {
            contains: false,
            negation: false,
            operator: '',
            remarketingListId: '',
            type: '',
            value: '',
            variableFriendlyName: '',
            variableName: ''
          }
        ]
      }
    ]
  },
  listSize: '',
  listSource: '',
  name: '',
  subaccountId: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PATCH', '{{baseUrl}}/userprofiles/:profileId/remarketingLists?id=');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/userprofiles/:profileId/remarketingLists',
  params: {id: ''},
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    active: false,
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    description: '',
    id: '',
    kind: '',
    lifeSpan: '',
    listPopulationRule: {
      floodlightActivityId: '',
      floodlightActivityName: '',
      listPopulationClauses: [
        {
          terms: [
            {
              contains: false,
              negation: false,
              operator: '',
              remarketingListId: '',
              type: '',
              value: '',
              variableFriendlyName: '',
              variableName: ''
            }
          ]
        }
      ]
    },
    listSize: '',
    listSource: '',
    name: '',
    subaccountId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/remarketingLists?id=';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","active":false,"advertiserId":"","advertiserIdDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"description":"","id":"","kind":"","lifeSpan":"","listPopulationRule":{"floodlightActivityId":"","floodlightActivityName":"","listPopulationClauses":[{"terms":[{"contains":false,"negation":false,"operator":"","remarketingListId":"","type":"","value":"","variableFriendlyName":"","variableName":""}]}]},"listSize":"","listSource":"","name":"","subaccountId":""}'
};

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}}/userprofiles/:profileId/remarketingLists?id=',
  method: 'PATCH',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "accountId": "",\n  "active": false,\n  "advertiserId": "",\n  "advertiserIdDimensionValue": {\n    "dimensionName": "",\n    "etag": "",\n    "id": "",\n    "kind": "",\n    "matchType": "",\n    "value": ""\n  },\n  "description": "",\n  "id": "",\n  "kind": "",\n  "lifeSpan": "",\n  "listPopulationRule": {\n    "floodlightActivityId": "",\n    "floodlightActivityName": "",\n    "listPopulationClauses": [\n      {\n        "terms": [\n          {\n            "contains": false,\n            "negation": false,\n            "operator": "",\n            "remarketingListId": "",\n            "type": "",\n            "value": "",\n            "variableFriendlyName": "",\n            "variableName": ""\n          }\n        ]\n      }\n    ]\n  },\n  "listSize": "",\n  "listSource": "",\n  "name": "",\n  "subaccountId": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"description\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lifeSpan\": \"\",\n  \"listPopulationRule\": {\n    \"floodlightActivityId\": \"\",\n    \"floodlightActivityName\": \"\",\n    \"listPopulationClauses\": [\n      {\n        \"terms\": [\n          {\n            \"contains\": false,\n            \"negation\": false,\n            \"operator\": \"\",\n            \"remarketingListId\": \"\",\n            \"type\": \"\",\n            \"value\": \"\",\n            \"variableFriendlyName\": \"\",\n            \"variableName\": \"\"\n          }\n        ]\n      }\n    ]\n  },\n  \"listSize\": \"\",\n  \"listSource\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/remarketingLists?id=")
  .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/userprofiles/:profileId/remarketingLists?id=',
  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({
  accountId: '',
  active: false,
  advertiserId: '',
  advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
  description: '',
  id: '',
  kind: '',
  lifeSpan: '',
  listPopulationRule: {
    floodlightActivityId: '',
    floodlightActivityName: '',
    listPopulationClauses: [
      {
        terms: [
          {
            contains: false,
            negation: false,
            operator: '',
            remarketingListId: '',
            type: '',
            value: '',
            variableFriendlyName: '',
            variableName: ''
          }
        ]
      }
    ]
  },
  listSize: '',
  listSource: '',
  name: '',
  subaccountId: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/userprofiles/:profileId/remarketingLists',
  qs: {id: ''},
  headers: {'content-type': 'application/json'},
  body: {
    accountId: '',
    active: false,
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    description: '',
    id: '',
    kind: '',
    lifeSpan: '',
    listPopulationRule: {
      floodlightActivityId: '',
      floodlightActivityName: '',
      listPopulationClauses: [
        {
          terms: [
            {
              contains: false,
              negation: false,
              operator: '',
              remarketingListId: '',
              type: '',
              value: '',
              variableFriendlyName: '',
              variableName: ''
            }
          ]
        }
      ]
    },
    listSize: '',
    listSource: '',
    name: '',
    subaccountId: ''
  },
  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}}/userprofiles/:profileId/remarketingLists');

req.query({
  id: ''
});

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  accountId: '',
  active: false,
  advertiserId: '',
  advertiserIdDimensionValue: {
    dimensionName: '',
    etag: '',
    id: '',
    kind: '',
    matchType: '',
    value: ''
  },
  description: '',
  id: '',
  kind: '',
  lifeSpan: '',
  listPopulationRule: {
    floodlightActivityId: '',
    floodlightActivityName: '',
    listPopulationClauses: [
      {
        terms: [
          {
            contains: false,
            negation: false,
            operator: '',
            remarketingListId: '',
            type: '',
            value: '',
            variableFriendlyName: '',
            variableName: ''
          }
        ]
      }
    ]
  },
  listSize: '',
  listSource: '',
  name: '',
  subaccountId: ''
});

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}}/userprofiles/:profileId/remarketingLists',
  params: {id: ''},
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    active: false,
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    description: '',
    id: '',
    kind: '',
    lifeSpan: '',
    listPopulationRule: {
      floodlightActivityId: '',
      floodlightActivityName: '',
      listPopulationClauses: [
        {
          terms: [
            {
              contains: false,
              negation: false,
              operator: '',
              remarketingListId: '',
              type: '',
              value: '',
              variableFriendlyName: '',
              variableName: ''
            }
          ]
        }
      ]
    },
    listSize: '',
    listSource: '',
    name: '',
    subaccountId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/remarketingLists?id=';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","active":false,"advertiserId":"","advertiserIdDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"description":"","id":"","kind":"","lifeSpan":"","listPopulationRule":{"floodlightActivityId":"","floodlightActivityName":"","listPopulationClauses":[{"terms":[{"contains":false,"negation":false,"operator":"","remarketingListId":"","type":"","value":"","variableFriendlyName":"","variableName":""}]}]},"listSize":"","listSource":"","name":"","subaccountId":""}'
};

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 = @{ @"accountId": @"",
                              @"active": @NO,
                              @"advertiserId": @"",
                              @"advertiserIdDimensionValue": @{ @"dimensionName": @"", @"etag": @"", @"id": @"", @"kind": @"", @"matchType": @"", @"value": @"" },
                              @"description": @"",
                              @"id": @"",
                              @"kind": @"",
                              @"lifeSpan": @"",
                              @"listPopulationRule": @{ @"floodlightActivityId": @"", @"floodlightActivityName": @"", @"listPopulationClauses": @[ @{ @"terms": @[ @{ @"contains": @NO, @"negation": @NO, @"operator": @"", @"remarketingListId": @"", @"type": @"", @"value": @"", @"variableFriendlyName": @"", @"variableName": @"" } ] } ] },
                              @"listSize": @"",
                              @"listSource": @"",
                              @"name": @"",
                              @"subaccountId": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/userprofiles/:profileId/remarketingLists?id="]
                                                       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}}/userprofiles/:profileId/remarketingLists?id=" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"description\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lifeSpan\": \"\",\n  \"listPopulationRule\": {\n    \"floodlightActivityId\": \"\",\n    \"floodlightActivityName\": \"\",\n    \"listPopulationClauses\": [\n      {\n        \"terms\": [\n          {\n            \"contains\": false,\n            \"negation\": false,\n            \"operator\": \"\",\n            \"remarketingListId\": \"\",\n            \"type\": \"\",\n            \"value\": \"\",\n            \"variableFriendlyName\": \"\",\n            \"variableName\": \"\"\n          }\n        ]\n      }\n    ]\n  },\n  \"listSize\": \"\",\n  \"listSource\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}" in

Client.call ~headers ~body `PATCH uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/remarketingLists?id=",
  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([
    'accountId' => '',
    'active' => null,
    'advertiserId' => '',
    'advertiserIdDimensionValue' => [
        'dimensionName' => '',
        'etag' => '',
        'id' => '',
        'kind' => '',
        'matchType' => '',
        'value' => ''
    ],
    'description' => '',
    'id' => '',
    'kind' => '',
    'lifeSpan' => '',
    'listPopulationRule' => [
        'floodlightActivityId' => '',
        'floodlightActivityName' => '',
        'listPopulationClauses' => [
                [
                                'terms' => [
                                                                [
                                                                                                                                'contains' => null,
                                                                                                                                'negation' => null,
                                                                                                                                'operator' => '',
                                                                                                                                'remarketingListId' => '',
                                                                                                                                'type' => '',
                                                                                                                                'value' => '',
                                                                                                                                'variableFriendlyName' => '',
                                                                                                                                'variableName' => ''
                                                                ]
                                ]
                ]
        ]
    ],
    'listSize' => '',
    'listSource' => '',
    'name' => '',
    'subaccountId' => ''
  ]),
  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}}/userprofiles/:profileId/remarketingLists?id=', [
  'body' => '{
  "accountId": "",
  "active": false,
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "description": "",
  "id": "",
  "kind": "",
  "lifeSpan": "",
  "listPopulationRule": {
    "floodlightActivityId": "",
    "floodlightActivityName": "",
    "listPopulationClauses": [
      {
        "terms": [
          {
            "contains": false,
            "negation": false,
            "operator": "",
            "remarketingListId": "",
            "type": "",
            "value": "",
            "variableFriendlyName": "",
            "variableName": ""
          }
        ]
      }
    ]
  },
  "listSize": "",
  "listSource": "",
  "name": "",
  "subaccountId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/remarketingLists');
$request->setMethod(HttpRequest::HTTP_METH_PATCH);

$request->setQueryData([
  'id' => ''
]);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'accountId' => '',
  'active' => null,
  'advertiserId' => '',
  'advertiserIdDimensionValue' => [
    'dimensionName' => '',
    'etag' => '',
    'id' => '',
    'kind' => '',
    'matchType' => '',
    'value' => ''
  ],
  'description' => '',
  'id' => '',
  'kind' => '',
  'lifeSpan' => '',
  'listPopulationRule' => [
    'floodlightActivityId' => '',
    'floodlightActivityName' => '',
    'listPopulationClauses' => [
        [
                'terms' => [
                                [
                                                                'contains' => null,
                                                                'negation' => null,
                                                                'operator' => '',
                                                                'remarketingListId' => '',
                                                                'type' => '',
                                                                'value' => '',
                                                                'variableFriendlyName' => '',
                                                                'variableName' => ''
                                ]
                ]
        ]
    ]
  ],
  'listSize' => '',
  'listSource' => '',
  'name' => '',
  'subaccountId' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'accountId' => '',
  'active' => null,
  'advertiserId' => '',
  'advertiserIdDimensionValue' => [
    'dimensionName' => '',
    'etag' => '',
    'id' => '',
    'kind' => '',
    'matchType' => '',
    'value' => ''
  ],
  'description' => '',
  'id' => '',
  'kind' => '',
  'lifeSpan' => '',
  'listPopulationRule' => [
    'floodlightActivityId' => '',
    'floodlightActivityName' => '',
    'listPopulationClauses' => [
        [
                'terms' => [
                                [
                                                                'contains' => null,
                                                                'negation' => null,
                                                                'operator' => '',
                                                                'remarketingListId' => '',
                                                                'type' => '',
                                                                'value' => '',
                                                                'variableFriendlyName' => '',
                                                                'variableName' => ''
                                ]
                ]
        ]
    ]
  ],
  'listSize' => '',
  'listSource' => '',
  'name' => '',
  'subaccountId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/userprofiles/:profileId/remarketingLists');
$request->setRequestMethod('PATCH');
$request->setBody($body);

$request->setQuery(new http\QueryString([
  'id' => ''
]));

$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}}/userprofiles/:profileId/remarketingLists?id=' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "active": false,
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "description": "",
  "id": "",
  "kind": "",
  "lifeSpan": "",
  "listPopulationRule": {
    "floodlightActivityId": "",
    "floodlightActivityName": "",
    "listPopulationClauses": [
      {
        "terms": [
          {
            "contains": false,
            "negation": false,
            "operator": "",
            "remarketingListId": "",
            "type": "",
            "value": "",
            "variableFriendlyName": "",
            "variableName": ""
          }
        ]
      }
    ]
  },
  "listSize": "",
  "listSource": "",
  "name": "",
  "subaccountId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/remarketingLists?id=' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "active": false,
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "description": "",
  "id": "",
  "kind": "",
  "lifeSpan": "",
  "listPopulationRule": {
    "floodlightActivityId": "",
    "floodlightActivityName": "",
    "listPopulationClauses": [
      {
        "terms": [
          {
            "contains": false,
            "negation": false,
            "operator": "",
            "remarketingListId": "",
            "type": "",
            "value": "",
            "variableFriendlyName": "",
            "variableName": ""
          }
        ]
      }
    ]
  },
  "listSize": "",
  "listSource": "",
  "name": "",
  "subaccountId": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"description\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lifeSpan\": \"\",\n  \"listPopulationRule\": {\n    \"floodlightActivityId\": \"\",\n    \"floodlightActivityName\": \"\",\n    \"listPopulationClauses\": [\n      {\n        \"terms\": [\n          {\n            \"contains\": false,\n            \"negation\": false,\n            \"operator\": \"\",\n            \"remarketingListId\": \"\",\n            \"type\": \"\",\n            \"value\": \"\",\n            \"variableFriendlyName\": \"\",\n            \"variableName\": \"\"\n          }\n        ]\n      }\n    ]\n  },\n  \"listSize\": \"\",\n  \"listSource\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("PATCH", "/baseUrl/userprofiles/:profileId/remarketingLists?id=", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/remarketingLists"

querystring = {"id":""}

payload = {
    "accountId": "",
    "active": False,
    "advertiserId": "",
    "advertiserIdDimensionValue": {
        "dimensionName": "",
        "etag": "",
        "id": "",
        "kind": "",
        "matchType": "",
        "value": ""
    },
    "description": "",
    "id": "",
    "kind": "",
    "lifeSpan": "",
    "listPopulationRule": {
        "floodlightActivityId": "",
        "floodlightActivityName": "",
        "listPopulationClauses": [{ "terms": [
                    {
                        "contains": False,
                        "negation": False,
                        "operator": "",
                        "remarketingListId": "",
                        "type": "",
                        "value": "",
                        "variableFriendlyName": "",
                        "variableName": ""
                    }
                ] }]
    },
    "listSize": "",
    "listSource": "",
    "name": "",
    "subaccountId": ""
}
headers = {"content-type": "application/json"}

response = requests.patch(url, json=payload, headers=headers, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/remarketingLists"

queryString <- list(id = "")

payload <- "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"description\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lifeSpan\": \"\",\n  \"listPopulationRule\": {\n    \"floodlightActivityId\": \"\",\n    \"floodlightActivityName\": \"\",\n    \"listPopulationClauses\": [\n      {\n        \"terms\": [\n          {\n            \"contains\": false,\n            \"negation\": false,\n            \"operator\": \"\",\n            \"remarketingListId\": \"\",\n            \"type\": \"\",\n            \"value\": \"\",\n            \"variableFriendlyName\": \"\",\n            \"variableName\": \"\"\n          }\n        ]\n      }\n    ]\n  },\n  \"listSize\": \"\",\n  \"listSource\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}"

encode <- "json"

response <- VERB("PATCH", url, body = payload, query = queryString, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/remarketingLists?id=")

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  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"description\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lifeSpan\": \"\",\n  \"listPopulationRule\": {\n    \"floodlightActivityId\": \"\",\n    \"floodlightActivityName\": \"\",\n    \"listPopulationClauses\": [\n      {\n        \"terms\": [\n          {\n            \"contains\": false,\n            \"negation\": false,\n            \"operator\": \"\",\n            \"remarketingListId\": \"\",\n            \"type\": \"\",\n            \"value\": \"\",\n            \"variableFriendlyName\": \"\",\n            \"variableName\": \"\"\n          }\n        ]\n      }\n    ]\n  },\n  \"listSize\": \"\",\n  \"listSource\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\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/userprofiles/:profileId/remarketingLists') do |req|
  req.params['id'] = ''
  req.body = "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"description\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lifeSpan\": \"\",\n  \"listPopulationRule\": {\n    \"floodlightActivityId\": \"\",\n    \"floodlightActivityName\": \"\",\n    \"listPopulationClauses\": [\n      {\n        \"terms\": [\n          {\n            \"contains\": false,\n            \"negation\": false,\n            \"operator\": \"\",\n            \"remarketingListId\": \"\",\n            \"type\": \"\",\n            \"value\": \"\",\n            \"variableFriendlyName\": \"\",\n            \"variableName\": \"\"\n          }\n        ]\n      }\n    ]\n  },\n  \"listSize\": \"\",\n  \"listSource\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\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}}/userprofiles/:profileId/remarketingLists";

    let querystring = [
        ("id", ""),
    ];

    let payload = json!({
        "accountId": "",
        "active": false,
        "advertiserId": "",
        "advertiserIdDimensionValue": json!({
            "dimensionName": "",
            "etag": "",
            "id": "",
            "kind": "",
            "matchType": "",
            "value": ""
        }),
        "description": "",
        "id": "",
        "kind": "",
        "lifeSpan": "",
        "listPopulationRule": json!({
            "floodlightActivityId": "",
            "floodlightActivityName": "",
            "listPopulationClauses": (json!({"terms": (
                        json!({
                            "contains": false,
                            "negation": false,
                            "operator": "",
                            "remarketingListId": "",
                            "type": "",
                            "value": "",
                            "variableFriendlyName": "",
                            "variableName": ""
                        })
                    )}))
        }),
        "listSize": "",
        "listSource": "",
        "name": "",
        "subaccountId": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PATCH").unwrap(), url)
        .query(&querystring)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PATCH \
  --url '{{baseUrl}}/userprofiles/:profileId/remarketingLists?id=' \
  --header 'content-type: application/json' \
  --data '{
  "accountId": "",
  "active": false,
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "description": "",
  "id": "",
  "kind": "",
  "lifeSpan": "",
  "listPopulationRule": {
    "floodlightActivityId": "",
    "floodlightActivityName": "",
    "listPopulationClauses": [
      {
        "terms": [
          {
            "contains": false,
            "negation": false,
            "operator": "",
            "remarketingListId": "",
            "type": "",
            "value": "",
            "variableFriendlyName": "",
            "variableName": ""
          }
        ]
      }
    ]
  },
  "listSize": "",
  "listSource": "",
  "name": "",
  "subaccountId": ""
}'
echo '{
  "accountId": "",
  "active": false,
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "description": "",
  "id": "",
  "kind": "",
  "lifeSpan": "",
  "listPopulationRule": {
    "floodlightActivityId": "",
    "floodlightActivityName": "",
    "listPopulationClauses": [
      {
        "terms": [
          {
            "contains": false,
            "negation": false,
            "operator": "",
            "remarketingListId": "",
            "type": "",
            "value": "",
            "variableFriendlyName": "",
            "variableName": ""
          }
        ]
      }
    ]
  },
  "listSize": "",
  "listSource": "",
  "name": "",
  "subaccountId": ""
}' |  \
  http PATCH '{{baseUrl}}/userprofiles/:profileId/remarketingLists?id=' \
  content-type:application/json
wget --quiet \
  --method PATCH \
  --header 'content-type: application/json' \
  --body-data '{\n  "accountId": "",\n  "active": false,\n  "advertiserId": "",\n  "advertiserIdDimensionValue": {\n    "dimensionName": "",\n    "etag": "",\n    "id": "",\n    "kind": "",\n    "matchType": "",\n    "value": ""\n  },\n  "description": "",\n  "id": "",\n  "kind": "",\n  "lifeSpan": "",\n  "listPopulationRule": {\n    "floodlightActivityId": "",\n    "floodlightActivityName": "",\n    "listPopulationClauses": [\n      {\n        "terms": [\n          {\n            "contains": false,\n            "negation": false,\n            "operator": "",\n            "remarketingListId": "",\n            "type": "",\n            "value": "",\n            "variableFriendlyName": "",\n            "variableName": ""\n          }\n        ]\n      }\n    ]\n  },\n  "listSize": "",\n  "listSource": "",\n  "name": "",\n  "subaccountId": ""\n}' \
  --output-document \
  - '{{baseUrl}}/userprofiles/:profileId/remarketingLists?id='
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "accountId": "",
  "active": false,
  "advertiserId": "",
  "advertiserIdDimensionValue": [
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  ],
  "description": "",
  "id": "",
  "kind": "",
  "lifeSpan": "",
  "listPopulationRule": [
    "floodlightActivityId": "",
    "floodlightActivityName": "",
    "listPopulationClauses": [["terms": [
          [
            "contains": false,
            "negation": false,
            "operator": "",
            "remarketingListId": "",
            "type": "",
            "value": "",
            "variableFriendlyName": "",
            "variableName": ""
          ]
        ]]]
  ],
  "listSize": "",
  "listSource": "",
  "name": "",
  "subaccountId": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/remarketingLists?id=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PATCH"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
PUT dfareporting.remarketingLists.update
{{baseUrl}}/userprofiles/:profileId/remarketingLists
QUERY PARAMS

profileId
BODY json

{
  "accountId": "",
  "active": false,
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "description": "",
  "id": "",
  "kind": "",
  "lifeSpan": "",
  "listPopulationRule": {
    "floodlightActivityId": "",
    "floodlightActivityName": "",
    "listPopulationClauses": [
      {
        "terms": [
          {
            "contains": false,
            "negation": false,
            "operator": "",
            "remarketingListId": "",
            "type": "",
            "value": "",
            "variableFriendlyName": "",
            "variableName": ""
          }
        ]
      }
    ]
  },
  "listSize": "",
  "listSource": "",
  "name": "",
  "subaccountId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/remarketingLists");

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  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"description\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lifeSpan\": \"\",\n  \"listPopulationRule\": {\n    \"floodlightActivityId\": \"\",\n    \"floodlightActivityName\": \"\",\n    \"listPopulationClauses\": [\n      {\n        \"terms\": [\n          {\n            \"contains\": false,\n            \"negation\": false,\n            \"operator\": \"\",\n            \"remarketingListId\": \"\",\n            \"type\": \"\",\n            \"value\": \"\",\n            \"variableFriendlyName\": \"\",\n            \"variableName\": \"\"\n          }\n        ]\n      }\n    ]\n  },\n  \"listSize\": \"\",\n  \"listSource\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/userprofiles/:profileId/remarketingLists" {:content-type :json
                                                                                    :form-params {:accountId ""
                                                                                                  :active false
                                                                                                  :advertiserId ""
                                                                                                  :advertiserIdDimensionValue {:dimensionName ""
                                                                                                                               :etag ""
                                                                                                                               :id ""
                                                                                                                               :kind ""
                                                                                                                               :matchType ""
                                                                                                                               :value ""}
                                                                                                  :description ""
                                                                                                  :id ""
                                                                                                  :kind ""
                                                                                                  :lifeSpan ""
                                                                                                  :listPopulationRule {:floodlightActivityId ""
                                                                                                                       :floodlightActivityName ""
                                                                                                                       :listPopulationClauses [{:terms [{:contains false
                                                                                                                                                         :negation false
                                                                                                                                                         :operator ""
                                                                                                                                                         :remarketingListId ""
                                                                                                                                                         :type ""
                                                                                                                                                         :value ""
                                                                                                                                                         :variableFriendlyName ""
                                                                                                                                                         :variableName ""}]}]}
                                                                                                  :listSize ""
                                                                                                  :listSource ""
                                                                                                  :name ""
                                                                                                  :subaccountId ""}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/remarketingLists"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"description\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lifeSpan\": \"\",\n  \"listPopulationRule\": {\n    \"floodlightActivityId\": \"\",\n    \"floodlightActivityName\": \"\",\n    \"listPopulationClauses\": [\n      {\n        \"terms\": [\n          {\n            \"contains\": false,\n            \"negation\": false,\n            \"operator\": \"\",\n            \"remarketingListId\": \"\",\n            \"type\": \"\",\n            \"value\": \"\",\n            \"variableFriendlyName\": \"\",\n            \"variableName\": \"\"\n          }\n        ]\n      }\n    ]\n  },\n  \"listSize\": \"\",\n  \"listSource\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/userprofiles/:profileId/remarketingLists"),
    Content = new StringContent("{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"description\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lifeSpan\": \"\",\n  \"listPopulationRule\": {\n    \"floodlightActivityId\": \"\",\n    \"floodlightActivityName\": \"\",\n    \"listPopulationClauses\": [\n      {\n        \"terms\": [\n          {\n            \"contains\": false,\n            \"negation\": false,\n            \"operator\": \"\",\n            \"remarketingListId\": \"\",\n            \"type\": \"\",\n            \"value\": \"\",\n            \"variableFriendlyName\": \"\",\n            \"variableName\": \"\"\n          }\n        ]\n      }\n    ]\n  },\n  \"listSize\": \"\",\n  \"listSource\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\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}}/userprofiles/:profileId/remarketingLists");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"description\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lifeSpan\": \"\",\n  \"listPopulationRule\": {\n    \"floodlightActivityId\": \"\",\n    \"floodlightActivityName\": \"\",\n    \"listPopulationClauses\": [\n      {\n        \"terms\": [\n          {\n            \"contains\": false,\n            \"negation\": false,\n            \"operator\": \"\",\n            \"remarketingListId\": \"\",\n            \"type\": \"\",\n            \"value\": \"\",\n            \"variableFriendlyName\": \"\",\n            \"variableName\": \"\"\n          }\n        ]\n      }\n    ]\n  },\n  \"listSize\": \"\",\n  \"listSource\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/remarketingLists"

	payload := strings.NewReader("{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"description\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lifeSpan\": \"\",\n  \"listPopulationRule\": {\n    \"floodlightActivityId\": \"\",\n    \"floodlightActivityName\": \"\",\n    \"listPopulationClauses\": [\n      {\n        \"terms\": [\n          {\n            \"contains\": false,\n            \"negation\": false,\n            \"operator\": \"\",\n            \"remarketingListId\": \"\",\n            \"type\": \"\",\n            \"value\": \"\",\n            \"variableFriendlyName\": \"\",\n            \"variableName\": \"\"\n          }\n        ]\n      }\n    ]\n  },\n  \"listSize\": \"\",\n  \"listSource\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/userprofiles/:profileId/remarketingLists HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 798

{
  "accountId": "",
  "active": false,
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "description": "",
  "id": "",
  "kind": "",
  "lifeSpan": "",
  "listPopulationRule": {
    "floodlightActivityId": "",
    "floodlightActivityName": "",
    "listPopulationClauses": [
      {
        "terms": [
          {
            "contains": false,
            "negation": false,
            "operator": "",
            "remarketingListId": "",
            "type": "",
            "value": "",
            "variableFriendlyName": "",
            "variableName": ""
          }
        ]
      }
    ]
  },
  "listSize": "",
  "listSource": "",
  "name": "",
  "subaccountId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/userprofiles/:profileId/remarketingLists")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"description\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lifeSpan\": \"\",\n  \"listPopulationRule\": {\n    \"floodlightActivityId\": \"\",\n    \"floodlightActivityName\": \"\",\n    \"listPopulationClauses\": [\n      {\n        \"terms\": [\n          {\n            \"contains\": false,\n            \"negation\": false,\n            \"operator\": \"\",\n            \"remarketingListId\": \"\",\n            \"type\": \"\",\n            \"value\": \"\",\n            \"variableFriendlyName\": \"\",\n            \"variableName\": \"\"\n          }\n        ]\n      }\n    ]\n  },\n  \"listSize\": \"\",\n  \"listSource\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/remarketingLists"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"description\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lifeSpan\": \"\",\n  \"listPopulationRule\": {\n    \"floodlightActivityId\": \"\",\n    \"floodlightActivityName\": \"\",\n    \"listPopulationClauses\": [\n      {\n        \"terms\": [\n          {\n            \"contains\": false,\n            \"negation\": false,\n            \"operator\": \"\",\n            \"remarketingListId\": \"\",\n            \"type\": \"\",\n            \"value\": \"\",\n            \"variableFriendlyName\": \"\",\n            \"variableName\": \"\"\n          }\n        ]\n      }\n    ]\n  },\n  \"listSize\": \"\",\n  \"listSource\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\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  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"description\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lifeSpan\": \"\",\n  \"listPopulationRule\": {\n    \"floodlightActivityId\": \"\",\n    \"floodlightActivityName\": \"\",\n    \"listPopulationClauses\": [\n      {\n        \"terms\": [\n          {\n            \"contains\": false,\n            \"negation\": false,\n            \"operator\": \"\",\n            \"remarketingListId\": \"\",\n            \"type\": \"\",\n            \"value\": \"\",\n            \"variableFriendlyName\": \"\",\n            \"variableName\": \"\"\n          }\n        ]\n      }\n    ]\n  },\n  \"listSize\": \"\",\n  \"listSource\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/remarketingLists")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/userprofiles/:profileId/remarketingLists")
  .header("content-type", "application/json")
  .body("{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"description\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lifeSpan\": \"\",\n  \"listPopulationRule\": {\n    \"floodlightActivityId\": \"\",\n    \"floodlightActivityName\": \"\",\n    \"listPopulationClauses\": [\n      {\n        \"terms\": [\n          {\n            \"contains\": false,\n            \"negation\": false,\n            \"operator\": \"\",\n            \"remarketingListId\": \"\",\n            \"type\": \"\",\n            \"value\": \"\",\n            \"variableFriendlyName\": \"\",\n            \"variableName\": \"\"\n          }\n        ]\n      }\n    ]\n  },\n  \"listSize\": \"\",\n  \"listSource\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  accountId: '',
  active: false,
  advertiserId: '',
  advertiserIdDimensionValue: {
    dimensionName: '',
    etag: '',
    id: '',
    kind: '',
    matchType: '',
    value: ''
  },
  description: '',
  id: '',
  kind: '',
  lifeSpan: '',
  listPopulationRule: {
    floodlightActivityId: '',
    floodlightActivityName: '',
    listPopulationClauses: [
      {
        terms: [
          {
            contains: false,
            negation: false,
            operator: '',
            remarketingListId: '',
            type: '',
            value: '',
            variableFriendlyName: '',
            variableName: ''
          }
        ]
      }
    ]
  },
  listSize: '',
  listSource: '',
  name: '',
  subaccountId: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/userprofiles/:profileId/remarketingLists');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/userprofiles/:profileId/remarketingLists',
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    active: false,
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    description: '',
    id: '',
    kind: '',
    lifeSpan: '',
    listPopulationRule: {
      floodlightActivityId: '',
      floodlightActivityName: '',
      listPopulationClauses: [
        {
          terms: [
            {
              contains: false,
              negation: false,
              operator: '',
              remarketingListId: '',
              type: '',
              value: '',
              variableFriendlyName: '',
              variableName: ''
            }
          ]
        }
      ]
    },
    listSize: '',
    listSource: '',
    name: '',
    subaccountId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/remarketingLists';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","active":false,"advertiserId":"","advertiserIdDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"description":"","id":"","kind":"","lifeSpan":"","listPopulationRule":{"floodlightActivityId":"","floodlightActivityName":"","listPopulationClauses":[{"terms":[{"contains":false,"negation":false,"operator":"","remarketingListId":"","type":"","value":"","variableFriendlyName":"","variableName":""}]}]},"listSize":"","listSource":"","name":"","subaccountId":""}'
};

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}}/userprofiles/:profileId/remarketingLists',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "accountId": "",\n  "active": false,\n  "advertiserId": "",\n  "advertiserIdDimensionValue": {\n    "dimensionName": "",\n    "etag": "",\n    "id": "",\n    "kind": "",\n    "matchType": "",\n    "value": ""\n  },\n  "description": "",\n  "id": "",\n  "kind": "",\n  "lifeSpan": "",\n  "listPopulationRule": {\n    "floodlightActivityId": "",\n    "floodlightActivityName": "",\n    "listPopulationClauses": [\n      {\n        "terms": [\n          {\n            "contains": false,\n            "negation": false,\n            "operator": "",\n            "remarketingListId": "",\n            "type": "",\n            "value": "",\n            "variableFriendlyName": "",\n            "variableName": ""\n          }\n        ]\n      }\n    ]\n  },\n  "listSize": "",\n  "listSource": "",\n  "name": "",\n  "subaccountId": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"description\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lifeSpan\": \"\",\n  \"listPopulationRule\": {\n    \"floodlightActivityId\": \"\",\n    \"floodlightActivityName\": \"\",\n    \"listPopulationClauses\": [\n      {\n        \"terms\": [\n          {\n            \"contains\": false,\n            \"negation\": false,\n            \"operator\": \"\",\n            \"remarketingListId\": \"\",\n            \"type\": \"\",\n            \"value\": \"\",\n            \"variableFriendlyName\": \"\",\n            \"variableName\": \"\"\n          }\n        ]\n      }\n    ]\n  },\n  \"listSize\": \"\",\n  \"listSource\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/remarketingLists")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/remarketingLists',
  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({
  accountId: '',
  active: false,
  advertiserId: '',
  advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
  description: '',
  id: '',
  kind: '',
  lifeSpan: '',
  listPopulationRule: {
    floodlightActivityId: '',
    floodlightActivityName: '',
    listPopulationClauses: [
      {
        terms: [
          {
            contains: false,
            negation: false,
            operator: '',
            remarketingListId: '',
            type: '',
            value: '',
            variableFriendlyName: '',
            variableName: ''
          }
        ]
      }
    ]
  },
  listSize: '',
  listSource: '',
  name: '',
  subaccountId: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/userprofiles/:profileId/remarketingLists',
  headers: {'content-type': 'application/json'},
  body: {
    accountId: '',
    active: false,
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    description: '',
    id: '',
    kind: '',
    lifeSpan: '',
    listPopulationRule: {
      floodlightActivityId: '',
      floodlightActivityName: '',
      listPopulationClauses: [
        {
          terms: [
            {
              contains: false,
              negation: false,
              operator: '',
              remarketingListId: '',
              type: '',
              value: '',
              variableFriendlyName: '',
              variableName: ''
            }
          ]
        }
      ]
    },
    listSize: '',
    listSource: '',
    name: '',
    subaccountId: ''
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/userprofiles/:profileId/remarketingLists');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  accountId: '',
  active: false,
  advertiserId: '',
  advertiserIdDimensionValue: {
    dimensionName: '',
    etag: '',
    id: '',
    kind: '',
    matchType: '',
    value: ''
  },
  description: '',
  id: '',
  kind: '',
  lifeSpan: '',
  listPopulationRule: {
    floodlightActivityId: '',
    floodlightActivityName: '',
    listPopulationClauses: [
      {
        terms: [
          {
            contains: false,
            negation: false,
            operator: '',
            remarketingListId: '',
            type: '',
            value: '',
            variableFriendlyName: '',
            variableName: ''
          }
        ]
      }
    ]
  },
  listSize: '',
  listSource: '',
  name: '',
  subaccountId: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/userprofiles/:profileId/remarketingLists',
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    active: false,
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    description: '',
    id: '',
    kind: '',
    lifeSpan: '',
    listPopulationRule: {
      floodlightActivityId: '',
      floodlightActivityName: '',
      listPopulationClauses: [
        {
          terms: [
            {
              contains: false,
              negation: false,
              operator: '',
              remarketingListId: '',
              type: '',
              value: '',
              variableFriendlyName: '',
              variableName: ''
            }
          ]
        }
      ]
    },
    listSize: '',
    listSource: '',
    name: '',
    subaccountId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/remarketingLists';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","active":false,"advertiserId":"","advertiserIdDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"description":"","id":"","kind":"","lifeSpan":"","listPopulationRule":{"floodlightActivityId":"","floodlightActivityName":"","listPopulationClauses":[{"terms":[{"contains":false,"negation":false,"operator":"","remarketingListId":"","type":"","value":"","variableFriendlyName":"","variableName":""}]}]},"listSize":"","listSource":"","name":"","subaccountId":""}'
};

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 = @{ @"accountId": @"",
                              @"active": @NO,
                              @"advertiserId": @"",
                              @"advertiserIdDimensionValue": @{ @"dimensionName": @"", @"etag": @"", @"id": @"", @"kind": @"", @"matchType": @"", @"value": @"" },
                              @"description": @"",
                              @"id": @"",
                              @"kind": @"",
                              @"lifeSpan": @"",
                              @"listPopulationRule": @{ @"floodlightActivityId": @"", @"floodlightActivityName": @"", @"listPopulationClauses": @[ @{ @"terms": @[ @{ @"contains": @NO, @"negation": @NO, @"operator": @"", @"remarketingListId": @"", @"type": @"", @"value": @"", @"variableFriendlyName": @"", @"variableName": @"" } ] } ] },
                              @"listSize": @"",
                              @"listSource": @"",
                              @"name": @"",
                              @"subaccountId": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/userprofiles/:profileId/remarketingLists"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/userprofiles/:profileId/remarketingLists" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"description\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lifeSpan\": \"\",\n  \"listPopulationRule\": {\n    \"floodlightActivityId\": \"\",\n    \"floodlightActivityName\": \"\",\n    \"listPopulationClauses\": [\n      {\n        \"terms\": [\n          {\n            \"contains\": false,\n            \"negation\": false,\n            \"operator\": \"\",\n            \"remarketingListId\": \"\",\n            \"type\": \"\",\n            \"value\": \"\",\n            \"variableFriendlyName\": \"\",\n            \"variableName\": \"\"\n          }\n        ]\n      }\n    ]\n  },\n  \"listSize\": \"\",\n  \"listSource\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/remarketingLists",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'accountId' => '',
    'active' => null,
    'advertiserId' => '',
    'advertiserIdDimensionValue' => [
        'dimensionName' => '',
        'etag' => '',
        'id' => '',
        'kind' => '',
        'matchType' => '',
        'value' => ''
    ],
    'description' => '',
    'id' => '',
    'kind' => '',
    'lifeSpan' => '',
    'listPopulationRule' => [
        'floodlightActivityId' => '',
        'floodlightActivityName' => '',
        'listPopulationClauses' => [
                [
                                'terms' => [
                                                                [
                                                                                                                                'contains' => null,
                                                                                                                                'negation' => null,
                                                                                                                                'operator' => '',
                                                                                                                                'remarketingListId' => '',
                                                                                                                                'type' => '',
                                                                                                                                'value' => '',
                                                                                                                                'variableFriendlyName' => '',
                                                                                                                                'variableName' => ''
                                                                ]
                                ]
                ]
        ]
    ],
    'listSize' => '',
    'listSource' => '',
    'name' => '',
    'subaccountId' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/userprofiles/:profileId/remarketingLists', [
  'body' => '{
  "accountId": "",
  "active": false,
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "description": "",
  "id": "",
  "kind": "",
  "lifeSpan": "",
  "listPopulationRule": {
    "floodlightActivityId": "",
    "floodlightActivityName": "",
    "listPopulationClauses": [
      {
        "terms": [
          {
            "contains": false,
            "negation": false,
            "operator": "",
            "remarketingListId": "",
            "type": "",
            "value": "",
            "variableFriendlyName": "",
            "variableName": ""
          }
        ]
      }
    ]
  },
  "listSize": "",
  "listSource": "",
  "name": "",
  "subaccountId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/remarketingLists');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'accountId' => '',
  'active' => null,
  'advertiserId' => '',
  'advertiserIdDimensionValue' => [
    'dimensionName' => '',
    'etag' => '',
    'id' => '',
    'kind' => '',
    'matchType' => '',
    'value' => ''
  ],
  'description' => '',
  'id' => '',
  'kind' => '',
  'lifeSpan' => '',
  'listPopulationRule' => [
    'floodlightActivityId' => '',
    'floodlightActivityName' => '',
    'listPopulationClauses' => [
        [
                'terms' => [
                                [
                                                                'contains' => null,
                                                                'negation' => null,
                                                                'operator' => '',
                                                                'remarketingListId' => '',
                                                                'type' => '',
                                                                'value' => '',
                                                                'variableFriendlyName' => '',
                                                                'variableName' => ''
                                ]
                ]
        ]
    ]
  ],
  'listSize' => '',
  'listSource' => '',
  'name' => '',
  'subaccountId' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'accountId' => '',
  'active' => null,
  'advertiserId' => '',
  'advertiserIdDimensionValue' => [
    'dimensionName' => '',
    'etag' => '',
    'id' => '',
    'kind' => '',
    'matchType' => '',
    'value' => ''
  ],
  'description' => '',
  'id' => '',
  'kind' => '',
  'lifeSpan' => '',
  'listPopulationRule' => [
    'floodlightActivityId' => '',
    'floodlightActivityName' => '',
    'listPopulationClauses' => [
        [
                'terms' => [
                                [
                                                                'contains' => null,
                                                                'negation' => null,
                                                                'operator' => '',
                                                                'remarketingListId' => '',
                                                                'type' => '',
                                                                'value' => '',
                                                                'variableFriendlyName' => '',
                                                                'variableName' => ''
                                ]
                ]
        ]
    ]
  ],
  'listSize' => '',
  'listSource' => '',
  'name' => '',
  'subaccountId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/userprofiles/:profileId/remarketingLists');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/remarketingLists' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "active": false,
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "description": "",
  "id": "",
  "kind": "",
  "lifeSpan": "",
  "listPopulationRule": {
    "floodlightActivityId": "",
    "floodlightActivityName": "",
    "listPopulationClauses": [
      {
        "terms": [
          {
            "contains": false,
            "negation": false,
            "operator": "",
            "remarketingListId": "",
            "type": "",
            "value": "",
            "variableFriendlyName": "",
            "variableName": ""
          }
        ]
      }
    ]
  },
  "listSize": "",
  "listSource": "",
  "name": "",
  "subaccountId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/remarketingLists' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "active": false,
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "description": "",
  "id": "",
  "kind": "",
  "lifeSpan": "",
  "listPopulationRule": {
    "floodlightActivityId": "",
    "floodlightActivityName": "",
    "listPopulationClauses": [
      {
        "terms": [
          {
            "contains": false,
            "negation": false,
            "operator": "",
            "remarketingListId": "",
            "type": "",
            "value": "",
            "variableFriendlyName": "",
            "variableName": ""
          }
        ]
      }
    ]
  },
  "listSize": "",
  "listSource": "",
  "name": "",
  "subaccountId": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"description\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lifeSpan\": \"\",\n  \"listPopulationRule\": {\n    \"floodlightActivityId\": \"\",\n    \"floodlightActivityName\": \"\",\n    \"listPopulationClauses\": [\n      {\n        \"terms\": [\n          {\n            \"contains\": false,\n            \"negation\": false,\n            \"operator\": \"\",\n            \"remarketingListId\": \"\",\n            \"type\": \"\",\n            \"value\": \"\",\n            \"variableFriendlyName\": \"\",\n            \"variableName\": \"\"\n          }\n        ]\n      }\n    ]\n  },\n  \"listSize\": \"\",\n  \"listSource\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/userprofiles/:profileId/remarketingLists", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/remarketingLists"

payload = {
    "accountId": "",
    "active": False,
    "advertiserId": "",
    "advertiserIdDimensionValue": {
        "dimensionName": "",
        "etag": "",
        "id": "",
        "kind": "",
        "matchType": "",
        "value": ""
    },
    "description": "",
    "id": "",
    "kind": "",
    "lifeSpan": "",
    "listPopulationRule": {
        "floodlightActivityId": "",
        "floodlightActivityName": "",
        "listPopulationClauses": [{ "terms": [
                    {
                        "contains": False,
                        "negation": False,
                        "operator": "",
                        "remarketingListId": "",
                        "type": "",
                        "value": "",
                        "variableFriendlyName": "",
                        "variableName": ""
                    }
                ] }]
    },
    "listSize": "",
    "listSource": "",
    "name": "",
    "subaccountId": ""
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/remarketingLists"

payload <- "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"description\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lifeSpan\": \"\",\n  \"listPopulationRule\": {\n    \"floodlightActivityId\": \"\",\n    \"floodlightActivityName\": \"\",\n    \"listPopulationClauses\": [\n      {\n        \"terms\": [\n          {\n            \"contains\": false,\n            \"negation\": false,\n            \"operator\": \"\",\n            \"remarketingListId\": \"\",\n            \"type\": \"\",\n            \"value\": \"\",\n            \"variableFriendlyName\": \"\",\n            \"variableName\": \"\"\n          }\n        ]\n      }\n    ]\n  },\n  \"listSize\": \"\",\n  \"listSource\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}"

encode <- "json"

response <- VERB("PUT", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/remarketingLists")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"description\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lifeSpan\": \"\",\n  \"listPopulationRule\": {\n    \"floodlightActivityId\": \"\",\n    \"floodlightActivityName\": \"\",\n    \"listPopulationClauses\": [\n      {\n        \"terms\": [\n          {\n            \"contains\": false,\n            \"negation\": false,\n            \"operator\": \"\",\n            \"remarketingListId\": \"\",\n            \"type\": \"\",\n            \"value\": \"\",\n            \"variableFriendlyName\": \"\",\n            \"variableName\": \"\"\n          }\n        ]\n      }\n    ]\n  },\n  \"listSize\": \"\",\n  \"listSource\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.put('/baseUrl/userprofiles/:profileId/remarketingLists') do |req|
  req.body = "{\n  \"accountId\": \"\",\n  \"active\": false,\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"description\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lifeSpan\": \"\",\n  \"listPopulationRule\": {\n    \"floodlightActivityId\": \"\",\n    \"floodlightActivityName\": \"\",\n    \"listPopulationClauses\": [\n      {\n        \"terms\": [\n          {\n            \"contains\": false,\n            \"negation\": false,\n            \"operator\": \"\",\n            \"remarketingListId\": \"\",\n            \"type\": \"\",\n            \"value\": \"\",\n            \"variableFriendlyName\": \"\",\n            \"variableName\": \"\"\n          }\n        ]\n      }\n    ]\n  },\n  \"listSize\": \"\",\n  \"listSource\": \"\",\n  \"name\": \"\",\n  \"subaccountId\": \"\"\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}}/userprofiles/:profileId/remarketingLists";

    let payload = json!({
        "accountId": "",
        "active": false,
        "advertiserId": "",
        "advertiserIdDimensionValue": json!({
            "dimensionName": "",
            "etag": "",
            "id": "",
            "kind": "",
            "matchType": "",
            "value": ""
        }),
        "description": "",
        "id": "",
        "kind": "",
        "lifeSpan": "",
        "listPopulationRule": json!({
            "floodlightActivityId": "",
            "floodlightActivityName": "",
            "listPopulationClauses": (json!({"terms": (
                        json!({
                            "contains": false,
                            "negation": false,
                            "operator": "",
                            "remarketingListId": "",
                            "type": "",
                            "value": "",
                            "variableFriendlyName": "",
                            "variableName": ""
                        })
                    )}))
        }),
        "listSize": "",
        "listSource": "",
        "name": "",
        "subaccountId": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/userprofiles/:profileId/remarketingLists \
  --header 'content-type: application/json' \
  --data '{
  "accountId": "",
  "active": false,
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "description": "",
  "id": "",
  "kind": "",
  "lifeSpan": "",
  "listPopulationRule": {
    "floodlightActivityId": "",
    "floodlightActivityName": "",
    "listPopulationClauses": [
      {
        "terms": [
          {
            "contains": false,
            "negation": false,
            "operator": "",
            "remarketingListId": "",
            "type": "",
            "value": "",
            "variableFriendlyName": "",
            "variableName": ""
          }
        ]
      }
    ]
  },
  "listSize": "",
  "listSource": "",
  "name": "",
  "subaccountId": ""
}'
echo '{
  "accountId": "",
  "active": false,
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "description": "",
  "id": "",
  "kind": "",
  "lifeSpan": "",
  "listPopulationRule": {
    "floodlightActivityId": "",
    "floodlightActivityName": "",
    "listPopulationClauses": [
      {
        "terms": [
          {
            "contains": false,
            "negation": false,
            "operator": "",
            "remarketingListId": "",
            "type": "",
            "value": "",
            "variableFriendlyName": "",
            "variableName": ""
          }
        ]
      }
    ]
  },
  "listSize": "",
  "listSource": "",
  "name": "",
  "subaccountId": ""
}' |  \
  http PUT {{baseUrl}}/userprofiles/:profileId/remarketingLists \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "accountId": "",\n  "active": false,\n  "advertiserId": "",\n  "advertiserIdDimensionValue": {\n    "dimensionName": "",\n    "etag": "",\n    "id": "",\n    "kind": "",\n    "matchType": "",\n    "value": ""\n  },\n  "description": "",\n  "id": "",\n  "kind": "",\n  "lifeSpan": "",\n  "listPopulationRule": {\n    "floodlightActivityId": "",\n    "floodlightActivityName": "",\n    "listPopulationClauses": [\n      {\n        "terms": [\n          {\n            "contains": false,\n            "negation": false,\n            "operator": "",\n            "remarketingListId": "",\n            "type": "",\n            "value": "",\n            "variableFriendlyName": "",\n            "variableName": ""\n          }\n        ]\n      }\n    ]\n  },\n  "listSize": "",\n  "listSource": "",\n  "name": "",\n  "subaccountId": ""\n}' \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/remarketingLists
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "accountId": "",
  "active": false,
  "advertiserId": "",
  "advertiserIdDimensionValue": [
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  ],
  "description": "",
  "id": "",
  "kind": "",
  "lifeSpan": "",
  "listPopulationRule": [
    "floodlightActivityId": "",
    "floodlightActivityName": "",
    "listPopulationClauses": [["terms": [
          [
            "contains": false,
            "negation": false,
            "operator": "",
            "remarketingListId": "",
            "type": "",
            "value": "",
            "variableFriendlyName": "",
            "variableName": ""
          ]
        ]]]
  ],
  "listSize": "",
  "listSource": "",
  "name": "",
  "subaccountId": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/remarketingLists")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET dfareporting.remarketingListShares.get
{{baseUrl}}/userprofiles/:profileId/remarketingListShares/:remarketingListId
QUERY PARAMS

profileId
remarketingListId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/remarketingListShares/:remarketingListId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/remarketingListShares/:remarketingListId")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/remarketingListShares/:remarketingListId"

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}}/userprofiles/:profileId/remarketingListShares/:remarketingListId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/remarketingListShares/:remarketingListId");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/remarketingListShares/:remarketingListId"

	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/userprofiles/:profileId/remarketingListShares/:remarketingListId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/remarketingListShares/:remarketingListId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/remarketingListShares/:remarketingListId"))
    .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}}/userprofiles/:profileId/remarketingListShares/:remarketingListId")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/remarketingListShares/:remarketingListId")
  .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}}/userprofiles/:profileId/remarketingListShares/:remarketingListId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/remarketingListShares/:remarketingListId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/remarketingListShares/:remarketingListId';
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}}/userprofiles/:profileId/remarketingListShares/:remarketingListId',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/remarketingListShares/:remarketingListId")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/remarketingListShares/:remarketingListId',
  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}}/userprofiles/:profileId/remarketingListShares/:remarketingListId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/remarketingListShares/:remarketingListId');

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}}/userprofiles/:profileId/remarketingListShares/:remarketingListId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/remarketingListShares/:remarketingListId';
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}}/userprofiles/:profileId/remarketingListShares/:remarketingListId"]
                                                       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}}/userprofiles/:profileId/remarketingListShares/:remarketingListId" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/remarketingListShares/:remarketingListId",
  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}}/userprofiles/:profileId/remarketingListShares/:remarketingListId');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/remarketingListShares/:remarketingListId');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/remarketingListShares/:remarketingListId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/remarketingListShares/:remarketingListId' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/remarketingListShares/:remarketingListId' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/remarketingListShares/:remarketingListId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/remarketingListShares/:remarketingListId"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/remarketingListShares/:remarketingListId"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/remarketingListShares/:remarketingListId")

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/userprofiles/:profileId/remarketingListShares/:remarketingListId') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/remarketingListShares/:remarketingListId";

    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}}/userprofiles/:profileId/remarketingListShares/:remarketingListId
http GET {{baseUrl}}/userprofiles/:profileId/remarketingListShares/:remarketingListId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/remarketingListShares/:remarketingListId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/remarketingListShares/:remarketingListId")! 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 dfareporting.remarketingListShares.patch
{{baseUrl}}/userprofiles/:profileId/remarketingListShares
QUERY PARAMS

id
profileId
BODY json

{
  "kind": "",
  "remarketingListId": "",
  "sharedAccountIds": [],
  "sharedAdvertiserIds": []
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/remarketingListShares?id=");

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  \"kind\": \"\",\n  \"remarketingListId\": \"\",\n  \"sharedAccountIds\": [],\n  \"sharedAdvertiserIds\": []\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/patch "{{baseUrl}}/userprofiles/:profileId/remarketingListShares" {:query-params {:id ""}
                                                                                           :content-type :json
                                                                                           :form-params {:kind ""
                                                                                                         :remarketingListId ""
                                                                                                         :sharedAccountIds []
                                                                                                         :sharedAdvertiserIds []}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/remarketingListShares?id="
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"kind\": \"\",\n  \"remarketingListId\": \"\",\n  \"sharedAccountIds\": [],\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}}/userprofiles/:profileId/remarketingListShares?id="),
    Content = new StringContent("{\n  \"kind\": \"\",\n  \"remarketingListId\": \"\",\n  \"sharedAccountIds\": [],\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}}/userprofiles/:profileId/remarketingListShares?id=");
var request = new RestRequest("", Method.Patch);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"kind\": \"\",\n  \"remarketingListId\": \"\",\n  \"sharedAccountIds\": [],\n  \"sharedAdvertiserIds\": []\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/remarketingListShares?id="

	payload := strings.NewReader("{\n  \"kind\": \"\",\n  \"remarketingListId\": \"\",\n  \"sharedAccountIds\": [],\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/userprofiles/:profileId/remarketingListShares?id= HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 98

{
  "kind": "",
  "remarketingListId": "",
  "sharedAccountIds": [],
  "sharedAdvertiserIds": []
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/userprofiles/:profileId/remarketingListShares?id=")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"kind\": \"\",\n  \"remarketingListId\": \"\",\n  \"sharedAccountIds\": [],\n  \"sharedAdvertiserIds\": []\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/remarketingListShares?id="))
    .header("content-type", "application/json")
    .method("PATCH", HttpRequest.BodyPublishers.ofString("{\n  \"kind\": \"\",\n  \"remarketingListId\": \"\",\n  \"sharedAccountIds\": [],\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  \"kind\": \"\",\n  \"remarketingListId\": \"\",\n  \"sharedAccountIds\": [],\n  \"sharedAdvertiserIds\": []\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/remarketingListShares?id=")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/userprofiles/:profileId/remarketingListShares?id=")
  .header("content-type", "application/json")
  .body("{\n  \"kind\": \"\",\n  \"remarketingListId\": \"\",\n  \"sharedAccountIds\": [],\n  \"sharedAdvertiserIds\": []\n}")
  .asString();
const data = JSON.stringify({
  kind: '',
  remarketingListId: '',
  sharedAccountIds: [],
  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}}/userprofiles/:profileId/remarketingListShares?id=');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/userprofiles/:profileId/remarketingListShares',
  params: {id: ''},
  headers: {'content-type': 'application/json'},
  data: {kind: '', remarketingListId: '', sharedAccountIds: [], sharedAdvertiserIds: []}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/remarketingListShares?id=';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"kind":"","remarketingListId":"","sharedAccountIds":[],"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}}/userprofiles/:profileId/remarketingListShares?id=',
  method: 'PATCH',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "kind": "",\n  "remarketingListId": "",\n  "sharedAccountIds": [],\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  \"kind\": \"\",\n  \"remarketingListId\": \"\",\n  \"sharedAccountIds\": [],\n  \"sharedAdvertiserIds\": []\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/remarketingListShares?id=")
  .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/userprofiles/:profileId/remarketingListShares?id=',
  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({kind: '', remarketingListId: '', sharedAccountIds: [], sharedAdvertiserIds: []}));
req.end();
const request = require('request');

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/userprofiles/:profileId/remarketingListShares',
  qs: {id: ''},
  headers: {'content-type': 'application/json'},
  body: {kind: '', remarketingListId: '', sharedAccountIds: [], 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}}/userprofiles/:profileId/remarketingListShares');

req.query({
  id: ''
});

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  kind: '',
  remarketingListId: '',
  sharedAccountIds: [],
  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}}/userprofiles/:profileId/remarketingListShares',
  params: {id: ''},
  headers: {'content-type': 'application/json'},
  data: {kind: '', remarketingListId: '', sharedAccountIds: [], sharedAdvertiserIds: []}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/remarketingListShares?id=';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"kind":"","remarketingListId":"","sharedAccountIds":[],"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 = @{ @"kind": @"",
                              @"remarketingListId": @"",
                              @"sharedAccountIds": @[  ],
                              @"sharedAdvertiserIds": @[  ] };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/userprofiles/:profileId/remarketingListShares?id="]
                                                       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}}/userprofiles/:profileId/remarketingListShares?id=" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"kind\": \"\",\n  \"remarketingListId\": \"\",\n  \"sharedAccountIds\": [],\n  \"sharedAdvertiserIds\": []\n}" in

Client.call ~headers ~body `PATCH uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/remarketingListShares?id=",
  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([
    'kind' => '',
    'remarketingListId' => '',
    'sharedAccountIds' => [
        
    ],
    '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}}/userprofiles/:profileId/remarketingListShares?id=', [
  'body' => '{
  "kind": "",
  "remarketingListId": "",
  "sharedAccountIds": [],
  "sharedAdvertiserIds": []
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/remarketingListShares');
$request->setMethod(HttpRequest::HTTP_METH_PATCH);

$request->setQueryData([
  'id' => ''
]);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'kind' => '',
  'remarketingListId' => '',
  'sharedAccountIds' => [
    
  ],
  'sharedAdvertiserIds' => [
    
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'kind' => '',
  'remarketingListId' => '',
  'sharedAccountIds' => [
    
  ],
  'sharedAdvertiserIds' => [
    
  ]
]));
$request->setRequestUrl('{{baseUrl}}/userprofiles/:profileId/remarketingListShares');
$request->setRequestMethod('PATCH');
$request->setBody($body);

$request->setQuery(new http\QueryString([
  'id' => ''
]));

$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}}/userprofiles/:profileId/remarketingListShares?id=' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "kind": "",
  "remarketingListId": "",
  "sharedAccountIds": [],
  "sharedAdvertiserIds": []
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/remarketingListShares?id=' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "kind": "",
  "remarketingListId": "",
  "sharedAccountIds": [],
  "sharedAdvertiserIds": []
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"kind\": \"\",\n  \"remarketingListId\": \"\",\n  \"sharedAccountIds\": [],\n  \"sharedAdvertiserIds\": []\n}"

headers = { 'content-type': "application/json" }

conn.request("PATCH", "/baseUrl/userprofiles/:profileId/remarketingListShares?id=", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/remarketingListShares"

querystring = {"id":""}

payload = {
    "kind": "",
    "remarketingListId": "",
    "sharedAccountIds": [],
    "sharedAdvertiserIds": []
}
headers = {"content-type": "application/json"}

response = requests.patch(url, json=payload, headers=headers, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/remarketingListShares"

queryString <- list(id = "")

payload <- "{\n  \"kind\": \"\",\n  \"remarketingListId\": \"\",\n  \"sharedAccountIds\": [],\n  \"sharedAdvertiserIds\": []\n}"

encode <- "json"

response <- VERB("PATCH", url, body = payload, query = queryString, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/remarketingListShares?id=")

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  \"kind\": \"\",\n  \"remarketingListId\": \"\",\n  \"sharedAccountIds\": [],\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/userprofiles/:profileId/remarketingListShares') do |req|
  req.params['id'] = ''
  req.body = "{\n  \"kind\": \"\",\n  \"remarketingListId\": \"\",\n  \"sharedAccountIds\": [],\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}}/userprofiles/:profileId/remarketingListShares";

    let querystring = [
        ("id", ""),
    ];

    let payload = json!({
        "kind": "",
        "remarketingListId": "",
        "sharedAccountIds": (),
        "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)
        .query(&querystring)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PATCH \
  --url '{{baseUrl}}/userprofiles/:profileId/remarketingListShares?id=' \
  --header 'content-type: application/json' \
  --data '{
  "kind": "",
  "remarketingListId": "",
  "sharedAccountIds": [],
  "sharedAdvertiserIds": []
}'
echo '{
  "kind": "",
  "remarketingListId": "",
  "sharedAccountIds": [],
  "sharedAdvertiserIds": []
}' |  \
  http PATCH '{{baseUrl}}/userprofiles/:profileId/remarketingListShares?id=' \
  content-type:application/json
wget --quiet \
  --method PATCH \
  --header 'content-type: application/json' \
  --body-data '{\n  "kind": "",\n  "remarketingListId": "",\n  "sharedAccountIds": [],\n  "sharedAdvertiserIds": []\n}' \
  --output-document \
  - '{{baseUrl}}/userprofiles/:profileId/remarketingListShares?id='
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "kind": "",
  "remarketingListId": "",
  "sharedAccountIds": [],
  "sharedAdvertiserIds": []
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/remarketingListShares?id=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PATCH"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
PUT dfareporting.remarketingListShares.update
{{baseUrl}}/userprofiles/:profileId/remarketingListShares
QUERY PARAMS

profileId
BODY json

{
  "kind": "",
  "remarketingListId": "",
  "sharedAccountIds": [],
  "sharedAdvertiserIds": []
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/remarketingListShares");

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  \"kind\": \"\",\n  \"remarketingListId\": \"\",\n  \"sharedAccountIds\": [],\n  \"sharedAdvertiserIds\": []\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/userprofiles/:profileId/remarketingListShares" {:content-type :json
                                                                                         :form-params {:kind ""
                                                                                                       :remarketingListId ""
                                                                                                       :sharedAccountIds []
                                                                                                       :sharedAdvertiserIds []}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/remarketingListShares"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"kind\": \"\",\n  \"remarketingListId\": \"\",\n  \"sharedAccountIds\": [],\n  \"sharedAdvertiserIds\": []\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/userprofiles/:profileId/remarketingListShares"),
    Content = new StringContent("{\n  \"kind\": \"\",\n  \"remarketingListId\": \"\",\n  \"sharedAccountIds\": [],\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}}/userprofiles/:profileId/remarketingListShares");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"kind\": \"\",\n  \"remarketingListId\": \"\",\n  \"sharedAccountIds\": [],\n  \"sharedAdvertiserIds\": []\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/remarketingListShares"

	payload := strings.NewReader("{\n  \"kind\": \"\",\n  \"remarketingListId\": \"\",\n  \"sharedAccountIds\": [],\n  \"sharedAdvertiserIds\": []\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/userprofiles/:profileId/remarketingListShares HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 98

{
  "kind": "",
  "remarketingListId": "",
  "sharedAccountIds": [],
  "sharedAdvertiserIds": []
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/userprofiles/:profileId/remarketingListShares")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"kind\": \"\",\n  \"remarketingListId\": \"\",\n  \"sharedAccountIds\": [],\n  \"sharedAdvertiserIds\": []\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/remarketingListShares"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"kind\": \"\",\n  \"remarketingListId\": \"\",\n  \"sharedAccountIds\": [],\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  \"kind\": \"\",\n  \"remarketingListId\": \"\",\n  \"sharedAccountIds\": [],\n  \"sharedAdvertiserIds\": []\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/remarketingListShares")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/userprofiles/:profileId/remarketingListShares")
  .header("content-type", "application/json")
  .body("{\n  \"kind\": \"\",\n  \"remarketingListId\": \"\",\n  \"sharedAccountIds\": [],\n  \"sharedAdvertiserIds\": []\n}")
  .asString();
const data = JSON.stringify({
  kind: '',
  remarketingListId: '',
  sharedAccountIds: [],
  sharedAdvertiserIds: []
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/userprofiles/:profileId/remarketingListShares');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/userprofiles/:profileId/remarketingListShares',
  headers: {'content-type': 'application/json'},
  data: {kind: '', remarketingListId: '', sharedAccountIds: [], sharedAdvertiserIds: []}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/remarketingListShares';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"kind":"","remarketingListId":"","sharedAccountIds":[],"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}}/userprofiles/:profileId/remarketingListShares',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "kind": "",\n  "remarketingListId": "",\n  "sharedAccountIds": [],\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  \"kind\": \"\",\n  \"remarketingListId\": \"\",\n  \"sharedAccountIds\": [],\n  \"sharedAdvertiserIds\": []\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/remarketingListShares")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/remarketingListShares',
  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({kind: '', remarketingListId: '', sharedAccountIds: [], sharedAdvertiserIds: []}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/userprofiles/:profileId/remarketingListShares',
  headers: {'content-type': 'application/json'},
  body: {kind: '', remarketingListId: '', sharedAccountIds: [], 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('PUT', '{{baseUrl}}/userprofiles/:profileId/remarketingListShares');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  kind: '',
  remarketingListId: '',
  sharedAccountIds: [],
  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: 'PUT',
  url: '{{baseUrl}}/userprofiles/:profileId/remarketingListShares',
  headers: {'content-type': 'application/json'},
  data: {kind: '', remarketingListId: '', sharedAccountIds: [], sharedAdvertiserIds: []}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/remarketingListShares';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"kind":"","remarketingListId":"","sharedAccountIds":[],"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 = @{ @"kind": @"",
                              @"remarketingListId": @"",
                              @"sharedAccountIds": @[  ],
                              @"sharedAdvertiserIds": @[  ] };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/userprofiles/:profileId/remarketingListShares"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/userprofiles/:profileId/remarketingListShares" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"kind\": \"\",\n  \"remarketingListId\": \"\",\n  \"sharedAccountIds\": [],\n  \"sharedAdvertiserIds\": []\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/remarketingListShares",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'kind' => '',
    'remarketingListId' => '',
    'sharedAccountIds' => [
        
    ],
    '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('PUT', '{{baseUrl}}/userprofiles/:profileId/remarketingListShares', [
  'body' => '{
  "kind": "",
  "remarketingListId": "",
  "sharedAccountIds": [],
  "sharedAdvertiserIds": []
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/remarketingListShares');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'kind' => '',
  'remarketingListId' => '',
  'sharedAccountIds' => [
    
  ],
  'sharedAdvertiserIds' => [
    
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'kind' => '',
  'remarketingListId' => '',
  'sharedAccountIds' => [
    
  ],
  'sharedAdvertiserIds' => [
    
  ]
]));
$request->setRequestUrl('{{baseUrl}}/userprofiles/:profileId/remarketingListShares');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/remarketingListShares' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "kind": "",
  "remarketingListId": "",
  "sharedAccountIds": [],
  "sharedAdvertiserIds": []
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/remarketingListShares' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "kind": "",
  "remarketingListId": "",
  "sharedAccountIds": [],
  "sharedAdvertiserIds": []
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"kind\": \"\",\n  \"remarketingListId\": \"\",\n  \"sharedAccountIds\": [],\n  \"sharedAdvertiserIds\": []\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/userprofiles/:profileId/remarketingListShares", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/remarketingListShares"

payload = {
    "kind": "",
    "remarketingListId": "",
    "sharedAccountIds": [],
    "sharedAdvertiserIds": []
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/remarketingListShares"

payload <- "{\n  \"kind\": \"\",\n  \"remarketingListId\": \"\",\n  \"sharedAccountIds\": [],\n  \"sharedAdvertiserIds\": []\n}"

encode <- "json"

response <- VERB("PUT", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/remarketingListShares")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"kind\": \"\",\n  \"remarketingListId\": \"\",\n  \"sharedAccountIds\": [],\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.put('/baseUrl/userprofiles/:profileId/remarketingListShares') do |req|
  req.body = "{\n  \"kind\": \"\",\n  \"remarketingListId\": \"\",\n  \"sharedAccountIds\": [],\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}}/userprofiles/:profileId/remarketingListShares";

    let payload = json!({
        "kind": "",
        "remarketingListId": "",
        "sharedAccountIds": (),
        "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("PUT").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/userprofiles/:profileId/remarketingListShares \
  --header 'content-type: application/json' \
  --data '{
  "kind": "",
  "remarketingListId": "",
  "sharedAccountIds": [],
  "sharedAdvertiserIds": []
}'
echo '{
  "kind": "",
  "remarketingListId": "",
  "sharedAccountIds": [],
  "sharedAdvertiserIds": []
}' |  \
  http PUT {{baseUrl}}/userprofiles/:profileId/remarketingListShares \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "kind": "",\n  "remarketingListId": "",\n  "sharedAccountIds": [],\n  "sharedAdvertiserIds": []\n}' \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/remarketingListShares
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "kind": "",
  "remarketingListId": "",
  "sharedAccountIds": [],
  "sharedAdvertiserIds": []
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/remarketingListShares")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
POST dfareporting.reports.compatibleFields.query
{{baseUrl}}/userprofiles/:profileId/reports/compatiblefields/query
QUERY PARAMS

profileId
BODY json

{
  "accountId": "",
  "criteria": {
    "activities": {
      "filters": [
        {
          "dimensionName": "",
          "etag": "",
          "id": "",
          "kind": "",
          "matchType": "",
          "value": ""
        }
      ],
      "kind": "",
      "metricNames": []
    },
    "customRichMediaEvents": {
      "filteredEventIds": [
        {}
      ],
      "kind": ""
    },
    "dateRange": {
      "endDate": "",
      "kind": "",
      "relativeDateRange": "",
      "startDate": ""
    },
    "dimensionFilters": [
      {}
    ],
    "dimensions": [
      {
        "kind": "",
        "name": "",
        "sortOrder": ""
      }
    ],
    "metricNames": []
  },
  "crossDimensionReachCriteria": {
    "breakdown": [
      {}
    ],
    "dateRange": {},
    "dimension": "",
    "dimensionFilters": [
      {}
    ],
    "metricNames": [],
    "overlapMetricNames": [],
    "pivoted": false
  },
  "delivery": {
    "emailOwner": false,
    "emailOwnerDeliveryType": "",
    "message": "",
    "recipients": [
      {
        "deliveryType": "",
        "email": "",
        "kind": ""
      }
    ]
  },
  "etag": "",
  "fileName": "",
  "floodlightCriteria": {
    "customRichMediaEvents": [
      {}
    ],
    "dateRange": {},
    "dimensionFilters": [
      {}
    ],
    "dimensions": [
      {}
    ],
    "floodlightConfigId": {},
    "metricNames": [],
    "reportProperties": {
      "includeAttributedIPConversions": false,
      "includeUnattributedCookieConversions": false,
      "includeUnattributedIPConversions": false
    }
  },
  "format": "",
  "id": "",
  "kind": "",
  "lastModifiedTime": "",
  "name": "",
  "ownerProfileId": "",
  "pathAttributionCriteria": {
    "activityFilters": [
      {}
    ],
    "customChannelGrouping": {
      "fallbackName": "",
      "kind": "",
      "name": "",
      "rules": [
        {
          "disjunctiveMatchStatements": [
            {
              "eventFilters": [
                {
                  "dimensionFilter": {
                    "dimensionName": "",
                    "ids": [],
                    "kind": "",
                    "matchType": "",
                    "values": []
                  },
                  "kind": ""
                }
              ],
              "kind": ""
            }
          ],
          "kind": "",
          "name": ""
        }
      ]
    },
    "dateRange": {},
    "dimensions": [
      {}
    ],
    "floodlightConfigId": {},
    "metricNames": [],
    "pathFilters": [
      {
        "eventFilters": [
          {}
        ],
        "kind": "",
        "pathMatchPosition": ""
      }
    ]
  },
  "pathCriteria": {
    "activityFilters": [
      {}
    ],
    "customChannelGrouping": {},
    "dateRange": {},
    "dimensions": [
      {}
    ],
    "floodlightConfigId": {},
    "metricNames": [],
    "pathFilters": [
      {}
    ]
  },
  "pathToConversionCriteria": {
    "activityFilters": [
      {}
    ],
    "conversionDimensions": [
      {}
    ],
    "customFloodlightVariables": [
      {}
    ],
    "customRichMediaEvents": [
      {}
    ],
    "dateRange": {},
    "floodlightConfigId": {},
    "metricNames": [],
    "perInteractionDimensions": [
      {}
    ],
    "reportProperties": {
      "clicksLookbackWindow": 0,
      "impressionsLookbackWindow": 0,
      "includeAttributedIPConversions": false,
      "includeUnattributedCookieConversions": false,
      "includeUnattributedIPConversions": false,
      "maximumClickInteractions": 0,
      "maximumImpressionInteractions": 0,
      "maximumInteractionGap": 0,
      "pivotOnInteractionPath": false
    }
  },
  "reachCriteria": {
    "activities": {},
    "customRichMediaEvents": {},
    "dateRange": {},
    "dimensionFilters": [
      {}
    ],
    "dimensions": [
      {}
    ],
    "enableAllDimensionCombinations": false,
    "metricNames": [],
    "reachByFrequencyMetricNames": []
  },
  "schedule": {
    "active": false,
    "every": 0,
    "expirationDate": "",
    "repeats": "",
    "repeatsOnWeekDays": [],
    "runsOnDayOfMonth": "",
    "startDate": ""
  },
  "subAccountId": "",
  "type": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/reports/compatiblefields/query");

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  \"accountId\": \"\",\n  \"criteria\": {\n    \"activities\": {\n      \"filters\": [\n        {\n          \"dimensionName\": \"\",\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"matchType\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"kind\": \"\",\n      \"metricNames\": []\n    },\n    \"customRichMediaEvents\": {\n      \"filteredEventIds\": [\n        {}\n      ],\n      \"kind\": \"\"\n    },\n    \"dateRange\": {\n      \"endDate\": \"\",\n      \"kind\": \"\",\n      \"relativeDateRange\": \"\",\n      \"startDate\": \"\"\n    },\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sortOrder\": \"\"\n      }\n    ],\n    \"metricNames\": []\n  },\n  \"crossDimensionReachCriteria\": {\n    \"breakdown\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimension\": \"\",\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"metricNames\": [],\n    \"overlapMetricNames\": [],\n    \"pivoted\": false\n  },\n  \"delivery\": {\n    \"emailOwner\": false,\n    \"emailOwnerDeliveryType\": \"\",\n    \"message\": \"\",\n    \"recipients\": [\n      {\n        \"deliveryType\": \"\",\n        \"email\": \"\",\n        \"kind\": \"\"\n      }\n    ]\n  },\n  \"etag\": \"\",\n  \"fileName\": \"\",\n  \"floodlightCriteria\": {\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"reportProperties\": {\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false\n    }\n  },\n  \"format\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedTime\": \"\",\n  \"name\": \"\",\n  \"ownerProfileId\": \"\",\n  \"pathAttributionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {\n      \"fallbackName\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"rules\": [\n        {\n          \"disjunctiveMatchStatements\": [\n            {\n              \"eventFilters\": [\n                {\n                  \"dimensionFilter\": {\n                    \"dimensionName\": \"\",\n                    \"ids\": [],\n                    \"kind\": \"\",\n                    \"matchType\": \"\",\n                    \"values\": []\n                  },\n                  \"kind\": \"\"\n                }\n              ],\n              \"kind\": \"\"\n            }\n          ],\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {\n        \"eventFilters\": [\n          {}\n        ],\n        \"kind\": \"\",\n        \"pathMatchPosition\": \"\"\n      }\n    ]\n  },\n  \"pathCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {},\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {}\n    ]\n  },\n  \"pathToConversionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"conversionDimensions\": [\n      {}\n    ],\n    \"customFloodlightVariables\": [\n      {}\n    ],\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"perInteractionDimensions\": [\n      {}\n    ],\n    \"reportProperties\": {\n      \"clicksLookbackWindow\": 0,\n      \"impressionsLookbackWindow\": 0,\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false,\n      \"maximumClickInteractions\": 0,\n      \"maximumImpressionInteractions\": 0,\n      \"maximumInteractionGap\": 0,\n      \"pivotOnInteractionPath\": false\n    }\n  },\n  \"reachCriteria\": {\n    \"activities\": {},\n    \"customRichMediaEvents\": {},\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"enableAllDimensionCombinations\": false,\n    \"metricNames\": [],\n    \"reachByFrequencyMetricNames\": []\n  },\n  \"schedule\": {\n    \"active\": false,\n    \"every\": 0,\n    \"expirationDate\": \"\",\n    \"repeats\": \"\",\n    \"repeatsOnWeekDays\": [],\n    \"runsOnDayOfMonth\": \"\",\n    \"startDate\": \"\"\n  },\n  \"subAccountId\": \"\",\n  \"type\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/userprofiles/:profileId/reports/compatiblefields/query" {:content-type :json
                                                                                                   :form-params {:accountId ""
                                                                                                                 :criteria {:activities {:filters [{:dimensionName ""
                                                                                                                                                    :etag ""
                                                                                                                                                    :id ""
                                                                                                                                                    :kind ""
                                                                                                                                                    :matchType ""
                                                                                                                                                    :value ""}]
                                                                                                                                         :kind ""
                                                                                                                                         :metricNames []}
                                                                                                                            :customRichMediaEvents {:filteredEventIds [{}]
                                                                                                                                                    :kind ""}
                                                                                                                            :dateRange {:endDate ""
                                                                                                                                        :kind ""
                                                                                                                                        :relativeDateRange ""
                                                                                                                                        :startDate ""}
                                                                                                                            :dimensionFilters [{}]
                                                                                                                            :dimensions [{:kind ""
                                                                                                                                          :name ""
                                                                                                                                          :sortOrder ""}]
                                                                                                                            :metricNames []}
                                                                                                                 :crossDimensionReachCriteria {:breakdown [{}]
                                                                                                                                               :dateRange {}
                                                                                                                                               :dimension ""
                                                                                                                                               :dimensionFilters [{}]
                                                                                                                                               :metricNames []
                                                                                                                                               :overlapMetricNames []
                                                                                                                                               :pivoted false}
                                                                                                                 :delivery {:emailOwner false
                                                                                                                            :emailOwnerDeliveryType ""
                                                                                                                            :message ""
                                                                                                                            :recipients [{:deliveryType ""
                                                                                                                                          :email ""
                                                                                                                                          :kind ""}]}
                                                                                                                 :etag ""
                                                                                                                 :fileName ""
                                                                                                                 :floodlightCriteria {:customRichMediaEvents [{}]
                                                                                                                                      :dateRange {}
                                                                                                                                      :dimensionFilters [{}]
                                                                                                                                      :dimensions [{}]
                                                                                                                                      :floodlightConfigId {}
                                                                                                                                      :metricNames []
                                                                                                                                      :reportProperties {:includeAttributedIPConversions false
                                                                                                                                                         :includeUnattributedCookieConversions false
                                                                                                                                                         :includeUnattributedIPConversions false}}
                                                                                                                 :format ""
                                                                                                                 :id ""
                                                                                                                 :kind ""
                                                                                                                 :lastModifiedTime ""
                                                                                                                 :name ""
                                                                                                                 :ownerProfileId ""
                                                                                                                 :pathAttributionCriteria {:activityFilters [{}]
                                                                                                                                           :customChannelGrouping {:fallbackName ""
                                                                                                                                                                   :kind ""
                                                                                                                                                                   :name ""
                                                                                                                                                                   :rules [{:disjunctiveMatchStatements [{:eventFilters [{:dimensionFilter {:dimensionName ""
                                                                                                                                                                                                                                            :ids []
                                                                                                                                                                                                                                            :kind ""
                                                                                                                                                                                                                                            :matchType ""
                                                                                                                                                                                                                                            :values []}
                                                                                                                                                                                                                          :kind ""}]
                                                                                                                                                                                                          :kind ""}]
                                                                                                                                                                            :kind ""
                                                                                                                                                                            :name ""}]}
                                                                                                                                           :dateRange {}
                                                                                                                                           :dimensions [{}]
                                                                                                                                           :floodlightConfigId {}
                                                                                                                                           :metricNames []
                                                                                                                                           :pathFilters [{:eventFilters [{}]
                                                                                                                                                          :kind ""
                                                                                                                                                          :pathMatchPosition ""}]}
                                                                                                                 :pathCriteria {:activityFilters [{}]
                                                                                                                                :customChannelGrouping {}
                                                                                                                                :dateRange {}
                                                                                                                                :dimensions [{}]
                                                                                                                                :floodlightConfigId {}
                                                                                                                                :metricNames []
                                                                                                                                :pathFilters [{}]}
                                                                                                                 :pathToConversionCriteria {:activityFilters [{}]
                                                                                                                                            :conversionDimensions [{}]
                                                                                                                                            :customFloodlightVariables [{}]
                                                                                                                                            :customRichMediaEvents [{}]
                                                                                                                                            :dateRange {}
                                                                                                                                            :floodlightConfigId {}
                                                                                                                                            :metricNames []
                                                                                                                                            :perInteractionDimensions [{}]
                                                                                                                                            :reportProperties {:clicksLookbackWindow 0
                                                                                                                                                               :impressionsLookbackWindow 0
                                                                                                                                                               :includeAttributedIPConversions false
                                                                                                                                                               :includeUnattributedCookieConversions false
                                                                                                                                                               :includeUnattributedIPConversions false
                                                                                                                                                               :maximumClickInteractions 0
                                                                                                                                                               :maximumImpressionInteractions 0
                                                                                                                                                               :maximumInteractionGap 0
                                                                                                                                                               :pivotOnInteractionPath false}}
                                                                                                                 :reachCriteria {:activities {}
                                                                                                                                 :customRichMediaEvents {}
                                                                                                                                 :dateRange {}
                                                                                                                                 :dimensionFilters [{}]
                                                                                                                                 :dimensions [{}]
                                                                                                                                 :enableAllDimensionCombinations false
                                                                                                                                 :metricNames []
                                                                                                                                 :reachByFrequencyMetricNames []}
                                                                                                                 :schedule {:active false
                                                                                                                            :every 0
                                                                                                                            :expirationDate ""
                                                                                                                            :repeats ""
                                                                                                                            :repeatsOnWeekDays []
                                                                                                                            :runsOnDayOfMonth ""
                                                                                                                            :startDate ""}
                                                                                                                 :subAccountId ""
                                                                                                                 :type ""}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/reports/compatiblefields/query"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"accountId\": \"\",\n  \"criteria\": {\n    \"activities\": {\n      \"filters\": [\n        {\n          \"dimensionName\": \"\",\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"matchType\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"kind\": \"\",\n      \"metricNames\": []\n    },\n    \"customRichMediaEvents\": {\n      \"filteredEventIds\": [\n        {}\n      ],\n      \"kind\": \"\"\n    },\n    \"dateRange\": {\n      \"endDate\": \"\",\n      \"kind\": \"\",\n      \"relativeDateRange\": \"\",\n      \"startDate\": \"\"\n    },\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sortOrder\": \"\"\n      }\n    ],\n    \"metricNames\": []\n  },\n  \"crossDimensionReachCriteria\": {\n    \"breakdown\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimension\": \"\",\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"metricNames\": [],\n    \"overlapMetricNames\": [],\n    \"pivoted\": false\n  },\n  \"delivery\": {\n    \"emailOwner\": false,\n    \"emailOwnerDeliveryType\": \"\",\n    \"message\": \"\",\n    \"recipients\": [\n      {\n        \"deliveryType\": \"\",\n        \"email\": \"\",\n        \"kind\": \"\"\n      }\n    ]\n  },\n  \"etag\": \"\",\n  \"fileName\": \"\",\n  \"floodlightCriteria\": {\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"reportProperties\": {\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false\n    }\n  },\n  \"format\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedTime\": \"\",\n  \"name\": \"\",\n  \"ownerProfileId\": \"\",\n  \"pathAttributionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {\n      \"fallbackName\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"rules\": [\n        {\n          \"disjunctiveMatchStatements\": [\n            {\n              \"eventFilters\": [\n                {\n                  \"dimensionFilter\": {\n                    \"dimensionName\": \"\",\n                    \"ids\": [],\n                    \"kind\": \"\",\n                    \"matchType\": \"\",\n                    \"values\": []\n                  },\n                  \"kind\": \"\"\n                }\n              ],\n              \"kind\": \"\"\n            }\n          ],\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {\n        \"eventFilters\": [\n          {}\n        ],\n        \"kind\": \"\",\n        \"pathMatchPosition\": \"\"\n      }\n    ]\n  },\n  \"pathCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {},\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {}\n    ]\n  },\n  \"pathToConversionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"conversionDimensions\": [\n      {}\n    ],\n    \"customFloodlightVariables\": [\n      {}\n    ],\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"perInteractionDimensions\": [\n      {}\n    ],\n    \"reportProperties\": {\n      \"clicksLookbackWindow\": 0,\n      \"impressionsLookbackWindow\": 0,\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false,\n      \"maximumClickInteractions\": 0,\n      \"maximumImpressionInteractions\": 0,\n      \"maximumInteractionGap\": 0,\n      \"pivotOnInteractionPath\": false\n    }\n  },\n  \"reachCriteria\": {\n    \"activities\": {},\n    \"customRichMediaEvents\": {},\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"enableAllDimensionCombinations\": false,\n    \"metricNames\": [],\n    \"reachByFrequencyMetricNames\": []\n  },\n  \"schedule\": {\n    \"active\": false,\n    \"every\": 0,\n    \"expirationDate\": \"\",\n    \"repeats\": \"\",\n    \"repeatsOnWeekDays\": [],\n    \"runsOnDayOfMonth\": \"\",\n    \"startDate\": \"\"\n  },\n  \"subAccountId\": \"\",\n  \"type\": \"\"\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}}/userprofiles/:profileId/reports/compatiblefields/query"),
    Content = new StringContent("{\n  \"accountId\": \"\",\n  \"criteria\": {\n    \"activities\": {\n      \"filters\": [\n        {\n          \"dimensionName\": \"\",\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"matchType\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"kind\": \"\",\n      \"metricNames\": []\n    },\n    \"customRichMediaEvents\": {\n      \"filteredEventIds\": [\n        {}\n      ],\n      \"kind\": \"\"\n    },\n    \"dateRange\": {\n      \"endDate\": \"\",\n      \"kind\": \"\",\n      \"relativeDateRange\": \"\",\n      \"startDate\": \"\"\n    },\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sortOrder\": \"\"\n      }\n    ],\n    \"metricNames\": []\n  },\n  \"crossDimensionReachCriteria\": {\n    \"breakdown\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimension\": \"\",\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"metricNames\": [],\n    \"overlapMetricNames\": [],\n    \"pivoted\": false\n  },\n  \"delivery\": {\n    \"emailOwner\": false,\n    \"emailOwnerDeliveryType\": \"\",\n    \"message\": \"\",\n    \"recipients\": [\n      {\n        \"deliveryType\": \"\",\n        \"email\": \"\",\n        \"kind\": \"\"\n      }\n    ]\n  },\n  \"etag\": \"\",\n  \"fileName\": \"\",\n  \"floodlightCriteria\": {\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"reportProperties\": {\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false\n    }\n  },\n  \"format\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedTime\": \"\",\n  \"name\": \"\",\n  \"ownerProfileId\": \"\",\n  \"pathAttributionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {\n      \"fallbackName\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"rules\": [\n        {\n          \"disjunctiveMatchStatements\": [\n            {\n              \"eventFilters\": [\n                {\n                  \"dimensionFilter\": {\n                    \"dimensionName\": \"\",\n                    \"ids\": [],\n                    \"kind\": \"\",\n                    \"matchType\": \"\",\n                    \"values\": []\n                  },\n                  \"kind\": \"\"\n                }\n              ],\n              \"kind\": \"\"\n            }\n          ],\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {\n        \"eventFilters\": [\n          {}\n        ],\n        \"kind\": \"\",\n        \"pathMatchPosition\": \"\"\n      }\n    ]\n  },\n  \"pathCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {},\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {}\n    ]\n  },\n  \"pathToConversionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"conversionDimensions\": [\n      {}\n    ],\n    \"customFloodlightVariables\": [\n      {}\n    ],\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"perInteractionDimensions\": [\n      {}\n    ],\n    \"reportProperties\": {\n      \"clicksLookbackWindow\": 0,\n      \"impressionsLookbackWindow\": 0,\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false,\n      \"maximumClickInteractions\": 0,\n      \"maximumImpressionInteractions\": 0,\n      \"maximumInteractionGap\": 0,\n      \"pivotOnInteractionPath\": false\n    }\n  },\n  \"reachCriteria\": {\n    \"activities\": {},\n    \"customRichMediaEvents\": {},\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"enableAllDimensionCombinations\": false,\n    \"metricNames\": [],\n    \"reachByFrequencyMetricNames\": []\n  },\n  \"schedule\": {\n    \"active\": false,\n    \"every\": 0,\n    \"expirationDate\": \"\",\n    \"repeats\": \"\",\n    \"repeatsOnWeekDays\": [],\n    \"runsOnDayOfMonth\": \"\",\n    \"startDate\": \"\"\n  },\n  \"subAccountId\": \"\",\n  \"type\": \"\"\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}}/userprofiles/:profileId/reports/compatiblefields/query");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"accountId\": \"\",\n  \"criteria\": {\n    \"activities\": {\n      \"filters\": [\n        {\n          \"dimensionName\": \"\",\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"matchType\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"kind\": \"\",\n      \"metricNames\": []\n    },\n    \"customRichMediaEvents\": {\n      \"filteredEventIds\": [\n        {}\n      ],\n      \"kind\": \"\"\n    },\n    \"dateRange\": {\n      \"endDate\": \"\",\n      \"kind\": \"\",\n      \"relativeDateRange\": \"\",\n      \"startDate\": \"\"\n    },\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sortOrder\": \"\"\n      }\n    ],\n    \"metricNames\": []\n  },\n  \"crossDimensionReachCriteria\": {\n    \"breakdown\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimension\": \"\",\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"metricNames\": [],\n    \"overlapMetricNames\": [],\n    \"pivoted\": false\n  },\n  \"delivery\": {\n    \"emailOwner\": false,\n    \"emailOwnerDeliveryType\": \"\",\n    \"message\": \"\",\n    \"recipients\": [\n      {\n        \"deliveryType\": \"\",\n        \"email\": \"\",\n        \"kind\": \"\"\n      }\n    ]\n  },\n  \"etag\": \"\",\n  \"fileName\": \"\",\n  \"floodlightCriteria\": {\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"reportProperties\": {\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false\n    }\n  },\n  \"format\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedTime\": \"\",\n  \"name\": \"\",\n  \"ownerProfileId\": \"\",\n  \"pathAttributionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {\n      \"fallbackName\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"rules\": [\n        {\n          \"disjunctiveMatchStatements\": [\n            {\n              \"eventFilters\": [\n                {\n                  \"dimensionFilter\": {\n                    \"dimensionName\": \"\",\n                    \"ids\": [],\n                    \"kind\": \"\",\n                    \"matchType\": \"\",\n                    \"values\": []\n                  },\n                  \"kind\": \"\"\n                }\n              ],\n              \"kind\": \"\"\n            }\n          ],\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {\n        \"eventFilters\": [\n          {}\n        ],\n        \"kind\": \"\",\n        \"pathMatchPosition\": \"\"\n      }\n    ]\n  },\n  \"pathCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {},\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {}\n    ]\n  },\n  \"pathToConversionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"conversionDimensions\": [\n      {}\n    ],\n    \"customFloodlightVariables\": [\n      {}\n    ],\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"perInteractionDimensions\": [\n      {}\n    ],\n    \"reportProperties\": {\n      \"clicksLookbackWindow\": 0,\n      \"impressionsLookbackWindow\": 0,\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false,\n      \"maximumClickInteractions\": 0,\n      \"maximumImpressionInteractions\": 0,\n      \"maximumInteractionGap\": 0,\n      \"pivotOnInteractionPath\": false\n    }\n  },\n  \"reachCriteria\": {\n    \"activities\": {},\n    \"customRichMediaEvents\": {},\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"enableAllDimensionCombinations\": false,\n    \"metricNames\": [],\n    \"reachByFrequencyMetricNames\": []\n  },\n  \"schedule\": {\n    \"active\": false,\n    \"every\": 0,\n    \"expirationDate\": \"\",\n    \"repeats\": \"\",\n    \"repeatsOnWeekDays\": [],\n    \"runsOnDayOfMonth\": \"\",\n    \"startDate\": \"\"\n  },\n  \"subAccountId\": \"\",\n  \"type\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/reports/compatiblefields/query"

	payload := strings.NewReader("{\n  \"accountId\": \"\",\n  \"criteria\": {\n    \"activities\": {\n      \"filters\": [\n        {\n          \"dimensionName\": \"\",\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"matchType\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"kind\": \"\",\n      \"metricNames\": []\n    },\n    \"customRichMediaEvents\": {\n      \"filteredEventIds\": [\n        {}\n      ],\n      \"kind\": \"\"\n    },\n    \"dateRange\": {\n      \"endDate\": \"\",\n      \"kind\": \"\",\n      \"relativeDateRange\": \"\",\n      \"startDate\": \"\"\n    },\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sortOrder\": \"\"\n      }\n    ],\n    \"metricNames\": []\n  },\n  \"crossDimensionReachCriteria\": {\n    \"breakdown\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimension\": \"\",\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"metricNames\": [],\n    \"overlapMetricNames\": [],\n    \"pivoted\": false\n  },\n  \"delivery\": {\n    \"emailOwner\": false,\n    \"emailOwnerDeliveryType\": \"\",\n    \"message\": \"\",\n    \"recipients\": [\n      {\n        \"deliveryType\": \"\",\n        \"email\": \"\",\n        \"kind\": \"\"\n      }\n    ]\n  },\n  \"etag\": \"\",\n  \"fileName\": \"\",\n  \"floodlightCriteria\": {\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"reportProperties\": {\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false\n    }\n  },\n  \"format\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedTime\": \"\",\n  \"name\": \"\",\n  \"ownerProfileId\": \"\",\n  \"pathAttributionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {\n      \"fallbackName\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"rules\": [\n        {\n          \"disjunctiveMatchStatements\": [\n            {\n              \"eventFilters\": [\n                {\n                  \"dimensionFilter\": {\n                    \"dimensionName\": \"\",\n                    \"ids\": [],\n                    \"kind\": \"\",\n                    \"matchType\": \"\",\n                    \"values\": []\n                  },\n                  \"kind\": \"\"\n                }\n              ],\n              \"kind\": \"\"\n            }\n          ],\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {\n        \"eventFilters\": [\n          {}\n        ],\n        \"kind\": \"\",\n        \"pathMatchPosition\": \"\"\n      }\n    ]\n  },\n  \"pathCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {},\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {}\n    ]\n  },\n  \"pathToConversionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"conversionDimensions\": [\n      {}\n    ],\n    \"customFloodlightVariables\": [\n      {}\n    ],\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"perInteractionDimensions\": [\n      {}\n    ],\n    \"reportProperties\": {\n      \"clicksLookbackWindow\": 0,\n      \"impressionsLookbackWindow\": 0,\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false,\n      \"maximumClickInteractions\": 0,\n      \"maximumImpressionInteractions\": 0,\n      \"maximumInteractionGap\": 0,\n      \"pivotOnInteractionPath\": false\n    }\n  },\n  \"reachCriteria\": {\n    \"activities\": {},\n    \"customRichMediaEvents\": {},\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"enableAllDimensionCombinations\": false,\n    \"metricNames\": [],\n    \"reachByFrequencyMetricNames\": []\n  },\n  \"schedule\": {\n    \"active\": false,\n    \"every\": 0,\n    \"expirationDate\": \"\",\n    \"repeats\": \"\",\n    \"repeatsOnWeekDays\": [],\n    \"runsOnDayOfMonth\": \"\",\n    \"startDate\": \"\"\n  },\n  \"subAccountId\": \"\",\n  \"type\": \"\"\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/userprofiles/:profileId/reports/compatiblefields/query HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 4157

{
  "accountId": "",
  "criteria": {
    "activities": {
      "filters": [
        {
          "dimensionName": "",
          "etag": "",
          "id": "",
          "kind": "",
          "matchType": "",
          "value": ""
        }
      ],
      "kind": "",
      "metricNames": []
    },
    "customRichMediaEvents": {
      "filteredEventIds": [
        {}
      ],
      "kind": ""
    },
    "dateRange": {
      "endDate": "",
      "kind": "",
      "relativeDateRange": "",
      "startDate": ""
    },
    "dimensionFilters": [
      {}
    ],
    "dimensions": [
      {
        "kind": "",
        "name": "",
        "sortOrder": ""
      }
    ],
    "metricNames": []
  },
  "crossDimensionReachCriteria": {
    "breakdown": [
      {}
    ],
    "dateRange": {},
    "dimension": "",
    "dimensionFilters": [
      {}
    ],
    "metricNames": [],
    "overlapMetricNames": [],
    "pivoted": false
  },
  "delivery": {
    "emailOwner": false,
    "emailOwnerDeliveryType": "",
    "message": "",
    "recipients": [
      {
        "deliveryType": "",
        "email": "",
        "kind": ""
      }
    ]
  },
  "etag": "",
  "fileName": "",
  "floodlightCriteria": {
    "customRichMediaEvents": [
      {}
    ],
    "dateRange": {},
    "dimensionFilters": [
      {}
    ],
    "dimensions": [
      {}
    ],
    "floodlightConfigId": {},
    "metricNames": [],
    "reportProperties": {
      "includeAttributedIPConversions": false,
      "includeUnattributedCookieConversions": false,
      "includeUnattributedIPConversions": false
    }
  },
  "format": "",
  "id": "",
  "kind": "",
  "lastModifiedTime": "",
  "name": "",
  "ownerProfileId": "",
  "pathAttributionCriteria": {
    "activityFilters": [
      {}
    ],
    "customChannelGrouping": {
      "fallbackName": "",
      "kind": "",
      "name": "",
      "rules": [
        {
          "disjunctiveMatchStatements": [
            {
              "eventFilters": [
                {
                  "dimensionFilter": {
                    "dimensionName": "",
                    "ids": [],
                    "kind": "",
                    "matchType": "",
                    "values": []
                  },
                  "kind": ""
                }
              ],
              "kind": ""
            }
          ],
          "kind": "",
          "name": ""
        }
      ]
    },
    "dateRange": {},
    "dimensions": [
      {}
    ],
    "floodlightConfigId": {},
    "metricNames": [],
    "pathFilters": [
      {
        "eventFilters": [
          {}
        ],
        "kind": "",
        "pathMatchPosition": ""
      }
    ]
  },
  "pathCriteria": {
    "activityFilters": [
      {}
    ],
    "customChannelGrouping": {},
    "dateRange": {},
    "dimensions": [
      {}
    ],
    "floodlightConfigId": {},
    "metricNames": [],
    "pathFilters": [
      {}
    ]
  },
  "pathToConversionCriteria": {
    "activityFilters": [
      {}
    ],
    "conversionDimensions": [
      {}
    ],
    "customFloodlightVariables": [
      {}
    ],
    "customRichMediaEvents": [
      {}
    ],
    "dateRange": {},
    "floodlightConfigId": {},
    "metricNames": [],
    "perInteractionDimensions": [
      {}
    ],
    "reportProperties": {
      "clicksLookbackWindow": 0,
      "impressionsLookbackWindow": 0,
      "includeAttributedIPConversions": false,
      "includeUnattributedCookieConversions": false,
      "includeUnattributedIPConversions": false,
      "maximumClickInteractions": 0,
      "maximumImpressionInteractions": 0,
      "maximumInteractionGap": 0,
      "pivotOnInteractionPath": false
    }
  },
  "reachCriteria": {
    "activities": {},
    "customRichMediaEvents": {},
    "dateRange": {},
    "dimensionFilters": [
      {}
    ],
    "dimensions": [
      {}
    ],
    "enableAllDimensionCombinations": false,
    "metricNames": [],
    "reachByFrequencyMetricNames": []
  },
  "schedule": {
    "active": false,
    "every": 0,
    "expirationDate": "",
    "repeats": "",
    "repeatsOnWeekDays": [],
    "runsOnDayOfMonth": "",
    "startDate": ""
  },
  "subAccountId": "",
  "type": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/userprofiles/:profileId/reports/compatiblefields/query")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"accountId\": \"\",\n  \"criteria\": {\n    \"activities\": {\n      \"filters\": [\n        {\n          \"dimensionName\": \"\",\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"matchType\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"kind\": \"\",\n      \"metricNames\": []\n    },\n    \"customRichMediaEvents\": {\n      \"filteredEventIds\": [\n        {}\n      ],\n      \"kind\": \"\"\n    },\n    \"dateRange\": {\n      \"endDate\": \"\",\n      \"kind\": \"\",\n      \"relativeDateRange\": \"\",\n      \"startDate\": \"\"\n    },\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sortOrder\": \"\"\n      }\n    ],\n    \"metricNames\": []\n  },\n  \"crossDimensionReachCriteria\": {\n    \"breakdown\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimension\": \"\",\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"metricNames\": [],\n    \"overlapMetricNames\": [],\n    \"pivoted\": false\n  },\n  \"delivery\": {\n    \"emailOwner\": false,\n    \"emailOwnerDeliveryType\": \"\",\n    \"message\": \"\",\n    \"recipients\": [\n      {\n        \"deliveryType\": \"\",\n        \"email\": \"\",\n        \"kind\": \"\"\n      }\n    ]\n  },\n  \"etag\": \"\",\n  \"fileName\": \"\",\n  \"floodlightCriteria\": {\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"reportProperties\": {\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false\n    }\n  },\n  \"format\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedTime\": \"\",\n  \"name\": \"\",\n  \"ownerProfileId\": \"\",\n  \"pathAttributionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {\n      \"fallbackName\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"rules\": [\n        {\n          \"disjunctiveMatchStatements\": [\n            {\n              \"eventFilters\": [\n                {\n                  \"dimensionFilter\": {\n                    \"dimensionName\": \"\",\n                    \"ids\": [],\n                    \"kind\": \"\",\n                    \"matchType\": \"\",\n                    \"values\": []\n                  },\n                  \"kind\": \"\"\n                }\n              ],\n              \"kind\": \"\"\n            }\n          ],\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {\n        \"eventFilters\": [\n          {}\n        ],\n        \"kind\": \"\",\n        \"pathMatchPosition\": \"\"\n      }\n    ]\n  },\n  \"pathCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {},\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {}\n    ]\n  },\n  \"pathToConversionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"conversionDimensions\": [\n      {}\n    ],\n    \"customFloodlightVariables\": [\n      {}\n    ],\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"perInteractionDimensions\": [\n      {}\n    ],\n    \"reportProperties\": {\n      \"clicksLookbackWindow\": 0,\n      \"impressionsLookbackWindow\": 0,\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false,\n      \"maximumClickInteractions\": 0,\n      \"maximumImpressionInteractions\": 0,\n      \"maximumInteractionGap\": 0,\n      \"pivotOnInteractionPath\": false\n    }\n  },\n  \"reachCriteria\": {\n    \"activities\": {},\n    \"customRichMediaEvents\": {},\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"enableAllDimensionCombinations\": false,\n    \"metricNames\": [],\n    \"reachByFrequencyMetricNames\": []\n  },\n  \"schedule\": {\n    \"active\": false,\n    \"every\": 0,\n    \"expirationDate\": \"\",\n    \"repeats\": \"\",\n    \"repeatsOnWeekDays\": [],\n    \"runsOnDayOfMonth\": \"\",\n    \"startDate\": \"\"\n  },\n  \"subAccountId\": \"\",\n  \"type\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/reports/compatiblefields/query"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"accountId\": \"\",\n  \"criteria\": {\n    \"activities\": {\n      \"filters\": [\n        {\n          \"dimensionName\": \"\",\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"matchType\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"kind\": \"\",\n      \"metricNames\": []\n    },\n    \"customRichMediaEvents\": {\n      \"filteredEventIds\": [\n        {}\n      ],\n      \"kind\": \"\"\n    },\n    \"dateRange\": {\n      \"endDate\": \"\",\n      \"kind\": \"\",\n      \"relativeDateRange\": \"\",\n      \"startDate\": \"\"\n    },\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sortOrder\": \"\"\n      }\n    ],\n    \"metricNames\": []\n  },\n  \"crossDimensionReachCriteria\": {\n    \"breakdown\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimension\": \"\",\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"metricNames\": [],\n    \"overlapMetricNames\": [],\n    \"pivoted\": false\n  },\n  \"delivery\": {\n    \"emailOwner\": false,\n    \"emailOwnerDeliveryType\": \"\",\n    \"message\": \"\",\n    \"recipients\": [\n      {\n        \"deliveryType\": \"\",\n        \"email\": \"\",\n        \"kind\": \"\"\n      }\n    ]\n  },\n  \"etag\": \"\",\n  \"fileName\": \"\",\n  \"floodlightCriteria\": {\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"reportProperties\": {\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false\n    }\n  },\n  \"format\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedTime\": \"\",\n  \"name\": \"\",\n  \"ownerProfileId\": \"\",\n  \"pathAttributionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {\n      \"fallbackName\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"rules\": [\n        {\n          \"disjunctiveMatchStatements\": [\n            {\n              \"eventFilters\": [\n                {\n                  \"dimensionFilter\": {\n                    \"dimensionName\": \"\",\n                    \"ids\": [],\n                    \"kind\": \"\",\n                    \"matchType\": \"\",\n                    \"values\": []\n                  },\n                  \"kind\": \"\"\n                }\n              ],\n              \"kind\": \"\"\n            }\n          ],\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {\n        \"eventFilters\": [\n          {}\n        ],\n        \"kind\": \"\",\n        \"pathMatchPosition\": \"\"\n      }\n    ]\n  },\n  \"pathCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {},\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {}\n    ]\n  },\n  \"pathToConversionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"conversionDimensions\": [\n      {}\n    ],\n    \"customFloodlightVariables\": [\n      {}\n    ],\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"perInteractionDimensions\": [\n      {}\n    ],\n    \"reportProperties\": {\n      \"clicksLookbackWindow\": 0,\n      \"impressionsLookbackWindow\": 0,\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false,\n      \"maximumClickInteractions\": 0,\n      \"maximumImpressionInteractions\": 0,\n      \"maximumInteractionGap\": 0,\n      \"pivotOnInteractionPath\": false\n    }\n  },\n  \"reachCriteria\": {\n    \"activities\": {},\n    \"customRichMediaEvents\": {},\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"enableAllDimensionCombinations\": false,\n    \"metricNames\": [],\n    \"reachByFrequencyMetricNames\": []\n  },\n  \"schedule\": {\n    \"active\": false,\n    \"every\": 0,\n    \"expirationDate\": \"\",\n    \"repeats\": \"\",\n    \"repeatsOnWeekDays\": [],\n    \"runsOnDayOfMonth\": \"\",\n    \"startDate\": \"\"\n  },\n  \"subAccountId\": \"\",\n  \"type\": \"\"\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  \"accountId\": \"\",\n  \"criteria\": {\n    \"activities\": {\n      \"filters\": [\n        {\n          \"dimensionName\": \"\",\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"matchType\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"kind\": \"\",\n      \"metricNames\": []\n    },\n    \"customRichMediaEvents\": {\n      \"filteredEventIds\": [\n        {}\n      ],\n      \"kind\": \"\"\n    },\n    \"dateRange\": {\n      \"endDate\": \"\",\n      \"kind\": \"\",\n      \"relativeDateRange\": \"\",\n      \"startDate\": \"\"\n    },\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sortOrder\": \"\"\n      }\n    ],\n    \"metricNames\": []\n  },\n  \"crossDimensionReachCriteria\": {\n    \"breakdown\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimension\": \"\",\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"metricNames\": [],\n    \"overlapMetricNames\": [],\n    \"pivoted\": false\n  },\n  \"delivery\": {\n    \"emailOwner\": false,\n    \"emailOwnerDeliveryType\": \"\",\n    \"message\": \"\",\n    \"recipients\": [\n      {\n        \"deliveryType\": \"\",\n        \"email\": \"\",\n        \"kind\": \"\"\n      }\n    ]\n  },\n  \"etag\": \"\",\n  \"fileName\": \"\",\n  \"floodlightCriteria\": {\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"reportProperties\": {\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false\n    }\n  },\n  \"format\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedTime\": \"\",\n  \"name\": \"\",\n  \"ownerProfileId\": \"\",\n  \"pathAttributionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {\n      \"fallbackName\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"rules\": [\n        {\n          \"disjunctiveMatchStatements\": [\n            {\n              \"eventFilters\": [\n                {\n                  \"dimensionFilter\": {\n                    \"dimensionName\": \"\",\n                    \"ids\": [],\n                    \"kind\": \"\",\n                    \"matchType\": \"\",\n                    \"values\": []\n                  },\n                  \"kind\": \"\"\n                }\n              ],\n              \"kind\": \"\"\n            }\n          ],\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {\n        \"eventFilters\": [\n          {}\n        ],\n        \"kind\": \"\",\n        \"pathMatchPosition\": \"\"\n      }\n    ]\n  },\n  \"pathCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {},\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {}\n    ]\n  },\n  \"pathToConversionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"conversionDimensions\": [\n      {}\n    ],\n    \"customFloodlightVariables\": [\n      {}\n    ],\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"perInteractionDimensions\": [\n      {}\n    ],\n    \"reportProperties\": {\n      \"clicksLookbackWindow\": 0,\n      \"impressionsLookbackWindow\": 0,\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false,\n      \"maximumClickInteractions\": 0,\n      \"maximumImpressionInteractions\": 0,\n      \"maximumInteractionGap\": 0,\n      \"pivotOnInteractionPath\": false\n    }\n  },\n  \"reachCriteria\": {\n    \"activities\": {},\n    \"customRichMediaEvents\": {},\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"enableAllDimensionCombinations\": false,\n    \"metricNames\": [],\n    \"reachByFrequencyMetricNames\": []\n  },\n  \"schedule\": {\n    \"active\": false,\n    \"every\": 0,\n    \"expirationDate\": \"\",\n    \"repeats\": \"\",\n    \"repeatsOnWeekDays\": [],\n    \"runsOnDayOfMonth\": \"\",\n    \"startDate\": \"\"\n  },\n  \"subAccountId\": \"\",\n  \"type\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/reports/compatiblefields/query")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/userprofiles/:profileId/reports/compatiblefields/query")
  .header("content-type", "application/json")
  .body("{\n  \"accountId\": \"\",\n  \"criteria\": {\n    \"activities\": {\n      \"filters\": [\n        {\n          \"dimensionName\": \"\",\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"matchType\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"kind\": \"\",\n      \"metricNames\": []\n    },\n    \"customRichMediaEvents\": {\n      \"filteredEventIds\": [\n        {}\n      ],\n      \"kind\": \"\"\n    },\n    \"dateRange\": {\n      \"endDate\": \"\",\n      \"kind\": \"\",\n      \"relativeDateRange\": \"\",\n      \"startDate\": \"\"\n    },\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sortOrder\": \"\"\n      }\n    ],\n    \"metricNames\": []\n  },\n  \"crossDimensionReachCriteria\": {\n    \"breakdown\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimension\": \"\",\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"metricNames\": [],\n    \"overlapMetricNames\": [],\n    \"pivoted\": false\n  },\n  \"delivery\": {\n    \"emailOwner\": false,\n    \"emailOwnerDeliveryType\": \"\",\n    \"message\": \"\",\n    \"recipients\": [\n      {\n        \"deliveryType\": \"\",\n        \"email\": \"\",\n        \"kind\": \"\"\n      }\n    ]\n  },\n  \"etag\": \"\",\n  \"fileName\": \"\",\n  \"floodlightCriteria\": {\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"reportProperties\": {\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false\n    }\n  },\n  \"format\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedTime\": \"\",\n  \"name\": \"\",\n  \"ownerProfileId\": \"\",\n  \"pathAttributionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {\n      \"fallbackName\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"rules\": [\n        {\n          \"disjunctiveMatchStatements\": [\n            {\n              \"eventFilters\": [\n                {\n                  \"dimensionFilter\": {\n                    \"dimensionName\": \"\",\n                    \"ids\": [],\n                    \"kind\": \"\",\n                    \"matchType\": \"\",\n                    \"values\": []\n                  },\n                  \"kind\": \"\"\n                }\n              ],\n              \"kind\": \"\"\n            }\n          ],\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {\n        \"eventFilters\": [\n          {}\n        ],\n        \"kind\": \"\",\n        \"pathMatchPosition\": \"\"\n      }\n    ]\n  },\n  \"pathCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {},\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {}\n    ]\n  },\n  \"pathToConversionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"conversionDimensions\": [\n      {}\n    ],\n    \"customFloodlightVariables\": [\n      {}\n    ],\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"perInteractionDimensions\": [\n      {}\n    ],\n    \"reportProperties\": {\n      \"clicksLookbackWindow\": 0,\n      \"impressionsLookbackWindow\": 0,\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false,\n      \"maximumClickInteractions\": 0,\n      \"maximumImpressionInteractions\": 0,\n      \"maximumInteractionGap\": 0,\n      \"pivotOnInteractionPath\": false\n    }\n  },\n  \"reachCriteria\": {\n    \"activities\": {},\n    \"customRichMediaEvents\": {},\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"enableAllDimensionCombinations\": false,\n    \"metricNames\": [],\n    \"reachByFrequencyMetricNames\": []\n  },\n  \"schedule\": {\n    \"active\": false,\n    \"every\": 0,\n    \"expirationDate\": \"\",\n    \"repeats\": \"\",\n    \"repeatsOnWeekDays\": [],\n    \"runsOnDayOfMonth\": \"\",\n    \"startDate\": \"\"\n  },\n  \"subAccountId\": \"\",\n  \"type\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  accountId: '',
  criteria: {
    activities: {
      filters: [
        {
          dimensionName: '',
          etag: '',
          id: '',
          kind: '',
          matchType: '',
          value: ''
        }
      ],
      kind: '',
      metricNames: []
    },
    customRichMediaEvents: {
      filteredEventIds: [
        {}
      ],
      kind: ''
    },
    dateRange: {
      endDate: '',
      kind: '',
      relativeDateRange: '',
      startDate: ''
    },
    dimensionFilters: [
      {}
    ],
    dimensions: [
      {
        kind: '',
        name: '',
        sortOrder: ''
      }
    ],
    metricNames: []
  },
  crossDimensionReachCriteria: {
    breakdown: [
      {}
    ],
    dateRange: {},
    dimension: '',
    dimensionFilters: [
      {}
    ],
    metricNames: [],
    overlapMetricNames: [],
    pivoted: false
  },
  delivery: {
    emailOwner: false,
    emailOwnerDeliveryType: '',
    message: '',
    recipients: [
      {
        deliveryType: '',
        email: '',
        kind: ''
      }
    ]
  },
  etag: '',
  fileName: '',
  floodlightCriteria: {
    customRichMediaEvents: [
      {}
    ],
    dateRange: {},
    dimensionFilters: [
      {}
    ],
    dimensions: [
      {}
    ],
    floodlightConfigId: {},
    metricNames: [],
    reportProperties: {
      includeAttributedIPConversions: false,
      includeUnattributedCookieConversions: false,
      includeUnattributedIPConversions: false
    }
  },
  format: '',
  id: '',
  kind: '',
  lastModifiedTime: '',
  name: '',
  ownerProfileId: '',
  pathAttributionCriteria: {
    activityFilters: [
      {}
    ],
    customChannelGrouping: {
      fallbackName: '',
      kind: '',
      name: '',
      rules: [
        {
          disjunctiveMatchStatements: [
            {
              eventFilters: [
                {
                  dimensionFilter: {
                    dimensionName: '',
                    ids: [],
                    kind: '',
                    matchType: '',
                    values: []
                  },
                  kind: ''
                }
              ],
              kind: ''
            }
          ],
          kind: '',
          name: ''
        }
      ]
    },
    dateRange: {},
    dimensions: [
      {}
    ],
    floodlightConfigId: {},
    metricNames: [],
    pathFilters: [
      {
        eventFilters: [
          {}
        ],
        kind: '',
        pathMatchPosition: ''
      }
    ]
  },
  pathCriteria: {
    activityFilters: [
      {}
    ],
    customChannelGrouping: {},
    dateRange: {},
    dimensions: [
      {}
    ],
    floodlightConfigId: {},
    metricNames: [],
    pathFilters: [
      {}
    ]
  },
  pathToConversionCriteria: {
    activityFilters: [
      {}
    ],
    conversionDimensions: [
      {}
    ],
    customFloodlightVariables: [
      {}
    ],
    customRichMediaEvents: [
      {}
    ],
    dateRange: {},
    floodlightConfigId: {},
    metricNames: [],
    perInteractionDimensions: [
      {}
    ],
    reportProperties: {
      clicksLookbackWindow: 0,
      impressionsLookbackWindow: 0,
      includeAttributedIPConversions: false,
      includeUnattributedCookieConversions: false,
      includeUnattributedIPConversions: false,
      maximumClickInteractions: 0,
      maximumImpressionInteractions: 0,
      maximumInteractionGap: 0,
      pivotOnInteractionPath: false
    }
  },
  reachCriteria: {
    activities: {},
    customRichMediaEvents: {},
    dateRange: {},
    dimensionFilters: [
      {}
    ],
    dimensions: [
      {}
    ],
    enableAllDimensionCombinations: false,
    metricNames: [],
    reachByFrequencyMetricNames: []
  },
  schedule: {
    active: false,
    every: 0,
    expirationDate: '',
    repeats: '',
    repeatsOnWeekDays: [],
    runsOnDayOfMonth: '',
    startDate: ''
  },
  subAccountId: '',
  type: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/userprofiles/:profileId/reports/compatiblefields/query');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/userprofiles/:profileId/reports/compatiblefields/query',
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    criteria: {
      activities: {
        filters: [{dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''}],
        kind: '',
        metricNames: []
      },
      customRichMediaEvents: {filteredEventIds: [{}], kind: ''},
      dateRange: {endDate: '', kind: '', relativeDateRange: '', startDate: ''},
      dimensionFilters: [{}],
      dimensions: [{kind: '', name: '', sortOrder: ''}],
      metricNames: []
    },
    crossDimensionReachCriteria: {
      breakdown: [{}],
      dateRange: {},
      dimension: '',
      dimensionFilters: [{}],
      metricNames: [],
      overlapMetricNames: [],
      pivoted: false
    },
    delivery: {
      emailOwner: false,
      emailOwnerDeliveryType: '',
      message: '',
      recipients: [{deliveryType: '', email: '', kind: ''}]
    },
    etag: '',
    fileName: '',
    floodlightCriteria: {
      customRichMediaEvents: [{}],
      dateRange: {},
      dimensionFilters: [{}],
      dimensions: [{}],
      floodlightConfigId: {},
      metricNames: [],
      reportProperties: {
        includeAttributedIPConversions: false,
        includeUnattributedCookieConversions: false,
        includeUnattributedIPConversions: false
      }
    },
    format: '',
    id: '',
    kind: '',
    lastModifiedTime: '',
    name: '',
    ownerProfileId: '',
    pathAttributionCriteria: {
      activityFilters: [{}],
      customChannelGrouping: {
        fallbackName: '',
        kind: '',
        name: '',
        rules: [
          {
            disjunctiveMatchStatements: [
              {
                eventFilters: [
                  {
                    dimensionFilter: {dimensionName: '', ids: [], kind: '', matchType: '', values: []},
                    kind: ''
                  }
                ],
                kind: ''
              }
            ],
            kind: '',
            name: ''
          }
        ]
      },
      dateRange: {},
      dimensions: [{}],
      floodlightConfigId: {},
      metricNames: [],
      pathFilters: [{eventFilters: [{}], kind: '', pathMatchPosition: ''}]
    },
    pathCriteria: {
      activityFilters: [{}],
      customChannelGrouping: {},
      dateRange: {},
      dimensions: [{}],
      floodlightConfigId: {},
      metricNames: [],
      pathFilters: [{}]
    },
    pathToConversionCriteria: {
      activityFilters: [{}],
      conversionDimensions: [{}],
      customFloodlightVariables: [{}],
      customRichMediaEvents: [{}],
      dateRange: {},
      floodlightConfigId: {},
      metricNames: [],
      perInteractionDimensions: [{}],
      reportProperties: {
        clicksLookbackWindow: 0,
        impressionsLookbackWindow: 0,
        includeAttributedIPConversions: false,
        includeUnattributedCookieConversions: false,
        includeUnattributedIPConversions: false,
        maximumClickInteractions: 0,
        maximumImpressionInteractions: 0,
        maximumInteractionGap: 0,
        pivotOnInteractionPath: false
      }
    },
    reachCriteria: {
      activities: {},
      customRichMediaEvents: {},
      dateRange: {},
      dimensionFilters: [{}],
      dimensions: [{}],
      enableAllDimensionCombinations: false,
      metricNames: [],
      reachByFrequencyMetricNames: []
    },
    schedule: {
      active: false,
      every: 0,
      expirationDate: '',
      repeats: '',
      repeatsOnWeekDays: [],
      runsOnDayOfMonth: '',
      startDate: ''
    },
    subAccountId: '',
    type: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/reports/compatiblefields/query';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","criteria":{"activities":{"filters":[{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""}],"kind":"","metricNames":[]},"customRichMediaEvents":{"filteredEventIds":[{}],"kind":""},"dateRange":{"endDate":"","kind":"","relativeDateRange":"","startDate":""},"dimensionFilters":[{}],"dimensions":[{"kind":"","name":"","sortOrder":""}],"metricNames":[]},"crossDimensionReachCriteria":{"breakdown":[{}],"dateRange":{},"dimension":"","dimensionFilters":[{}],"metricNames":[],"overlapMetricNames":[],"pivoted":false},"delivery":{"emailOwner":false,"emailOwnerDeliveryType":"","message":"","recipients":[{"deliveryType":"","email":"","kind":""}]},"etag":"","fileName":"","floodlightCriteria":{"customRichMediaEvents":[{}],"dateRange":{},"dimensionFilters":[{}],"dimensions":[{}],"floodlightConfigId":{},"metricNames":[],"reportProperties":{"includeAttributedIPConversions":false,"includeUnattributedCookieConversions":false,"includeUnattributedIPConversions":false}},"format":"","id":"","kind":"","lastModifiedTime":"","name":"","ownerProfileId":"","pathAttributionCriteria":{"activityFilters":[{}],"customChannelGrouping":{"fallbackName":"","kind":"","name":"","rules":[{"disjunctiveMatchStatements":[{"eventFilters":[{"dimensionFilter":{"dimensionName":"","ids":[],"kind":"","matchType":"","values":[]},"kind":""}],"kind":""}],"kind":"","name":""}]},"dateRange":{},"dimensions":[{}],"floodlightConfigId":{},"metricNames":[],"pathFilters":[{"eventFilters":[{}],"kind":"","pathMatchPosition":""}]},"pathCriteria":{"activityFilters":[{}],"customChannelGrouping":{},"dateRange":{},"dimensions":[{}],"floodlightConfigId":{},"metricNames":[],"pathFilters":[{}]},"pathToConversionCriteria":{"activityFilters":[{}],"conversionDimensions":[{}],"customFloodlightVariables":[{}],"customRichMediaEvents":[{}],"dateRange":{},"floodlightConfigId":{},"metricNames":[],"perInteractionDimensions":[{}],"reportProperties":{"clicksLookbackWindow":0,"impressionsLookbackWindow":0,"includeAttributedIPConversions":false,"includeUnattributedCookieConversions":false,"includeUnattributedIPConversions":false,"maximumClickInteractions":0,"maximumImpressionInteractions":0,"maximumInteractionGap":0,"pivotOnInteractionPath":false}},"reachCriteria":{"activities":{},"customRichMediaEvents":{},"dateRange":{},"dimensionFilters":[{}],"dimensions":[{}],"enableAllDimensionCombinations":false,"metricNames":[],"reachByFrequencyMetricNames":[]},"schedule":{"active":false,"every":0,"expirationDate":"","repeats":"","repeatsOnWeekDays":[],"runsOnDayOfMonth":"","startDate":""},"subAccountId":"","type":""}'
};

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}}/userprofiles/:profileId/reports/compatiblefields/query',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "accountId": "",\n  "criteria": {\n    "activities": {\n      "filters": [\n        {\n          "dimensionName": "",\n          "etag": "",\n          "id": "",\n          "kind": "",\n          "matchType": "",\n          "value": ""\n        }\n      ],\n      "kind": "",\n      "metricNames": []\n    },\n    "customRichMediaEvents": {\n      "filteredEventIds": [\n        {}\n      ],\n      "kind": ""\n    },\n    "dateRange": {\n      "endDate": "",\n      "kind": "",\n      "relativeDateRange": "",\n      "startDate": ""\n    },\n    "dimensionFilters": [\n      {}\n    ],\n    "dimensions": [\n      {\n        "kind": "",\n        "name": "",\n        "sortOrder": ""\n      }\n    ],\n    "metricNames": []\n  },\n  "crossDimensionReachCriteria": {\n    "breakdown": [\n      {}\n    ],\n    "dateRange": {},\n    "dimension": "",\n    "dimensionFilters": [\n      {}\n    ],\n    "metricNames": [],\n    "overlapMetricNames": [],\n    "pivoted": false\n  },\n  "delivery": {\n    "emailOwner": false,\n    "emailOwnerDeliveryType": "",\n    "message": "",\n    "recipients": [\n      {\n        "deliveryType": "",\n        "email": "",\n        "kind": ""\n      }\n    ]\n  },\n  "etag": "",\n  "fileName": "",\n  "floodlightCriteria": {\n    "customRichMediaEvents": [\n      {}\n    ],\n    "dateRange": {},\n    "dimensionFilters": [\n      {}\n    ],\n    "dimensions": [\n      {}\n    ],\n    "floodlightConfigId": {},\n    "metricNames": [],\n    "reportProperties": {\n      "includeAttributedIPConversions": false,\n      "includeUnattributedCookieConversions": false,\n      "includeUnattributedIPConversions": false\n    }\n  },\n  "format": "",\n  "id": "",\n  "kind": "",\n  "lastModifiedTime": "",\n  "name": "",\n  "ownerProfileId": "",\n  "pathAttributionCriteria": {\n    "activityFilters": [\n      {}\n    ],\n    "customChannelGrouping": {\n      "fallbackName": "",\n      "kind": "",\n      "name": "",\n      "rules": [\n        {\n          "disjunctiveMatchStatements": [\n            {\n              "eventFilters": [\n                {\n                  "dimensionFilter": {\n                    "dimensionName": "",\n                    "ids": [],\n                    "kind": "",\n                    "matchType": "",\n                    "values": []\n                  },\n                  "kind": ""\n                }\n              ],\n              "kind": ""\n            }\n          ],\n          "kind": "",\n          "name": ""\n        }\n      ]\n    },\n    "dateRange": {},\n    "dimensions": [\n      {}\n    ],\n    "floodlightConfigId": {},\n    "metricNames": [],\n    "pathFilters": [\n      {\n        "eventFilters": [\n          {}\n        ],\n        "kind": "",\n        "pathMatchPosition": ""\n      }\n    ]\n  },\n  "pathCriteria": {\n    "activityFilters": [\n      {}\n    ],\n    "customChannelGrouping": {},\n    "dateRange": {},\n    "dimensions": [\n      {}\n    ],\n    "floodlightConfigId": {},\n    "metricNames": [],\n    "pathFilters": [\n      {}\n    ]\n  },\n  "pathToConversionCriteria": {\n    "activityFilters": [\n      {}\n    ],\n    "conversionDimensions": [\n      {}\n    ],\n    "customFloodlightVariables": [\n      {}\n    ],\n    "customRichMediaEvents": [\n      {}\n    ],\n    "dateRange": {},\n    "floodlightConfigId": {},\n    "metricNames": [],\n    "perInteractionDimensions": [\n      {}\n    ],\n    "reportProperties": {\n      "clicksLookbackWindow": 0,\n      "impressionsLookbackWindow": 0,\n      "includeAttributedIPConversions": false,\n      "includeUnattributedCookieConversions": false,\n      "includeUnattributedIPConversions": false,\n      "maximumClickInteractions": 0,\n      "maximumImpressionInteractions": 0,\n      "maximumInteractionGap": 0,\n      "pivotOnInteractionPath": false\n    }\n  },\n  "reachCriteria": {\n    "activities": {},\n    "customRichMediaEvents": {},\n    "dateRange": {},\n    "dimensionFilters": [\n      {}\n    ],\n    "dimensions": [\n      {}\n    ],\n    "enableAllDimensionCombinations": false,\n    "metricNames": [],\n    "reachByFrequencyMetricNames": []\n  },\n  "schedule": {\n    "active": false,\n    "every": 0,\n    "expirationDate": "",\n    "repeats": "",\n    "repeatsOnWeekDays": [],\n    "runsOnDayOfMonth": "",\n    "startDate": ""\n  },\n  "subAccountId": "",\n  "type": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"accountId\": \"\",\n  \"criteria\": {\n    \"activities\": {\n      \"filters\": [\n        {\n          \"dimensionName\": \"\",\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"matchType\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"kind\": \"\",\n      \"metricNames\": []\n    },\n    \"customRichMediaEvents\": {\n      \"filteredEventIds\": [\n        {}\n      ],\n      \"kind\": \"\"\n    },\n    \"dateRange\": {\n      \"endDate\": \"\",\n      \"kind\": \"\",\n      \"relativeDateRange\": \"\",\n      \"startDate\": \"\"\n    },\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sortOrder\": \"\"\n      }\n    ],\n    \"metricNames\": []\n  },\n  \"crossDimensionReachCriteria\": {\n    \"breakdown\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimension\": \"\",\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"metricNames\": [],\n    \"overlapMetricNames\": [],\n    \"pivoted\": false\n  },\n  \"delivery\": {\n    \"emailOwner\": false,\n    \"emailOwnerDeliveryType\": \"\",\n    \"message\": \"\",\n    \"recipients\": [\n      {\n        \"deliveryType\": \"\",\n        \"email\": \"\",\n        \"kind\": \"\"\n      }\n    ]\n  },\n  \"etag\": \"\",\n  \"fileName\": \"\",\n  \"floodlightCriteria\": {\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"reportProperties\": {\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false\n    }\n  },\n  \"format\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedTime\": \"\",\n  \"name\": \"\",\n  \"ownerProfileId\": \"\",\n  \"pathAttributionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {\n      \"fallbackName\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"rules\": [\n        {\n          \"disjunctiveMatchStatements\": [\n            {\n              \"eventFilters\": [\n                {\n                  \"dimensionFilter\": {\n                    \"dimensionName\": \"\",\n                    \"ids\": [],\n                    \"kind\": \"\",\n                    \"matchType\": \"\",\n                    \"values\": []\n                  },\n                  \"kind\": \"\"\n                }\n              ],\n              \"kind\": \"\"\n            }\n          ],\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {\n        \"eventFilters\": [\n          {}\n        ],\n        \"kind\": \"\",\n        \"pathMatchPosition\": \"\"\n      }\n    ]\n  },\n  \"pathCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {},\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {}\n    ]\n  },\n  \"pathToConversionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"conversionDimensions\": [\n      {}\n    ],\n    \"customFloodlightVariables\": [\n      {}\n    ],\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"perInteractionDimensions\": [\n      {}\n    ],\n    \"reportProperties\": {\n      \"clicksLookbackWindow\": 0,\n      \"impressionsLookbackWindow\": 0,\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false,\n      \"maximumClickInteractions\": 0,\n      \"maximumImpressionInteractions\": 0,\n      \"maximumInteractionGap\": 0,\n      \"pivotOnInteractionPath\": false\n    }\n  },\n  \"reachCriteria\": {\n    \"activities\": {},\n    \"customRichMediaEvents\": {},\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"enableAllDimensionCombinations\": false,\n    \"metricNames\": [],\n    \"reachByFrequencyMetricNames\": []\n  },\n  \"schedule\": {\n    \"active\": false,\n    \"every\": 0,\n    \"expirationDate\": \"\",\n    \"repeats\": \"\",\n    \"repeatsOnWeekDays\": [],\n    \"runsOnDayOfMonth\": \"\",\n    \"startDate\": \"\"\n  },\n  \"subAccountId\": \"\",\n  \"type\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/reports/compatiblefields/query")
  .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/userprofiles/:profileId/reports/compatiblefields/query',
  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({
  accountId: '',
  criteria: {
    activities: {
      filters: [{dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''}],
      kind: '',
      metricNames: []
    },
    customRichMediaEvents: {filteredEventIds: [{}], kind: ''},
    dateRange: {endDate: '', kind: '', relativeDateRange: '', startDate: ''},
    dimensionFilters: [{}],
    dimensions: [{kind: '', name: '', sortOrder: ''}],
    metricNames: []
  },
  crossDimensionReachCriteria: {
    breakdown: [{}],
    dateRange: {},
    dimension: '',
    dimensionFilters: [{}],
    metricNames: [],
    overlapMetricNames: [],
    pivoted: false
  },
  delivery: {
    emailOwner: false,
    emailOwnerDeliveryType: '',
    message: '',
    recipients: [{deliveryType: '', email: '', kind: ''}]
  },
  etag: '',
  fileName: '',
  floodlightCriteria: {
    customRichMediaEvents: [{}],
    dateRange: {},
    dimensionFilters: [{}],
    dimensions: [{}],
    floodlightConfigId: {},
    metricNames: [],
    reportProperties: {
      includeAttributedIPConversions: false,
      includeUnattributedCookieConversions: false,
      includeUnattributedIPConversions: false
    }
  },
  format: '',
  id: '',
  kind: '',
  lastModifiedTime: '',
  name: '',
  ownerProfileId: '',
  pathAttributionCriteria: {
    activityFilters: [{}],
    customChannelGrouping: {
      fallbackName: '',
      kind: '',
      name: '',
      rules: [
        {
          disjunctiveMatchStatements: [
            {
              eventFilters: [
                {
                  dimensionFilter: {dimensionName: '', ids: [], kind: '', matchType: '', values: []},
                  kind: ''
                }
              ],
              kind: ''
            }
          ],
          kind: '',
          name: ''
        }
      ]
    },
    dateRange: {},
    dimensions: [{}],
    floodlightConfigId: {},
    metricNames: [],
    pathFilters: [{eventFilters: [{}], kind: '', pathMatchPosition: ''}]
  },
  pathCriteria: {
    activityFilters: [{}],
    customChannelGrouping: {},
    dateRange: {},
    dimensions: [{}],
    floodlightConfigId: {},
    metricNames: [],
    pathFilters: [{}]
  },
  pathToConversionCriteria: {
    activityFilters: [{}],
    conversionDimensions: [{}],
    customFloodlightVariables: [{}],
    customRichMediaEvents: [{}],
    dateRange: {},
    floodlightConfigId: {},
    metricNames: [],
    perInteractionDimensions: [{}],
    reportProperties: {
      clicksLookbackWindow: 0,
      impressionsLookbackWindow: 0,
      includeAttributedIPConversions: false,
      includeUnattributedCookieConversions: false,
      includeUnattributedIPConversions: false,
      maximumClickInteractions: 0,
      maximumImpressionInteractions: 0,
      maximumInteractionGap: 0,
      pivotOnInteractionPath: false
    }
  },
  reachCriteria: {
    activities: {},
    customRichMediaEvents: {},
    dateRange: {},
    dimensionFilters: [{}],
    dimensions: [{}],
    enableAllDimensionCombinations: false,
    metricNames: [],
    reachByFrequencyMetricNames: []
  },
  schedule: {
    active: false,
    every: 0,
    expirationDate: '',
    repeats: '',
    repeatsOnWeekDays: [],
    runsOnDayOfMonth: '',
    startDate: ''
  },
  subAccountId: '',
  type: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/userprofiles/:profileId/reports/compatiblefields/query',
  headers: {'content-type': 'application/json'},
  body: {
    accountId: '',
    criteria: {
      activities: {
        filters: [{dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''}],
        kind: '',
        metricNames: []
      },
      customRichMediaEvents: {filteredEventIds: [{}], kind: ''},
      dateRange: {endDate: '', kind: '', relativeDateRange: '', startDate: ''},
      dimensionFilters: [{}],
      dimensions: [{kind: '', name: '', sortOrder: ''}],
      metricNames: []
    },
    crossDimensionReachCriteria: {
      breakdown: [{}],
      dateRange: {},
      dimension: '',
      dimensionFilters: [{}],
      metricNames: [],
      overlapMetricNames: [],
      pivoted: false
    },
    delivery: {
      emailOwner: false,
      emailOwnerDeliveryType: '',
      message: '',
      recipients: [{deliveryType: '', email: '', kind: ''}]
    },
    etag: '',
    fileName: '',
    floodlightCriteria: {
      customRichMediaEvents: [{}],
      dateRange: {},
      dimensionFilters: [{}],
      dimensions: [{}],
      floodlightConfigId: {},
      metricNames: [],
      reportProperties: {
        includeAttributedIPConversions: false,
        includeUnattributedCookieConversions: false,
        includeUnattributedIPConversions: false
      }
    },
    format: '',
    id: '',
    kind: '',
    lastModifiedTime: '',
    name: '',
    ownerProfileId: '',
    pathAttributionCriteria: {
      activityFilters: [{}],
      customChannelGrouping: {
        fallbackName: '',
        kind: '',
        name: '',
        rules: [
          {
            disjunctiveMatchStatements: [
              {
                eventFilters: [
                  {
                    dimensionFilter: {dimensionName: '', ids: [], kind: '', matchType: '', values: []},
                    kind: ''
                  }
                ],
                kind: ''
              }
            ],
            kind: '',
            name: ''
          }
        ]
      },
      dateRange: {},
      dimensions: [{}],
      floodlightConfigId: {},
      metricNames: [],
      pathFilters: [{eventFilters: [{}], kind: '', pathMatchPosition: ''}]
    },
    pathCriteria: {
      activityFilters: [{}],
      customChannelGrouping: {},
      dateRange: {},
      dimensions: [{}],
      floodlightConfigId: {},
      metricNames: [],
      pathFilters: [{}]
    },
    pathToConversionCriteria: {
      activityFilters: [{}],
      conversionDimensions: [{}],
      customFloodlightVariables: [{}],
      customRichMediaEvents: [{}],
      dateRange: {},
      floodlightConfigId: {},
      metricNames: [],
      perInteractionDimensions: [{}],
      reportProperties: {
        clicksLookbackWindow: 0,
        impressionsLookbackWindow: 0,
        includeAttributedIPConversions: false,
        includeUnattributedCookieConversions: false,
        includeUnattributedIPConversions: false,
        maximumClickInteractions: 0,
        maximumImpressionInteractions: 0,
        maximumInteractionGap: 0,
        pivotOnInteractionPath: false
      }
    },
    reachCriteria: {
      activities: {},
      customRichMediaEvents: {},
      dateRange: {},
      dimensionFilters: [{}],
      dimensions: [{}],
      enableAllDimensionCombinations: false,
      metricNames: [],
      reachByFrequencyMetricNames: []
    },
    schedule: {
      active: false,
      every: 0,
      expirationDate: '',
      repeats: '',
      repeatsOnWeekDays: [],
      runsOnDayOfMonth: '',
      startDate: ''
    },
    subAccountId: '',
    type: ''
  },
  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}}/userprofiles/:profileId/reports/compatiblefields/query');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  accountId: '',
  criteria: {
    activities: {
      filters: [
        {
          dimensionName: '',
          etag: '',
          id: '',
          kind: '',
          matchType: '',
          value: ''
        }
      ],
      kind: '',
      metricNames: []
    },
    customRichMediaEvents: {
      filteredEventIds: [
        {}
      ],
      kind: ''
    },
    dateRange: {
      endDate: '',
      kind: '',
      relativeDateRange: '',
      startDate: ''
    },
    dimensionFilters: [
      {}
    ],
    dimensions: [
      {
        kind: '',
        name: '',
        sortOrder: ''
      }
    ],
    metricNames: []
  },
  crossDimensionReachCriteria: {
    breakdown: [
      {}
    ],
    dateRange: {},
    dimension: '',
    dimensionFilters: [
      {}
    ],
    metricNames: [],
    overlapMetricNames: [],
    pivoted: false
  },
  delivery: {
    emailOwner: false,
    emailOwnerDeliveryType: '',
    message: '',
    recipients: [
      {
        deliveryType: '',
        email: '',
        kind: ''
      }
    ]
  },
  etag: '',
  fileName: '',
  floodlightCriteria: {
    customRichMediaEvents: [
      {}
    ],
    dateRange: {},
    dimensionFilters: [
      {}
    ],
    dimensions: [
      {}
    ],
    floodlightConfigId: {},
    metricNames: [],
    reportProperties: {
      includeAttributedIPConversions: false,
      includeUnattributedCookieConversions: false,
      includeUnattributedIPConversions: false
    }
  },
  format: '',
  id: '',
  kind: '',
  lastModifiedTime: '',
  name: '',
  ownerProfileId: '',
  pathAttributionCriteria: {
    activityFilters: [
      {}
    ],
    customChannelGrouping: {
      fallbackName: '',
      kind: '',
      name: '',
      rules: [
        {
          disjunctiveMatchStatements: [
            {
              eventFilters: [
                {
                  dimensionFilter: {
                    dimensionName: '',
                    ids: [],
                    kind: '',
                    matchType: '',
                    values: []
                  },
                  kind: ''
                }
              ],
              kind: ''
            }
          ],
          kind: '',
          name: ''
        }
      ]
    },
    dateRange: {},
    dimensions: [
      {}
    ],
    floodlightConfigId: {},
    metricNames: [],
    pathFilters: [
      {
        eventFilters: [
          {}
        ],
        kind: '',
        pathMatchPosition: ''
      }
    ]
  },
  pathCriteria: {
    activityFilters: [
      {}
    ],
    customChannelGrouping: {},
    dateRange: {},
    dimensions: [
      {}
    ],
    floodlightConfigId: {},
    metricNames: [],
    pathFilters: [
      {}
    ]
  },
  pathToConversionCriteria: {
    activityFilters: [
      {}
    ],
    conversionDimensions: [
      {}
    ],
    customFloodlightVariables: [
      {}
    ],
    customRichMediaEvents: [
      {}
    ],
    dateRange: {},
    floodlightConfigId: {},
    metricNames: [],
    perInteractionDimensions: [
      {}
    ],
    reportProperties: {
      clicksLookbackWindow: 0,
      impressionsLookbackWindow: 0,
      includeAttributedIPConversions: false,
      includeUnattributedCookieConversions: false,
      includeUnattributedIPConversions: false,
      maximumClickInteractions: 0,
      maximumImpressionInteractions: 0,
      maximumInteractionGap: 0,
      pivotOnInteractionPath: false
    }
  },
  reachCriteria: {
    activities: {},
    customRichMediaEvents: {},
    dateRange: {},
    dimensionFilters: [
      {}
    ],
    dimensions: [
      {}
    ],
    enableAllDimensionCombinations: false,
    metricNames: [],
    reachByFrequencyMetricNames: []
  },
  schedule: {
    active: false,
    every: 0,
    expirationDate: '',
    repeats: '',
    repeatsOnWeekDays: [],
    runsOnDayOfMonth: '',
    startDate: ''
  },
  subAccountId: '',
  type: ''
});

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}}/userprofiles/:profileId/reports/compatiblefields/query',
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    criteria: {
      activities: {
        filters: [{dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''}],
        kind: '',
        metricNames: []
      },
      customRichMediaEvents: {filteredEventIds: [{}], kind: ''},
      dateRange: {endDate: '', kind: '', relativeDateRange: '', startDate: ''},
      dimensionFilters: [{}],
      dimensions: [{kind: '', name: '', sortOrder: ''}],
      metricNames: []
    },
    crossDimensionReachCriteria: {
      breakdown: [{}],
      dateRange: {},
      dimension: '',
      dimensionFilters: [{}],
      metricNames: [],
      overlapMetricNames: [],
      pivoted: false
    },
    delivery: {
      emailOwner: false,
      emailOwnerDeliveryType: '',
      message: '',
      recipients: [{deliveryType: '', email: '', kind: ''}]
    },
    etag: '',
    fileName: '',
    floodlightCriteria: {
      customRichMediaEvents: [{}],
      dateRange: {},
      dimensionFilters: [{}],
      dimensions: [{}],
      floodlightConfigId: {},
      metricNames: [],
      reportProperties: {
        includeAttributedIPConversions: false,
        includeUnattributedCookieConversions: false,
        includeUnattributedIPConversions: false
      }
    },
    format: '',
    id: '',
    kind: '',
    lastModifiedTime: '',
    name: '',
    ownerProfileId: '',
    pathAttributionCriteria: {
      activityFilters: [{}],
      customChannelGrouping: {
        fallbackName: '',
        kind: '',
        name: '',
        rules: [
          {
            disjunctiveMatchStatements: [
              {
                eventFilters: [
                  {
                    dimensionFilter: {dimensionName: '', ids: [], kind: '', matchType: '', values: []},
                    kind: ''
                  }
                ],
                kind: ''
              }
            ],
            kind: '',
            name: ''
          }
        ]
      },
      dateRange: {},
      dimensions: [{}],
      floodlightConfigId: {},
      metricNames: [],
      pathFilters: [{eventFilters: [{}], kind: '', pathMatchPosition: ''}]
    },
    pathCriteria: {
      activityFilters: [{}],
      customChannelGrouping: {},
      dateRange: {},
      dimensions: [{}],
      floodlightConfigId: {},
      metricNames: [],
      pathFilters: [{}]
    },
    pathToConversionCriteria: {
      activityFilters: [{}],
      conversionDimensions: [{}],
      customFloodlightVariables: [{}],
      customRichMediaEvents: [{}],
      dateRange: {},
      floodlightConfigId: {},
      metricNames: [],
      perInteractionDimensions: [{}],
      reportProperties: {
        clicksLookbackWindow: 0,
        impressionsLookbackWindow: 0,
        includeAttributedIPConversions: false,
        includeUnattributedCookieConversions: false,
        includeUnattributedIPConversions: false,
        maximumClickInteractions: 0,
        maximumImpressionInteractions: 0,
        maximumInteractionGap: 0,
        pivotOnInteractionPath: false
      }
    },
    reachCriteria: {
      activities: {},
      customRichMediaEvents: {},
      dateRange: {},
      dimensionFilters: [{}],
      dimensions: [{}],
      enableAllDimensionCombinations: false,
      metricNames: [],
      reachByFrequencyMetricNames: []
    },
    schedule: {
      active: false,
      every: 0,
      expirationDate: '',
      repeats: '',
      repeatsOnWeekDays: [],
      runsOnDayOfMonth: '',
      startDate: ''
    },
    subAccountId: '',
    type: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/reports/compatiblefields/query';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","criteria":{"activities":{"filters":[{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""}],"kind":"","metricNames":[]},"customRichMediaEvents":{"filteredEventIds":[{}],"kind":""},"dateRange":{"endDate":"","kind":"","relativeDateRange":"","startDate":""},"dimensionFilters":[{}],"dimensions":[{"kind":"","name":"","sortOrder":""}],"metricNames":[]},"crossDimensionReachCriteria":{"breakdown":[{}],"dateRange":{},"dimension":"","dimensionFilters":[{}],"metricNames":[],"overlapMetricNames":[],"pivoted":false},"delivery":{"emailOwner":false,"emailOwnerDeliveryType":"","message":"","recipients":[{"deliveryType":"","email":"","kind":""}]},"etag":"","fileName":"","floodlightCriteria":{"customRichMediaEvents":[{}],"dateRange":{},"dimensionFilters":[{}],"dimensions":[{}],"floodlightConfigId":{},"metricNames":[],"reportProperties":{"includeAttributedIPConversions":false,"includeUnattributedCookieConversions":false,"includeUnattributedIPConversions":false}},"format":"","id":"","kind":"","lastModifiedTime":"","name":"","ownerProfileId":"","pathAttributionCriteria":{"activityFilters":[{}],"customChannelGrouping":{"fallbackName":"","kind":"","name":"","rules":[{"disjunctiveMatchStatements":[{"eventFilters":[{"dimensionFilter":{"dimensionName":"","ids":[],"kind":"","matchType":"","values":[]},"kind":""}],"kind":""}],"kind":"","name":""}]},"dateRange":{},"dimensions":[{}],"floodlightConfigId":{},"metricNames":[],"pathFilters":[{"eventFilters":[{}],"kind":"","pathMatchPosition":""}]},"pathCriteria":{"activityFilters":[{}],"customChannelGrouping":{},"dateRange":{},"dimensions":[{}],"floodlightConfigId":{},"metricNames":[],"pathFilters":[{}]},"pathToConversionCriteria":{"activityFilters":[{}],"conversionDimensions":[{}],"customFloodlightVariables":[{}],"customRichMediaEvents":[{}],"dateRange":{},"floodlightConfigId":{},"metricNames":[],"perInteractionDimensions":[{}],"reportProperties":{"clicksLookbackWindow":0,"impressionsLookbackWindow":0,"includeAttributedIPConversions":false,"includeUnattributedCookieConversions":false,"includeUnattributedIPConversions":false,"maximumClickInteractions":0,"maximumImpressionInteractions":0,"maximumInteractionGap":0,"pivotOnInteractionPath":false}},"reachCriteria":{"activities":{},"customRichMediaEvents":{},"dateRange":{},"dimensionFilters":[{}],"dimensions":[{}],"enableAllDimensionCombinations":false,"metricNames":[],"reachByFrequencyMetricNames":[]},"schedule":{"active":false,"every":0,"expirationDate":"","repeats":"","repeatsOnWeekDays":[],"runsOnDayOfMonth":"","startDate":""},"subAccountId":"","type":""}'
};

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 = @{ @"accountId": @"",
                              @"criteria": @{ @"activities": @{ @"filters": @[ @{ @"dimensionName": @"", @"etag": @"", @"id": @"", @"kind": @"", @"matchType": @"", @"value": @"" } ], @"kind": @"", @"metricNames": @[  ] }, @"customRichMediaEvents": @{ @"filteredEventIds": @[ @{  } ], @"kind": @"" }, @"dateRange": @{ @"endDate": @"", @"kind": @"", @"relativeDateRange": @"", @"startDate": @"" }, @"dimensionFilters": @[ @{  } ], @"dimensions": @[ @{ @"kind": @"", @"name": @"", @"sortOrder": @"" } ], @"metricNames": @[  ] },
                              @"crossDimensionReachCriteria": @{ @"breakdown": @[ @{  } ], @"dateRange": @{  }, @"dimension": @"", @"dimensionFilters": @[ @{  } ], @"metricNames": @[  ], @"overlapMetricNames": @[  ], @"pivoted": @NO },
                              @"delivery": @{ @"emailOwner": @NO, @"emailOwnerDeliveryType": @"", @"message": @"", @"recipients": @[ @{ @"deliveryType": @"", @"email": @"", @"kind": @"" } ] },
                              @"etag": @"",
                              @"fileName": @"",
                              @"floodlightCriteria": @{ @"customRichMediaEvents": @[ @{  } ], @"dateRange": @{  }, @"dimensionFilters": @[ @{  } ], @"dimensions": @[ @{  } ], @"floodlightConfigId": @{  }, @"metricNames": @[  ], @"reportProperties": @{ @"includeAttributedIPConversions": @NO, @"includeUnattributedCookieConversions": @NO, @"includeUnattributedIPConversions": @NO } },
                              @"format": @"",
                              @"id": @"",
                              @"kind": @"",
                              @"lastModifiedTime": @"",
                              @"name": @"",
                              @"ownerProfileId": @"",
                              @"pathAttributionCriteria": @{ @"activityFilters": @[ @{  } ], @"customChannelGrouping": @{ @"fallbackName": @"", @"kind": @"", @"name": @"", @"rules": @[ @{ @"disjunctiveMatchStatements": @[ @{ @"eventFilters": @[ @{ @"dimensionFilter": @{ @"dimensionName": @"", @"ids": @[  ], @"kind": @"", @"matchType": @"", @"values": @[  ] }, @"kind": @"" } ], @"kind": @"" } ], @"kind": @"", @"name": @"" } ] }, @"dateRange": @{  }, @"dimensions": @[ @{  } ], @"floodlightConfigId": @{  }, @"metricNames": @[  ], @"pathFilters": @[ @{ @"eventFilters": @[ @{  } ], @"kind": @"", @"pathMatchPosition": @"" } ] },
                              @"pathCriteria": @{ @"activityFilters": @[ @{  } ], @"customChannelGrouping": @{  }, @"dateRange": @{  }, @"dimensions": @[ @{  } ], @"floodlightConfigId": @{  }, @"metricNames": @[  ], @"pathFilters": @[ @{  } ] },
                              @"pathToConversionCriteria": @{ @"activityFilters": @[ @{  } ], @"conversionDimensions": @[ @{  } ], @"customFloodlightVariables": @[ @{  } ], @"customRichMediaEvents": @[ @{  } ], @"dateRange": @{  }, @"floodlightConfigId": @{  }, @"metricNames": @[  ], @"perInteractionDimensions": @[ @{  } ], @"reportProperties": @{ @"clicksLookbackWindow": @0, @"impressionsLookbackWindow": @0, @"includeAttributedIPConversions": @NO, @"includeUnattributedCookieConversions": @NO, @"includeUnattributedIPConversions": @NO, @"maximumClickInteractions": @0, @"maximumImpressionInteractions": @0, @"maximumInteractionGap": @0, @"pivotOnInteractionPath": @NO } },
                              @"reachCriteria": @{ @"activities": @{  }, @"customRichMediaEvents": @{  }, @"dateRange": @{  }, @"dimensionFilters": @[ @{  } ], @"dimensions": @[ @{  } ], @"enableAllDimensionCombinations": @NO, @"metricNames": @[  ], @"reachByFrequencyMetricNames": @[  ] },
                              @"schedule": @{ @"active": @NO, @"every": @0, @"expirationDate": @"", @"repeats": @"", @"repeatsOnWeekDays": @[  ], @"runsOnDayOfMonth": @"", @"startDate": @"" },
                              @"subAccountId": @"",
                              @"type": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/userprofiles/:profileId/reports/compatiblefields/query"]
                                                       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}}/userprofiles/:profileId/reports/compatiblefields/query" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"accountId\": \"\",\n  \"criteria\": {\n    \"activities\": {\n      \"filters\": [\n        {\n          \"dimensionName\": \"\",\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"matchType\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"kind\": \"\",\n      \"metricNames\": []\n    },\n    \"customRichMediaEvents\": {\n      \"filteredEventIds\": [\n        {}\n      ],\n      \"kind\": \"\"\n    },\n    \"dateRange\": {\n      \"endDate\": \"\",\n      \"kind\": \"\",\n      \"relativeDateRange\": \"\",\n      \"startDate\": \"\"\n    },\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sortOrder\": \"\"\n      }\n    ],\n    \"metricNames\": []\n  },\n  \"crossDimensionReachCriteria\": {\n    \"breakdown\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimension\": \"\",\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"metricNames\": [],\n    \"overlapMetricNames\": [],\n    \"pivoted\": false\n  },\n  \"delivery\": {\n    \"emailOwner\": false,\n    \"emailOwnerDeliveryType\": \"\",\n    \"message\": \"\",\n    \"recipients\": [\n      {\n        \"deliveryType\": \"\",\n        \"email\": \"\",\n        \"kind\": \"\"\n      }\n    ]\n  },\n  \"etag\": \"\",\n  \"fileName\": \"\",\n  \"floodlightCriteria\": {\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"reportProperties\": {\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false\n    }\n  },\n  \"format\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedTime\": \"\",\n  \"name\": \"\",\n  \"ownerProfileId\": \"\",\n  \"pathAttributionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {\n      \"fallbackName\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"rules\": [\n        {\n          \"disjunctiveMatchStatements\": [\n            {\n              \"eventFilters\": [\n                {\n                  \"dimensionFilter\": {\n                    \"dimensionName\": \"\",\n                    \"ids\": [],\n                    \"kind\": \"\",\n                    \"matchType\": \"\",\n                    \"values\": []\n                  },\n                  \"kind\": \"\"\n                }\n              ],\n              \"kind\": \"\"\n            }\n          ],\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {\n        \"eventFilters\": [\n          {}\n        ],\n        \"kind\": \"\",\n        \"pathMatchPosition\": \"\"\n      }\n    ]\n  },\n  \"pathCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {},\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {}\n    ]\n  },\n  \"pathToConversionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"conversionDimensions\": [\n      {}\n    ],\n    \"customFloodlightVariables\": [\n      {}\n    ],\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"perInteractionDimensions\": [\n      {}\n    ],\n    \"reportProperties\": {\n      \"clicksLookbackWindow\": 0,\n      \"impressionsLookbackWindow\": 0,\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false,\n      \"maximumClickInteractions\": 0,\n      \"maximumImpressionInteractions\": 0,\n      \"maximumInteractionGap\": 0,\n      \"pivotOnInteractionPath\": false\n    }\n  },\n  \"reachCriteria\": {\n    \"activities\": {},\n    \"customRichMediaEvents\": {},\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"enableAllDimensionCombinations\": false,\n    \"metricNames\": [],\n    \"reachByFrequencyMetricNames\": []\n  },\n  \"schedule\": {\n    \"active\": false,\n    \"every\": 0,\n    \"expirationDate\": \"\",\n    \"repeats\": \"\",\n    \"repeatsOnWeekDays\": [],\n    \"runsOnDayOfMonth\": \"\",\n    \"startDate\": \"\"\n  },\n  \"subAccountId\": \"\",\n  \"type\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/reports/compatiblefields/query",
  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([
    'accountId' => '',
    'criteria' => [
        'activities' => [
                'filters' => [
                                [
                                                                'dimensionName' => '',
                                                                'etag' => '',
                                                                'id' => '',
                                                                'kind' => '',
                                                                'matchType' => '',
                                                                'value' => ''
                                ]
                ],
                'kind' => '',
                'metricNames' => [
                                
                ]
        ],
        'customRichMediaEvents' => [
                'filteredEventIds' => [
                                [
                                                                
                                ]
                ],
                'kind' => ''
        ],
        'dateRange' => [
                'endDate' => '',
                'kind' => '',
                'relativeDateRange' => '',
                'startDate' => ''
        ],
        'dimensionFilters' => [
                [
                                
                ]
        ],
        'dimensions' => [
                [
                                'kind' => '',
                                'name' => '',
                                'sortOrder' => ''
                ]
        ],
        'metricNames' => [
                
        ]
    ],
    'crossDimensionReachCriteria' => [
        'breakdown' => [
                [
                                
                ]
        ],
        'dateRange' => [
                
        ],
        'dimension' => '',
        'dimensionFilters' => [
                [
                                
                ]
        ],
        'metricNames' => [
                
        ],
        'overlapMetricNames' => [
                
        ],
        'pivoted' => null
    ],
    'delivery' => [
        'emailOwner' => null,
        'emailOwnerDeliveryType' => '',
        'message' => '',
        'recipients' => [
                [
                                'deliveryType' => '',
                                'email' => '',
                                'kind' => ''
                ]
        ]
    ],
    'etag' => '',
    'fileName' => '',
    'floodlightCriteria' => [
        'customRichMediaEvents' => [
                [
                                
                ]
        ],
        'dateRange' => [
                
        ],
        'dimensionFilters' => [
                [
                                
                ]
        ],
        'dimensions' => [
                [
                                
                ]
        ],
        'floodlightConfigId' => [
                
        ],
        'metricNames' => [
                
        ],
        'reportProperties' => [
                'includeAttributedIPConversions' => null,
                'includeUnattributedCookieConversions' => null,
                'includeUnattributedIPConversions' => null
        ]
    ],
    'format' => '',
    'id' => '',
    'kind' => '',
    'lastModifiedTime' => '',
    'name' => '',
    'ownerProfileId' => '',
    'pathAttributionCriteria' => [
        'activityFilters' => [
                [
                                
                ]
        ],
        'customChannelGrouping' => [
                'fallbackName' => '',
                'kind' => '',
                'name' => '',
                'rules' => [
                                [
                                                                'disjunctiveMatchStatements' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'eventFilters' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'dimensionFilter' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'dimensionName' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'ids' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'kind' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'matchType' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'values' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'kind' => ''
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'kind' => ''
                                                                                                                                ]
                                                                ],
                                                                'kind' => '',
                                                                'name' => ''
                                ]
                ]
        ],
        'dateRange' => [
                
        ],
        'dimensions' => [
                [
                                
                ]
        ],
        'floodlightConfigId' => [
                
        ],
        'metricNames' => [
                
        ],
        'pathFilters' => [
                [
                                'eventFilters' => [
                                                                [
                                                                                                                                
                                                                ]
                                ],
                                'kind' => '',
                                'pathMatchPosition' => ''
                ]
        ]
    ],
    'pathCriteria' => [
        'activityFilters' => [
                [
                                
                ]
        ],
        'customChannelGrouping' => [
                
        ],
        'dateRange' => [
                
        ],
        'dimensions' => [
                [
                                
                ]
        ],
        'floodlightConfigId' => [
                
        ],
        'metricNames' => [
                
        ],
        'pathFilters' => [
                [
                                
                ]
        ]
    ],
    'pathToConversionCriteria' => [
        'activityFilters' => [
                [
                                
                ]
        ],
        'conversionDimensions' => [
                [
                                
                ]
        ],
        'customFloodlightVariables' => [
                [
                                
                ]
        ],
        'customRichMediaEvents' => [
                [
                                
                ]
        ],
        'dateRange' => [
                
        ],
        'floodlightConfigId' => [
                
        ],
        'metricNames' => [
                
        ],
        'perInteractionDimensions' => [
                [
                                
                ]
        ],
        'reportProperties' => [
                'clicksLookbackWindow' => 0,
                'impressionsLookbackWindow' => 0,
                'includeAttributedIPConversions' => null,
                'includeUnattributedCookieConversions' => null,
                'includeUnattributedIPConversions' => null,
                'maximumClickInteractions' => 0,
                'maximumImpressionInteractions' => 0,
                'maximumInteractionGap' => 0,
                'pivotOnInteractionPath' => null
        ]
    ],
    'reachCriteria' => [
        'activities' => [
                
        ],
        'customRichMediaEvents' => [
                
        ],
        'dateRange' => [
                
        ],
        'dimensionFilters' => [
                [
                                
                ]
        ],
        'dimensions' => [
                [
                                
                ]
        ],
        'enableAllDimensionCombinations' => null,
        'metricNames' => [
                
        ],
        'reachByFrequencyMetricNames' => [
                
        ]
    ],
    'schedule' => [
        'active' => null,
        'every' => 0,
        'expirationDate' => '',
        'repeats' => '',
        'repeatsOnWeekDays' => [
                
        ],
        'runsOnDayOfMonth' => '',
        'startDate' => ''
    ],
    'subAccountId' => '',
    'type' => ''
  ]),
  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}}/userprofiles/:profileId/reports/compatiblefields/query', [
  'body' => '{
  "accountId": "",
  "criteria": {
    "activities": {
      "filters": [
        {
          "dimensionName": "",
          "etag": "",
          "id": "",
          "kind": "",
          "matchType": "",
          "value": ""
        }
      ],
      "kind": "",
      "metricNames": []
    },
    "customRichMediaEvents": {
      "filteredEventIds": [
        {}
      ],
      "kind": ""
    },
    "dateRange": {
      "endDate": "",
      "kind": "",
      "relativeDateRange": "",
      "startDate": ""
    },
    "dimensionFilters": [
      {}
    ],
    "dimensions": [
      {
        "kind": "",
        "name": "",
        "sortOrder": ""
      }
    ],
    "metricNames": []
  },
  "crossDimensionReachCriteria": {
    "breakdown": [
      {}
    ],
    "dateRange": {},
    "dimension": "",
    "dimensionFilters": [
      {}
    ],
    "metricNames": [],
    "overlapMetricNames": [],
    "pivoted": false
  },
  "delivery": {
    "emailOwner": false,
    "emailOwnerDeliveryType": "",
    "message": "",
    "recipients": [
      {
        "deliveryType": "",
        "email": "",
        "kind": ""
      }
    ]
  },
  "etag": "",
  "fileName": "",
  "floodlightCriteria": {
    "customRichMediaEvents": [
      {}
    ],
    "dateRange": {},
    "dimensionFilters": [
      {}
    ],
    "dimensions": [
      {}
    ],
    "floodlightConfigId": {},
    "metricNames": [],
    "reportProperties": {
      "includeAttributedIPConversions": false,
      "includeUnattributedCookieConversions": false,
      "includeUnattributedIPConversions": false
    }
  },
  "format": "",
  "id": "",
  "kind": "",
  "lastModifiedTime": "",
  "name": "",
  "ownerProfileId": "",
  "pathAttributionCriteria": {
    "activityFilters": [
      {}
    ],
    "customChannelGrouping": {
      "fallbackName": "",
      "kind": "",
      "name": "",
      "rules": [
        {
          "disjunctiveMatchStatements": [
            {
              "eventFilters": [
                {
                  "dimensionFilter": {
                    "dimensionName": "",
                    "ids": [],
                    "kind": "",
                    "matchType": "",
                    "values": []
                  },
                  "kind": ""
                }
              ],
              "kind": ""
            }
          ],
          "kind": "",
          "name": ""
        }
      ]
    },
    "dateRange": {},
    "dimensions": [
      {}
    ],
    "floodlightConfigId": {},
    "metricNames": [],
    "pathFilters": [
      {
        "eventFilters": [
          {}
        ],
        "kind": "",
        "pathMatchPosition": ""
      }
    ]
  },
  "pathCriteria": {
    "activityFilters": [
      {}
    ],
    "customChannelGrouping": {},
    "dateRange": {},
    "dimensions": [
      {}
    ],
    "floodlightConfigId": {},
    "metricNames": [],
    "pathFilters": [
      {}
    ]
  },
  "pathToConversionCriteria": {
    "activityFilters": [
      {}
    ],
    "conversionDimensions": [
      {}
    ],
    "customFloodlightVariables": [
      {}
    ],
    "customRichMediaEvents": [
      {}
    ],
    "dateRange": {},
    "floodlightConfigId": {},
    "metricNames": [],
    "perInteractionDimensions": [
      {}
    ],
    "reportProperties": {
      "clicksLookbackWindow": 0,
      "impressionsLookbackWindow": 0,
      "includeAttributedIPConversions": false,
      "includeUnattributedCookieConversions": false,
      "includeUnattributedIPConversions": false,
      "maximumClickInteractions": 0,
      "maximumImpressionInteractions": 0,
      "maximumInteractionGap": 0,
      "pivotOnInteractionPath": false
    }
  },
  "reachCriteria": {
    "activities": {},
    "customRichMediaEvents": {},
    "dateRange": {},
    "dimensionFilters": [
      {}
    ],
    "dimensions": [
      {}
    ],
    "enableAllDimensionCombinations": false,
    "metricNames": [],
    "reachByFrequencyMetricNames": []
  },
  "schedule": {
    "active": false,
    "every": 0,
    "expirationDate": "",
    "repeats": "",
    "repeatsOnWeekDays": [],
    "runsOnDayOfMonth": "",
    "startDate": ""
  },
  "subAccountId": "",
  "type": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/reports/compatiblefields/query');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'accountId' => '',
  'criteria' => [
    'activities' => [
        'filters' => [
                [
                                'dimensionName' => '',
                                'etag' => '',
                                'id' => '',
                                'kind' => '',
                                'matchType' => '',
                                'value' => ''
                ]
        ],
        'kind' => '',
        'metricNames' => [
                
        ]
    ],
    'customRichMediaEvents' => [
        'filteredEventIds' => [
                [
                                
                ]
        ],
        'kind' => ''
    ],
    'dateRange' => [
        'endDate' => '',
        'kind' => '',
        'relativeDateRange' => '',
        'startDate' => ''
    ],
    'dimensionFilters' => [
        [
                
        ]
    ],
    'dimensions' => [
        [
                'kind' => '',
                'name' => '',
                'sortOrder' => ''
        ]
    ],
    'metricNames' => [
        
    ]
  ],
  'crossDimensionReachCriteria' => [
    'breakdown' => [
        [
                
        ]
    ],
    'dateRange' => [
        
    ],
    'dimension' => '',
    'dimensionFilters' => [
        [
                
        ]
    ],
    'metricNames' => [
        
    ],
    'overlapMetricNames' => [
        
    ],
    'pivoted' => null
  ],
  'delivery' => [
    'emailOwner' => null,
    'emailOwnerDeliveryType' => '',
    'message' => '',
    'recipients' => [
        [
                'deliveryType' => '',
                'email' => '',
                'kind' => ''
        ]
    ]
  ],
  'etag' => '',
  'fileName' => '',
  'floodlightCriteria' => [
    'customRichMediaEvents' => [
        [
                
        ]
    ],
    'dateRange' => [
        
    ],
    'dimensionFilters' => [
        [
                
        ]
    ],
    'dimensions' => [
        [
                
        ]
    ],
    'floodlightConfigId' => [
        
    ],
    'metricNames' => [
        
    ],
    'reportProperties' => [
        'includeAttributedIPConversions' => null,
        'includeUnattributedCookieConversions' => null,
        'includeUnattributedIPConversions' => null
    ]
  ],
  'format' => '',
  'id' => '',
  'kind' => '',
  'lastModifiedTime' => '',
  'name' => '',
  'ownerProfileId' => '',
  'pathAttributionCriteria' => [
    'activityFilters' => [
        [
                
        ]
    ],
    'customChannelGrouping' => [
        'fallbackName' => '',
        'kind' => '',
        'name' => '',
        'rules' => [
                [
                                'disjunctiveMatchStatements' => [
                                                                [
                                                                                                                                'eventFilters' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'dimensionFilter' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'dimensionName' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'ids' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'kind' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'matchType' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'values' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'kind' => ''
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'kind' => ''
                                                                ]
                                ],
                                'kind' => '',
                                'name' => ''
                ]
        ]
    ],
    'dateRange' => [
        
    ],
    'dimensions' => [
        [
                
        ]
    ],
    'floodlightConfigId' => [
        
    ],
    'metricNames' => [
        
    ],
    'pathFilters' => [
        [
                'eventFilters' => [
                                [
                                                                
                                ]
                ],
                'kind' => '',
                'pathMatchPosition' => ''
        ]
    ]
  ],
  'pathCriteria' => [
    'activityFilters' => [
        [
                
        ]
    ],
    'customChannelGrouping' => [
        
    ],
    'dateRange' => [
        
    ],
    'dimensions' => [
        [
                
        ]
    ],
    'floodlightConfigId' => [
        
    ],
    'metricNames' => [
        
    ],
    'pathFilters' => [
        [
                
        ]
    ]
  ],
  'pathToConversionCriteria' => [
    'activityFilters' => [
        [
                
        ]
    ],
    'conversionDimensions' => [
        [
                
        ]
    ],
    'customFloodlightVariables' => [
        [
                
        ]
    ],
    'customRichMediaEvents' => [
        [
                
        ]
    ],
    'dateRange' => [
        
    ],
    'floodlightConfigId' => [
        
    ],
    'metricNames' => [
        
    ],
    'perInteractionDimensions' => [
        [
                
        ]
    ],
    'reportProperties' => [
        'clicksLookbackWindow' => 0,
        'impressionsLookbackWindow' => 0,
        'includeAttributedIPConversions' => null,
        'includeUnattributedCookieConversions' => null,
        'includeUnattributedIPConversions' => null,
        'maximumClickInteractions' => 0,
        'maximumImpressionInteractions' => 0,
        'maximumInteractionGap' => 0,
        'pivotOnInteractionPath' => null
    ]
  ],
  'reachCriteria' => [
    'activities' => [
        
    ],
    'customRichMediaEvents' => [
        
    ],
    'dateRange' => [
        
    ],
    'dimensionFilters' => [
        [
                
        ]
    ],
    'dimensions' => [
        [
                
        ]
    ],
    'enableAllDimensionCombinations' => null,
    'metricNames' => [
        
    ],
    'reachByFrequencyMetricNames' => [
        
    ]
  ],
  'schedule' => [
    'active' => null,
    'every' => 0,
    'expirationDate' => '',
    'repeats' => '',
    'repeatsOnWeekDays' => [
        
    ],
    'runsOnDayOfMonth' => '',
    'startDate' => ''
  ],
  'subAccountId' => '',
  'type' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'accountId' => '',
  'criteria' => [
    'activities' => [
        'filters' => [
                [
                                'dimensionName' => '',
                                'etag' => '',
                                'id' => '',
                                'kind' => '',
                                'matchType' => '',
                                'value' => ''
                ]
        ],
        'kind' => '',
        'metricNames' => [
                
        ]
    ],
    'customRichMediaEvents' => [
        'filteredEventIds' => [
                [
                                
                ]
        ],
        'kind' => ''
    ],
    'dateRange' => [
        'endDate' => '',
        'kind' => '',
        'relativeDateRange' => '',
        'startDate' => ''
    ],
    'dimensionFilters' => [
        [
                
        ]
    ],
    'dimensions' => [
        [
                'kind' => '',
                'name' => '',
                'sortOrder' => ''
        ]
    ],
    'metricNames' => [
        
    ]
  ],
  'crossDimensionReachCriteria' => [
    'breakdown' => [
        [
                
        ]
    ],
    'dateRange' => [
        
    ],
    'dimension' => '',
    'dimensionFilters' => [
        [
                
        ]
    ],
    'metricNames' => [
        
    ],
    'overlapMetricNames' => [
        
    ],
    'pivoted' => null
  ],
  'delivery' => [
    'emailOwner' => null,
    'emailOwnerDeliveryType' => '',
    'message' => '',
    'recipients' => [
        [
                'deliveryType' => '',
                'email' => '',
                'kind' => ''
        ]
    ]
  ],
  'etag' => '',
  'fileName' => '',
  'floodlightCriteria' => [
    'customRichMediaEvents' => [
        [
                
        ]
    ],
    'dateRange' => [
        
    ],
    'dimensionFilters' => [
        [
                
        ]
    ],
    'dimensions' => [
        [
                
        ]
    ],
    'floodlightConfigId' => [
        
    ],
    'metricNames' => [
        
    ],
    'reportProperties' => [
        'includeAttributedIPConversions' => null,
        'includeUnattributedCookieConversions' => null,
        'includeUnattributedIPConversions' => null
    ]
  ],
  'format' => '',
  'id' => '',
  'kind' => '',
  'lastModifiedTime' => '',
  'name' => '',
  'ownerProfileId' => '',
  'pathAttributionCriteria' => [
    'activityFilters' => [
        [
                
        ]
    ],
    'customChannelGrouping' => [
        'fallbackName' => '',
        'kind' => '',
        'name' => '',
        'rules' => [
                [
                                'disjunctiveMatchStatements' => [
                                                                [
                                                                                                                                'eventFilters' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'dimensionFilter' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'dimensionName' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'ids' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'kind' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'matchType' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'values' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'kind' => ''
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'kind' => ''
                                                                ]
                                ],
                                'kind' => '',
                                'name' => ''
                ]
        ]
    ],
    'dateRange' => [
        
    ],
    'dimensions' => [
        [
                
        ]
    ],
    'floodlightConfigId' => [
        
    ],
    'metricNames' => [
        
    ],
    'pathFilters' => [
        [
                'eventFilters' => [
                                [
                                                                
                                ]
                ],
                'kind' => '',
                'pathMatchPosition' => ''
        ]
    ]
  ],
  'pathCriteria' => [
    'activityFilters' => [
        [
                
        ]
    ],
    'customChannelGrouping' => [
        
    ],
    'dateRange' => [
        
    ],
    'dimensions' => [
        [
                
        ]
    ],
    'floodlightConfigId' => [
        
    ],
    'metricNames' => [
        
    ],
    'pathFilters' => [
        [
                
        ]
    ]
  ],
  'pathToConversionCriteria' => [
    'activityFilters' => [
        [
                
        ]
    ],
    'conversionDimensions' => [
        [
                
        ]
    ],
    'customFloodlightVariables' => [
        [
                
        ]
    ],
    'customRichMediaEvents' => [
        [
                
        ]
    ],
    'dateRange' => [
        
    ],
    'floodlightConfigId' => [
        
    ],
    'metricNames' => [
        
    ],
    'perInteractionDimensions' => [
        [
                
        ]
    ],
    'reportProperties' => [
        'clicksLookbackWindow' => 0,
        'impressionsLookbackWindow' => 0,
        'includeAttributedIPConversions' => null,
        'includeUnattributedCookieConversions' => null,
        'includeUnattributedIPConversions' => null,
        'maximumClickInteractions' => 0,
        'maximumImpressionInteractions' => 0,
        'maximumInteractionGap' => 0,
        'pivotOnInteractionPath' => null
    ]
  ],
  'reachCriteria' => [
    'activities' => [
        
    ],
    'customRichMediaEvents' => [
        
    ],
    'dateRange' => [
        
    ],
    'dimensionFilters' => [
        [
                
        ]
    ],
    'dimensions' => [
        [
                
        ]
    ],
    'enableAllDimensionCombinations' => null,
    'metricNames' => [
        
    ],
    'reachByFrequencyMetricNames' => [
        
    ]
  ],
  'schedule' => [
    'active' => null,
    'every' => 0,
    'expirationDate' => '',
    'repeats' => '',
    'repeatsOnWeekDays' => [
        
    ],
    'runsOnDayOfMonth' => '',
    'startDate' => ''
  ],
  'subAccountId' => '',
  'type' => ''
]));
$request->setRequestUrl('{{baseUrl}}/userprofiles/:profileId/reports/compatiblefields/query');
$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}}/userprofiles/:profileId/reports/compatiblefields/query' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "criteria": {
    "activities": {
      "filters": [
        {
          "dimensionName": "",
          "etag": "",
          "id": "",
          "kind": "",
          "matchType": "",
          "value": ""
        }
      ],
      "kind": "",
      "metricNames": []
    },
    "customRichMediaEvents": {
      "filteredEventIds": [
        {}
      ],
      "kind": ""
    },
    "dateRange": {
      "endDate": "",
      "kind": "",
      "relativeDateRange": "",
      "startDate": ""
    },
    "dimensionFilters": [
      {}
    ],
    "dimensions": [
      {
        "kind": "",
        "name": "",
        "sortOrder": ""
      }
    ],
    "metricNames": []
  },
  "crossDimensionReachCriteria": {
    "breakdown": [
      {}
    ],
    "dateRange": {},
    "dimension": "",
    "dimensionFilters": [
      {}
    ],
    "metricNames": [],
    "overlapMetricNames": [],
    "pivoted": false
  },
  "delivery": {
    "emailOwner": false,
    "emailOwnerDeliveryType": "",
    "message": "",
    "recipients": [
      {
        "deliveryType": "",
        "email": "",
        "kind": ""
      }
    ]
  },
  "etag": "",
  "fileName": "",
  "floodlightCriteria": {
    "customRichMediaEvents": [
      {}
    ],
    "dateRange": {},
    "dimensionFilters": [
      {}
    ],
    "dimensions": [
      {}
    ],
    "floodlightConfigId": {},
    "metricNames": [],
    "reportProperties": {
      "includeAttributedIPConversions": false,
      "includeUnattributedCookieConversions": false,
      "includeUnattributedIPConversions": false
    }
  },
  "format": "",
  "id": "",
  "kind": "",
  "lastModifiedTime": "",
  "name": "",
  "ownerProfileId": "",
  "pathAttributionCriteria": {
    "activityFilters": [
      {}
    ],
    "customChannelGrouping": {
      "fallbackName": "",
      "kind": "",
      "name": "",
      "rules": [
        {
          "disjunctiveMatchStatements": [
            {
              "eventFilters": [
                {
                  "dimensionFilter": {
                    "dimensionName": "",
                    "ids": [],
                    "kind": "",
                    "matchType": "",
                    "values": []
                  },
                  "kind": ""
                }
              ],
              "kind": ""
            }
          ],
          "kind": "",
          "name": ""
        }
      ]
    },
    "dateRange": {},
    "dimensions": [
      {}
    ],
    "floodlightConfigId": {},
    "metricNames": [],
    "pathFilters": [
      {
        "eventFilters": [
          {}
        ],
        "kind": "",
        "pathMatchPosition": ""
      }
    ]
  },
  "pathCriteria": {
    "activityFilters": [
      {}
    ],
    "customChannelGrouping": {},
    "dateRange": {},
    "dimensions": [
      {}
    ],
    "floodlightConfigId": {},
    "metricNames": [],
    "pathFilters": [
      {}
    ]
  },
  "pathToConversionCriteria": {
    "activityFilters": [
      {}
    ],
    "conversionDimensions": [
      {}
    ],
    "customFloodlightVariables": [
      {}
    ],
    "customRichMediaEvents": [
      {}
    ],
    "dateRange": {},
    "floodlightConfigId": {},
    "metricNames": [],
    "perInteractionDimensions": [
      {}
    ],
    "reportProperties": {
      "clicksLookbackWindow": 0,
      "impressionsLookbackWindow": 0,
      "includeAttributedIPConversions": false,
      "includeUnattributedCookieConversions": false,
      "includeUnattributedIPConversions": false,
      "maximumClickInteractions": 0,
      "maximumImpressionInteractions": 0,
      "maximumInteractionGap": 0,
      "pivotOnInteractionPath": false
    }
  },
  "reachCriteria": {
    "activities": {},
    "customRichMediaEvents": {},
    "dateRange": {},
    "dimensionFilters": [
      {}
    ],
    "dimensions": [
      {}
    ],
    "enableAllDimensionCombinations": false,
    "metricNames": [],
    "reachByFrequencyMetricNames": []
  },
  "schedule": {
    "active": false,
    "every": 0,
    "expirationDate": "",
    "repeats": "",
    "repeatsOnWeekDays": [],
    "runsOnDayOfMonth": "",
    "startDate": ""
  },
  "subAccountId": "",
  "type": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/reports/compatiblefields/query' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "criteria": {
    "activities": {
      "filters": [
        {
          "dimensionName": "",
          "etag": "",
          "id": "",
          "kind": "",
          "matchType": "",
          "value": ""
        }
      ],
      "kind": "",
      "metricNames": []
    },
    "customRichMediaEvents": {
      "filteredEventIds": [
        {}
      ],
      "kind": ""
    },
    "dateRange": {
      "endDate": "",
      "kind": "",
      "relativeDateRange": "",
      "startDate": ""
    },
    "dimensionFilters": [
      {}
    ],
    "dimensions": [
      {
        "kind": "",
        "name": "",
        "sortOrder": ""
      }
    ],
    "metricNames": []
  },
  "crossDimensionReachCriteria": {
    "breakdown": [
      {}
    ],
    "dateRange": {},
    "dimension": "",
    "dimensionFilters": [
      {}
    ],
    "metricNames": [],
    "overlapMetricNames": [],
    "pivoted": false
  },
  "delivery": {
    "emailOwner": false,
    "emailOwnerDeliveryType": "",
    "message": "",
    "recipients": [
      {
        "deliveryType": "",
        "email": "",
        "kind": ""
      }
    ]
  },
  "etag": "",
  "fileName": "",
  "floodlightCriteria": {
    "customRichMediaEvents": [
      {}
    ],
    "dateRange": {},
    "dimensionFilters": [
      {}
    ],
    "dimensions": [
      {}
    ],
    "floodlightConfigId": {},
    "metricNames": [],
    "reportProperties": {
      "includeAttributedIPConversions": false,
      "includeUnattributedCookieConversions": false,
      "includeUnattributedIPConversions": false
    }
  },
  "format": "",
  "id": "",
  "kind": "",
  "lastModifiedTime": "",
  "name": "",
  "ownerProfileId": "",
  "pathAttributionCriteria": {
    "activityFilters": [
      {}
    ],
    "customChannelGrouping": {
      "fallbackName": "",
      "kind": "",
      "name": "",
      "rules": [
        {
          "disjunctiveMatchStatements": [
            {
              "eventFilters": [
                {
                  "dimensionFilter": {
                    "dimensionName": "",
                    "ids": [],
                    "kind": "",
                    "matchType": "",
                    "values": []
                  },
                  "kind": ""
                }
              ],
              "kind": ""
            }
          ],
          "kind": "",
          "name": ""
        }
      ]
    },
    "dateRange": {},
    "dimensions": [
      {}
    ],
    "floodlightConfigId": {},
    "metricNames": [],
    "pathFilters": [
      {
        "eventFilters": [
          {}
        ],
        "kind": "",
        "pathMatchPosition": ""
      }
    ]
  },
  "pathCriteria": {
    "activityFilters": [
      {}
    ],
    "customChannelGrouping": {},
    "dateRange": {},
    "dimensions": [
      {}
    ],
    "floodlightConfigId": {},
    "metricNames": [],
    "pathFilters": [
      {}
    ]
  },
  "pathToConversionCriteria": {
    "activityFilters": [
      {}
    ],
    "conversionDimensions": [
      {}
    ],
    "customFloodlightVariables": [
      {}
    ],
    "customRichMediaEvents": [
      {}
    ],
    "dateRange": {},
    "floodlightConfigId": {},
    "metricNames": [],
    "perInteractionDimensions": [
      {}
    ],
    "reportProperties": {
      "clicksLookbackWindow": 0,
      "impressionsLookbackWindow": 0,
      "includeAttributedIPConversions": false,
      "includeUnattributedCookieConversions": false,
      "includeUnattributedIPConversions": false,
      "maximumClickInteractions": 0,
      "maximumImpressionInteractions": 0,
      "maximumInteractionGap": 0,
      "pivotOnInteractionPath": false
    }
  },
  "reachCriteria": {
    "activities": {},
    "customRichMediaEvents": {},
    "dateRange": {},
    "dimensionFilters": [
      {}
    ],
    "dimensions": [
      {}
    ],
    "enableAllDimensionCombinations": false,
    "metricNames": [],
    "reachByFrequencyMetricNames": []
  },
  "schedule": {
    "active": false,
    "every": 0,
    "expirationDate": "",
    "repeats": "",
    "repeatsOnWeekDays": [],
    "runsOnDayOfMonth": "",
    "startDate": ""
  },
  "subAccountId": "",
  "type": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"accountId\": \"\",\n  \"criteria\": {\n    \"activities\": {\n      \"filters\": [\n        {\n          \"dimensionName\": \"\",\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"matchType\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"kind\": \"\",\n      \"metricNames\": []\n    },\n    \"customRichMediaEvents\": {\n      \"filteredEventIds\": [\n        {}\n      ],\n      \"kind\": \"\"\n    },\n    \"dateRange\": {\n      \"endDate\": \"\",\n      \"kind\": \"\",\n      \"relativeDateRange\": \"\",\n      \"startDate\": \"\"\n    },\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sortOrder\": \"\"\n      }\n    ],\n    \"metricNames\": []\n  },\n  \"crossDimensionReachCriteria\": {\n    \"breakdown\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimension\": \"\",\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"metricNames\": [],\n    \"overlapMetricNames\": [],\n    \"pivoted\": false\n  },\n  \"delivery\": {\n    \"emailOwner\": false,\n    \"emailOwnerDeliveryType\": \"\",\n    \"message\": \"\",\n    \"recipients\": [\n      {\n        \"deliveryType\": \"\",\n        \"email\": \"\",\n        \"kind\": \"\"\n      }\n    ]\n  },\n  \"etag\": \"\",\n  \"fileName\": \"\",\n  \"floodlightCriteria\": {\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"reportProperties\": {\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false\n    }\n  },\n  \"format\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedTime\": \"\",\n  \"name\": \"\",\n  \"ownerProfileId\": \"\",\n  \"pathAttributionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {\n      \"fallbackName\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"rules\": [\n        {\n          \"disjunctiveMatchStatements\": [\n            {\n              \"eventFilters\": [\n                {\n                  \"dimensionFilter\": {\n                    \"dimensionName\": \"\",\n                    \"ids\": [],\n                    \"kind\": \"\",\n                    \"matchType\": \"\",\n                    \"values\": []\n                  },\n                  \"kind\": \"\"\n                }\n              ],\n              \"kind\": \"\"\n            }\n          ],\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {\n        \"eventFilters\": [\n          {}\n        ],\n        \"kind\": \"\",\n        \"pathMatchPosition\": \"\"\n      }\n    ]\n  },\n  \"pathCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {},\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {}\n    ]\n  },\n  \"pathToConversionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"conversionDimensions\": [\n      {}\n    ],\n    \"customFloodlightVariables\": [\n      {}\n    ],\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"perInteractionDimensions\": [\n      {}\n    ],\n    \"reportProperties\": {\n      \"clicksLookbackWindow\": 0,\n      \"impressionsLookbackWindow\": 0,\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false,\n      \"maximumClickInteractions\": 0,\n      \"maximumImpressionInteractions\": 0,\n      \"maximumInteractionGap\": 0,\n      \"pivotOnInteractionPath\": false\n    }\n  },\n  \"reachCriteria\": {\n    \"activities\": {},\n    \"customRichMediaEvents\": {},\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"enableAllDimensionCombinations\": false,\n    \"metricNames\": [],\n    \"reachByFrequencyMetricNames\": []\n  },\n  \"schedule\": {\n    \"active\": false,\n    \"every\": 0,\n    \"expirationDate\": \"\",\n    \"repeats\": \"\",\n    \"repeatsOnWeekDays\": [],\n    \"runsOnDayOfMonth\": \"\",\n    \"startDate\": \"\"\n  },\n  \"subAccountId\": \"\",\n  \"type\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/userprofiles/:profileId/reports/compatiblefields/query", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/reports/compatiblefields/query"

payload = {
    "accountId": "",
    "criteria": {
        "activities": {
            "filters": [
                {
                    "dimensionName": "",
                    "etag": "",
                    "id": "",
                    "kind": "",
                    "matchType": "",
                    "value": ""
                }
            ],
            "kind": "",
            "metricNames": []
        },
        "customRichMediaEvents": {
            "filteredEventIds": [{}],
            "kind": ""
        },
        "dateRange": {
            "endDate": "",
            "kind": "",
            "relativeDateRange": "",
            "startDate": ""
        },
        "dimensionFilters": [{}],
        "dimensions": [
            {
                "kind": "",
                "name": "",
                "sortOrder": ""
            }
        ],
        "metricNames": []
    },
    "crossDimensionReachCriteria": {
        "breakdown": [{}],
        "dateRange": {},
        "dimension": "",
        "dimensionFilters": [{}],
        "metricNames": [],
        "overlapMetricNames": [],
        "pivoted": False
    },
    "delivery": {
        "emailOwner": False,
        "emailOwnerDeliveryType": "",
        "message": "",
        "recipients": [
            {
                "deliveryType": "",
                "email": "",
                "kind": ""
            }
        ]
    },
    "etag": "",
    "fileName": "",
    "floodlightCriteria": {
        "customRichMediaEvents": [{}],
        "dateRange": {},
        "dimensionFilters": [{}],
        "dimensions": [{}],
        "floodlightConfigId": {},
        "metricNames": [],
        "reportProperties": {
            "includeAttributedIPConversions": False,
            "includeUnattributedCookieConversions": False,
            "includeUnattributedIPConversions": False
        }
    },
    "format": "",
    "id": "",
    "kind": "",
    "lastModifiedTime": "",
    "name": "",
    "ownerProfileId": "",
    "pathAttributionCriteria": {
        "activityFilters": [{}],
        "customChannelGrouping": {
            "fallbackName": "",
            "kind": "",
            "name": "",
            "rules": [
                {
                    "disjunctiveMatchStatements": [
                        {
                            "eventFilters": [
                                {
                                    "dimensionFilter": {
                                        "dimensionName": "",
                                        "ids": [],
                                        "kind": "",
                                        "matchType": "",
                                        "values": []
                                    },
                                    "kind": ""
                                }
                            ],
                            "kind": ""
                        }
                    ],
                    "kind": "",
                    "name": ""
                }
            ]
        },
        "dateRange": {},
        "dimensions": [{}],
        "floodlightConfigId": {},
        "metricNames": [],
        "pathFilters": [
            {
                "eventFilters": [{}],
                "kind": "",
                "pathMatchPosition": ""
            }
        ]
    },
    "pathCriteria": {
        "activityFilters": [{}],
        "customChannelGrouping": {},
        "dateRange": {},
        "dimensions": [{}],
        "floodlightConfigId": {},
        "metricNames": [],
        "pathFilters": [{}]
    },
    "pathToConversionCriteria": {
        "activityFilters": [{}],
        "conversionDimensions": [{}],
        "customFloodlightVariables": [{}],
        "customRichMediaEvents": [{}],
        "dateRange": {},
        "floodlightConfigId": {},
        "metricNames": [],
        "perInteractionDimensions": [{}],
        "reportProperties": {
            "clicksLookbackWindow": 0,
            "impressionsLookbackWindow": 0,
            "includeAttributedIPConversions": False,
            "includeUnattributedCookieConversions": False,
            "includeUnattributedIPConversions": False,
            "maximumClickInteractions": 0,
            "maximumImpressionInteractions": 0,
            "maximumInteractionGap": 0,
            "pivotOnInteractionPath": False
        }
    },
    "reachCriteria": {
        "activities": {},
        "customRichMediaEvents": {},
        "dateRange": {},
        "dimensionFilters": [{}],
        "dimensions": [{}],
        "enableAllDimensionCombinations": False,
        "metricNames": [],
        "reachByFrequencyMetricNames": []
    },
    "schedule": {
        "active": False,
        "every": 0,
        "expirationDate": "",
        "repeats": "",
        "repeatsOnWeekDays": [],
        "runsOnDayOfMonth": "",
        "startDate": ""
    },
    "subAccountId": "",
    "type": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/reports/compatiblefields/query"

payload <- "{\n  \"accountId\": \"\",\n  \"criteria\": {\n    \"activities\": {\n      \"filters\": [\n        {\n          \"dimensionName\": \"\",\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"matchType\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"kind\": \"\",\n      \"metricNames\": []\n    },\n    \"customRichMediaEvents\": {\n      \"filteredEventIds\": [\n        {}\n      ],\n      \"kind\": \"\"\n    },\n    \"dateRange\": {\n      \"endDate\": \"\",\n      \"kind\": \"\",\n      \"relativeDateRange\": \"\",\n      \"startDate\": \"\"\n    },\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sortOrder\": \"\"\n      }\n    ],\n    \"metricNames\": []\n  },\n  \"crossDimensionReachCriteria\": {\n    \"breakdown\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimension\": \"\",\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"metricNames\": [],\n    \"overlapMetricNames\": [],\n    \"pivoted\": false\n  },\n  \"delivery\": {\n    \"emailOwner\": false,\n    \"emailOwnerDeliveryType\": \"\",\n    \"message\": \"\",\n    \"recipients\": [\n      {\n        \"deliveryType\": \"\",\n        \"email\": \"\",\n        \"kind\": \"\"\n      }\n    ]\n  },\n  \"etag\": \"\",\n  \"fileName\": \"\",\n  \"floodlightCriteria\": {\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"reportProperties\": {\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false\n    }\n  },\n  \"format\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedTime\": \"\",\n  \"name\": \"\",\n  \"ownerProfileId\": \"\",\n  \"pathAttributionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {\n      \"fallbackName\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"rules\": [\n        {\n          \"disjunctiveMatchStatements\": [\n            {\n              \"eventFilters\": [\n                {\n                  \"dimensionFilter\": {\n                    \"dimensionName\": \"\",\n                    \"ids\": [],\n                    \"kind\": \"\",\n                    \"matchType\": \"\",\n                    \"values\": []\n                  },\n                  \"kind\": \"\"\n                }\n              ],\n              \"kind\": \"\"\n            }\n          ],\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {\n        \"eventFilters\": [\n          {}\n        ],\n        \"kind\": \"\",\n        \"pathMatchPosition\": \"\"\n      }\n    ]\n  },\n  \"pathCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {},\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {}\n    ]\n  },\n  \"pathToConversionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"conversionDimensions\": [\n      {}\n    ],\n    \"customFloodlightVariables\": [\n      {}\n    ],\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"perInteractionDimensions\": [\n      {}\n    ],\n    \"reportProperties\": {\n      \"clicksLookbackWindow\": 0,\n      \"impressionsLookbackWindow\": 0,\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false,\n      \"maximumClickInteractions\": 0,\n      \"maximumImpressionInteractions\": 0,\n      \"maximumInteractionGap\": 0,\n      \"pivotOnInteractionPath\": false\n    }\n  },\n  \"reachCriteria\": {\n    \"activities\": {},\n    \"customRichMediaEvents\": {},\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"enableAllDimensionCombinations\": false,\n    \"metricNames\": [],\n    \"reachByFrequencyMetricNames\": []\n  },\n  \"schedule\": {\n    \"active\": false,\n    \"every\": 0,\n    \"expirationDate\": \"\",\n    \"repeats\": \"\",\n    \"repeatsOnWeekDays\": [],\n    \"runsOnDayOfMonth\": \"\",\n    \"startDate\": \"\"\n  },\n  \"subAccountId\": \"\",\n  \"type\": \"\"\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}}/userprofiles/:profileId/reports/compatiblefields/query")

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  \"accountId\": \"\",\n  \"criteria\": {\n    \"activities\": {\n      \"filters\": [\n        {\n          \"dimensionName\": \"\",\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"matchType\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"kind\": \"\",\n      \"metricNames\": []\n    },\n    \"customRichMediaEvents\": {\n      \"filteredEventIds\": [\n        {}\n      ],\n      \"kind\": \"\"\n    },\n    \"dateRange\": {\n      \"endDate\": \"\",\n      \"kind\": \"\",\n      \"relativeDateRange\": \"\",\n      \"startDate\": \"\"\n    },\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sortOrder\": \"\"\n      }\n    ],\n    \"metricNames\": []\n  },\n  \"crossDimensionReachCriteria\": {\n    \"breakdown\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimension\": \"\",\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"metricNames\": [],\n    \"overlapMetricNames\": [],\n    \"pivoted\": false\n  },\n  \"delivery\": {\n    \"emailOwner\": false,\n    \"emailOwnerDeliveryType\": \"\",\n    \"message\": \"\",\n    \"recipients\": [\n      {\n        \"deliveryType\": \"\",\n        \"email\": \"\",\n        \"kind\": \"\"\n      }\n    ]\n  },\n  \"etag\": \"\",\n  \"fileName\": \"\",\n  \"floodlightCriteria\": {\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"reportProperties\": {\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false\n    }\n  },\n  \"format\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedTime\": \"\",\n  \"name\": \"\",\n  \"ownerProfileId\": \"\",\n  \"pathAttributionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {\n      \"fallbackName\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"rules\": [\n        {\n          \"disjunctiveMatchStatements\": [\n            {\n              \"eventFilters\": [\n                {\n                  \"dimensionFilter\": {\n                    \"dimensionName\": \"\",\n                    \"ids\": [],\n                    \"kind\": \"\",\n                    \"matchType\": \"\",\n                    \"values\": []\n                  },\n                  \"kind\": \"\"\n                }\n              ],\n              \"kind\": \"\"\n            }\n          ],\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {\n        \"eventFilters\": [\n          {}\n        ],\n        \"kind\": \"\",\n        \"pathMatchPosition\": \"\"\n      }\n    ]\n  },\n  \"pathCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {},\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {}\n    ]\n  },\n  \"pathToConversionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"conversionDimensions\": [\n      {}\n    ],\n    \"customFloodlightVariables\": [\n      {}\n    ],\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"perInteractionDimensions\": [\n      {}\n    ],\n    \"reportProperties\": {\n      \"clicksLookbackWindow\": 0,\n      \"impressionsLookbackWindow\": 0,\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false,\n      \"maximumClickInteractions\": 0,\n      \"maximumImpressionInteractions\": 0,\n      \"maximumInteractionGap\": 0,\n      \"pivotOnInteractionPath\": false\n    }\n  },\n  \"reachCriteria\": {\n    \"activities\": {},\n    \"customRichMediaEvents\": {},\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"enableAllDimensionCombinations\": false,\n    \"metricNames\": [],\n    \"reachByFrequencyMetricNames\": []\n  },\n  \"schedule\": {\n    \"active\": false,\n    \"every\": 0,\n    \"expirationDate\": \"\",\n    \"repeats\": \"\",\n    \"repeatsOnWeekDays\": [],\n    \"runsOnDayOfMonth\": \"\",\n    \"startDate\": \"\"\n  },\n  \"subAccountId\": \"\",\n  \"type\": \"\"\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/userprofiles/:profileId/reports/compatiblefields/query') do |req|
  req.body = "{\n  \"accountId\": \"\",\n  \"criteria\": {\n    \"activities\": {\n      \"filters\": [\n        {\n          \"dimensionName\": \"\",\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"matchType\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"kind\": \"\",\n      \"metricNames\": []\n    },\n    \"customRichMediaEvents\": {\n      \"filteredEventIds\": [\n        {}\n      ],\n      \"kind\": \"\"\n    },\n    \"dateRange\": {\n      \"endDate\": \"\",\n      \"kind\": \"\",\n      \"relativeDateRange\": \"\",\n      \"startDate\": \"\"\n    },\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sortOrder\": \"\"\n      }\n    ],\n    \"metricNames\": []\n  },\n  \"crossDimensionReachCriteria\": {\n    \"breakdown\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimension\": \"\",\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"metricNames\": [],\n    \"overlapMetricNames\": [],\n    \"pivoted\": false\n  },\n  \"delivery\": {\n    \"emailOwner\": false,\n    \"emailOwnerDeliveryType\": \"\",\n    \"message\": \"\",\n    \"recipients\": [\n      {\n        \"deliveryType\": \"\",\n        \"email\": \"\",\n        \"kind\": \"\"\n      }\n    ]\n  },\n  \"etag\": \"\",\n  \"fileName\": \"\",\n  \"floodlightCriteria\": {\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"reportProperties\": {\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false\n    }\n  },\n  \"format\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedTime\": \"\",\n  \"name\": \"\",\n  \"ownerProfileId\": \"\",\n  \"pathAttributionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {\n      \"fallbackName\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"rules\": [\n        {\n          \"disjunctiveMatchStatements\": [\n            {\n              \"eventFilters\": [\n                {\n                  \"dimensionFilter\": {\n                    \"dimensionName\": \"\",\n                    \"ids\": [],\n                    \"kind\": \"\",\n                    \"matchType\": \"\",\n                    \"values\": []\n                  },\n                  \"kind\": \"\"\n                }\n              ],\n              \"kind\": \"\"\n            }\n          ],\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {\n        \"eventFilters\": [\n          {}\n        ],\n        \"kind\": \"\",\n        \"pathMatchPosition\": \"\"\n      }\n    ]\n  },\n  \"pathCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {},\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {}\n    ]\n  },\n  \"pathToConversionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"conversionDimensions\": [\n      {}\n    ],\n    \"customFloodlightVariables\": [\n      {}\n    ],\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"perInteractionDimensions\": [\n      {}\n    ],\n    \"reportProperties\": {\n      \"clicksLookbackWindow\": 0,\n      \"impressionsLookbackWindow\": 0,\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false,\n      \"maximumClickInteractions\": 0,\n      \"maximumImpressionInteractions\": 0,\n      \"maximumInteractionGap\": 0,\n      \"pivotOnInteractionPath\": false\n    }\n  },\n  \"reachCriteria\": {\n    \"activities\": {},\n    \"customRichMediaEvents\": {},\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"enableAllDimensionCombinations\": false,\n    \"metricNames\": [],\n    \"reachByFrequencyMetricNames\": []\n  },\n  \"schedule\": {\n    \"active\": false,\n    \"every\": 0,\n    \"expirationDate\": \"\",\n    \"repeats\": \"\",\n    \"repeatsOnWeekDays\": [],\n    \"runsOnDayOfMonth\": \"\",\n    \"startDate\": \"\"\n  },\n  \"subAccountId\": \"\",\n  \"type\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/reports/compatiblefields/query";

    let payload = json!({
        "accountId": "",
        "criteria": json!({
            "activities": json!({
                "filters": (
                    json!({
                        "dimensionName": "",
                        "etag": "",
                        "id": "",
                        "kind": "",
                        "matchType": "",
                        "value": ""
                    })
                ),
                "kind": "",
                "metricNames": ()
            }),
            "customRichMediaEvents": json!({
                "filteredEventIds": (json!({})),
                "kind": ""
            }),
            "dateRange": json!({
                "endDate": "",
                "kind": "",
                "relativeDateRange": "",
                "startDate": ""
            }),
            "dimensionFilters": (json!({})),
            "dimensions": (
                json!({
                    "kind": "",
                    "name": "",
                    "sortOrder": ""
                })
            ),
            "metricNames": ()
        }),
        "crossDimensionReachCriteria": json!({
            "breakdown": (json!({})),
            "dateRange": json!({}),
            "dimension": "",
            "dimensionFilters": (json!({})),
            "metricNames": (),
            "overlapMetricNames": (),
            "pivoted": false
        }),
        "delivery": json!({
            "emailOwner": false,
            "emailOwnerDeliveryType": "",
            "message": "",
            "recipients": (
                json!({
                    "deliveryType": "",
                    "email": "",
                    "kind": ""
                })
            )
        }),
        "etag": "",
        "fileName": "",
        "floodlightCriteria": json!({
            "customRichMediaEvents": (json!({})),
            "dateRange": json!({}),
            "dimensionFilters": (json!({})),
            "dimensions": (json!({})),
            "floodlightConfigId": json!({}),
            "metricNames": (),
            "reportProperties": json!({
                "includeAttributedIPConversions": false,
                "includeUnattributedCookieConversions": false,
                "includeUnattributedIPConversions": false
            })
        }),
        "format": "",
        "id": "",
        "kind": "",
        "lastModifiedTime": "",
        "name": "",
        "ownerProfileId": "",
        "pathAttributionCriteria": json!({
            "activityFilters": (json!({})),
            "customChannelGrouping": json!({
                "fallbackName": "",
                "kind": "",
                "name": "",
                "rules": (
                    json!({
                        "disjunctiveMatchStatements": (
                            json!({
                                "eventFilters": (
                                    json!({
                                        "dimensionFilter": json!({
                                            "dimensionName": "",
                                            "ids": (),
                                            "kind": "",
                                            "matchType": "",
                                            "values": ()
                                        }),
                                        "kind": ""
                                    })
                                ),
                                "kind": ""
                            })
                        ),
                        "kind": "",
                        "name": ""
                    })
                )
            }),
            "dateRange": json!({}),
            "dimensions": (json!({})),
            "floodlightConfigId": json!({}),
            "metricNames": (),
            "pathFilters": (
                json!({
                    "eventFilters": (json!({})),
                    "kind": "",
                    "pathMatchPosition": ""
                })
            )
        }),
        "pathCriteria": json!({
            "activityFilters": (json!({})),
            "customChannelGrouping": json!({}),
            "dateRange": json!({}),
            "dimensions": (json!({})),
            "floodlightConfigId": json!({}),
            "metricNames": (),
            "pathFilters": (json!({}))
        }),
        "pathToConversionCriteria": json!({
            "activityFilters": (json!({})),
            "conversionDimensions": (json!({})),
            "customFloodlightVariables": (json!({})),
            "customRichMediaEvents": (json!({})),
            "dateRange": json!({}),
            "floodlightConfigId": json!({}),
            "metricNames": (),
            "perInteractionDimensions": (json!({})),
            "reportProperties": json!({
                "clicksLookbackWindow": 0,
                "impressionsLookbackWindow": 0,
                "includeAttributedIPConversions": false,
                "includeUnattributedCookieConversions": false,
                "includeUnattributedIPConversions": false,
                "maximumClickInteractions": 0,
                "maximumImpressionInteractions": 0,
                "maximumInteractionGap": 0,
                "pivotOnInteractionPath": false
            })
        }),
        "reachCriteria": json!({
            "activities": json!({}),
            "customRichMediaEvents": json!({}),
            "dateRange": json!({}),
            "dimensionFilters": (json!({})),
            "dimensions": (json!({})),
            "enableAllDimensionCombinations": false,
            "metricNames": (),
            "reachByFrequencyMetricNames": ()
        }),
        "schedule": json!({
            "active": false,
            "every": 0,
            "expirationDate": "",
            "repeats": "",
            "repeatsOnWeekDays": (),
            "runsOnDayOfMonth": "",
            "startDate": ""
        }),
        "subAccountId": "",
        "type": ""
    });

    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}}/userprofiles/:profileId/reports/compatiblefields/query \
  --header 'content-type: application/json' \
  --data '{
  "accountId": "",
  "criteria": {
    "activities": {
      "filters": [
        {
          "dimensionName": "",
          "etag": "",
          "id": "",
          "kind": "",
          "matchType": "",
          "value": ""
        }
      ],
      "kind": "",
      "metricNames": []
    },
    "customRichMediaEvents": {
      "filteredEventIds": [
        {}
      ],
      "kind": ""
    },
    "dateRange": {
      "endDate": "",
      "kind": "",
      "relativeDateRange": "",
      "startDate": ""
    },
    "dimensionFilters": [
      {}
    ],
    "dimensions": [
      {
        "kind": "",
        "name": "",
        "sortOrder": ""
      }
    ],
    "metricNames": []
  },
  "crossDimensionReachCriteria": {
    "breakdown": [
      {}
    ],
    "dateRange": {},
    "dimension": "",
    "dimensionFilters": [
      {}
    ],
    "metricNames": [],
    "overlapMetricNames": [],
    "pivoted": false
  },
  "delivery": {
    "emailOwner": false,
    "emailOwnerDeliveryType": "",
    "message": "",
    "recipients": [
      {
        "deliveryType": "",
        "email": "",
        "kind": ""
      }
    ]
  },
  "etag": "",
  "fileName": "",
  "floodlightCriteria": {
    "customRichMediaEvents": [
      {}
    ],
    "dateRange": {},
    "dimensionFilters": [
      {}
    ],
    "dimensions": [
      {}
    ],
    "floodlightConfigId": {},
    "metricNames": [],
    "reportProperties": {
      "includeAttributedIPConversions": false,
      "includeUnattributedCookieConversions": false,
      "includeUnattributedIPConversions": false
    }
  },
  "format": "",
  "id": "",
  "kind": "",
  "lastModifiedTime": "",
  "name": "",
  "ownerProfileId": "",
  "pathAttributionCriteria": {
    "activityFilters": [
      {}
    ],
    "customChannelGrouping": {
      "fallbackName": "",
      "kind": "",
      "name": "",
      "rules": [
        {
          "disjunctiveMatchStatements": [
            {
              "eventFilters": [
                {
                  "dimensionFilter": {
                    "dimensionName": "",
                    "ids": [],
                    "kind": "",
                    "matchType": "",
                    "values": []
                  },
                  "kind": ""
                }
              ],
              "kind": ""
            }
          ],
          "kind": "",
          "name": ""
        }
      ]
    },
    "dateRange": {},
    "dimensions": [
      {}
    ],
    "floodlightConfigId": {},
    "metricNames": [],
    "pathFilters": [
      {
        "eventFilters": [
          {}
        ],
        "kind": "",
        "pathMatchPosition": ""
      }
    ]
  },
  "pathCriteria": {
    "activityFilters": [
      {}
    ],
    "customChannelGrouping": {},
    "dateRange": {},
    "dimensions": [
      {}
    ],
    "floodlightConfigId": {},
    "metricNames": [],
    "pathFilters": [
      {}
    ]
  },
  "pathToConversionCriteria": {
    "activityFilters": [
      {}
    ],
    "conversionDimensions": [
      {}
    ],
    "customFloodlightVariables": [
      {}
    ],
    "customRichMediaEvents": [
      {}
    ],
    "dateRange": {},
    "floodlightConfigId": {},
    "metricNames": [],
    "perInteractionDimensions": [
      {}
    ],
    "reportProperties": {
      "clicksLookbackWindow": 0,
      "impressionsLookbackWindow": 0,
      "includeAttributedIPConversions": false,
      "includeUnattributedCookieConversions": false,
      "includeUnattributedIPConversions": false,
      "maximumClickInteractions": 0,
      "maximumImpressionInteractions": 0,
      "maximumInteractionGap": 0,
      "pivotOnInteractionPath": false
    }
  },
  "reachCriteria": {
    "activities": {},
    "customRichMediaEvents": {},
    "dateRange": {},
    "dimensionFilters": [
      {}
    ],
    "dimensions": [
      {}
    ],
    "enableAllDimensionCombinations": false,
    "metricNames": [],
    "reachByFrequencyMetricNames": []
  },
  "schedule": {
    "active": false,
    "every": 0,
    "expirationDate": "",
    "repeats": "",
    "repeatsOnWeekDays": [],
    "runsOnDayOfMonth": "",
    "startDate": ""
  },
  "subAccountId": "",
  "type": ""
}'
echo '{
  "accountId": "",
  "criteria": {
    "activities": {
      "filters": [
        {
          "dimensionName": "",
          "etag": "",
          "id": "",
          "kind": "",
          "matchType": "",
          "value": ""
        }
      ],
      "kind": "",
      "metricNames": []
    },
    "customRichMediaEvents": {
      "filteredEventIds": [
        {}
      ],
      "kind": ""
    },
    "dateRange": {
      "endDate": "",
      "kind": "",
      "relativeDateRange": "",
      "startDate": ""
    },
    "dimensionFilters": [
      {}
    ],
    "dimensions": [
      {
        "kind": "",
        "name": "",
        "sortOrder": ""
      }
    ],
    "metricNames": []
  },
  "crossDimensionReachCriteria": {
    "breakdown": [
      {}
    ],
    "dateRange": {},
    "dimension": "",
    "dimensionFilters": [
      {}
    ],
    "metricNames": [],
    "overlapMetricNames": [],
    "pivoted": false
  },
  "delivery": {
    "emailOwner": false,
    "emailOwnerDeliveryType": "",
    "message": "",
    "recipients": [
      {
        "deliveryType": "",
        "email": "",
        "kind": ""
      }
    ]
  },
  "etag": "",
  "fileName": "",
  "floodlightCriteria": {
    "customRichMediaEvents": [
      {}
    ],
    "dateRange": {},
    "dimensionFilters": [
      {}
    ],
    "dimensions": [
      {}
    ],
    "floodlightConfigId": {},
    "metricNames": [],
    "reportProperties": {
      "includeAttributedIPConversions": false,
      "includeUnattributedCookieConversions": false,
      "includeUnattributedIPConversions": false
    }
  },
  "format": "",
  "id": "",
  "kind": "",
  "lastModifiedTime": "",
  "name": "",
  "ownerProfileId": "",
  "pathAttributionCriteria": {
    "activityFilters": [
      {}
    ],
    "customChannelGrouping": {
      "fallbackName": "",
      "kind": "",
      "name": "",
      "rules": [
        {
          "disjunctiveMatchStatements": [
            {
              "eventFilters": [
                {
                  "dimensionFilter": {
                    "dimensionName": "",
                    "ids": [],
                    "kind": "",
                    "matchType": "",
                    "values": []
                  },
                  "kind": ""
                }
              ],
              "kind": ""
            }
          ],
          "kind": "",
          "name": ""
        }
      ]
    },
    "dateRange": {},
    "dimensions": [
      {}
    ],
    "floodlightConfigId": {},
    "metricNames": [],
    "pathFilters": [
      {
        "eventFilters": [
          {}
        ],
        "kind": "",
        "pathMatchPosition": ""
      }
    ]
  },
  "pathCriteria": {
    "activityFilters": [
      {}
    ],
    "customChannelGrouping": {},
    "dateRange": {},
    "dimensions": [
      {}
    ],
    "floodlightConfigId": {},
    "metricNames": [],
    "pathFilters": [
      {}
    ]
  },
  "pathToConversionCriteria": {
    "activityFilters": [
      {}
    ],
    "conversionDimensions": [
      {}
    ],
    "customFloodlightVariables": [
      {}
    ],
    "customRichMediaEvents": [
      {}
    ],
    "dateRange": {},
    "floodlightConfigId": {},
    "metricNames": [],
    "perInteractionDimensions": [
      {}
    ],
    "reportProperties": {
      "clicksLookbackWindow": 0,
      "impressionsLookbackWindow": 0,
      "includeAttributedIPConversions": false,
      "includeUnattributedCookieConversions": false,
      "includeUnattributedIPConversions": false,
      "maximumClickInteractions": 0,
      "maximumImpressionInteractions": 0,
      "maximumInteractionGap": 0,
      "pivotOnInteractionPath": false
    }
  },
  "reachCriteria": {
    "activities": {},
    "customRichMediaEvents": {},
    "dateRange": {},
    "dimensionFilters": [
      {}
    ],
    "dimensions": [
      {}
    ],
    "enableAllDimensionCombinations": false,
    "metricNames": [],
    "reachByFrequencyMetricNames": []
  },
  "schedule": {
    "active": false,
    "every": 0,
    "expirationDate": "",
    "repeats": "",
    "repeatsOnWeekDays": [],
    "runsOnDayOfMonth": "",
    "startDate": ""
  },
  "subAccountId": "",
  "type": ""
}' |  \
  http POST {{baseUrl}}/userprofiles/:profileId/reports/compatiblefields/query \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "accountId": "",\n  "criteria": {\n    "activities": {\n      "filters": [\n        {\n          "dimensionName": "",\n          "etag": "",\n          "id": "",\n          "kind": "",\n          "matchType": "",\n          "value": ""\n        }\n      ],\n      "kind": "",\n      "metricNames": []\n    },\n    "customRichMediaEvents": {\n      "filteredEventIds": [\n        {}\n      ],\n      "kind": ""\n    },\n    "dateRange": {\n      "endDate": "",\n      "kind": "",\n      "relativeDateRange": "",\n      "startDate": ""\n    },\n    "dimensionFilters": [\n      {}\n    ],\n    "dimensions": [\n      {\n        "kind": "",\n        "name": "",\n        "sortOrder": ""\n      }\n    ],\n    "metricNames": []\n  },\n  "crossDimensionReachCriteria": {\n    "breakdown": [\n      {}\n    ],\n    "dateRange": {},\n    "dimension": "",\n    "dimensionFilters": [\n      {}\n    ],\n    "metricNames": [],\n    "overlapMetricNames": [],\n    "pivoted": false\n  },\n  "delivery": {\n    "emailOwner": false,\n    "emailOwnerDeliveryType": "",\n    "message": "",\n    "recipients": [\n      {\n        "deliveryType": "",\n        "email": "",\n        "kind": ""\n      }\n    ]\n  },\n  "etag": "",\n  "fileName": "",\n  "floodlightCriteria": {\n    "customRichMediaEvents": [\n      {}\n    ],\n    "dateRange": {},\n    "dimensionFilters": [\n      {}\n    ],\n    "dimensions": [\n      {}\n    ],\n    "floodlightConfigId": {},\n    "metricNames": [],\n    "reportProperties": {\n      "includeAttributedIPConversions": false,\n      "includeUnattributedCookieConversions": false,\n      "includeUnattributedIPConversions": false\n    }\n  },\n  "format": "",\n  "id": "",\n  "kind": "",\n  "lastModifiedTime": "",\n  "name": "",\n  "ownerProfileId": "",\n  "pathAttributionCriteria": {\n    "activityFilters": [\n      {}\n    ],\n    "customChannelGrouping": {\n      "fallbackName": "",\n      "kind": "",\n      "name": "",\n      "rules": [\n        {\n          "disjunctiveMatchStatements": [\n            {\n              "eventFilters": [\n                {\n                  "dimensionFilter": {\n                    "dimensionName": "",\n                    "ids": [],\n                    "kind": "",\n                    "matchType": "",\n                    "values": []\n                  },\n                  "kind": ""\n                }\n              ],\n              "kind": ""\n            }\n          ],\n          "kind": "",\n          "name": ""\n        }\n      ]\n    },\n    "dateRange": {},\n    "dimensions": [\n      {}\n    ],\n    "floodlightConfigId": {},\n    "metricNames": [],\n    "pathFilters": [\n      {\n        "eventFilters": [\n          {}\n        ],\n        "kind": "",\n        "pathMatchPosition": ""\n      }\n    ]\n  },\n  "pathCriteria": {\n    "activityFilters": [\n      {}\n    ],\n    "customChannelGrouping": {},\n    "dateRange": {},\n    "dimensions": [\n      {}\n    ],\n    "floodlightConfigId": {},\n    "metricNames": [],\n    "pathFilters": [\n      {}\n    ]\n  },\n  "pathToConversionCriteria": {\n    "activityFilters": [\n      {}\n    ],\n    "conversionDimensions": [\n      {}\n    ],\n    "customFloodlightVariables": [\n      {}\n    ],\n    "customRichMediaEvents": [\n      {}\n    ],\n    "dateRange": {},\n    "floodlightConfigId": {},\n    "metricNames": [],\n    "perInteractionDimensions": [\n      {}\n    ],\n    "reportProperties": {\n      "clicksLookbackWindow": 0,\n      "impressionsLookbackWindow": 0,\n      "includeAttributedIPConversions": false,\n      "includeUnattributedCookieConversions": false,\n      "includeUnattributedIPConversions": false,\n      "maximumClickInteractions": 0,\n      "maximumImpressionInteractions": 0,\n      "maximumInteractionGap": 0,\n      "pivotOnInteractionPath": false\n    }\n  },\n  "reachCriteria": {\n    "activities": {},\n    "customRichMediaEvents": {},\n    "dateRange": {},\n    "dimensionFilters": [\n      {}\n    ],\n    "dimensions": [\n      {}\n    ],\n    "enableAllDimensionCombinations": false,\n    "metricNames": [],\n    "reachByFrequencyMetricNames": []\n  },\n  "schedule": {\n    "active": false,\n    "every": 0,\n    "expirationDate": "",\n    "repeats": "",\n    "repeatsOnWeekDays": [],\n    "runsOnDayOfMonth": "",\n    "startDate": ""\n  },\n  "subAccountId": "",\n  "type": ""\n}' \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/reports/compatiblefields/query
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "accountId": "",
  "criteria": [
    "activities": [
      "filters": [
        [
          "dimensionName": "",
          "etag": "",
          "id": "",
          "kind": "",
          "matchType": "",
          "value": ""
        ]
      ],
      "kind": "",
      "metricNames": []
    ],
    "customRichMediaEvents": [
      "filteredEventIds": [[]],
      "kind": ""
    ],
    "dateRange": [
      "endDate": "",
      "kind": "",
      "relativeDateRange": "",
      "startDate": ""
    ],
    "dimensionFilters": [[]],
    "dimensions": [
      [
        "kind": "",
        "name": "",
        "sortOrder": ""
      ]
    ],
    "metricNames": []
  ],
  "crossDimensionReachCriteria": [
    "breakdown": [[]],
    "dateRange": [],
    "dimension": "",
    "dimensionFilters": [[]],
    "metricNames": [],
    "overlapMetricNames": [],
    "pivoted": false
  ],
  "delivery": [
    "emailOwner": false,
    "emailOwnerDeliveryType": "",
    "message": "",
    "recipients": [
      [
        "deliveryType": "",
        "email": "",
        "kind": ""
      ]
    ]
  ],
  "etag": "",
  "fileName": "",
  "floodlightCriteria": [
    "customRichMediaEvents": [[]],
    "dateRange": [],
    "dimensionFilters": [[]],
    "dimensions": [[]],
    "floodlightConfigId": [],
    "metricNames": [],
    "reportProperties": [
      "includeAttributedIPConversions": false,
      "includeUnattributedCookieConversions": false,
      "includeUnattributedIPConversions": false
    ]
  ],
  "format": "",
  "id": "",
  "kind": "",
  "lastModifiedTime": "",
  "name": "",
  "ownerProfileId": "",
  "pathAttributionCriteria": [
    "activityFilters": [[]],
    "customChannelGrouping": [
      "fallbackName": "",
      "kind": "",
      "name": "",
      "rules": [
        [
          "disjunctiveMatchStatements": [
            [
              "eventFilters": [
                [
                  "dimensionFilter": [
                    "dimensionName": "",
                    "ids": [],
                    "kind": "",
                    "matchType": "",
                    "values": []
                  ],
                  "kind": ""
                ]
              ],
              "kind": ""
            ]
          ],
          "kind": "",
          "name": ""
        ]
      ]
    ],
    "dateRange": [],
    "dimensions": [[]],
    "floodlightConfigId": [],
    "metricNames": [],
    "pathFilters": [
      [
        "eventFilters": [[]],
        "kind": "",
        "pathMatchPosition": ""
      ]
    ]
  ],
  "pathCriteria": [
    "activityFilters": [[]],
    "customChannelGrouping": [],
    "dateRange": [],
    "dimensions": [[]],
    "floodlightConfigId": [],
    "metricNames": [],
    "pathFilters": [[]]
  ],
  "pathToConversionCriteria": [
    "activityFilters": [[]],
    "conversionDimensions": [[]],
    "customFloodlightVariables": [[]],
    "customRichMediaEvents": [[]],
    "dateRange": [],
    "floodlightConfigId": [],
    "metricNames": [],
    "perInteractionDimensions": [[]],
    "reportProperties": [
      "clicksLookbackWindow": 0,
      "impressionsLookbackWindow": 0,
      "includeAttributedIPConversions": false,
      "includeUnattributedCookieConversions": false,
      "includeUnattributedIPConversions": false,
      "maximumClickInteractions": 0,
      "maximumImpressionInteractions": 0,
      "maximumInteractionGap": 0,
      "pivotOnInteractionPath": false
    ]
  ],
  "reachCriteria": [
    "activities": [],
    "customRichMediaEvents": [],
    "dateRange": [],
    "dimensionFilters": [[]],
    "dimensions": [[]],
    "enableAllDimensionCombinations": false,
    "metricNames": [],
    "reachByFrequencyMetricNames": []
  ],
  "schedule": [
    "active": false,
    "every": 0,
    "expirationDate": "",
    "repeats": "",
    "repeatsOnWeekDays": [],
    "runsOnDayOfMonth": "",
    "startDate": ""
  ],
  "subAccountId": "",
  "type": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/reports/compatiblefields/query")! 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 dfareporting.reports.delete
{{baseUrl}}/userprofiles/:profileId/reports/:reportId
QUERY PARAMS

profileId
reportId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/reports/:reportId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/userprofiles/:profileId/reports/:reportId")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/reports/:reportId"

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}}/userprofiles/:profileId/reports/:reportId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/reports/:reportId");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/reports/:reportId"

	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/userprofiles/:profileId/reports/:reportId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/userprofiles/:profileId/reports/:reportId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/reports/:reportId"))
    .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}}/userprofiles/:profileId/reports/:reportId")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/userprofiles/:profileId/reports/:reportId")
  .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}}/userprofiles/:profileId/reports/:reportId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/userprofiles/:profileId/reports/:reportId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/reports/:reportId';
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}}/userprofiles/:profileId/reports/:reportId',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/reports/:reportId")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/reports/:reportId',
  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}}/userprofiles/:profileId/reports/:reportId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/userprofiles/:profileId/reports/:reportId');

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}}/userprofiles/:profileId/reports/:reportId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/reports/:reportId';
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}}/userprofiles/:profileId/reports/:reportId"]
                                                       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}}/userprofiles/:profileId/reports/:reportId" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/reports/:reportId",
  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}}/userprofiles/:profileId/reports/:reportId');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/reports/:reportId');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/reports/:reportId');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/reports/:reportId' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/reports/:reportId' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/userprofiles/:profileId/reports/:reportId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/reports/:reportId"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/reports/:reportId"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/reports/:reportId")

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/userprofiles/:profileId/reports/:reportId') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/reports/:reportId";

    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}}/userprofiles/:profileId/reports/:reportId
http DELETE {{baseUrl}}/userprofiles/:profileId/reports/:reportId
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/reports/:reportId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/reports/:reportId")! 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 dfareporting.reports.files.get
{{baseUrl}}/userprofiles/:profileId/reports/:reportId/files/:fileId
QUERY PARAMS

profileId
reportId
fileId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/reports/:reportId/files/:fileId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/reports/:reportId/files/:fileId")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/reports/:reportId/files/:fileId"

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}}/userprofiles/:profileId/reports/:reportId/files/:fileId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/reports/:reportId/files/:fileId");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/reports/:reportId/files/:fileId"

	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/userprofiles/:profileId/reports/:reportId/files/:fileId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/reports/:reportId/files/:fileId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/reports/:reportId/files/:fileId"))
    .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}}/userprofiles/:profileId/reports/:reportId/files/:fileId")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/reports/:reportId/files/:fileId")
  .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}}/userprofiles/:profileId/reports/:reportId/files/:fileId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/reports/:reportId/files/:fileId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/reports/:reportId/files/:fileId';
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}}/userprofiles/:profileId/reports/:reportId/files/:fileId',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/reports/:reportId/files/:fileId")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/reports/:reportId/files/:fileId',
  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}}/userprofiles/:profileId/reports/:reportId/files/:fileId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/reports/:reportId/files/:fileId');

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}}/userprofiles/:profileId/reports/:reportId/files/:fileId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/reports/:reportId/files/:fileId';
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}}/userprofiles/:profileId/reports/:reportId/files/:fileId"]
                                                       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}}/userprofiles/:profileId/reports/:reportId/files/:fileId" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/reports/:reportId/files/:fileId",
  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}}/userprofiles/:profileId/reports/:reportId/files/:fileId');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/reports/:reportId/files/:fileId');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/reports/:reportId/files/:fileId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/reports/:reportId/files/:fileId' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/reports/:reportId/files/:fileId' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/reports/:reportId/files/:fileId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/reports/:reportId/files/:fileId"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/reports/:reportId/files/:fileId"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/reports/:reportId/files/:fileId")

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/userprofiles/:profileId/reports/:reportId/files/:fileId') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/reports/:reportId/files/:fileId";

    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}}/userprofiles/:profileId/reports/:reportId/files/:fileId
http GET {{baseUrl}}/userprofiles/:profileId/reports/:reportId/files/:fileId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/reports/:reportId/files/:fileId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/reports/:reportId/files/:fileId")! 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 dfareporting.reports.files.list
{{baseUrl}}/userprofiles/:profileId/reports/:reportId/files
QUERY PARAMS

profileId
reportId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/reports/:reportId/files");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/reports/:reportId/files")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/reports/:reportId/files"

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}}/userprofiles/:profileId/reports/:reportId/files"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/reports/:reportId/files");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/reports/:reportId/files"

	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/userprofiles/:profileId/reports/:reportId/files HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/reports/:reportId/files")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/reports/:reportId/files"))
    .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}}/userprofiles/:profileId/reports/:reportId/files")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/reports/:reportId/files")
  .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}}/userprofiles/:profileId/reports/:reportId/files');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/reports/:reportId/files'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/reports/:reportId/files';
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}}/userprofiles/:profileId/reports/:reportId/files',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/reports/:reportId/files")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/reports/:reportId/files',
  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}}/userprofiles/:profileId/reports/:reportId/files'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/reports/:reportId/files');

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}}/userprofiles/:profileId/reports/:reportId/files'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/reports/:reportId/files';
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}}/userprofiles/:profileId/reports/:reportId/files"]
                                                       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}}/userprofiles/:profileId/reports/:reportId/files" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/reports/:reportId/files",
  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}}/userprofiles/:profileId/reports/:reportId/files');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/reports/:reportId/files');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/reports/:reportId/files');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/reports/:reportId/files' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/reports/:reportId/files' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/reports/:reportId/files")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/reports/:reportId/files"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/reports/:reportId/files"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/reports/:reportId/files")

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/userprofiles/:profileId/reports/:reportId/files') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/reports/:reportId/files";

    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}}/userprofiles/:profileId/reports/:reportId/files
http GET {{baseUrl}}/userprofiles/:profileId/reports/:reportId/files
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/reports/:reportId/files
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/reports/:reportId/files")! 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 dfareporting.reports.get
{{baseUrl}}/userprofiles/:profileId/reports/:reportId
QUERY PARAMS

profileId
reportId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/reports/:reportId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/reports/:reportId")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/reports/:reportId"

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}}/userprofiles/:profileId/reports/:reportId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/reports/:reportId");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/reports/:reportId"

	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/userprofiles/:profileId/reports/:reportId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/reports/:reportId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/reports/:reportId"))
    .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}}/userprofiles/:profileId/reports/:reportId")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/reports/:reportId")
  .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}}/userprofiles/:profileId/reports/:reportId');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/reports/:reportId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/reports/:reportId';
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}}/userprofiles/:profileId/reports/:reportId',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/reports/:reportId")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/reports/:reportId',
  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}}/userprofiles/:profileId/reports/:reportId'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/reports/:reportId');

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}}/userprofiles/:profileId/reports/:reportId'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/reports/:reportId';
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}}/userprofiles/:profileId/reports/:reportId"]
                                                       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}}/userprofiles/:profileId/reports/:reportId" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/reports/:reportId",
  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}}/userprofiles/:profileId/reports/:reportId');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/reports/:reportId');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/reports/:reportId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/reports/:reportId' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/reports/:reportId' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/reports/:reportId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/reports/:reportId"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/reports/:reportId"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/reports/:reportId")

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/userprofiles/:profileId/reports/:reportId') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/reports/:reportId";

    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}}/userprofiles/:profileId/reports/:reportId
http GET {{baseUrl}}/userprofiles/:profileId/reports/:reportId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/reports/:reportId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/reports/:reportId")! 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 dfareporting.reports.insert
{{baseUrl}}/userprofiles/:profileId/reports
QUERY PARAMS

profileId
BODY json

{
  "accountId": "",
  "criteria": {
    "activities": {
      "filters": [
        {
          "dimensionName": "",
          "etag": "",
          "id": "",
          "kind": "",
          "matchType": "",
          "value": ""
        }
      ],
      "kind": "",
      "metricNames": []
    },
    "customRichMediaEvents": {
      "filteredEventIds": [
        {}
      ],
      "kind": ""
    },
    "dateRange": {
      "endDate": "",
      "kind": "",
      "relativeDateRange": "",
      "startDate": ""
    },
    "dimensionFilters": [
      {}
    ],
    "dimensions": [
      {
        "kind": "",
        "name": "",
        "sortOrder": ""
      }
    ],
    "metricNames": []
  },
  "crossDimensionReachCriteria": {
    "breakdown": [
      {}
    ],
    "dateRange": {},
    "dimension": "",
    "dimensionFilters": [
      {}
    ],
    "metricNames": [],
    "overlapMetricNames": [],
    "pivoted": false
  },
  "delivery": {
    "emailOwner": false,
    "emailOwnerDeliveryType": "",
    "message": "",
    "recipients": [
      {
        "deliveryType": "",
        "email": "",
        "kind": ""
      }
    ]
  },
  "etag": "",
  "fileName": "",
  "floodlightCriteria": {
    "customRichMediaEvents": [
      {}
    ],
    "dateRange": {},
    "dimensionFilters": [
      {}
    ],
    "dimensions": [
      {}
    ],
    "floodlightConfigId": {},
    "metricNames": [],
    "reportProperties": {
      "includeAttributedIPConversions": false,
      "includeUnattributedCookieConversions": false,
      "includeUnattributedIPConversions": false
    }
  },
  "format": "",
  "id": "",
  "kind": "",
  "lastModifiedTime": "",
  "name": "",
  "ownerProfileId": "",
  "pathAttributionCriteria": {
    "activityFilters": [
      {}
    ],
    "customChannelGrouping": {
      "fallbackName": "",
      "kind": "",
      "name": "",
      "rules": [
        {
          "disjunctiveMatchStatements": [
            {
              "eventFilters": [
                {
                  "dimensionFilter": {
                    "dimensionName": "",
                    "ids": [],
                    "kind": "",
                    "matchType": "",
                    "values": []
                  },
                  "kind": ""
                }
              ],
              "kind": ""
            }
          ],
          "kind": "",
          "name": ""
        }
      ]
    },
    "dateRange": {},
    "dimensions": [
      {}
    ],
    "floodlightConfigId": {},
    "metricNames": [],
    "pathFilters": [
      {
        "eventFilters": [
          {}
        ],
        "kind": "",
        "pathMatchPosition": ""
      }
    ]
  },
  "pathCriteria": {
    "activityFilters": [
      {}
    ],
    "customChannelGrouping": {},
    "dateRange": {},
    "dimensions": [
      {}
    ],
    "floodlightConfigId": {},
    "metricNames": [],
    "pathFilters": [
      {}
    ]
  },
  "pathToConversionCriteria": {
    "activityFilters": [
      {}
    ],
    "conversionDimensions": [
      {}
    ],
    "customFloodlightVariables": [
      {}
    ],
    "customRichMediaEvents": [
      {}
    ],
    "dateRange": {},
    "floodlightConfigId": {},
    "metricNames": [],
    "perInteractionDimensions": [
      {}
    ],
    "reportProperties": {
      "clicksLookbackWindow": 0,
      "impressionsLookbackWindow": 0,
      "includeAttributedIPConversions": false,
      "includeUnattributedCookieConversions": false,
      "includeUnattributedIPConversions": false,
      "maximumClickInteractions": 0,
      "maximumImpressionInteractions": 0,
      "maximumInteractionGap": 0,
      "pivotOnInteractionPath": false
    }
  },
  "reachCriteria": {
    "activities": {},
    "customRichMediaEvents": {},
    "dateRange": {},
    "dimensionFilters": [
      {}
    ],
    "dimensions": [
      {}
    ],
    "enableAllDimensionCombinations": false,
    "metricNames": [],
    "reachByFrequencyMetricNames": []
  },
  "schedule": {
    "active": false,
    "every": 0,
    "expirationDate": "",
    "repeats": "",
    "repeatsOnWeekDays": [],
    "runsOnDayOfMonth": "",
    "startDate": ""
  },
  "subAccountId": "",
  "type": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/reports");

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  \"accountId\": \"\",\n  \"criteria\": {\n    \"activities\": {\n      \"filters\": [\n        {\n          \"dimensionName\": \"\",\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"matchType\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"kind\": \"\",\n      \"metricNames\": []\n    },\n    \"customRichMediaEvents\": {\n      \"filteredEventIds\": [\n        {}\n      ],\n      \"kind\": \"\"\n    },\n    \"dateRange\": {\n      \"endDate\": \"\",\n      \"kind\": \"\",\n      \"relativeDateRange\": \"\",\n      \"startDate\": \"\"\n    },\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sortOrder\": \"\"\n      }\n    ],\n    \"metricNames\": []\n  },\n  \"crossDimensionReachCriteria\": {\n    \"breakdown\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimension\": \"\",\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"metricNames\": [],\n    \"overlapMetricNames\": [],\n    \"pivoted\": false\n  },\n  \"delivery\": {\n    \"emailOwner\": false,\n    \"emailOwnerDeliveryType\": \"\",\n    \"message\": \"\",\n    \"recipients\": [\n      {\n        \"deliveryType\": \"\",\n        \"email\": \"\",\n        \"kind\": \"\"\n      }\n    ]\n  },\n  \"etag\": \"\",\n  \"fileName\": \"\",\n  \"floodlightCriteria\": {\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"reportProperties\": {\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false\n    }\n  },\n  \"format\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedTime\": \"\",\n  \"name\": \"\",\n  \"ownerProfileId\": \"\",\n  \"pathAttributionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {\n      \"fallbackName\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"rules\": [\n        {\n          \"disjunctiveMatchStatements\": [\n            {\n              \"eventFilters\": [\n                {\n                  \"dimensionFilter\": {\n                    \"dimensionName\": \"\",\n                    \"ids\": [],\n                    \"kind\": \"\",\n                    \"matchType\": \"\",\n                    \"values\": []\n                  },\n                  \"kind\": \"\"\n                }\n              ],\n              \"kind\": \"\"\n            }\n          ],\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {\n        \"eventFilters\": [\n          {}\n        ],\n        \"kind\": \"\",\n        \"pathMatchPosition\": \"\"\n      }\n    ]\n  },\n  \"pathCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {},\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {}\n    ]\n  },\n  \"pathToConversionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"conversionDimensions\": [\n      {}\n    ],\n    \"customFloodlightVariables\": [\n      {}\n    ],\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"perInteractionDimensions\": [\n      {}\n    ],\n    \"reportProperties\": {\n      \"clicksLookbackWindow\": 0,\n      \"impressionsLookbackWindow\": 0,\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false,\n      \"maximumClickInteractions\": 0,\n      \"maximumImpressionInteractions\": 0,\n      \"maximumInteractionGap\": 0,\n      \"pivotOnInteractionPath\": false\n    }\n  },\n  \"reachCriteria\": {\n    \"activities\": {},\n    \"customRichMediaEvents\": {},\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"enableAllDimensionCombinations\": false,\n    \"metricNames\": [],\n    \"reachByFrequencyMetricNames\": []\n  },\n  \"schedule\": {\n    \"active\": false,\n    \"every\": 0,\n    \"expirationDate\": \"\",\n    \"repeats\": \"\",\n    \"repeatsOnWeekDays\": [],\n    \"runsOnDayOfMonth\": \"\",\n    \"startDate\": \"\"\n  },\n  \"subAccountId\": \"\",\n  \"type\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/userprofiles/:profileId/reports" {:content-type :json
                                                                            :form-params {:accountId ""
                                                                                          :criteria {:activities {:filters [{:dimensionName ""
                                                                                                                             :etag ""
                                                                                                                             :id ""
                                                                                                                             :kind ""
                                                                                                                             :matchType ""
                                                                                                                             :value ""}]
                                                                                                                  :kind ""
                                                                                                                  :metricNames []}
                                                                                                     :customRichMediaEvents {:filteredEventIds [{}]
                                                                                                                             :kind ""}
                                                                                                     :dateRange {:endDate ""
                                                                                                                 :kind ""
                                                                                                                 :relativeDateRange ""
                                                                                                                 :startDate ""}
                                                                                                     :dimensionFilters [{}]
                                                                                                     :dimensions [{:kind ""
                                                                                                                   :name ""
                                                                                                                   :sortOrder ""}]
                                                                                                     :metricNames []}
                                                                                          :crossDimensionReachCriteria {:breakdown [{}]
                                                                                                                        :dateRange {}
                                                                                                                        :dimension ""
                                                                                                                        :dimensionFilters [{}]
                                                                                                                        :metricNames []
                                                                                                                        :overlapMetricNames []
                                                                                                                        :pivoted false}
                                                                                          :delivery {:emailOwner false
                                                                                                     :emailOwnerDeliveryType ""
                                                                                                     :message ""
                                                                                                     :recipients [{:deliveryType ""
                                                                                                                   :email ""
                                                                                                                   :kind ""}]}
                                                                                          :etag ""
                                                                                          :fileName ""
                                                                                          :floodlightCriteria {:customRichMediaEvents [{}]
                                                                                                               :dateRange {}
                                                                                                               :dimensionFilters [{}]
                                                                                                               :dimensions [{}]
                                                                                                               :floodlightConfigId {}
                                                                                                               :metricNames []
                                                                                                               :reportProperties {:includeAttributedIPConversions false
                                                                                                                                  :includeUnattributedCookieConversions false
                                                                                                                                  :includeUnattributedIPConversions false}}
                                                                                          :format ""
                                                                                          :id ""
                                                                                          :kind ""
                                                                                          :lastModifiedTime ""
                                                                                          :name ""
                                                                                          :ownerProfileId ""
                                                                                          :pathAttributionCriteria {:activityFilters [{}]
                                                                                                                    :customChannelGrouping {:fallbackName ""
                                                                                                                                            :kind ""
                                                                                                                                            :name ""
                                                                                                                                            :rules [{:disjunctiveMatchStatements [{:eventFilters [{:dimensionFilter {:dimensionName ""
                                                                                                                                                                                                                     :ids []
                                                                                                                                                                                                                     :kind ""
                                                                                                                                                                                                                     :matchType ""
                                                                                                                                                                                                                     :values []}
                                                                                                                                                                                                   :kind ""}]
                                                                                                                                                                                   :kind ""}]
                                                                                                                                                     :kind ""
                                                                                                                                                     :name ""}]}
                                                                                                                    :dateRange {}
                                                                                                                    :dimensions [{}]
                                                                                                                    :floodlightConfigId {}
                                                                                                                    :metricNames []
                                                                                                                    :pathFilters [{:eventFilters [{}]
                                                                                                                                   :kind ""
                                                                                                                                   :pathMatchPosition ""}]}
                                                                                          :pathCriteria {:activityFilters [{}]
                                                                                                         :customChannelGrouping {}
                                                                                                         :dateRange {}
                                                                                                         :dimensions [{}]
                                                                                                         :floodlightConfigId {}
                                                                                                         :metricNames []
                                                                                                         :pathFilters [{}]}
                                                                                          :pathToConversionCriteria {:activityFilters [{}]
                                                                                                                     :conversionDimensions [{}]
                                                                                                                     :customFloodlightVariables [{}]
                                                                                                                     :customRichMediaEvents [{}]
                                                                                                                     :dateRange {}
                                                                                                                     :floodlightConfigId {}
                                                                                                                     :metricNames []
                                                                                                                     :perInteractionDimensions [{}]
                                                                                                                     :reportProperties {:clicksLookbackWindow 0
                                                                                                                                        :impressionsLookbackWindow 0
                                                                                                                                        :includeAttributedIPConversions false
                                                                                                                                        :includeUnattributedCookieConversions false
                                                                                                                                        :includeUnattributedIPConversions false
                                                                                                                                        :maximumClickInteractions 0
                                                                                                                                        :maximumImpressionInteractions 0
                                                                                                                                        :maximumInteractionGap 0
                                                                                                                                        :pivotOnInteractionPath false}}
                                                                                          :reachCriteria {:activities {}
                                                                                                          :customRichMediaEvents {}
                                                                                                          :dateRange {}
                                                                                                          :dimensionFilters [{}]
                                                                                                          :dimensions [{}]
                                                                                                          :enableAllDimensionCombinations false
                                                                                                          :metricNames []
                                                                                                          :reachByFrequencyMetricNames []}
                                                                                          :schedule {:active false
                                                                                                     :every 0
                                                                                                     :expirationDate ""
                                                                                                     :repeats ""
                                                                                                     :repeatsOnWeekDays []
                                                                                                     :runsOnDayOfMonth ""
                                                                                                     :startDate ""}
                                                                                          :subAccountId ""
                                                                                          :type ""}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/reports"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"accountId\": \"\",\n  \"criteria\": {\n    \"activities\": {\n      \"filters\": [\n        {\n          \"dimensionName\": \"\",\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"matchType\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"kind\": \"\",\n      \"metricNames\": []\n    },\n    \"customRichMediaEvents\": {\n      \"filteredEventIds\": [\n        {}\n      ],\n      \"kind\": \"\"\n    },\n    \"dateRange\": {\n      \"endDate\": \"\",\n      \"kind\": \"\",\n      \"relativeDateRange\": \"\",\n      \"startDate\": \"\"\n    },\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sortOrder\": \"\"\n      }\n    ],\n    \"metricNames\": []\n  },\n  \"crossDimensionReachCriteria\": {\n    \"breakdown\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimension\": \"\",\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"metricNames\": [],\n    \"overlapMetricNames\": [],\n    \"pivoted\": false\n  },\n  \"delivery\": {\n    \"emailOwner\": false,\n    \"emailOwnerDeliveryType\": \"\",\n    \"message\": \"\",\n    \"recipients\": [\n      {\n        \"deliveryType\": \"\",\n        \"email\": \"\",\n        \"kind\": \"\"\n      }\n    ]\n  },\n  \"etag\": \"\",\n  \"fileName\": \"\",\n  \"floodlightCriteria\": {\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"reportProperties\": {\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false\n    }\n  },\n  \"format\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedTime\": \"\",\n  \"name\": \"\",\n  \"ownerProfileId\": \"\",\n  \"pathAttributionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {\n      \"fallbackName\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"rules\": [\n        {\n          \"disjunctiveMatchStatements\": [\n            {\n              \"eventFilters\": [\n                {\n                  \"dimensionFilter\": {\n                    \"dimensionName\": \"\",\n                    \"ids\": [],\n                    \"kind\": \"\",\n                    \"matchType\": \"\",\n                    \"values\": []\n                  },\n                  \"kind\": \"\"\n                }\n              ],\n              \"kind\": \"\"\n            }\n          ],\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {\n        \"eventFilters\": [\n          {}\n        ],\n        \"kind\": \"\",\n        \"pathMatchPosition\": \"\"\n      }\n    ]\n  },\n  \"pathCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {},\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {}\n    ]\n  },\n  \"pathToConversionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"conversionDimensions\": [\n      {}\n    ],\n    \"customFloodlightVariables\": [\n      {}\n    ],\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"perInteractionDimensions\": [\n      {}\n    ],\n    \"reportProperties\": {\n      \"clicksLookbackWindow\": 0,\n      \"impressionsLookbackWindow\": 0,\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false,\n      \"maximumClickInteractions\": 0,\n      \"maximumImpressionInteractions\": 0,\n      \"maximumInteractionGap\": 0,\n      \"pivotOnInteractionPath\": false\n    }\n  },\n  \"reachCriteria\": {\n    \"activities\": {},\n    \"customRichMediaEvents\": {},\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"enableAllDimensionCombinations\": false,\n    \"metricNames\": [],\n    \"reachByFrequencyMetricNames\": []\n  },\n  \"schedule\": {\n    \"active\": false,\n    \"every\": 0,\n    \"expirationDate\": \"\",\n    \"repeats\": \"\",\n    \"repeatsOnWeekDays\": [],\n    \"runsOnDayOfMonth\": \"\",\n    \"startDate\": \"\"\n  },\n  \"subAccountId\": \"\",\n  \"type\": \"\"\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}}/userprofiles/:profileId/reports"),
    Content = new StringContent("{\n  \"accountId\": \"\",\n  \"criteria\": {\n    \"activities\": {\n      \"filters\": [\n        {\n          \"dimensionName\": \"\",\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"matchType\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"kind\": \"\",\n      \"metricNames\": []\n    },\n    \"customRichMediaEvents\": {\n      \"filteredEventIds\": [\n        {}\n      ],\n      \"kind\": \"\"\n    },\n    \"dateRange\": {\n      \"endDate\": \"\",\n      \"kind\": \"\",\n      \"relativeDateRange\": \"\",\n      \"startDate\": \"\"\n    },\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sortOrder\": \"\"\n      }\n    ],\n    \"metricNames\": []\n  },\n  \"crossDimensionReachCriteria\": {\n    \"breakdown\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimension\": \"\",\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"metricNames\": [],\n    \"overlapMetricNames\": [],\n    \"pivoted\": false\n  },\n  \"delivery\": {\n    \"emailOwner\": false,\n    \"emailOwnerDeliveryType\": \"\",\n    \"message\": \"\",\n    \"recipients\": [\n      {\n        \"deliveryType\": \"\",\n        \"email\": \"\",\n        \"kind\": \"\"\n      }\n    ]\n  },\n  \"etag\": \"\",\n  \"fileName\": \"\",\n  \"floodlightCriteria\": {\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"reportProperties\": {\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false\n    }\n  },\n  \"format\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedTime\": \"\",\n  \"name\": \"\",\n  \"ownerProfileId\": \"\",\n  \"pathAttributionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {\n      \"fallbackName\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"rules\": [\n        {\n          \"disjunctiveMatchStatements\": [\n            {\n              \"eventFilters\": [\n                {\n                  \"dimensionFilter\": {\n                    \"dimensionName\": \"\",\n                    \"ids\": [],\n                    \"kind\": \"\",\n                    \"matchType\": \"\",\n                    \"values\": []\n                  },\n                  \"kind\": \"\"\n                }\n              ],\n              \"kind\": \"\"\n            }\n          ],\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {\n        \"eventFilters\": [\n          {}\n        ],\n        \"kind\": \"\",\n        \"pathMatchPosition\": \"\"\n      }\n    ]\n  },\n  \"pathCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {},\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {}\n    ]\n  },\n  \"pathToConversionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"conversionDimensions\": [\n      {}\n    ],\n    \"customFloodlightVariables\": [\n      {}\n    ],\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"perInteractionDimensions\": [\n      {}\n    ],\n    \"reportProperties\": {\n      \"clicksLookbackWindow\": 0,\n      \"impressionsLookbackWindow\": 0,\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false,\n      \"maximumClickInteractions\": 0,\n      \"maximumImpressionInteractions\": 0,\n      \"maximumInteractionGap\": 0,\n      \"pivotOnInteractionPath\": false\n    }\n  },\n  \"reachCriteria\": {\n    \"activities\": {},\n    \"customRichMediaEvents\": {},\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"enableAllDimensionCombinations\": false,\n    \"metricNames\": [],\n    \"reachByFrequencyMetricNames\": []\n  },\n  \"schedule\": {\n    \"active\": false,\n    \"every\": 0,\n    \"expirationDate\": \"\",\n    \"repeats\": \"\",\n    \"repeatsOnWeekDays\": [],\n    \"runsOnDayOfMonth\": \"\",\n    \"startDate\": \"\"\n  },\n  \"subAccountId\": \"\",\n  \"type\": \"\"\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}}/userprofiles/:profileId/reports");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"accountId\": \"\",\n  \"criteria\": {\n    \"activities\": {\n      \"filters\": [\n        {\n          \"dimensionName\": \"\",\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"matchType\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"kind\": \"\",\n      \"metricNames\": []\n    },\n    \"customRichMediaEvents\": {\n      \"filteredEventIds\": [\n        {}\n      ],\n      \"kind\": \"\"\n    },\n    \"dateRange\": {\n      \"endDate\": \"\",\n      \"kind\": \"\",\n      \"relativeDateRange\": \"\",\n      \"startDate\": \"\"\n    },\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sortOrder\": \"\"\n      }\n    ],\n    \"metricNames\": []\n  },\n  \"crossDimensionReachCriteria\": {\n    \"breakdown\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimension\": \"\",\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"metricNames\": [],\n    \"overlapMetricNames\": [],\n    \"pivoted\": false\n  },\n  \"delivery\": {\n    \"emailOwner\": false,\n    \"emailOwnerDeliveryType\": \"\",\n    \"message\": \"\",\n    \"recipients\": [\n      {\n        \"deliveryType\": \"\",\n        \"email\": \"\",\n        \"kind\": \"\"\n      }\n    ]\n  },\n  \"etag\": \"\",\n  \"fileName\": \"\",\n  \"floodlightCriteria\": {\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"reportProperties\": {\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false\n    }\n  },\n  \"format\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedTime\": \"\",\n  \"name\": \"\",\n  \"ownerProfileId\": \"\",\n  \"pathAttributionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {\n      \"fallbackName\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"rules\": [\n        {\n          \"disjunctiveMatchStatements\": [\n            {\n              \"eventFilters\": [\n                {\n                  \"dimensionFilter\": {\n                    \"dimensionName\": \"\",\n                    \"ids\": [],\n                    \"kind\": \"\",\n                    \"matchType\": \"\",\n                    \"values\": []\n                  },\n                  \"kind\": \"\"\n                }\n              ],\n              \"kind\": \"\"\n            }\n          ],\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {\n        \"eventFilters\": [\n          {}\n        ],\n        \"kind\": \"\",\n        \"pathMatchPosition\": \"\"\n      }\n    ]\n  },\n  \"pathCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {},\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {}\n    ]\n  },\n  \"pathToConversionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"conversionDimensions\": [\n      {}\n    ],\n    \"customFloodlightVariables\": [\n      {}\n    ],\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"perInteractionDimensions\": [\n      {}\n    ],\n    \"reportProperties\": {\n      \"clicksLookbackWindow\": 0,\n      \"impressionsLookbackWindow\": 0,\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false,\n      \"maximumClickInteractions\": 0,\n      \"maximumImpressionInteractions\": 0,\n      \"maximumInteractionGap\": 0,\n      \"pivotOnInteractionPath\": false\n    }\n  },\n  \"reachCriteria\": {\n    \"activities\": {},\n    \"customRichMediaEvents\": {},\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"enableAllDimensionCombinations\": false,\n    \"metricNames\": [],\n    \"reachByFrequencyMetricNames\": []\n  },\n  \"schedule\": {\n    \"active\": false,\n    \"every\": 0,\n    \"expirationDate\": \"\",\n    \"repeats\": \"\",\n    \"repeatsOnWeekDays\": [],\n    \"runsOnDayOfMonth\": \"\",\n    \"startDate\": \"\"\n  },\n  \"subAccountId\": \"\",\n  \"type\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/reports"

	payload := strings.NewReader("{\n  \"accountId\": \"\",\n  \"criteria\": {\n    \"activities\": {\n      \"filters\": [\n        {\n          \"dimensionName\": \"\",\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"matchType\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"kind\": \"\",\n      \"metricNames\": []\n    },\n    \"customRichMediaEvents\": {\n      \"filteredEventIds\": [\n        {}\n      ],\n      \"kind\": \"\"\n    },\n    \"dateRange\": {\n      \"endDate\": \"\",\n      \"kind\": \"\",\n      \"relativeDateRange\": \"\",\n      \"startDate\": \"\"\n    },\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sortOrder\": \"\"\n      }\n    ],\n    \"metricNames\": []\n  },\n  \"crossDimensionReachCriteria\": {\n    \"breakdown\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimension\": \"\",\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"metricNames\": [],\n    \"overlapMetricNames\": [],\n    \"pivoted\": false\n  },\n  \"delivery\": {\n    \"emailOwner\": false,\n    \"emailOwnerDeliveryType\": \"\",\n    \"message\": \"\",\n    \"recipients\": [\n      {\n        \"deliveryType\": \"\",\n        \"email\": \"\",\n        \"kind\": \"\"\n      }\n    ]\n  },\n  \"etag\": \"\",\n  \"fileName\": \"\",\n  \"floodlightCriteria\": {\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"reportProperties\": {\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false\n    }\n  },\n  \"format\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedTime\": \"\",\n  \"name\": \"\",\n  \"ownerProfileId\": \"\",\n  \"pathAttributionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {\n      \"fallbackName\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"rules\": [\n        {\n          \"disjunctiveMatchStatements\": [\n            {\n              \"eventFilters\": [\n                {\n                  \"dimensionFilter\": {\n                    \"dimensionName\": \"\",\n                    \"ids\": [],\n                    \"kind\": \"\",\n                    \"matchType\": \"\",\n                    \"values\": []\n                  },\n                  \"kind\": \"\"\n                }\n              ],\n              \"kind\": \"\"\n            }\n          ],\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {\n        \"eventFilters\": [\n          {}\n        ],\n        \"kind\": \"\",\n        \"pathMatchPosition\": \"\"\n      }\n    ]\n  },\n  \"pathCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {},\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {}\n    ]\n  },\n  \"pathToConversionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"conversionDimensions\": [\n      {}\n    ],\n    \"customFloodlightVariables\": [\n      {}\n    ],\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"perInteractionDimensions\": [\n      {}\n    ],\n    \"reportProperties\": {\n      \"clicksLookbackWindow\": 0,\n      \"impressionsLookbackWindow\": 0,\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false,\n      \"maximumClickInteractions\": 0,\n      \"maximumImpressionInteractions\": 0,\n      \"maximumInteractionGap\": 0,\n      \"pivotOnInteractionPath\": false\n    }\n  },\n  \"reachCriteria\": {\n    \"activities\": {},\n    \"customRichMediaEvents\": {},\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"enableAllDimensionCombinations\": false,\n    \"metricNames\": [],\n    \"reachByFrequencyMetricNames\": []\n  },\n  \"schedule\": {\n    \"active\": false,\n    \"every\": 0,\n    \"expirationDate\": \"\",\n    \"repeats\": \"\",\n    \"repeatsOnWeekDays\": [],\n    \"runsOnDayOfMonth\": \"\",\n    \"startDate\": \"\"\n  },\n  \"subAccountId\": \"\",\n  \"type\": \"\"\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/userprofiles/:profileId/reports HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 4157

{
  "accountId": "",
  "criteria": {
    "activities": {
      "filters": [
        {
          "dimensionName": "",
          "etag": "",
          "id": "",
          "kind": "",
          "matchType": "",
          "value": ""
        }
      ],
      "kind": "",
      "metricNames": []
    },
    "customRichMediaEvents": {
      "filteredEventIds": [
        {}
      ],
      "kind": ""
    },
    "dateRange": {
      "endDate": "",
      "kind": "",
      "relativeDateRange": "",
      "startDate": ""
    },
    "dimensionFilters": [
      {}
    ],
    "dimensions": [
      {
        "kind": "",
        "name": "",
        "sortOrder": ""
      }
    ],
    "metricNames": []
  },
  "crossDimensionReachCriteria": {
    "breakdown": [
      {}
    ],
    "dateRange": {},
    "dimension": "",
    "dimensionFilters": [
      {}
    ],
    "metricNames": [],
    "overlapMetricNames": [],
    "pivoted": false
  },
  "delivery": {
    "emailOwner": false,
    "emailOwnerDeliveryType": "",
    "message": "",
    "recipients": [
      {
        "deliveryType": "",
        "email": "",
        "kind": ""
      }
    ]
  },
  "etag": "",
  "fileName": "",
  "floodlightCriteria": {
    "customRichMediaEvents": [
      {}
    ],
    "dateRange": {},
    "dimensionFilters": [
      {}
    ],
    "dimensions": [
      {}
    ],
    "floodlightConfigId": {},
    "metricNames": [],
    "reportProperties": {
      "includeAttributedIPConversions": false,
      "includeUnattributedCookieConversions": false,
      "includeUnattributedIPConversions": false
    }
  },
  "format": "",
  "id": "",
  "kind": "",
  "lastModifiedTime": "",
  "name": "",
  "ownerProfileId": "",
  "pathAttributionCriteria": {
    "activityFilters": [
      {}
    ],
    "customChannelGrouping": {
      "fallbackName": "",
      "kind": "",
      "name": "",
      "rules": [
        {
          "disjunctiveMatchStatements": [
            {
              "eventFilters": [
                {
                  "dimensionFilter": {
                    "dimensionName": "",
                    "ids": [],
                    "kind": "",
                    "matchType": "",
                    "values": []
                  },
                  "kind": ""
                }
              ],
              "kind": ""
            }
          ],
          "kind": "",
          "name": ""
        }
      ]
    },
    "dateRange": {},
    "dimensions": [
      {}
    ],
    "floodlightConfigId": {},
    "metricNames": [],
    "pathFilters": [
      {
        "eventFilters": [
          {}
        ],
        "kind": "",
        "pathMatchPosition": ""
      }
    ]
  },
  "pathCriteria": {
    "activityFilters": [
      {}
    ],
    "customChannelGrouping": {},
    "dateRange": {},
    "dimensions": [
      {}
    ],
    "floodlightConfigId": {},
    "metricNames": [],
    "pathFilters": [
      {}
    ]
  },
  "pathToConversionCriteria": {
    "activityFilters": [
      {}
    ],
    "conversionDimensions": [
      {}
    ],
    "customFloodlightVariables": [
      {}
    ],
    "customRichMediaEvents": [
      {}
    ],
    "dateRange": {},
    "floodlightConfigId": {},
    "metricNames": [],
    "perInteractionDimensions": [
      {}
    ],
    "reportProperties": {
      "clicksLookbackWindow": 0,
      "impressionsLookbackWindow": 0,
      "includeAttributedIPConversions": false,
      "includeUnattributedCookieConversions": false,
      "includeUnattributedIPConversions": false,
      "maximumClickInteractions": 0,
      "maximumImpressionInteractions": 0,
      "maximumInteractionGap": 0,
      "pivotOnInteractionPath": false
    }
  },
  "reachCriteria": {
    "activities": {},
    "customRichMediaEvents": {},
    "dateRange": {},
    "dimensionFilters": [
      {}
    ],
    "dimensions": [
      {}
    ],
    "enableAllDimensionCombinations": false,
    "metricNames": [],
    "reachByFrequencyMetricNames": []
  },
  "schedule": {
    "active": false,
    "every": 0,
    "expirationDate": "",
    "repeats": "",
    "repeatsOnWeekDays": [],
    "runsOnDayOfMonth": "",
    "startDate": ""
  },
  "subAccountId": "",
  "type": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/userprofiles/:profileId/reports")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"accountId\": \"\",\n  \"criteria\": {\n    \"activities\": {\n      \"filters\": [\n        {\n          \"dimensionName\": \"\",\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"matchType\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"kind\": \"\",\n      \"metricNames\": []\n    },\n    \"customRichMediaEvents\": {\n      \"filteredEventIds\": [\n        {}\n      ],\n      \"kind\": \"\"\n    },\n    \"dateRange\": {\n      \"endDate\": \"\",\n      \"kind\": \"\",\n      \"relativeDateRange\": \"\",\n      \"startDate\": \"\"\n    },\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sortOrder\": \"\"\n      }\n    ],\n    \"metricNames\": []\n  },\n  \"crossDimensionReachCriteria\": {\n    \"breakdown\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimension\": \"\",\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"metricNames\": [],\n    \"overlapMetricNames\": [],\n    \"pivoted\": false\n  },\n  \"delivery\": {\n    \"emailOwner\": false,\n    \"emailOwnerDeliveryType\": \"\",\n    \"message\": \"\",\n    \"recipients\": [\n      {\n        \"deliveryType\": \"\",\n        \"email\": \"\",\n        \"kind\": \"\"\n      }\n    ]\n  },\n  \"etag\": \"\",\n  \"fileName\": \"\",\n  \"floodlightCriteria\": {\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"reportProperties\": {\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false\n    }\n  },\n  \"format\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedTime\": \"\",\n  \"name\": \"\",\n  \"ownerProfileId\": \"\",\n  \"pathAttributionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {\n      \"fallbackName\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"rules\": [\n        {\n          \"disjunctiveMatchStatements\": [\n            {\n              \"eventFilters\": [\n                {\n                  \"dimensionFilter\": {\n                    \"dimensionName\": \"\",\n                    \"ids\": [],\n                    \"kind\": \"\",\n                    \"matchType\": \"\",\n                    \"values\": []\n                  },\n                  \"kind\": \"\"\n                }\n              ],\n              \"kind\": \"\"\n            }\n          ],\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {\n        \"eventFilters\": [\n          {}\n        ],\n        \"kind\": \"\",\n        \"pathMatchPosition\": \"\"\n      }\n    ]\n  },\n  \"pathCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {},\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {}\n    ]\n  },\n  \"pathToConversionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"conversionDimensions\": [\n      {}\n    ],\n    \"customFloodlightVariables\": [\n      {}\n    ],\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"perInteractionDimensions\": [\n      {}\n    ],\n    \"reportProperties\": {\n      \"clicksLookbackWindow\": 0,\n      \"impressionsLookbackWindow\": 0,\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false,\n      \"maximumClickInteractions\": 0,\n      \"maximumImpressionInteractions\": 0,\n      \"maximumInteractionGap\": 0,\n      \"pivotOnInteractionPath\": false\n    }\n  },\n  \"reachCriteria\": {\n    \"activities\": {},\n    \"customRichMediaEvents\": {},\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"enableAllDimensionCombinations\": false,\n    \"metricNames\": [],\n    \"reachByFrequencyMetricNames\": []\n  },\n  \"schedule\": {\n    \"active\": false,\n    \"every\": 0,\n    \"expirationDate\": \"\",\n    \"repeats\": \"\",\n    \"repeatsOnWeekDays\": [],\n    \"runsOnDayOfMonth\": \"\",\n    \"startDate\": \"\"\n  },\n  \"subAccountId\": \"\",\n  \"type\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/reports"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"accountId\": \"\",\n  \"criteria\": {\n    \"activities\": {\n      \"filters\": [\n        {\n          \"dimensionName\": \"\",\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"matchType\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"kind\": \"\",\n      \"metricNames\": []\n    },\n    \"customRichMediaEvents\": {\n      \"filteredEventIds\": [\n        {}\n      ],\n      \"kind\": \"\"\n    },\n    \"dateRange\": {\n      \"endDate\": \"\",\n      \"kind\": \"\",\n      \"relativeDateRange\": \"\",\n      \"startDate\": \"\"\n    },\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sortOrder\": \"\"\n      }\n    ],\n    \"metricNames\": []\n  },\n  \"crossDimensionReachCriteria\": {\n    \"breakdown\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimension\": \"\",\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"metricNames\": [],\n    \"overlapMetricNames\": [],\n    \"pivoted\": false\n  },\n  \"delivery\": {\n    \"emailOwner\": false,\n    \"emailOwnerDeliveryType\": \"\",\n    \"message\": \"\",\n    \"recipients\": [\n      {\n        \"deliveryType\": \"\",\n        \"email\": \"\",\n        \"kind\": \"\"\n      }\n    ]\n  },\n  \"etag\": \"\",\n  \"fileName\": \"\",\n  \"floodlightCriteria\": {\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"reportProperties\": {\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false\n    }\n  },\n  \"format\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedTime\": \"\",\n  \"name\": \"\",\n  \"ownerProfileId\": \"\",\n  \"pathAttributionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {\n      \"fallbackName\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"rules\": [\n        {\n          \"disjunctiveMatchStatements\": [\n            {\n              \"eventFilters\": [\n                {\n                  \"dimensionFilter\": {\n                    \"dimensionName\": \"\",\n                    \"ids\": [],\n                    \"kind\": \"\",\n                    \"matchType\": \"\",\n                    \"values\": []\n                  },\n                  \"kind\": \"\"\n                }\n              ],\n              \"kind\": \"\"\n            }\n          ],\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {\n        \"eventFilters\": [\n          {}\n        ],\n        \"kind\": \"\",\n        \"pathMatchPosition\": \"\"\n      }\n    ]\n  },\n  \"pathCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {},\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {}\n    ]\n  },\n  \"pathToConversionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"conversionDimensions\": [\n      {}\n    ],\n    \"customFloodlightVariables\": [\n      {}\n    ],\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"perInteractionDimensions\": [\n      {}\n    ],\n    \"reportProperties\": {\n      \"clicksLookbackWindow\": 0,\n      \"impressionsLookbackWindow\": 0,\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false,\n      \"maximumClickInteractions\": 0,\n      \"maximumImpressionInteractions\": 0,\n      \"maximumInteractionGap\": 0,\n      \"pivotOnInteractionPath\": false\n    }\n  },\n  \"reachCriteria\": {\n    \"activities\": {},\n    \"customRichMediaEvents\": {},\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"enableAllDimensionCombinations\": false,\n    \"metricNames\": [],\n    \"reachByFrequencyMetricNames\": []\n  },\n  \"schedule\": {\n    \"active\": false,\n    \"every\": 0,\n    \"expirationDate\": \"\",\n    \"repeats\": \"\",\n    \"repeatsOnWeekDays\": [],\n    \"runsOnDayOfMonth\": \"\",\n    \"startDate\": \"\"\n  },\n  \"subAccountId\": \"\",\n  \"type\": \"\"\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  \"accountId\": \"\",\n  \"criteria\": {\n    \"activities\": {\n      \"filters\": [\n        {\n          \"dimensionName\": \"\",\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"matchType\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"kind\": \"\",\n      \"metricNames\": []\n    },\n    \"customRichMediaEvents\": {\n      \"filteredEventIds\": [\n        {}\n      ],\n      \"kind\": \"\"\n    },\n    \"dateRange\": {\n      \"endDate\": \"\",\n      \"kind\": \"\",\n      \"relativeDateRange\": \"\",\n      \"startDate\": \"\"\n    },\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sortOrder\": \"\"\n      }\n    ],\n    \"metricNames\": []\n  },\n  \"crossDimensionReachCriteria\": {\n    \"breakdown\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimension\": \"\",\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"metricNames\": [],\n    \"overlapMetricNames\": [],\n    \"pivoted\": false\n  },\n  \"delivery\": {\n    \"emailOwner\": false,\n    \"emailOwnerDeliveryType\": \"\",\n    \"message\": \"\",\n    \"recipients\": [\n      {\n        \"deliveryType\": \"\",\n        \"email\": \"\",\n        \"kind\": \"\"\n      }\n    ]\n  },\n  \"etag\": \"\",\n  \"fileName\": \"\",\n  \"floodlightCriteria\": {\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"reportProperties\": {\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false\n    }\n  },\n  \"format\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedTime\": \"\",\n  \"name\": \"\",\n  \"ownerProfileId\": \"\",\n  \"pathAttributionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {\n      \"fallbackName\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"rules\": [\n        {\n          \"disjunctiveMatchStatements\": [\n            {\n              \"eventFilters\": [\n                {\n                  \"dimensionFilter\": {\n                    \"dimensionName\": \"\",\n                    \"ids\": [],\n                    \"kind\": \"\",\n                    \"matchType\": \"\",\n                    \"values\": []\n                  },\n                  \"kind\": \"\"\n                }\n              ],\n              \"kind\": \"\"\n            }\n          ],\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {\n        \"eventFilters\": [\n          {}\n        ],\n        \"kind\": \"\",\n        \"pathMatchPosition\": \"\"\n      }\n    ]\n  },\n  \"pathCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {},\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {}\n    ]\n  },\n  \"pathToConversionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"conversionDimensions\": [\n      {}\n    ],\n    \"customFloodlightVariables\": [\n      {}\n    ],\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"perInteractionDimensions\": [\n      {}\n    ],\n    \"reportProperties\": {\n      \"clicksLookbackWindow\": 0,\n      \"impressionsLookbackWindow\": 0,\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false,\n      \"maximumClickInteractions\": 0,\n      \"maximumImpressionInteractions\": 0,\n      \"maximumInteractionGap\": 0,\n      \"pivotOnInteractionPath\": false\n    }\n  },\n  \"reachCriteria\": {\n    \"activities\": {},\n    \"customRichMediaEvents\": {},\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"enableAllDimensionCombinations\": false,\n    \"metricNames\": [],\n    \"reachByFrequencyMetricNames\": []\n  },\n  \"schedule\": {\n    \"active\": false,\n    \"every\": 0,\n    \"expirationDate\": \"\",\n    \"repeats\": \"\",\n    \"repeatsOnWeekDays\": [],\n    \"runsOnDayOfMonth\": \"\",\n    \"startDate\": \"\"\n  },\n  \"subAccountId\": \"\",\n  \"type\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/reports")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/userprofiles/:profileId/reports")
  .header("content-type", "application/json")
  .body("{\n  \"accountId\": \"\",\n  \"criteria\": {\n    \"activities\": {\n      \"filters\": [\n        {\n          \"dimensionName\": \"\",\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"matchType\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"kind\": \"\",\n      \"metricNames\": []\n    },\n    \"customRichMediaEvents\": {\n      \"filteredEventIds\": [\n        {}\n      ],\n      \"kind\": \"\"\n    },\n    \"dateRange\": {\n      \"endDate\": \"\",\n      \"kind\": \"\",\n      \"relativeDateRange\": \"\",\n      \"startDate\": \"\"\n    },\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sortOrder\": \"\"\n      }\n    ],\n    \"metricNames\": []\n  },\n  \"crossDimensionReachCriteria\": {\n    \"breakdown\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimension\": \"\",\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"metricNames\": [],\n    \"overlapMetricNames\": [],\n    \"pivoted\": false\n  },\n  \"delivery\": {\n    \"emailOwner\": false,\n    \"emailOwnerDeliveryType\": \"\",\n    \"message\": \"\",\n    \"recipients\": [\n      {\n        \"deliveryType\": \"\",\n        \"email\": \"\",\n        \"kind\": \"\"\n      }\n    ]\n  },\n  \"etag\": \"\",\n  \"fileName\": \"\",\n  \"floodlightCriteria\": {\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"reportProperties\": {\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false\n    }\n  },\n  \"format\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedTime\": \"\",\n  \"name\": \"\",\n  \"ownerProfileId\": \"\",\n  \"pathAttributionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {\n      \"fallbackName\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"rules\": [\n        {\n          \"disjunctiveMatchStatements\": [\n            {\n              \"eventFilters\": [\n                {\n                  \"dimensionFilter\": {\n                    \"dimensionName\": \"\",\n                    \"ids\": [],\n                    \"kind\": \"\",\n                    \"matchType\": \"\",\n                    \"values\": []\n                  },\n                  \"kind\": \"\"\n                }\n              ],\n              \"kind\": \"\"\n            }\n          ],\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {\n        \"eventFilters\": [\n          {}\n        ],\n        \"kind\": \"\",\n        \"pathMatchPosition\": \"\"\n      }\n    ]\n  },\n  \"pathCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {},\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {}\n    ]\n  },\n  \"pathToConversionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"conversionDimensions\": [\n      {}\n    ],\n    \"customFloodlightVariables\": [\n      {}\n    ],\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"perInteractionDimensions\": [\n      {}\n    ],\n    \"reportProperties\": {\n      \"clicksLookbackWindow\": 0,\n      \"impressionsLookbackWindow\": 0,\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false,\n      \"maximumClickInteractions\": 0,\n      \"maximumImpressionInteractions\": 0,\n      \"maximumInteractionGap\": 0,\n      \"pivotOnInteractionPath\": false\n    }\n  },\n  \"reachCriteria\": {\n    \"activities\": {},\n    \"customRichMediaEvents\": {},\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"enableAllDimensionCombinations\": false,\n    \"metricNames\": [],\n    \"reachByFrequencyMetricNames\": []\n  },\n  \"schedule\": {\n    \"active\": false,\n    \"every\": 0,\n    \"expirationDate\": \"\",\n    \"repeats\": \"\",\n    \"repeatsOnWeekDays\": [],\n    \"runsOnDayOfMonth\": \"\",\n    \"startDate\": \"\"\n  },\n  \"subAccountId\": \"\",\n  \"type\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  accountId: '',
  criteria: {
    activities: {
      filters: [
        {
          dimensionName: '',
          etag: '',
          id: '',
          kind: '',
          matchType: '',
          value: ''
        }
      ],
      kind: '',
      metricNames: []
    },
    customRichMediaEvents: {
      filteredEventIds: [
        {}
      ],
      kind: ''
    },
    dateRange: {
      endDate: '',
      kind: '',
      relativeDateRange: '',
      startDate: ''
    },
    dimensionFilters: [
      {}
    ],
    dimensions: [
      {
        kind: '',
        name: '',
        sortOrder: ''
      }
    ],
    metricNames: []
  },
  crossDimensionReachCriteria: {
    breakdown: [
      {}
    ],
    dateRange: {},
    dimension: '',
    dimensionFilters: [
      {}
    ],
    metricNames: [],
    overlapMetricNames: [],
    pivoted: false
  },
  delivery: {
    emailOwner: false,
    emailOwnerDeliveryType: '',
    message: '',
    recipients: [
      {
        deliveryType: '',
        email: '',
        kind: ''
      }
    ]
  },
  etag: '',
  fileName: '',
  floodlightCriteria: {
    customRichMediaEvents: [
      {}
    ],
    dateRange: {},
    dimensionFilters: [
      {}
    ],
    dimensions: [
      {}
    ],
    floodlightConfigId: {},
    metricNames: [],
    reportProperties: {
      includeAttributedIPConversions: false,
      includeUnattributedCookieConversions: false,
      includeUnattributedIPConversions: false
    }
  },
  format: '',
  id: '',
  kind: '',
  lastModifiedTime: '',
  name: '',
  ownerProfileId: '',
  pathAttributionCriteria: {
    activityFilters: [
      {}
    ],
    customChannelGrouping: {
      fallbackName: '',
      kind: '',
      name: '',
      rules: [
        {
          disjunctiveMatchStatements: [
            {
              eventFilters: [
                {
                  dimensionFilter: {
                    dimensionName: '',
                    ids: [],
                    kind: '',
                    matchType: '',
                    values: []
                  },
                  kind: ''
                }
              ],
              kind: ''
            }
          ],
          kind: '',
          name: ''
        }
      ]
    },
    dateRange: {},
    dimensions: [
      {}
    ],
    floodlightConfigId: {},
    metricNames: [],
    pathFilters: [
      {
        eventFilters: [
          {}
        ],
        kind: '',
        pathMatchPosition: ''
      }
    ]
  },
  pathCriteria: {
    activityFilters: [
      {}
    ],
    customChannelGrouping: {},
    dateRange: {},
    dimensions: [
      {}
    ],
    floodlightConfigId: {},
    metricNames: [],
    pathFilters: [
      {}
    ]
  },
  pathToConversionCriteria: {
    activityFilters: [
      {}
    ],
    conversionDimensions: [
      {}
    ],
    customFloodlightVariables: [
      {}
    ],
    customRichMediaEvents: [
      {}
    ],
    dateRange: {},
    floodlightConfigId: {},
    metricNames: [],
    perInteractionDimensions: [
      {}
    ],
    reportProperties: {
      clicksLookbackWindow: 0,
      impressionsLookbackWindow: 0,
      includeAttributedIPConversions: false,
      includeUnattributedCookieConversions: false,
      includeUnattributedIPConversions: false,
      maximumClickInteractions: 0,
      maximumImpressionInteractions: 0,
      maximumInteractionGap: 0,
      pivotOnInteractionPath: false
    }
  },
  reachCriteria: {
    activities: {},
    customRichMediaEvents: {},
    dateRange: {},
    dimensionFilters: [
      {}
    ],
    dimensions: [
      {}
    ],
    enableAllDimensionCombinations: false,
    metricNames: [],
    reachByFrequencyMetricNames: []
  },
  schedule: {
    active: false,
    every: 0,
    expirationDate: '',
    repeats: '',
    repeatsOnWeekDays: [],
    runsOnDayOfMonth: '',
    startDate: ''
  },
  subAccountId: '',
  type: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/userprofiles/:profileId/reports');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/userprofiles/:profileId/reports',
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    criteria: {
      activities: {
        filters: [{dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''}],
        kind: '',
        metricNames: []
      },
      customRichMediaEvents: {filteredEventIds: [{}], kind: ''},
      dateRange: {endDate: '', kind: '', relativeDateRange: '', startDate: ''},
      dimensionFilters: [{}],
      dimensions: [{kind: '', name: '', sortOrder: ''}],
      metricNames: []
    },
    crossDimensionReachCriteria: {
      breakdown: [{}],
      dateRange: {},
      dimension: '',
      dimensionFilters: [{}],
      metricNames: [],
      overlapMetricNames: [],
      pivoted: false
    },
    delivery: {
      emailOwner: false,
      emailOwnerDeliveryType: '',
      message: '',
      recipients: [{deliveryType: '', email: '', kind: ''}]
    },
    etag: '',
    fileName: '',
    floodlightCriteria: {
      customRichMediaEvents: [{}],
      dateRange: {},
      dimensionFilters: [{}],
      dimensions: [{}],
      floodlightConfigId: {},
      metricNames: [],
      reportProperties: {
        includeAttributedIPConversions: false,
        includeUnattributedCookieConversions: false,
        includeUnattributedIPConversions: false
      }
    },
    format: '',
    id: '',
    kind: '',
    lastModifiedTime: '',
    name: '',
    ownerProfileId: '',
    pathAttributionCriteria: {
      activityFilters: [{}],
      customChannelGrouping: {
        fallbackName: '',
        kind: '',
        name: '',
        rules: [
          {
            disjunctiveMatchStatements: [
              {
                eventFilters: [
                  {
                    dimensionFilter: {dimensionName: '', ids: [], kind: '', matchType: '', values: []},
                    kind: ''
                  }
                ],
                kind: ''
              }
            ],
            kind: '',
            name: ''
          }
        ]
      },
      dateRange: {},
      dimensions: [{}],
      floodlightConfigId: {},
      metricNames: [],
      pathFilters: [{eventFilters: [{}], kind: '', pathMatchPosition: ''}]
    },
    pathCriteria: {
      activityFilters: [{}],
      customChannelGrouping: {},
      dateRange: {},
      dimensions: [{}],
      floodlightConfigId: {},
      metricNames: [],
      pathFilters: [{}]
    },
    pathToConversionCriteria: {
      activityFilters: [{}],
      conversionDimensions: [{}],
      customFloodlightVariables: [{}],
      customRichMediaEvents: [{}],
      dateRange: {},
      floodlightConfigId: {},
      metricNames: [],
      perInteractionDimensions: [{}],
      reportProperties: {
        clicksLookbackWindow: 0,
        impressionsLookbackWindow: 0,
        includeAttributedIPConversions: false,
        includeUnattributedCookieConversions: false,
        includeUnattributedIPConversions: false,
        maximumClickInteractions: 0,
        maximumImpressionInteractions: 0,
        maximumInteractionGap: 0,
        pivotOnInteractionPath: false
      }
    },
    reachCriteria: {
      activities: {},
      customRichMediaEvents: {},
      dateRange: {},
      dimensionFilters: [{}],
      dimensions: [{}],
      enableAllDimensionCombinations: false,
      metricNames: [],
      reachByFrequencyMetricNames: []
    },
    schedule: {
      active: false,
      every: 0,
      expirationDate: '',
      repeats: '',
      repeatsOnWeekDays: [],
      runsOnDayOfMonth: '',
      startDate: ''
    },
    subAccountId: '',
    type: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/reports';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","criteria":{"activities":{"filters":[{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""}],"kind":"","metricNames":[]},"customRichMediaEvents":{"filteredEventIds":[{}],"kind":""},"dateRange":{"endDate":"","kind":"","relativeDateRange":"","startDate":""},"dimensionFilters":[{}],"dimensions":[{"kind":"","name":"","sortOrder":""}],"metricNames":[]},"crossDimensionReachCriteria":{"breakdown":[{}],"dateRange":{},"dimension":"","dimensionFilters":[{}],"metricNames":[],"overlapMetricNames":[],"pivoted":false},"delivery":{"emailOwner":false,"emailOwnerDeliveryType":"","message":"","recipients":[{"deliveryType":"","email":"","kind":""}]},"etag":"","fileName":"","floodlightCriteria":{"customRichMediaEvents":[{}],"dateRange":{},"dimensionFilters":[{}],"dimensions":[{}],"floodlightConfigId":{},"metricNames":[],"reportProperties":{"includeAttributedIPConversions":false,"includeUnattributedCookieConversions":false,"includeUnattributedIPConversions":false}},"format":"","id":"","kind":"","lastModifiedTime":"","name":"","ownerProfileId":"","pathAttributionCriteria":{"activityFilters":[{}],"customChannelGrouping":{"fallbackName":"","kind":"","name":"","rules":[{"disjunctiveMatchStatements":[{"eventFilters":[{"dimensionFilter":{"dimensionName":"","ids":[],"kind":"","matchType":"","values":[]},"kind":""}],"kind":""}],"kind":"","name":""}]},"dateRange":{},"dimensions":[{}],"floodlightConfigId":{},"metricNames":[],"pathFilters":[{"eventFilters":[{}],"kind":"","pathMatchPosition":""}]},"pathCriteria":{"activityFilters":[{}],"customChannelGrouping":{},"dateRange":{},"dimensions":[{}],"floodlightConfigId":{},"metricNames":[],"pathFilters":[{}]},"pathToConversionCriteria":{"activityFilters":[{}],"conversionDimensions":[{}],"customFloodlightVariables":[{}],"customRichMediaEvents":[{}],"dateRange":{},"floodlightConfigId":{},"metricNames":[],"perInteractionDimensions":[{}],"reportProperties":{"clicksLookbackWindow":0,"impressionsLookbackWindow":0,"includeAttributedIPConversions":false,"includeUnattributedCookieConversions":false,"includeUnattributedIPConversions":false,"maximumClickInteractions":0,"maximumImpressionInteractions":0,"maximumInteractionGap":0,"pivotOnInteractionPath":false}},"reachCriteria":{"activities":{},"customRichMediaEvents":{},"dateRange":{},"dimensionFilters":[{}],"dimensions":[{}],"enableAllDimensionCombinations":false,"metricNames":[],"reachByFrequencyMetricNames":[]},"schedule":{"active":false,"every":0,"expirationDate":"","repeats":"","repeatsOnWeekDays":[],"runsOnDayOfMonth":"","startDate":""},"subAccountId":"","type":""}'
};

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}}/userprofiles/:profileId/reports',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "accountId": "",\n  "criteria": {\n    "activities": {\n      "filters": [\n        {\n          "dimensionName": "",\n          "etag": "",\n          "id": "",\n          "kind": "",\n          "matchType": "",\n          "value": ""\n        }\n      ],\n      "kind": "",\n      "metricNames": []\n    },\n    "customRichMediaEvents": {\n      "filteredEventIds": [\n        {}\n      ],\n      "kind": ""\n    },\n    "dateRange": {\n      "endDate": "",\n      "kind": "",\n      "relativeDateRange": "",\n      "startDate": ""\n    },\n    "dimensionFilters": [\n      {}\n    ],\n    "dimensions": [\n      {\n        "kind": "",\n        "name": "",\n        "sortOrder": ""\n      }\n    ],\n    "metricNames": []\n  },\n  "crossDimensionReachCriteria": {\n    "breakdown": [\n      {}\n    ],\n    "dateRange": {},\n    "dimension": "",\n    "dimensionFilters": [\n      {}\n    ],\n    "metricNames": [],\n    "overlapMetricNames": [],\n    "pivoted": false\n  },\n  "delivery": {\n    "emailOwner": false,\n    "emailOwnerDeliveryType": "",\n    "message": "",\n    "recipients": [\n      {\n        "deliveryType": "",\n        "email": "",\n        "kind": ""\n      }\n    ]\n  },\n  "etag": "",\n  "fileName": "",\n  "floodlightCriteria": {\n    "customRichMediaEvents": [\n      {}\n    ],\n    "dateRange": {},\n    "dimensionFilters": [\n      {}\n    ],\n    "dimensions": [\n      {}\n    ],\n    "floodlightConfigId": {},\n    "metricNames": [],\n    "reportProperties": {\n      "includeAttributedIPConversions": false,\n      "includeUnattributedCookieConversions": false,\n      "includeUnattributedIPConversions": false\n    }\n  },\n  "format": "",\n  "id": "",\n  "kind": "",\n  "lastModifiedTime": "",\n  "name": "",\n  "ownerProfileId": "",\n  "pathAttributionCriteria": {\n    "activityFilters": [\n      {}\n    ],\n    "customChannelGrouping": {\n      "fallbackName": "",\n      "kind": "",\n      "name": "",\n      "rules": [\n        {\n          "disjunctiveMatchStatements": [\n            {\n              "eventFilters": [\n                {\n                  "dimensionFilter": {\n                    "dimensionName": "",\n                    "ids": [],\n                    "kind": "",\n                    "matchType": "",\n                    "values": []\n                  },\n                  "kind": ""\n                }\n              ],\n              "kind": ""\n            }\n          ],\n          "kind": "",\n          "name": ""\n        }\n      ]\n    },\n    "dateRange": {},\n    "dimensions": [\n      {}\n    ],\n    "floodlightConfigId": {},\n    "metricNames": [],\n    "pathFilters": [\n      {\n        "eventFilters": [\n          {}\n        ],\n        "kind": "",\n        "pathMatchPosition": ""\n      }\n    ]\n  },\n  "pathCriteria": {\n    "activityFilters": [\n      {}\n    ],\n    "customChannelGrouping": {},\n    "dateRange": {},\n    "dimensions": [\n      {}\n    ],\n    "floodlightConfigId": {},\n    "metricNames": [],\n    "pathFilters": [\n      {}\n    ]\n  },\n  "pathToConversionCriteria": {\n    "activityFilters": [\n      {}\n    ],\n    "conversionDimensions": [\n      {}\n    ],\n    "customFloodlightVariables": [\n      {}\n    ],\n    "customRichMediaEvents": [\n      {}\n    ],\n    "dateRange": {},\n    "floodlightConfigId": {},\n    "metricNames": [],\n    "perInteractionDimensions": [\n      {}\n    ],\n    "reportProperties": {\n      "clicksLookbackWindow": 0,\n      "impressionsLookbackWindow": 0,\n      "includeAttributedIPConversions": false,\n      "includeUnattributedCookieConversions": false,\n      "includeUnattributedIPConversions": false,\n      "maximumClickInteractions": 0,\n      "maximumImpressionInteractions": 0,\n      "maximumInteractionGap": 0,\n      "pivotOnInteractionPath": false\n    }\n  },\n  "reachCriteria": {\n    "activities": {},\n    "customRichMediaEvents": {},\n    "dateRange": {},\n    "dimensionFilters": [\n      {}\n    ],\n    "dimensions": [\n      {}\n    ],\n    "enableAllDimensionCombinations": false,\n    "metricNames": [],\n    "reachByFrequencyMetricNames": []\n  },\n  "schedule": {\n    "active": false,\n    "every": 0,\n    "expirationDate": "",\n    "repeats": "",\n    "repeatsOnWeekDays": [],\n    "runsOnDayOfMonth": "",\n    "startDate": ""\n  },\n  "subAccountId": "",\n  "type": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"accountId\": \"\",\n  \"criteria\": {\n    \"activities\": {\n      \"filters\": [\n        {\n          \"dimensionName\": \"\",\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"matchType\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"kind\": \"\",\n      \"metricNames\": []\n    },\n    \"customRichMediaEvents\": {\n      \"filteredEventIds\": [\n        {}\n      ],\n      \"kind\": \"\"\n    },\n    \"dateRange\": {\n      \"endDate\": \"\",\n      \"kind\": \"\",\n      \"relativeDateRange\": \"\",\n      \"startDate\": \"\"\n    },\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sortOrder\": \"\"\n      }\n    ],\n    \"metricNames\": []\n  },\n  \"crossDimensionReachCriteria\": {\n    \"breakdown\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimension\": \"\",\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"metricNames\": [],\n    \"overlapMetricNames\": [],\n    \"pivoted\": false\n  },\n  \"delivery\": {\n    \"emailOwner\": false,\n    \"emailOwnerDeliveryType\": \"\",\n    \"message\": \"\",\n    \"recipients\": [\n      {\n        \"deliveryType\": \"\",\n        \"email\": \"\",\n        \"kind\": \"\"\n      }\n    ]\n  },\n  \"etag\": \"\",\n  \"fileName\": \"\",\n  \"floodlightCriteria\": {\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"reportProperties\": {\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false\n    }\n  },\n  \"format\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedTime\": \"\",\n  \"name\": \"\",\n  \"ownerProfileId\": \"\",\n  \"pathAttributionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {\n      \"fallbackName\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"rules\": [\n        {\n          \"disjunctiveMatchStatements\": [\n            {\n              \"eventFilters\": [\n                {\n                  \"dimensionFilter\": {\n                    \"dimensionName\": \"\",\n                    \"ids\": [],\n                    \"kind\": \"\",\n                    \"matchType\": \"\",\n                    \"values\": []\n                  },\n                  \"kind\": \"\"\n                }\n              ],\n              \"kind\": \"\"\n            }\n          ],\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {\n        \"eventFilters\": [\n          {}\n        ],\n        \"kind\": \"\",\n        \"pathMatchPosition\": \"\"\n      }\n    ]\n  },\n  \"pathCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {},\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {}\n    ]\n  },\n  \"pathToConversionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"conversionDimensions\": [\n      {}\n    ],\n    \"customFloodlightVariables\": [\n      {}\n    ],\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"perInteractionDimensions\": [\n      {}\n    ],\n    \"reportProperties\": {\n      \"clicksLookbackWindow\": 0,\n      \"impressionsLookbackWindow\": 0,\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false,\n      \"maximumClickInteractions\": 0,\n      \"maximumImpressionInteractions\": 0,\n      \"maximumInteractionGap\": 0,\n      \"pivotOnInteractionPath\": false\n    }\n  },\n  \"reachCriteria\": {\n    \"activities\": {},\n    \"customRichMediaEvents\": {},\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"enableAllDimensionCombinations\": false,\n    \"metricNames\": [],\n    \"reachByFrequencyMetricNames\": []\n  },\n  \"schedule\": {\n    \"active\": false,\n    \"every\": 0,\n    \"expirationDate\": \"\",\n    \"repeats\": \"\",\n    \"repeatsOnWeekDays\": [],\n    \"runsOnDayOfMonth\": \"\",\n    \"startDate\": \"\"\n  },\n  \"subAccountId\": \"\",\n  \"type\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/reports")
  .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/userprofiles/:profileId/reports',
  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({
  accountId: '',
  criteria: {
    activities: {
      filters: [{dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''}],
      kind: '',
      metricNames: []
    },
    customRichMediaEvents: {filteredEventIds: [{}], kind: ''},
    dateRange: {endDate: '', kind: '', relativeDateRange: '', startDate: ''},
    dimensionFilters: [{}],
    dimensions: [{kind: '', name: '', sortOrder: ''}],
    metricNames: []
  },
  crossDimensionReachCriteria: {
    breakdown: [{}],
    dateRange: {},
    dimension: '',
    dimensionFilters: [{}],
    metricNames: [],
    overlapMetricNames: [],
    pivoted: false
  },
  delivery: {
    emailOwner: false,
    emailOwnerDeliveryType: '',
    message: '',
    recipients: [{deliveryType: '', email: '', kind: ''}]
  },
  etag: '',
  fileName: '',
  floodlightCriteria: {
    customRichMediaEvents: [{}],
    dateRange: {},
    dimensionFilters: [{}],
    dimensions: [{}],
    floodlightConfigId: {},
    metricNames: [],
    reportProperties: {
      includeAttributedIPConversions: false,
      includeUnattributedCookieConversions: false,
      includeUnattributedIPConversions: false
    }
  },
  format: '',
  id: '',
  kind: '',
  lastModifiedTime: '',
  name: '',
  ownerProfileId: '',
  pathAttributionCriteria: {
    activityFilters: [{}],
    customChannelGrouping: {
      fallbackName: '',
      kind: '',
      name: '',
      rules: [
        {
          disjunctiveMatchStatements: [
            {
              eventFilters: [
                {
                  dimensionFilter: {dimensionName: '', ids: [], kind: '', matchType: '', values: []},
                  kind: ''
                }
              ],
              kind: ''
            }
          ],
          kind: '',
          name: ''
        }
      ]
    },
    dateRange: {},
    dimensions: [{}],
    floodlightConfigId: {},
    metricNames: [],
    pathFilters: [{eventFilters: [{}], kind: '', pathMatchPosition: ''}]
  },
  pathCriteria: {
    activityFilters: [{}],
    customChannelGrouping: {},
    dateRange: {},
    dimensions: [{}],
    floodlightConfigId: {},
    metricNames: [],
    pathFilters: [{}]
  },
  pathToConversionCriteria: {
    activityFilters: [{}],
    conversionDimensions: [{}],
    customFloodlightVariables: [{}],
    customRichMediaEvents: [{}],
    dateRange: {},
    floodlightConfigId: {},
    metricNames: [],
    perInteractionDimensions: [{}],
    reportProperties: {
      clicksLookbackWindow: 0,
      impressionsLookbackWindow: 0,
      includeAttributedIPConversions: false,
      includeUnattributedCookieConversions: false,
      includeUnattributedIPConversions: false,
      maximumClickInteractions: 0,
      maximumImpressionInteractions: 0,
      maximumInteractionGap: 0,
      pivotOnInteractionPath: false
    }
  },
  reachCriteria: {
    activities: {},
    customRichMediaEvents: {},
    dateRange: {},
    dimensionFilters: [{}],
    dimensions: [{}],
    enableAllDimensionCombinations: false,
    metricNames: [],
    reachByFrequencyMetricNames: []
  },
  schedule: {
    active: false,
    every: 0,
    expirationDate: '',
    repeats: '',
    repeatsOnWeekDays: [],
    runsOnDayOfMonth: '',
    startDate: ''
  },
  subAccountId: '',
  type: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/userprofiles/:profileId/reports',
  headers: {'content-type': 'application/json'},
  body: {
    accountId: '',
    criteria: {
      activities: {
        filters: [{dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''}],
        kind: '',
        metricNames: []
      },
      customRichMediaEvents: {filteredEventIds: [{}], kind: ''},
      dateRange: {endDate: '', kind: '', relativeDateRange: '', startDate: ''},
      dimensionFilters: [{}],
      dimensions: [{kind: '', name: '', sortOrder: ''}],
      metricNames: []
    },
    crossDimensionReachCriteria: {
      breakdown: [{}],
      dateRange: {},
      dimension: '',
      dimensionFilters: [{}],
      metricNames: [],
      overlapMetricNames: [],
      pivoted: false
    },
    delivery: {
      emailOwner: false,
      emailOwnerDeliveryType: '',
      message: '',
      recipients: [{deliveryType: '', email: '', kind: ''}]
    },
    etag: '',
    fileName: '',
    floodlightCriteria: {
      customRichMediaEvents: [{}],
      dateRange: {},
      dimensionFilters: [{}],
      dimensions: [{}],
      floodlightConfigId: {},
      metricNames: [],
      reportProperties: {
        includeAttributedIPConversions: false,
        includeUnattributedCookieConversions: false,
        includeUnattributedIPConversions: false
      }
    },
    format: '',
    id: '',
    kind: '',
    lastModifiedTime: '',
    name: '',
    ownerProfileId: '',
    pathAttributionCriteria: {
      activityFilters: [{}],
      customChannelGrouping: {
        fallbackName: '',
        kind: '',
        name: '',
        rules: [
          {
            disjunctiveMatchStatements: [
              {
                eventFilters: [
                  {
                    dimensionFilter: {dimensionName: '', ids: [], kind: '', matchType: '', values: []},
                    kind: ''
                  }
                ],
                kind: ''
              }
            ],
            kind: '',
            name: ''
          }
        ]
      },
      dateRange: {},
      dimensions: [{}],
      floodlightConfigId: {},
      metricNames: [],
      pathFilters: [{eventFilters: [{}], kind: '', pathMatchPosition: ''}]
    },
    pathCriteria: {
      activityFilters: [{}],
      customChannelGrouping: {},
      dateRange: {},
      dimensions: [{}],
      floodlightConfigId: {},
      metricNames: [],
      pathFilters: [{}]
    },
    pathToConversionCriteria: {
      activityFilters: [{}],
      conversionDimensions: [{}],
      customFloodlightVariables: [{}],
      customRichMediaEvents: [{}],
      dateRange: {},
      floodlightConfigId: {},
      metricNames: [],
      perInteractionDimensions: [{}],
      reportProperties: {
        clicksLookbackWindow: 0,
        impressionsLookbackWindow: 0,
        includeAttributedIPConversions: false,
        includeUnattributedCookieConversions: false,
        includeUnattributedIPConversions: false,
        maximumClickInteractions: 0,
        maximumImpressionInteractions: 0,
        maximumInteractionGap: 0,
        pivotOnInteractionPath: false
      }
    },
    reachCriteria: {
      activities: {},
      customRichMediaEvents: {},
      dateRange: {},
      dimensionFilters: [{}],
      dimensions: [{}],
      enableAllDimensionCombinations: false,
      metricNames: [],
      reachByFrequencyMetricNames: []
    },
    schedule: {
      active: false,
      every: 0,
      expirationDate: '',
      repeats: '',
      repeatsOnWeekDays: [],
      runsOnDayOfMonth: '',
      startDate: ''
    },
    subAccountId: '',
    type: ''
  },
  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}}/userprofiles/:profileId/reports');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  accountId: '',
  criteria: {
    activities: {
      filters: [
        {
          dimensionName: '',
          etag: '',
          id: '',
          kind: '',
          matchType: '',
          value: ''
        }
      ],
      kind: '',
      metricNames: []
    },
    customRichMediaEvents: {
      filteredEventIds: [
        {}
      ],
      kind: ''
    },
    dateRange: {
      endDate: '',
      kind: '',
      relativeDateRange: '',
      startDate: ''
    },
    dimensionFilters: [
      {}
    ],
    dimensions: [
      {
        kind: '',
        name: '',
        sortOrder: ''
      }
    ],
    metricNames: []
  },
  crossDimensionReachCriteria: {
    breakdown: [
      {}
    ],
    dateRange: {},
    dimension: '',
    dimensionFilters: [
      {}
    ],
    metricNames: [],
    overlapMetricNames: [],
    pivoted: false
  },
  delivery: {
    emailOwner: false,
    emailOwnerDeliveryType: '',
    message: '',
    recipients: [
      {
        deliveryType: '',
        email: '',
        kind: ''
      }
    ]
  },
  etag: '',
  fileName: '',
  floodlightCriteria: {
    customRichMediaEvents: [
      {}
    ],
    dateRange: {},
    dimensionFilters: [
      {}
    ],
    dimensions: [
      {}
    ],
    floodlightConfigId: {},
    metricNames: [],
    reportProperties: {
      includeAttributedIPConversions: false,
      includeUnattributedCookieConversions: false,
      includeUnattributedIPConversions: false
    }
  },
  format: '',
  id: '',
  kind: '',
  lastModifiedTime: '',
  name: '',
  ownerProfileId: '',
  pathAttributionCriteria: {
    activityFilters: [
      {}
    ],
    customChannelGrouping: {
      fallbackName: '',
      kind: '',
      name: '',
      rules: [
        {
          disjunctiveMatchStatements: [
            {
              eventFilters: [
                {
                  dimensionFilter: {
                    dimensionName: '',
                    ids: [],
                    kind: '',
                    matchType: '',
                    values: []
                  },
                  kind: ''
                }
              ],
              kind: ''
            }
          ],
          kind: '',
          name: ''
        }
      ]
    },
    dateRange: {},
    dimensions: [
      {}
    ],
    floodlightConfigId: {},
    metricNames: [],
    pathFilters: [
      {
        eventFilters: [
          {}
        ],
        kind: '',
        pathMatchPosition: ''
      }
    ]
  },
  pathCriteria: {
    activityFilters: [
      {}
    ],
    customChannelGrouping: {},
    dateRange: {},
    dimensions: [
      {}
    ],
    floodlightConfigId: {},
    metricNames: [],
    pathFilters: [
      {}
    ]
  },
  pathToConversionCriteria: {
    activityFilters: [
      {}
    ],
    conversionDimensions: [
      {}
    ],
    customFloodlightVariables: [
      {}
    ],
    customRichMediaEvents: [
      {}
    ],
    dateRange: {},
    floodlightConfigId: {},
    metricNames: [],
    perInteractionDimensions: [
      {}
    ],
    reportProperties: {
      clicksLookbackWindow: 0,
      impressionsLookbackWindow: 0,
      includeAttributedIPConversions: false,
      includeUnattributedCookieConversions: false,
      includeUnattributedIPConversions: false,
      maximumClickInteractions: 0,
      maximumImpressionInteractions: 0,
      maximumInteractionGap: 0,
      pivotOnInteractionPath: false
    }
  },
  reachCriteria: {
    activities: {},
    customRichMediaEvents: {},
    dateRange: {},
    dimensionFilters: [
      {}
    ],
    dimensions: [
      {}
    ],
    enableAllDimensionCombinations: false,
    metricNames: [],
    reachByFrequencyMetricNames: []
  },
  schedule: {
    active: false,
    every: 0,
    expirationDate: '',
    repeats: '',
    repeatsOnWeekDays: [],
    runsOnDayOfMonth: '',
    startDate: ''
  },
  subAccountId: '',
  type: ''
});

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}}/userprofiles/:profileId/reports',
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    criteria: {
      activities: {
        filters: [{dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''}],
        kind: '',
        metricNames: []
      },
      customRichMediaEvents: {filteredEventIds: [{}], kind: ''},
      dateRange: {endDate: '', kind: '', relativeDateRange: '', startDate: ''},
      dimensionFilters: [{}],
      dimensions: [{kind: '', name: '', sortOrder: ''}],
      metricNames: []
    },
    crossDimensionReachCriteria: {
      breakdown: [{}],
      dateRange: {},
      dimension: '',
      dimensionFilters: [{}],
      metricNames: [],
      overlapMetricNames: [],
      pivoted: false
    },
    delivery: {
      emailOwner: false,
      emailOwnerDeliveryType: '',
      message: '',
      recipients: [{deliveryType: '', email: '', kind: ''}]
    },
    etag: '',
    fileName: '',
    floodlightCriteria: {
      customRichMediaEvents: [{}],
      dateRange: {},
      dimensionFilters: [{}],
      dimensions: [{}],
      floodlightConfigId: {},
      metricNames: [],
      reportProperties: {
        includeAttributedIPConversions: false,
        includeUnattributedCookieConversions: false,
        includeUnattributedIPConversions: false
      }
    },
    format: '',
    id: '',
    kind: '',
    lastModifiedTime: '',
    name: '',
    ownerProfileId: '',
    pathAttributionCriteria: {
      activityFilters: [{}],
      customChannelGrouping: {
        fallbackName: '',
        kind: '',
        name: '',
        rules: [
          {
            disjunctiveMatchStatements: [
              {
                eventFilters: [
                  {
                    dimensionFilter: {dimensionName: '', ids: [], kind: '', matchType: '', values: []},
                    kind: ''
                  }
                ],
                kind: ''
              }
            ],
            kind: '',
            name: ''
          }
        ]
      },
      dateRange: {},
      dimensions: [{}],
      floodlightConfigId: {},
      metricNames: [],
      pathFilters: [{eventFilters: [{}], kind: '', pathMatchPosition: ''}]
    },
    pathCriteria: {
      activityFilters: [{}],
      customChannelGrouping: {},
      dateRange: {},
      dimensions: [{}],
      floodlightConfigId: {},
      metricNames: [],
      pathFilters: [{}]
    },
    pathToConversionCriteria: {
      activityFilters: [{}],
      conversionDimensions: [{}],
      customFloodlightVariables: [{}],
      customRichMediaEvents: [{}],
      dateRange: {},
      floodlightConfigId: {},
      metricNames: [],
      perInteractionDimensions: [{}],
      reportProperties: {
        clicksLookbackWindow: 0,
        impressionsLookbackWindow: 0,
        includeAttributedIPConversions: false,
        includeUnattributedCookieConversions: false,
        includeUnattributedIPConversions: false,
        maximumClickInteractions: 0,
        maximumImpressionInteractions: 0,
        maximumInteractionGap: 0,
        pivotOnInteractionPath: false
      }
    },
    reachCriteria: {
      activities: {},
      customRichMediaEvents: {},
      dateRange: {},
      dimensionFilters: [{}],
      dimensions: [{}],
      enableAllDimensionCombinations: false,
      metricNames: [],
      reachByFrequencyMetricNames: []
    },
    schedule: {
      active: false,
      every: 0,
      expirationDate: '',
      repeats: '',
      repeatsOnWeekDays: [],
      runsOnDayOfMonth: '',
      startDate: ''
    },
    subAccountId: '',
    type: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/reports';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","criteria":{"activities":{"filters":[{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""}],"kind":"","metricNames":[]},"customRichMediaEvents":{"filteredEventIds":[{}],"kind":""},"dateRange":{"endDate":"","kind":"","relativeDateRange":"","startDate":""},"dimensionFilters":[{}],"dimensions":[{"kind":"","name":"","sortOrder":""}],"metricNames":[]},"crossDimensionReachCriteria":{"breakdown":[{}],"dateRange":{},"dimension":"","dimensionFilters":[{}],"metricNames":[],"overlapMetricNames":[],"pivoted":false},"delivery":{"emailOwner":false,"emailOwnerDeliveryType":"","message":"","recipients":[{"deliveryType":"","email":"","kind":""}]},"etag":"","fileName":"","floodlightCriteria":{"customRichMediaEvents":[{}],"dateRange":{},"dimensionFilters":[{}],"dimensions":[{}],"floodlightConfigId":{},"metricNames":[],"reportProperties":{"includeAttributedIPConversions":false,"includeUnattributedCookieConversions":false,"includeUnattributedIPConversions":false}},"format":"","id":"","kind":"","lastModifiedTime":"","name":"","ownerProfileId":"","pathAttributionCriteria":{"activityFilters":[{}],"customChannelGrouping":{"fallbackName":"","kind":"","name":"","rules":[{"disjunctiveMatchStatements":[{"eventFilters":[{"dimensionFilter":{"dimensionName":"","ids":[],"kind":"","matchType":"","values":[]},"kind":""}],"kind":""}],"kind":"","name":""}]},"dateRange":{},"dimensions":[{}],"floodlightConfigId":{},"metricNames":[],"pathFilters":[{"eventFilters":[{}],"kind":"","pathMatchPosition":""}]},"pathCriteria":{"activityFilters":[{}],"customChannelGrouping":{},"dateRange":{},"dimensions":[{}],"floodlightConfigId":{},"metricNames":[],"pathFilters":[{}]},"pathToConversionCriteria":{"activityFilters":[{}],"conversionDimensions":[{}],"customFloodlightVariables":[{}],"customRichMediaEvents":[{}],"dateRange":{},"floodlightConfigId":{},"metricNames":[],"perInteractionDimensions":[{}],"reportProperties":{"clicksLookbackWindow":0,"impressionsLookbackWindow":0,"includeAttributedIPConversions":false,"includeUnattributedCookieConversions":false,"includeUnattributedIPConversions":false,"maximumClickInteractions":0,"maximumImpressionInteractions":0,"maximumInteractionGap":0,"pivotOnInteractionPath":false}},"reachCriteria":{"activities":{},"customRichMediaEvents":{},"dateRange":{},"dimensionFilters":[{}],"dimensions":[{}],"enableAllDimensionCombinations":false,"metricNames":[],"reachByFrequencyMetricNames":[]},"schedule":{"active":false,"every":0,"expirationDate":"","repeats":"","repeatsOnWeekDays":[],"runsOnDayOfMonth":"","startDate":""},"subAccountId":"","type":""}'
};

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 = @{ @"accountId": @"",
                              @"criteria": @{ @"activities": @{ @"filters": @[ @{ @"dimensionName": @"", @"etag": @"", @"id": @"", @"kind": @"", @"matchType": @"", @"value": @"" } ], @"kind": @"", @"metricNames": @[  ] }, @"customRichMediaEvents": @{ @"filteredEventIds": @[ @{  } ], @"kind": @"" }, @"dateRange": @{ @"endDate": @"", @"kind": @"", @"relativeDateRange": @"", @"startDate": @"" }, @"dimensionFilters": @[ @{  } ], @"dimensions": @[ @{ @"kind": @"", @"name": @"", @"sortOrder": @"" } ], @"metricNames": @[  ] },
                              @"crossDimensionReachCriteria": @{ @"breakdown": @[ @{  } ], @"dateRange": @{  }, @"dimension": @"", @"dimensionFilters": @[ @{  } ], @"metricNames": @[  ], @"overlapMetricNames": @[  ], @"pivoted": @NO },
                              @"delivery": @{ @"emailOwner": @NO, @"emailOwnerDeliveryType": @"", @"message": @"", @"recipients": @[ @{ @"deliveryType": @"", @"email": @"", @"kind": @"" } ] },
                              @"etag": @"",
                              @"fileName": @"",
                              @"floodlightCriteria": @{ @"customRichMediaEvents": @[ @{  } ], @"dateRange": @{  }, @"dimensionFilters": @[ @{  } ], @"dimensions": @[ @{  } ], @"floodlightConfigId": @{  }, @"metricNames": @[  ], @"reportProperties": @{ @"includeAttributedIPConversions": @NO, @"includeUnattributedCookieConversions": @NO, @"includeUnattributedIPConversions": @NO } },
                              @"format": @"",
                              @"id": @"",
                              @"kind": @"",
                              @"lastModifiedTime": @"",
                              @"name": @"",
                              @"ownerProfileId": @"",
                              @"pathAttributionCriteria": @{ @"activityFilters": @[ @{  } ], @"customChannelGrouping": @{ @"fallbackName": @"", @"kind": @"", @"name": @"", @"rules": @[ @{ @"disjunctiveMatchStatements": @[ @{ @"eventFilters": @[ @{ @"dimensionFilter": @{ @"dimensionName": @"", @"ids": @[  ], @"kind": @"", @"matchType": @"", @"values": @[  ] }, @"kind": @"" } ], @"kind": @"" } ], @"kind": @"", @"name": @"" } ] }, @"dateRange": @{  }, @"dimensions": @[ @{  } ], @"floodlightConfigId": @{  }, @"metricNames": @[  ], @"pathFilters": @[ @{ @"eventFilters": @[ @{  } ], @"kind": @"", @"pathMatchPosition": @"" } ] },
                              @"pathCriteria": @{ @"activityFilters": @[ @{  } ], @"customChannelGrouping": @{  }, @"dateRange": @{  }, @"dimensions": @[ @{  } ], @"floodlightConfigId": @{  }, @"metricNames": @[  ], @"pathFilters": @[ @{  } ] },
                              @"pathToConversionCriteria": @{ @"activityFilters": @[ @{  } ], @"conversionDimensions": @[ @{  } ], @"customFloodlightVariables": @[ @{  } ], @"customRichMediaEvents": @[ @{  } ], @"dateRange": @{  }, @"floodlightConfigId": @{  }, @"metricNames": @[  ], @"perInteractionDimensions": @[ @{  } ], @"reportProperties": @{ @"clicksLookbackWindow": @0, @"impressionsLookbackWindow": @0, @"includeAttributedIPConversions": @NO, @"includeUnattributedCookieConversions": @NO, @"includeUnattributedIPConversions": @NO, @"maximumClickInteractions": @0, @"maximumImpressionInteractions": @0, @"maximumInteractionGap": @0, @"pivotOnInteractionPath": @NO } },
                              @"reachCriteria": @{ @"activities": @{  }, @"customRichMediaEvents": @{  }, @"dateRange": @{  }, @"dimensionFilters": @[ @{  } ], @"dimensions": @[ @{  } ], @"enableAllDimensionCombinations": @NO, @"metricNames": @[  ], @"reachByFrequencyMetricNames": @[  ] },
                              @"schedule": @{ @"active": @NO, @"every": @0, @"expirationDate": @"", @"repeats": @"", @"repeatsOnWeekDays": @[  ], @"runsOnDayOfMonth": @"", @"startDate": @"" },
                              @"subAccountId": @"",
                              @"type": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/userprofiles/:profileId/reports"]
                                                       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}}/userprofiles/:profileId/reports" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"accountId\": \"\",\n  \"criteria\": {\n    \"activities\": {\n      \"filters\": [\n        {\n          \"dimensionName\": \"\",\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"matchType\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"kind\": \"\",\n      \"metricNames\": []\n    },\n    \"customRichMediaEvents\": {\n      \"filteredEventIds\": [\n        {}\n      ],\n      \"kind\": \"\"\n    },\n    \"dateRange\": {\n      \"endDate\": \"\",\n      \"kind\": \"\",\n      \"relativeDateRange\": \"\",\n      \"startDate\": \"\"\n    },\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sortOrder\": \"\"\n      }\n    ],\n    \"metricNames\": []\n  },\n  \"crossDimensionReachCriteria\": {\n    \"breakdown\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimension\": \"\",\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"metricNames\": [],\n    \"overlapMetricNames\": [],\n    \"pivoted\": false\n  },\n  \"delivery\": {\n    \"emailOwner\": false,\n    \"emailOwnerDeliveryType\": \"\",\n    \"message\": \"\",\n    \"recipients\": [\n      {\n        \"deliveryType\": \"\",\n        \"email\": \"\",\n        \"kind\": \"\"\n      }\n    ]\n  },\n  \"etag\": \"\",\n  \"fileName\": \"\",\n  \"floodlightCriteria\": {\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"reportProperties\": {\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false\n    }\n  },\n  \"format\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedTime\": \"\",\n  \"name\": \"\",\n  \"ownerProfileId\": \"\",\n  \"pathAttributionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {\n      \"fallbackName\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"rules\": [\n        {\n          \"disjunctiveMatchStatements\": [\n            {\n              \"eventFilters\": [\n                {\n                  \"dimensionFilter\": {\n                    \"dimensionName\": \"\",\n                    \"ids\": [],\n                    \"kind\": \"\",\n                    \"matchType\": \"\",\n                    \"values\": []\n                  },\n                  \"kind\": \"\"\n                }\n              ],\n              \"kind\": \"\"\n            }\n          ],\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {\n        \"eventFilters\": [\n          {}\n        ],\n        \"kind\": \"\",\n        \"pathMatchPosition\": \"\"\n      }\n    ]\n  },\n  \"pathCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {},\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {}\n    ]\n  },\n  \"pathToConversionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"conversionDimensions\": [\n      {}\n    ],\n    \"customFloodlightVariables\": [\n      {}\n    ],\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"perInteractionDimensions\": [\n      {}\n    ],\n    \"reportProperties\": {\n      \"clicksLookbackWindow\": 0,\n      \"impressionsLookbackWindow\": 0,\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false,\n      \"maximumClickInteractions\": 0,\n      \"maximumImpressionInteractions\": 0,\n      \"maximumInteractionGap\": 0,\n      \"pivotOnInteractionPath\": false\n    }\n  },\n  \"reachCriteria\": {\n    \"activities\": {},\n    \"customRichMediaEvents\": {},\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"enableAllDimensionCombinations\": false,\n    \"metricNames\": [],\n    \"reachByFrequencyMetricNames\": []\n  },\n  \"schedule\": {\n    \"active\": false,\n    \"every\": 0,\n    \"expirationDate\": \"\",\n    \"repeats\": \"\",\n    \"repeatsOnWeekDays\": [],\n    \"runsOnDayOfMonth\": \"\",\n    \"startDate\": \"\"\n  },\n  \"subAccountId\": \"\",\n  \"type\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/reports",
  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([
    'accountId' => '',
    'criteria' => [
        'activities' => [
                'filters' => [
                                [
                                                                'dimensionName' => '',
                                                                'etag' => '',
                                                                'id' => '',
                                                                'kind' => '',
                                                                'matchType' => '',
                                                                'value' => ''
                                ]
                ],
                'kind' => '',
                'metricNames' => [
                                
                ]
        ],
        'customRichMediaEvents' => [
                'filteredEventIds' => [
                                [
                                                                
                                ]
                ],
                'kind' => ''
        ],
        'dateRange' => [
                'endDate' => '',
                'kind' => '',
                'relativeDateRange' => '',
                'startDate' => ''
        ],
        'dimensionFilters' => [
                [
                                
                ]
        ],
        'dimensions' => [
                [
                                'kind' => '',
                                'name' => '',
                                'sortOrder' => ''
                ]
        ],
        'metricNames' => [
                
        ]
    ],
    'crossDimensionReachCriteria' => [
        'breakdown' => [
                [
                                
                ]
        ],
        'dateRange' => [
                
        ],
        'dimension' => '',
        'dimensionFilters' => [
                [
                                
                ]
        ],
        'metricNames' => [
                
        ],
        'overlapMetricNames' => [
                
        ],
        'pivoted' => null
    ],
    'delivery' => [
        'emailOwner' => null,
        'emailOwnerDeliveryType' => '',
        'message' => '',
        'recipients' => [
                [
                                'deliveryType' => '',
                                'email' => '',
                                'kind' => ''
                ]
        ]
    ],
    'etag' => '',
    'fileName' => '',
    'floodlightCriteria' => [
        'customRichMediaEvents' => [
                [
                                
                ]
        ],
        'dateRange' => [
                
        ],
        'dimensionFilters' => [
                [
                                
                ]
        ],
        'dimensions' => [
                [
                                
                ]
        ],
        'floodlightConfigId' => [
                
        ],
        'metricNames' => [
                
        ],
        'reportProperties' => [
                'includeAttributedIPConversions' => null,
                'includeUnattributedCookieConversions' => null,
                'includeUnattributedIPConversions' => null
        ]
    ],
    'format' => '',
    'id' => '',
    'kind' => '',
    'lastModifiedTime' => '',
    'name' => '',
    'ownerProfileId' => '',
    'pathAttributionCriteria' => [
        'activityFilters' => [
                [
                                
                ]
        ],
        'customChannelGrouping' => [
                'fallbackName' => '',
                'kind' => '',
                'name' => '',
                'rules' => [
                                [
                                                                'disjunctiveMatchStatements' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'eventFilters' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'dimensionFilter' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'dimensionName' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'ids' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'kind' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'matchType' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'values' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'kind' => ''
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'kind' => ''
                                                                                                                                ]
                                                                ],
                                                                'kind' => '',
                                                                'name' => ''
                                ]
                ]
        ],
        'dateRange' => [
                
        ],
        'dimensions' => [
                [
                                
                ]
        ],
        'floodlightConfigId' => [
                
        ],
        'metricNames' => [
                
        ],
        'pathFilters' => [
                [
                                'eventFilters' => [
                                                                [
                                                                                                                                
                                                                ]
                                ],
                                'kind' => '',
                                'pathMatchPosition' => ''
                ]
        ]
    ],
    'pathCriteria' => [
        'activityFilters' => [
                [
                                
                ]
        ],
        'customChannelGrouping' => [
                
        ],
        'dateRange' => [
                
        ],
        'dimensions' => [
                [
                                
                ]
        ],
        'floodlightConfigId' => [
                
        ],
        'metricNames' => [
                
        ],
        'pathFilters' => [
                [
                                
                ]
        ]
    ],
    'pathToConversionCriteria' => [
        'activityFilters' => [
                [
                                
                ]
        ],
        'conversionDimensions' => [
                [
                                
                ]
        ],
        'customFloodlightVariables' => [
                [
                                
                ]
        ],
        'customRichMediaEvents' => [
                [
                                
                ]
        ],
        'dateRange' => [
                
        ],
        'floodlightConfigId' => [
                
        ],
        'metricNames' => [
                
        ],
        'perInteractionDimensions' => [
                [
                                
                ]
        ],
        'reportProperties' => [
                'clicksLookbackWindow' => 0,
                'impressionsLookbackWindow' => 0,
                'includeAttributedIPConversions' => null,
                'includeUnattributedCookieConversions' => null,
                'includeUnattributedIPConversions' => null,
                'maximumClickInteractions' => 0,
                'maximumImpressionInteractions' => 0,
                'maximumInteractionGap' => 0,
                'pivotOnInteractionPath' => null
        ]
    ],
    'reachCriteria' => [
        'activities' => [
                
        ],
        'customRichMediaEvents' => [
                
        ],
        'dateRange' => [
                
        ],
        'dimensionFilters' => [
                [
                                
                ]
        ],
        'dimensions' => [
                [
                                
                ]
        ],
        'enableAllDimensionCombinations' => null,
        'metricNames' => [
                
        ],
        'reachByFrequencyMetricNames' => [
                
        ]
    ],
    'schedule' => [
        'active' => null,
        'every' => 0,
        'expirationDate' => '',
        'repeats' => '',
        'repeatsOnWeekDays' => [
                
        ],
        'runsOnDayOfMonth' => '',
        'startDate' => ''
    ],
    'subAccountId' => '',
    'type' => ''
  ]),
  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}}/userprofiles/:profileId/reports', [
  'body' => '{
  "accountId": "",
  "criteria": {
    "activities": {
      "filters": [
        {
          "dimensionName": "",
          "etag": "",
          "id": "",
          "kind": "",
          "matchType": "",
          "value": ""
        }
      ],
      "kind": "",
      "metricNames": []
    },
    "customRichMediaEvents": {
      "filteredEventIds": [
        {}
      ],
      "kind": ""
    },
    "dateRange": {
      "endDate": "",
      "kind": "",
      "relativeDateRange": "",
      "startDate": ""
    },
    "dimensionFilters": [
      {}
    ],
    "dimensions": [
      {
        "kind": "",
        "name": "",
        "sortOrder": ""
      }
    ],
    "metricNames": []
  },
  "crossDimensionReachCriteria": {
    "breakdown": [
      {}
    ],
    "dateRange": {},
    "dimension": "",
    "dimensionFilters": [
      {}
    ],
    "metricNames": [],
    "overlapMetricNames": [],
    "pivoted": false
  },
  "delivery": {
    "emailOwner": false,
    "emailOwnerDeliveryType": "",
    "message": "",
    "recipients": [
      {
        "deliveryType": "",
        "email": "",
        "kind": ""
      }
    ]
  },
  "etag": "",
  "fileName": "",
  "floodlightCriteria": {
    "customRichMediaEvents": [
      {}
    ],
    "dateRange": {},
    "dimensionFilters": [
      {}
    ],
    "dimensions": [
      {}
    ],
    "floodlightConfigId": {},
    "metricNames": [],
    "reportProperties": {
      "includeAttributedIPConversions": false,
      "includeUnattributedCookieConversions": false,
      "includeUnattributedIPConversions": false
    }
  },
  "format": "",
  "id": "",
  "kind": "",
  "lastModifiedTime": "",
  "name": "",
  "ownerProfileId": "",
  "pathAttributionCriteria": {
    "activityFilters": [
      {}
    ],
    "customChannelGrouping": {
      "fallbackName": "",
      "kind": "",
      "name": "",
      "rules": [
        {
          "disjunctiveMatchStatements": [
            {
              "eventFilters": [
                {
                  "dimensionFilter": {
                    "dimensionName": "",
                    "ids": [],
                    "kind": "",
                    "matchType": "",
                    "values": []
                  },
                  "kind": ""
                }
              ],
              "kind": ""
            }
          ],
          "kind": "",
          "name": ""
        }
      ]
    },
    "dateRange": {},
    "dimensions": [
      {}
    ],
    "floodlightConfigId": {},
    "metricNames": [],
    "pathFilters": [
      {
        "eventFilters": [
          {}
        ],
        "kind": "",
        "pathMatchPosition": ""
      }
    ]
  },
  "pathCriteria": {
    "activityFilters": [
      {}
    ],
    "customChannelGrouping": {},
    "dateRange": {},
    "dimensions": [
      {}
    ],
    "floodlightConfigId": {},
    "metricNames": [],
    "pathFilters": [
      {}
    ]
  },
  "pathToConversionCriteria": {
    "activityFilters": [
      {}
    ],
    "conversionDimensions": [
      {}
    ],
    "customFloodlightVariables": [
      {}
    ],
    "customRichMediaEvents": [
      {}
    ],
    "dateRange": {},
    "floodlightConfigId": {},
    "metricNames": [],
    "perInteractionDimensions": [
      {}
    ],
    "reportProperties": {
      "clicksLookbackWindow": 0,
      "impressionsLookbackWindow": 0,
      "includeAttributedIPConversions": false,
      "includeUnattributedCookieConversions": false,
      "includeUnattributedIPConversions": false,
      "maximumClickInteractions": 0,
      "maximumImpressionInteractions": 0,
      "maximumInteractionGap": 0,
      "pivotOnInteractionPath": false
    }
  },
  "reachCriteria": {
    "activities": {},
    "customRichMediaEvents": {},
    "dateRange": {},
    "dimensionFilters": [
      {}
    ],
    "dimensions": [
      {}
    ],
    "enableAllDimensionCombinations": false,
    "metricNames": [],
    "reachByFrequencyMetricNames": []
  },
  "schedule": {
    "active": false,
    "every": 0,
    "expirationDate": "",
    "repeats": "",
    "repeatsOnWeekDays": [],
    "runsOnDayOfMonth": "",
    "startDate": ""
  },
  "subAccountId": "",
  "type": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/reports');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'accountId' => '',
  'criteria' => [
    'activities' => [
        'filters' => [
                [
                                'dimensionName' => '',
                                'etag' => '',
                                'id' => '',
                                'kind' => '',
                                'matchType' => '',
                                'value' => ''
                ]
        ],
        'kind' => '',
        'metricNames' => [
                
        ]
    ],
    'customRichMediaEvents' => [
        'filteredEventIds' => [
                [
                                
                ]
        ],
        'kind' => ''
    ],
    'dateRange' => [
        'endDate' => '',
        'kind' => '',
        'relativeDateRange' => '',
        'startDate' => ''
    ],
    'dimensionFilters' => [
        [
                
        ]
    ],
    'dimensions' => [
        [
                'kind' => '',
                'name' => '',
                'sortOrder' => ''
        ]
    ],
    'metricNames' => [
        
    ]
  ],
  'crossDimensionReachCriteria' => [
    'breakdown' => [
        [
                
        ]
    ],
    'dateRange' => [
        
    ],
    'dimension' => '',
    'dimensionFilters' => [
        [
                
        ]
    ],
    'metricNames' => [
        
    ],
    'overlapMetricNames' => [
        
    ],
    'pivoted' => null
  ],
  'delivery' => [
    'emailOwner' => null,
    'emailOwnerDeliveryType' => '',
    'message' => '',
    'recipients' => [
        [
                'deliveryType' => '',
                'email' => '',
                'kind' => ''
        ]
    ]
  ],
  'etag' => '',
  'fileName' => '',
  'floodlightCriteria' => [
    'customRichMediaEvents' => [
        [
                
        ]
    ],
    'dateRange' => [
        
    ],
    'dimensionFilters' => [
        [
                
        ]
    ],
    'dimensions' => [
        [
                
        ]
    ],
    'floodlightConfigId' => [
        
    ],
    'metricNames' => [
        
    ],
    'reportProperties' => [
        'includeAttributedIPConversions' => null,
        'includeUnattributedCookieConversions' => null,
        'includeUnattributedIPConversions' => null
    ]
  ],
  'format' => '',
  'id' => '',
  'kind' => '',
  'lastModifiedTime' => '',
  'name' => '',
  'ownerProfileId' => '',
  'pathAttributionCriteria' => [
    'activityFilters' => [
        [
                
        ]
    ],
    'customChannelGrouping' => [
        'fallbackName' => '',
        'kind' => '',
        'name' => '',
        'rules' => [
                [
                                'disjunctiveMatchStatements' => [
                                                                [
                                                                                                                                'eventFilters' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'dimensionFilter' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'dimensionName' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'ids' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'kind' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'matchType' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'values' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'kind' => ''
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'kind' => ''
                                                                ]
                                ],
                                'kind' => '',
                                'name' => ''
                ]
        ]
    ],
    'dateRange' => [
        
    ],
    'dimensions' => [
        [
                
        ]
    ],
    'floodlightConfigId' => [
        
    ],
    'metricNames' => [
        
    ],
    'pathFilters' => [
        [
                'eventFilters' => [
                                [
                                                                
                                ]
                ],
                'kind' => '',
                'pathMatchPosition' => ''
        ]
    ]
  ],
  'pathCriteria' => [
    'activityFilters' => [
        [
                
        ]
    ],
    'customChannelGrouping' => [
        
    ],
    'dateRange' => [
        
    ],
    'dimensions' => [
        [
                
        ]
    ],
    'floodlightConfigId' => [
        
    ],
    'metricNames' => [
        
    ],
    'pathFilters' => [
        [
                
        ]
    ]
  ],
  'pathToConversionCriteria' => [
    'activityFilters' => [
        [
                
        ]
    ],
    'conversionDimensions' => [
        [
                
        ]
    ],
    'customFloodlightVariables' => [
        [
                
        ]
    ],
    'customRichMediaEvents' => [
        [
                
        ]
    ],
    'dateRange' => [
        
    ],
    'floodlightConfigId' => [
        
    ],
    'metricNames' => [
        
    ],
    'perInteractionDimensions' => [
        [
                
        ]
    ],
    'reportProperties' => [
        'clicksLookbackWindow' => 0,
        'impressionsLookbackWindow' => 0,
        'includeAttributedIPConversions' => null,
        'includeUnattributedCookieConversions' => null,
        'includeUnattributedIPConversions' => null,
        'maximumClickInteractions' => 0,
        'maximumImpressionInteractions' => 0,
        'maximumInteractionGap' => 0,
        'pivotOnInteractionPath' => null
    ]
  ],
  'reachCriteria' => [
    'activities' => [
        
    ],
    'customRichMediaEvents' => [
        
    ],
    'dateRange' => [
        
    ],
    'dimensionFilters' => [
        [
                
        ]
    ],
    'dimensions' => [
        [
                
        ]
    ],
    'enableAllDimensionCombinations' => null,
    'metricNames' => [
        
    ],
    'reachByFrequencyMetricNames' => [
        
    ]
  ],
  'schedule' => [
    'active' => null,
    'every' => 0,
    'expirationDate' => '',
    'repeats' => '',
    'repeatsOnWeekDays' => [
        
    ],
    'runsOnDayOfMonth' => '',
    'startDate' => ''
  ],
  'subAccountId' => '',
  'type' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'accountId' => '',
  'criteria' => [
    'activities' => [
        'filters' => [
                [
                                'dimensionName' => '',
                                'etag' => '',
                                'id' => '',
                                'kind' => '',
                                'matchType' => '',
                                'value' => ''
                ]
        ],
        'kind' => '',
        'metricNames' => [
                
        ]
    ],
    'customRichMediaEvents' => [
        'filteredEventIds' => [
                [
                                
                ]
        ],
        'kind' => ''
    ],
    'dateRange' => [
        'endDate' => '',
        'kind' => '',
        'relativeDateRange' => '',
        'startDate' => ''
    ],
    'dimensionFilters' => [
        [
                
        ]
    ],
    'dimensions' => [
        [
                'kind' => '',
                'name' => '',
                'sortOrder' => ''
        ]
    ],
    'metricNames' => [
        
    ]
  ],
  'crossDimensionReachCriteria' => [
    'breakdown' => [
        [
                
        ]
    ],
    'dateRange' => [
        
    ],
    'dimension' => '',
    'dimensionFilters' => [
        [
                
        ]
    ],
    'metricNames' => [
        
    ],
    'overlapMetricNames' => [
        
    ],
    'pivoted' => null
  ],
  'delivery' => [
    'emailOwner' => null,
    'emailOwnerDeliveryType' => '',
    'message' => '',
    'recipients' => [
        [
                'deliveryType' => '',
                'email' => '',
                'kind' => ''
        ]
    ]
  ],
  'etag' => '',
  'fileName' => '',
  'floodlightCriteria' => [
    'customRichMediaEvents' => [
        [
                
        ]
    ],
    'dateRange' => [
        
    ],
    'dimensionFilters' => [
        [
                
        ]
    ],
    'dimensions' => [
        [
                
        ]
    ],
    'floodlightConfigId' => [
        
    ],
    'metricNames' => [
        
    ],
    'reportProperties' => [
        'includeAttributedIPConversions' => null,
        'includeUnattributedCookieConversions' => null,
        'includeUnattributedIPConversions' => null
    ]
  ],
  'format' => '',
  'id' => '',
  'kind' => '',
  'lastModifiedTime' => '',
  'name' => '',
  'ownerProfileId' => '',
  'pathAttributionCriteria' => [
    'activityFilters' => [
        [
                
        ]
    ],
    'customChannelGrouping' => [
        'fallbackName' => '',
        'kind' => '',
        'name' => '',
        'rules' => [
                [
                                'disjunctiveMatchStatements' => [
                                                                [
                                                                                                                                'eventFilters' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'dimensionFilter' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'dimensionName' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'ids' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'kind' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'matchType' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'values' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'kind' => ''
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'kind' => ''
                                                                ]
                                ],
                                'kind' => '',
                                'name' => ''
                ]
        ]
    ],
    'dateRange' => [
        
    ],
    'dimensions' => [
        [
                
        ]
    ],
    'floodlightConfigId' => [
        
    ],
    'metricNames' => [
        
    ],
    'pathFilters' => [
        [
                'eventFilters' => [
                                [
                                                                
                                ]
                ],
                'kind' => '',
                'pathMatchPosition' => ''
        ]
    ]
  ],
  'pathCriteria' => [
    'activityFilters' => [
        [
                
        ]
    ],
    'customChannelGrouping' => [
        
    ],
    'dateRange' => [
        
    ],
    'dimensions' => [
        [
                
        ]
    ],
    'floodlightConfigId' => [
        
    ],
    'metricNames' => [
        
    ],
    'pathFilters' => [
        [
                
        ]
    ]
  ],
  'pathToConversionCriteria' => [
    'activityFilters' => [
        [
                
        ]
    ],
    'conversionDimensions' => [
        [
                
        ]
    ],
    'customFloodlightVariables' => [
        [
                
        ]
    ],
    'customRichMediaEvents' => [
        [
                
        ]
    ],
    'dateRange' => [
        
    ],
    'floodlightConfigId' => [
        
    ],
    'metricNames' => [
        
    ],
    'perInteractionDimensions' => [
        [
                
        ]
    ],
    'reportProperties' => [
        'clicksLookbackWindow' => 0,
        'impressionsLookbackWindow' => 0,
        'includeAttributedIPConversions' => null,
        'includeUnattributedCookieConversions' => null,
        'includeUnattributedIPConversions' => null,
        'maximumClickInteractions' => 0,
        'maximumImpressionInteractions' => 0,
        'maximumInteractionGap' => 0,
        'pivotOnInteractionPath' => null
    ]
  ],
  'reachCriteria' => [
    'activities' => [
        
    ],
    'customRichMediaEvents' => [
        
    ],
    'dateRange' => [
        
    ],
    'dimensionFilters' => [
        [
                
        ]
    ],
    'dimensions' => [
        [
                
        ]
    ],
    'enableAllDimensionCombinations' => null,
    'metricNames' => [
        
    ],
    'reachByFrequencyMetricNames' => [
        
    ]
  ],
  'schedule' => [
    'active' => null,
    'every' => 0,
    'expirationDate' => '',
    'repeats' => '',
    'repeatsOnWeekDays' => [
        
    ],
    'runsOnDayOfMonth' => '',
    'startDate' => ''
  ],
  'subAccountId' => '',
  'type' => ''
]));
$request->setRequestUrl('{{baseUrl}}/userprofiles/:profileId/reports');
$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}}/userprofiles/:profileId/reports' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "criteria": {
    "activities": {
      "filters": [
        {
          "dimensionName": "",
          "etag": "",
          "id": "",
          "kind": "",
          "matchType": "",
          "value": ""
        }
      ],
      "kind": "",
      "metricNames": []
    },
    "customRichMediaEvents": {
      "filteredEventIds": [
        {}
      ],
      "kind": ""
    },
    "dateRange": {
      "endDate": "",
      "kind": "",
      "relativeDateRange": "",
      "startDate": ""
    },
    "dimensionFilters": [
      {}
    ],
    "dimensions": [
      {
        "kind": "",
        "name": "",
        "sortOrder": ""
      }
    ],
    "metricNames": []
  },
  "crossDimensionReachCriteria": {
    "breakdown": [
      {}
    ],
    "dateRange": {},
    "dimension": "",
    "dimensionFilters": [
      {}
    ],
    "metricNames": [],
    "overlapMetricNames": [],
    "pivoted": false
  },
  "delivery": {
    "emailOwner": false,
    "emailOwnerDeliveryType": "",
    "message": "",
    "recipients": [
      {
        "deliveryType": "",
        "email": "",
        "kind": ""
      }
    ]
  },
  "etag": "",
  "fileName": "",
  "floodlightCriteria": {
    "customRichMediaEvents": [
      {}
    ],
    "dateRange": {},
    "dimensionFilters": [
      {}
    ],
    "dimensions": [
      {}
    ],
    "floodlightConfigId": {},
    "metricNames": [],
    "reportProperties": {
      "includeAttributedIPConversions": false,
      "includeUnattributedCookieConversions": false,
      "includeUnattributedIPConversions": false
    }
  },
  "format": "",
  "id": "",
  "kind": "",
  "lastModifiedTime": "",
  "name": "",
  "ownerProfileId": "",
  "pathAttributionCriteria": {
    "activityFilters": [
      {}
    ],
    "customChannelGrouping": {
      "fallbackName": "",
      "kind": "",
      "name": "",
      "rules": [
        {
          "disjunctiveMatchStatements": [
            {
              "eventFilters": [
                {
                  "dimensionFilter": {
                    "dimensionName": "",
                    "ids": [],
                    "kind": "",
                    "matchType": "",
                    "values": []
                  },
                  "kind": ""
                }
              ],
              "kind": ""
            }
          ],
          "kind": "",
          "name": ""
        }
      ]
    },
    "dateRange": {},
    "dimensions": [
      {}
    ],
    "floodlightConfigId": {},
    "metricNames": [],
    "pathFilters": [
      {
        "eventFilters": [
          {}
        ],
        "kind": "",
        "pathMatchPosition": ""
      }
    ]
  },
  "pathCriteria": {
    "activityFilters": [
      {}
    ],
    "customChannelGrouping": {},
    "dateRange": {},
    "dimensions": [
      {}
    ],
    "floodlightConfigId": {},
    "metricNames": [],
    "pathFilters": [
      {}
    ]
  },
  "pathToConversionCriteria": {
    "activityFilters": [
      {}
    ],
    "conversionDimensions": [
      {}
    ],
    "customFloodlightVariables": [
      {}
    ],
    "customRichMediaEvents": [
      {}
    ],
    "dateRange": {},
    "floodlightConfigId": {},
    "metricNames": [],
    "perInteractionDimensions": [
      {}
    ],
    "reportProperties": {
      "clicksLookbackWindow": 0,
      "impressionsLookbackWindow": 0,
      "includeAttributedIPConversions": false,
      "includeUnattributedCookieConversions": false,
      "includeUnattributedIPConversions": false,
      "maximumClickInteractions": 0,
      "maximumImpressionInteractions": 0,
      "maximumInteractionGap": 0,
      "pivotOnInteractionPath": false
    }
  },
  "reachCriteria": {
    "activities": {},
    "customRichMediaEvents": {},
    "dateRange": {},
    "dimensionFilters": [
      {}
    ],
    "dimensions": [
      {}
    ],
    "enableAllDimensionCombinations": false,
    "metricNames": [],
    "reachByFrequencyMetricNames": []
  },
  "schedule": {
    "active": false,
    "every": 0,
    "expirationDate": "",
    "repeats": "",
    "repeatsOnWeekDays": [],
    "runsOnDayOfMonth": "",
    "startDate": ""
  },
  "subAccountId": "",
  "type": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/reports' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "criteria": {
    "activities": {
      "filters": [
        {
          "dimensionName": "",
          "etag": "",
          "id": "",
          "kind": "",
          "matchType": "",
          "value": ""
        }
      ],
      "kind": "",
      "metricNames": []
    },
    "customRichMediaEvents": {
      "filteredEventIds": [
        {}
      ],
      "kind": ""
    },
    "dateRange": {
      "endDate": "",
      "kind": "",
      "relativeDateRange": "",
      "startDate": ""
    },
    "dimensionFilters": [
      {}
    ],
    "dimensions": [
      {
        "kind": "",
        "name": "",
        "sortOrder": ""
      }
    ],
    "metricNames": []
  },
  "crossDimensionReachCriteria": {
    "breakdown": [
      {}
    ],
    "dateRange": {},
    "dimension": "",
    "dimensionFilters": [
      {}
    ],
    "metricNames": [],
    "overlapMetricNames": [],
    "pivoted": false
  },
  "delivery": {
    "emailOwner": false,
    "emailOwnerDeliveryType": "",
    "message": "",
    "recipients": [
      {
        "deliveryType": "",
        "email": "",
        "kind": ""
      }
    ]
  },
  "etag": "",
  "fileName": "",
  "floodlightCriteria": {
    "customRichMediaEvents": [
      {}
    ],
    "dateRange": {},
    "dimensionFilters": [
      {}
    ],
    "dimensions": [
      {}
    ],
    "floodlightConfigId": {},
    "metricNames": [],
    "reportProperties": {
      "includeAttributedIPConversions": false,
      "includeUnattributedCookieConversions": false,
      "includeUnattributedIPConversions": false
    }
  },
  "format": "",
  "id": "",
  "kind": "",
  "lastModifiedTime": "",
  "name": "",
  "ownerProfileId": "",
  "pathAttributionCriteria": {
    "activityFilters": [
      {}
    ],
    "customChannelGrouping": {
      "fallbackName": "",
      "kind": "",
      "name": "",
      "rules": [
        {
          "disjunctiveMatchStatements": [
            {
              "eventFilters": [
                {
                  "dimensionFilter": {
                    "dimensionName": "",
                    "ids": [],
                    "kind": "",
                    "matchType": "",
                    "values": []
                  },
                  "kind": ""
                }
              ],
              "kind": ""
            }
          ],
          "kind": "",
          "name": ""
        }
      ]
    },
    "dateRange": {},
    "dimensions": [
      {}
    ],
    "floodlightConfigId": {},
    "metricNames": [],
    "pathFilters": [
      {
        "eventFilters": [
          {}
        ],
        "kind": "",
        "pathMatchPosition": ""
      }
    ]
  },
  "pathCriteria": {
    "activityFilters": [
      {}
    ],
    "customChannelGrouping": {},
    "dateRange": {},
    "dimensions": [
      {}
    ],
    "floodlightConfigId": {},
    "metricNames": [],
    "pathFilters": [
      {}
    ]
  },
  "pathToConversionCriteria": {
    "activityFilters": [
      {}
    ],
    "conversionDimensions": [
      {}
    ],
    "customFloodlightVariables": [
      {}
    ],
    "customRichMediaEvents": [
      {}
    ],
    "dateRange": {},
    "floodlightConfigId": {},
    "metricNames": [],
    "perInteractionDimensions": [
      {}
    ],
    "reportProperties": {
      "clicksLookbackWindow": 0,
      "impressionsLookbackWindow": 0,
      "includeAttributedIPConversions": false,
      "includeUnattributedCookieConversions": false,
      "includeUnattributedIPConversions": false,
      "maximumClickInteractions": 0,
      "maximumImpressionInteractions": 0,
      "maximumInteractionGap": 0,
      "pivotOnInteractionPath": false
    }
  },
  "reachCriteria": {
    "activities": {},
    "customRichMediaEvents": {},
    "dateRange": {},
    "dimensionFilters": [
      {}
    ],
    "dimensions": [
      {}
    ],
    "enableAllDimensionCombinations": false,
    "metricNames": [],
    "reachByFrequencyMetricNames": []
  },
  "schedule": {
    "active": false,
    "every": 0,
    "expirationDate": "",
    "repeats": "",
    "repeatsOnWeekDays": [],
    "runsOnDayOfMonth": "",
    "startDate": ""
  },
  "subAccountId": "",
  "type": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"accountId\": \"\",\n  \"criteria\": {\n    \"activities\": {\n      \"filters\": [\n        {\n          \"dimensionName\": \"\",\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"matchType\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"kind\": \"\",\n      \"metricNames\": []\n    },\n    \"customRichMediaEvents\": {\n      \"filteredEventIds\": [\n        {}\n      ],\n      \"kind\": \"\"\n    },\n    \"dateRange\": {\n      \"endDate\": \"\",\n      \"kind\": \"\",\n      \"relativeDateRange\": \"\",\n      \"startDate\": \"\"\n    },\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sortOrder\": \"\"\n      }\n    ],\n    \"metricNames\": []\n  },\n  \"crossDimensionReachCriteria\": {\n    \"breakdown\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimension\": \"\",\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"metricNames\": [],\n    \"overlapMetricNames\": [],\n    \"pivoted\": false\n  },\n  \"delivery\": {\n    \"emailOwner\": false,\n    \"emailOwnerDeliveryType\": \"\",\n    \"message\": \"\",\n    \"recipients\": [\n      {\n        \"deliveryType\": \"\",\n        \"email\": \"\",\n        \"kind\": \"\"\n      }\n    ]\n  },\n  \"etag\": \"\",\n  \"fileName\": \"\",\n  \"floodlightCriteria\": {\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"reportProperties\": {\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false\n    }\n  },\n  \"format\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedTime\": \"\",\n  \"name\": \"\",\n  \"ownerProfileId\": \"\",\n  \"pathAttributionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {\n      \"fallbackName\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"rules\": [\n        {\n          \"disjunctiveMatchStatements\": [\n            {\n              \"eventFilters\": [\n                {\n                  \"dimensionFilter\": {\n                    \"dimensionName\": \"\",\n                    \"ids\": [],\n                    \"kind\": \"\",\n                    \"matchType\": \"\",\n                    \"values\": []\n                  },\n                  \"kind\": \"\"\n                }\n              ],\n              \"kind\": \"\"\n            }\n          ],\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {\n        \"eventFilters\": [\n          {}\n        ],\n        \"kind\": \"\",\n        \"pathMatchPosition\": \"\"\n      }\n    ]\n  },\n  \"pathCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {},\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {}\n    ]\n  },\n  \"pathToConversionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"conversionDimensions\": [\n      {}\n    ],\n    \"customFloodlightVariables\": [\n      {}\n    ],\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"perInteractionDimensions\": [\n      {}\n    ],\n    \"reportProperties\": {\n      \"clicksLookbackWindow\": 0,\n      \"impressionsLookbackWindow\": 0,\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false,\n      \"maximumClickInteractions\": 0,\n      \"maximumImpressionInteractions\": 0,\n      \"maximumInteractionGap\": 0,\n      \"pivotOnInteractionPath\": false\n    }\n  },\n  \"reachCriteria\": {\n    \"activities\": {},\n    \"customRichMediaEvents\": {},\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"enableAllDimensionCombinations\": false,\n    \"metricNames\": [],\n    \"reachByFrequencyMetricNames\": []\n  },\n  \"schedule\": {\n    \"active\": false,\n    \"every\": 0,\n    \"expirationDate\": \"\",\n    \"repeats\": \"\",\n    \"repeatsOnWeekDays\": [],\n    \"runsOnDayOfMonth\": \"\",\n    \"startDate\": \"\"\n  },\n  \"subAccountId\": \"\",\n  \"type\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/userprofiles/:profileId/reports", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/reports"

payload = {
    "accountId": "",
    "criteria": {
        "activities": {
            "filters": [
                {
                    "dimensionName": "",
                    "etag": "",
                    "id": "",
                    "kind": "",
                    "matchType": "",
                    "value": ""
                }
            ],
            "kind": "",
            "metricNames": []
        },
        "customRichMediaEvents": {
            "filteredEventIds": [{}],
            "kind": ""
        },
        "dateRange": {
            "endDate": "",
            "kind": "",
            "relativeDateRange": "",
            "startDate": ""
        },
        "dimensionFilters": [{}],
        "dimensions": [
            {
                "kind": "",
                "name": "",
                "sortOrder": ""
            }
        ],
        "metricNames": []
    },
    "crossDimensionReachCriteria": {
        "breakdown": [{}],
        "dateRange": {},
        "dimension": "",
        "dimensionFilters": [{}],
        "metricNames": [],
        "overlapMetricNames": [],
        "pivoted": False
    },
    "delivery": {
        "emailOwner": False,
        "emailOwnerDeliveryType": "",
        "message": "",
        "recipients": [
            {
                "deliveryType": "",
                "email": "",
                "kind": ""
            }
        ]
    },
    "etag": "",
    "fileName": "",
    "floodlightCriteria": {
        "customRichMediaEvents": [{}],
        "dateRange": {},
        "dimensionFilters": [{}],
        "dimensions": [{}],
        "floodlightConfigId": {},
        "metricNames": [],
        "reportProperties": {
            "includeAttributedIPConversions": False,
            "includeUnattributedCookieConversions": False,
            "includeUnattributedIPConversions": False
        }
    },
    "format": "",
    "id": "",
    "kind": "",
    "lastModifiedTime": "",
    "name": "",
    "ownerProfileId": "",
    "pathAttributionCriteria": {
        "activityFilters": [{}],
        "customChannelGrouping": {
            "fallbackName": "",
            "kind": "",
            "name": "",
            "rules": [
                {
                    "disjunctiveMatchStatements": [
                        {
                            "eventFilters": [
                                {
                                    "dimensionFilter": {
                                        "dimensionName": "",
                                        "ids": [],
                                        "kind": "",
                                        "matchType": "",
                                        "values": []
                                    },
                                    "kind": ""
                                }
                            ],
                            "kind": ""
                        }
                    ],
                    "kind": "",
                    "name": ""
                }
            ]
        },
        "dateRange": {},
        "dimensions": [{}],
        "floodlightConfigId": {},
        "metricNames": [],
        "pathFilters": [
            {
                "eventFilters": [{}],
                "kind": "",
                "pathMatchPosition": ""
            }
        ]
    },
    "pathCriteria": {
        "activityFilters": [{}],
        "customChannelGrouping": {},
        "dateRange": {},
        "dimensions": [{}],
        "floodlightConfigId": {},
        "metricNames": [],
        "pathFilters": [{}]
    },
    "pathToConversionCriteria": {
        "activityFilters": [{}],
        "conversionDimensions": [{}],
        "customFloodlightVariables": [{}],
        "customRichMediaEvents": [{}],
        "dateRange": {},
        "floodlightConfigId": {},
        "metricNames": [],
        "perInteractionDimensions": [{}],
        "reportProperties": {
            "clicksLookbackWindow": 0,
            "impressionsLookbackWindow": 0,
            "includeAttributedIPConversions": False,
            "includeUnattributedCookieConversions": False,
            "includeUnattributedIPConversions": False,
            "maximumClickInteractions": 0,
            "maximumImpressionInteractions": 0,
            "maximumInteractionGap": 0,
            "pivotOnInteractionPath": False
        }
    },
    "reachCriteria": {
        "activities": {},
        "customRichMediaEvents": {},
        "dateRange": {},
        "dimensionFilters": [{}],
        "dimensions": [{}],
        "enableAllDimensionCombinations": False,
        "metricNames": [],
        "reachByFrequencyMetricNames": []
    },
    "schedule": {
        "active": False,
        "every": 0,
        "expirationDate": "",
        "repeats": "",
        "repeatsOnWeekDays": [],
        "runsOnDayOfMonth": "",
        "startDate": ""
    },
    "subAccountId": "",
    "type": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/reports"

payload <- "{\n  \"accountId\": \"\",\n  \"criteria\": {\n    \"activities\": {\n      \"filters\": [\n        {\n          \"dimensionName\": \"\",\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"matchType\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"kind\": \"\",\n      \"metricNames\": []\n    },\n    \"customRichMediaEvents\": {\n      \"filteredEventIds\": [\n        {}\n      ],\n      \"kind\": \"\"\n    },\n    \"dateRange\": {\n      \"endDate\": \"\",\n      \"kind\": \"\",\n      \"relativeDateRange\": \"\",\n      \"startDate\": \"\"\n    },\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sortOrder\": \"\"\n      }\n    ],\n    \"metricNames\": []\n  },\n  \"crossDimensionReachCriteria\": {\n    \"breakdown\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimension\": \"\",\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"metricNames\": [],\n    \"overlapMetricNames\": [],\n    \"pivoted\": false\n  },\n  \"delivery\": {\n    \"emailOwner\": false,\n    \"emailOwnerDeliveryType\": \"\",\n    \"message\": \"\",\n    \"recipients\": [\n      {\n        \"deliveryType\": \"\",\n        \"email\": \"\",\n        \"kind\": \"\"\n      }\n    ]\n  },\n  \"etag\": \"\",\n  \"fileName\": \"\",\n  \"floodlightCriteria\": {\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"reportProperties\": {\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false\n    }\n  },\n  \"format\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedTime\": \"\",\n  \"name\": \"\",\n  \"ownerProfileId\": \"\",\n  \"pathAttributionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {\n      \"fallbackName\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"rules\": [\n        {\n          \"disjunctiveMatchStatements\": [\n            {\n              \"eventFilters\": [\n                {\n                  \"dimensionFilter\": {\n                    \"dimensionName\": \"\",\n                    \"ids\": [],\n                    \"kind\": \"\",\n                    \"matchType\": \"\",\n                    \"values\": []\n                  },\n                  \"kind\": \"\"\n                }\n              ],\n              \"kind\": \"\"\n            }\n          ],\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {\n        \"eventFilters\": [\n          {}\n        ],\n        \"kind\": \"\",\n        \"pathMatchPosition\": \"\"\n      }\n    ]\n  },\n  \"pathCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {},\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {}\n    ]\n  },\n  \"pathToConversionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"conversionDimensions\": [\n      {}\n    ],\n    \"customFloodlightVariables\": [\n      {}\n    ],\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"perInteractionDimensions\": [\n      {}\n    ],\n    \"reportProperties\": {\n      \"clicksLookbackWindow\": 0,\n      \"impressionsLookbackWindow\": 0,\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false,\n      \"maximumClickInteractions\": 0,\n      \"maximumImpressionInteractions\": 0,\n      \"maximumInteractionGap\": 0,\n      \"pivotOnInteractionPath\": false\n    }\n  },\n  \"reachCriteria\": {\n    \"activities\": {},\n    \"customRichMediaEvents\": {},\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"enableAllDimensionCombinations\": false,\n    \"metricNames\": [],\n    \"reachByFrequencyMetricNames\": []\n  },\n  \"schedule\": {\n    \"active\": false,\n    \"every\": 0,\n    \"expirationDate\": \"\",\n    \"repeats\": \"\",\n    \"repeatsOnWeekDays\": [],\n    \"runsOnDayOfMonth\": \"\",\n    \"startDate\": \"\"\n  },\n  \"subAccountId\": \"\",\n  \"type\": \"\"\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}}/userprofiles/:profileId/reports")

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  \"accountId\": \"\",\n  \"criteria\": {\n    \"activities\": {\n      \"filters\": [\n        {\n          \"dimensionName\": \"\",\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"matchType\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"kind\": \"\",\n      \"metricNames\": []\n    },\n    \"customRichMediaEvents\": {\n      \"filteredEventIds\": [\n        {}\n      ],\n      \"kind\": \"\"\n    },\n    \"dateRange\": {\n      \"endDate\": \"\",\n      \"kind\": \"\",\n      \"relativeDateRange\": \"\",\n      \"startDate\": \"\"\n    },\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sortOrder\": \"\"\n      }\n    ],\n    \"metricNames\": []\n  },\n  \"crossDimensionReachCriteria\": {\n    \"breakdown\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimension\": \"\",\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"metricNames\": [],\n    \"overlapMetricNames\": [],\n    \"pivoted\": false\n  },\n  \"delivery\": {\n    \"emailOwner\": false,\n    \"emailOwnerDeliveryType\": \"\",\n    \"message\": \"\",\n    \"recipients\": [\n      {\n        \"deliveryType\": \"\",\n        \"email\": \"\",\n        \"kind\": \"\"\n      }\n    ]\n  },\n  \"etag\": \"\",\n  \"fileName\": \"\",\n  \"floodlightCriteria\": {\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"reportProperties\": {\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false\n    }\n  },\n  \"format\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedTime\": \"\",\n  \"name\": \"\",\n  \"ownerProfileId\": \"\",\n  \"pathAttributionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {\n      \"fallbackName\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"rules\": [\n        {\n          \"disjunctiveMatchStatements\": [\n            {\n              \"eventFilters\": [\n                {\n                  \"dimensionFilter\": {\n                    \"dimensionName\": \"\",\n                    \"ids\": [],\n                    \"kind\": \"\",\n                    \"matchType\": \"\",\n                    \"values\": []\n                  },\n                  \"kind\": \"\"\n                }\n              ],\n              \"kind\": \"\"\n            }\n          ],\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {\n        \"eventFilters\": [\n          {}\n        ],\n        \"kind\": \"\",\n        \"pathMatchPosition\": \"\"\n      }\n    ]\n  },\n  \"pathCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {},\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {}\n    ]\n  },\n  \"pathToConversionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"conversionDimensions\": [\n      {}\n    ],\n    \"customFloodlightVariables\": [\n      {}\n    ],\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"perInteractionDimensions\": [\n      {}\n    ],\n    \"reportProperties\": {\n      \"clicksLookbackWindow\": 0,\n      \"impressionsLookbackWindow\": 0,\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false,\n      \"maximumClickInteractions\": 0,\n      \"maximumImpressionInteractions\": 0,\n      \"maximumInteractionGap\": 0,\n      \"pivotOnInteractionPath\": false\n    }\n  },\n  \"reachCriteria\": {\n    \"activities\": {},\n    \"customRichMediaEvents\": {},\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"enableAllDimensionCombinations\": false,\n    \"metricNames\": [],\n    \"reachByFrequencyMetricNames\": []\n  },\n  \"schedule\": {\n    \"active\": false,\n    \"every\": 0,\n    \"expirationDate\": \"\",\n    \"repeats\": \"\",\n    \"repeatsOnWeekDays\": [],\n    \"runsOnDayOfMonth\": \"\",\n    \"startDate\": \"\"\n  },\n  \"subAccountId\": \"\",\n  \"type\": \"\"\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/userprofiles/:profileId/reports') do |req|
  req.body = "{\n  \"accountId\": \"\",\n  \"criteria\": {\n    \"activities\": {\n      \"filters\": [\n        {\n          \"dimensionName\": \"\",\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"matchType\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"kind\": \"\",\n      \"metricNames\": []\n    },\n    \"customRichMediaEvents\": {\n      \"filteredEventIds\": [\n        {}\n      ],\n      \"kind\": \"\"\n    },\n    \"dateRange\": {\n      \"endDate\": \"\",\n      \"kind\": \"\",\n      \"relativeDateRange\": \"\",\n      \"startDate\": \"\"\n    },\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sortOrder\": \"\"\n      }\n    ],\n    \"metricNames\": []\n  },\n  \"crossDimensionReachCriteria\": {\n    \"breakdown\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimension\": \"\",\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"metricNames\": [],\n    \"overlapMetricNames\": [],\n    \"pivoted\": false\n  },\n  \"delivery\": {\n    \"emailOwner\": false,\n    \"emailOwnerDeliveryType\": \"\",\n    \"message\": \"\",\n    \"recipients\": [\n      {\n        \"deliveryType\": \"\",\n        \"email\": \"\",\n        \"kind\": \"\"\n      }\n    ]\n  },\n  \"etag\": \"\",\n  \"fileName\": \"\",\n  \"floodlightCriteria\": {\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"reportProperties\": {\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false\n    }\n  },\n  \"format\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedTime\": \"\",\n  \"name\": \"\",\n  \"ownerProfileId\": \"\",\n  \"pathAttributionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {\n      \"fallbackName\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"rules\": [\n        {\n          \"disjunctiveMatchStatements\": [\n            {\n              \"eventFilters\": [\n                {\n                  \"dimensionFilter\": {\n                    \"dimensionName\": \"\",\n                    \"ids\": [],\n                    \"kind\": \"\",\n                    \"matchType\": \"\",\n                    \"values\": []\n                  },\n                  \"kind\": \"\"\n                }\n              ],\n              \"kind\": \"\"\n            }\n          ],\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {\n        \"eventFilters\": [\n          {}\n        ],\n        \"kind\": \"\",\n        \"pathMatchPosition\": \"\"\n      }\n    ]\n  },\n  \"pathCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {},\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {}\n    ]\n  },\n  \"pathToConversionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"conversionDimensions\": [\n      {}\n    ],\n    \"customFloodlightVariables\": [\n      {}\n    ],\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"perInteractionDimensions\": [\n      {}\n    ],\n    \"reportProperties\": {\n      \"clicksLookbackWindow\": 0,\n      \"impressionsLookbackWindow\": 0,\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false,\n      \"maximumClickInteractions\": 0,\n      \"maximumImpressionInteractions\": 0,\n      \"maximumInteractionGap\": 0,\n      \"pivotOnInteractionPath\": false\n    }\n  },\n  \"reachCriteria\": {\n    \"activities\": {},\n    \"customRichMediaEvents\": {},\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"enableAllDimensionCombinations\": false,\n    \"metricNames\": [],\n    \"reachByFrequencyMetricNames\": []\n  },\n  \"schedule\": {\n    \"active\": false,\n    \"every\": 0,\n    \"expirationDate\": \"\",\n    \"repeats\": \"\",\n    \"repeatsOnWeekDays\": [],\n    \"runsOnDayOfMonth\": \"\",\n    \"startDate\": \"\"\n  },\n  \"subAccountId\": \"\",\n  \"type\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/reports";

    let payload = json!({
        "accountId": "",
        "criteria": json!({
            "activities": json!({
                "filters": (
                    json!({
                        "dimensionName": "",
                        "etag": "",
                        "id": "",
                        "kind": "",
                        "matchType": "",
                        "value": ""
                    })
                ),
                "kind": "",
                "metricNames": ()
            }),
            "customRichMediaEvents": json!({
                "filteredEventIds": (json!({})),
                "kind": ""
            }),
            "dateRange": json!({
                "endDate": "",
                "kind": "",
                "relativeDateRange": "",
                "startDate": ""
            }),
            "dimensionFilters": (json!({})),
            "dimensions": (
                json!({
                    "kind": "",
                    "name": "",
                    "sortOrder": ""
                })
            ),
            "metricNames": ()
        }),
        "crossDimensionReachCriteria": json!({
            "breakdown": (json!({})),
            "dateRange": json!({}),
            "dimension": "",
            "dimensionFilters": (json!({})),
            "metricNames": (),
            "overlapMetricNames": (),
            "pivoted": false
        }),
        "delivery": json!({
            "emailOwner": false,
            "emailOwnerDeliveryType": "",
            "message": "",
            "recipients": (
                json!({
                    "deliveryType": "",
                    "email": "",
                    "kind": ""
                })
            )
        }),
        "etag": "",
        "fileName": "",
        "floodlightCriteria": json!({
            "customRichMediaEvents": (json!({})),
            "dateRange": json!({}),
            "dimensionFilters": (json!({})),
            "dimensions": (json!({})),
            "floodlightConfigId": json!({}),
            "metricNames": (),
            "reportProperties": json!({
                "includeAttributedIPConversions": false,
                "includeUnattributedCookieConversions": false,
                "includeUnattributedIPConversions": false
            })
        }),
        "format": "",
        "id": "",
        "kind": "",
        "lastModifiedTime": "",
        "name": "",
        "ownerProfileId": "",
        "pathAttributionCriteria": json!({
            "activityFilters": (json!({})),
            "customChannelGrouping": json!({
                "fallbackName": "",
                "kind": "",
                "name": "",
                "rules": (
                    json!({
                        "disjunctiveMatchStatements": (
                            json!({
                                "eventFilters": (
                                    json!({
                                        "dimensionFilter": json!({
                                            "dimensionName": "",
                                            "ids": (),
                                            "kind": "",
                                            "matchType": "",
                                            "values": ()
                                        }),
                                        "kind": ""
                                    })
                                ),
                                "kind": ""
                            })
                        ),
                        "kind": "",
                        "name": ""
                    })
                )
            }),
            "dateRange": json!({}),
            "dimensions": (json!({})),
            "floodlightConfigId": json!({}),
            "metricNames": (),
            "pathFilters": (
                json!({
                    "eventFilters": (json!({})),
                    "kind": "",
                    "pathMatchPosition": ""
                })
            )
        }),
        "pathCriteria": json!({
            "activityFilters": (json!({})),
            "customChannelGrouping": json!({}),
            "dateRange": json!({}),
            "dimensions": (json!({})),
            "floodlightConfigId": json!({}),
            "metricNames": (),
            "pathFilters": (json!({}))
        }),
        "pathToConversionCriteria": json!({
            "activityFilters": (json!({})),
            "conversionDimensions": (json!({})),
            "customFloodlightVariables": (json!({})),
            "customRichMediaEvents": (json!({})),
            "dateRange": json!({}),
            "floodlightConfigId": json!({}),
            "metricNames": (),
            "perInteractionDimensions": (json!({})),
            "reportProperties": json!({
                "clicksLookbackWindow": 0,
                "impressionsLookbackWindow": 0,
                "includeAttributedIPConversions": false,
                "includeUnattributedCookieConversions": false,
                "includeUnattributedIPConversions": false,
                "maximumClickInteractions": 0,
                "maximumImpressionInteractions": 0,
                "maximumInteractionGap": 0,
                "pivotOnInteractionPath": false
            })
        }),
        "reachCriteria": json!({
            "activities": json!({}),
            "customRichMediaEvents": json!({}),
            "dateRange": json!({}),
            "dimensionFilters": (json!({})),
            "dimensions": (json!({})),
            "enableAllDimensionCombinations": false,
            "metricNames": (),
            "reachByFrequencyMetricNames": ()
        }),
        "schedule": json!({
            "active": false,
            "every": 0,
            "expirationDate": "",
            "repeats": "",
            "repeatsOnWeekDays": (),
            "runsOnDayOfMonth": "",
            "startDate": ""
        }),
        "subAccountId": "",
        "type": ""
    });

    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}}/userprofiles/:profileId/reports \
  --header 'content-type: application/json' \
  --data '{
  "accountId": "",
  "criteria": {
    "activities": {
      "filters": [
        {
          "dimensionName": "",
          "etag": "",
          "id": "",
          "kind": "",
          "matchType": "",
          "value": ""
        }
      ],
      "kind": "",
      "metricNames": []
    },
    "customRichMediaEvents": {
      "filteredEventIds": [
        {}
      ],
      "kind": ""
    },
    "dateRange": {
      "endDate": "",
      "kind": "",
      "relativeDateRange": "",
      "startDate": ""
    },
    "dimensionFilters": [
      {}
    ],
    "dimensions": [
      {
        "kind": "",
        "name": "",
        "sortOrder": ""
      }
    ],
    "metricNames": []
  },
  "crossDimensionReachCriteria": {
    "breakdown": [
      {}
    ],
    "dateRange": {},
    "dimension": "",
    "dimensionFilters": [
      {}
    ],
    "metricNames": [],
    "overlapMetricNames": [],
    "pivoted": false
  },
  "delivery": {
    "emailOwner": false,
    "emailOwnerDeliveryType": "",
    "message": "",
    "recipients": [
      {
        "deliveryType": "",
        "email": "",
        "kind": ""
      }
    ]
  },
  "etag": "",
  "fileName": "",
  "floodlightCriteria": {
    "customRichMediaEvents": [
      {}
    ],
    "dateRange": {},
    "dimensionFilters": [
      {}
    ],
    "dimensions": [
      {}
    ],
    "floodlightConfigId": {},
    "metricNames": [],
    "reportProperties": {
      "includeAttributedIPConversions": false,
      "includeUnattributedCookieConversions": false,
      "includeUnattributedIPConversions": false
    }
  },
  "format": "",
  "id": "",
  "kind": "",
  "lastModifiedTime": "",
  "name": "",
  "ownerProfileId": "",
  "pathAttributionCriteria": {
    "activityFilters": [
      {}
    ],
    "customChannelGrouping": {
      "fallbackName": "",
      "kind": "",
      "name": "",
      "rules": [
        {
          "disjunctiveMatchStatements": [
            {
              "eventFilters": [
                {
                  "dimensionFilter": {
                    "dimensionName": "",
                    "ids": [],
                    "kind": "",
                    "matchType": "",
                    "values": []
                  },
                  "kind": ""
                }
              ],
              "kind": ""
            }
          ],
          "kind": "",
          "name": ""
        }
      ]
    },
    "dateRange": {},
    "dimensions": [
      {}
    ],
    "floodlightConfigId": {},
    "metricNames": [],
    "pathFilters": [
      {
        "eventFilters": [
          {}
        ],
        "kind": "",
        "pathMatchPosition": ""
      }
    ]
  },
  "pathCriteria": {
    "activityFilters": [
      {}
    ],
    "customChannelGrouping": {},
    "dateRange": {},
    "dimensions": [
      {}
    ],
    "floodlightConfigId": {},
    "metricNames": [],
    "pathFilters": [
      {}
    ]
  },
  "pathToConversionCriteria": {
    "activityFilters": [
      {}
    ],
    "conversionDimensions": [
      {}
    ],
    "customFloodlightVariables": [
      {}
    ],
    "customRichMediaEvents": [
      {}
    ],
    "dateRange": {},
    "floodlightConfigId": {},
    "metricNames": [],
    "perInteractionDimensions": [
      {}
    ],
    "reportProperties": {
      "clicksLookbackWindow": 0,
      "impressionsLookbackWindow": 0,
      "includeAttributedIPConversions": false,
      "includeUnattributedCookieConversions": false,
      "includeUnattributedIPConversions": false,
      "maximumClickInteractions": 0,
      "maximumImpressionInteractions": 0,
      "maximumInteractionGap": 0,
      "pivotOnInteractionPath": false
    }
  },
  "reachCriteria": {
    "activities": {},
    "customRichMediaEvents": {},
    "dateRange": {},
    "dimensionFilters": [
      {}
    ],
    "dimensions": [
      {}
    ],
    "enableAllDimensionCombinations": false,
    "metricNames": [],
    "reachByFrequencyMetricNames": []
  },
  "schedule": {
    "active": false,
    "every": 0,
    "expirationDate": "",
    "repeats": "",
    "repeatsOnWeekDays": [],
    "runsOnDayOfMonth": "",
    "startDate": ""
  },
  "subAccountId": "",
  "type": ""
}'
echo '{
  "accountId": "",
  "criteria": {
    "activities": {
      "filters": [
        {
          "dimensionName": "",
          "etag": "",
          "id": "",
          "kind": "",
          "matchType": "",
          "value": ""
        }
      ],
      "kind": "",
      "metricNames": []
    },
    "customRichMediaEvents": {
      "filteredEventIds": [
        {}
      ],
      "kind": ""
    },
    "dateRange": {
      "endDate": "",
      "kind": "",
      "relativeDateRange": "",
      "startDate": ""
    },
    "dimensionFilters": [
      {}
    ],
    "dimensions": [
      {
        "kind": "",
        "name": "",
        "sortOrder": ""
      }
    ],
    "metricNames": []
  },
  "crossDimensionReachCriteria": {
    "breakdown": [
      {}
    ],
    "dateRange": {},
    "dimension": "",
    "dimensionFilters": [
      {}
    ],
    "metricNames": [],
    "overlapMetricNames": [],
    "pivoted": false
  },
  "delivery": {
    "emailOwner": false,
    "emailOwnerDeliveryType": "",
    "message": "",
    "recipients": [
      {
        "deliveryType": "",
        "email": "",
        "kind": ""
      }
    ]
  },
  "etag": "",
  "fileName": "",
  "floodlightCriteria": {
    "customRichMediaEvents": [
      {}
    ],
    "dateRange": {},
    "dimensionFilters": [
      {}
    ],
    "dimensions": [
      {}
    ],
    "floodlightConfigId": {},
    "metricNames": [],
    "reportProperties": {
      "includeAttributedIPConversions": false,
      "includeUnattributedCookieConversions": false,
      "includeUnattributedIPConversions": false
    }
  },
  "format": "",
  "id": "",
  "kind": "",
  "lastModifiedTime": "",
  "name": "",
  "ownerProfileId": "",
  "pathAttributionCriteria": {
    "activityFilters": [
      {}
    ],
    "customChannelGrouping": {
      "fallbackName": "",
      "kind": "",
      "name": "",
      "rules": [
        {
          "disjunctiveMatchStatements": [
            {
              "eventFilters": [
                {
                  "dimensionFilter": {
                    "dimensionName": "",
                    "ids": [],
                    "kind": "",
                    "matchType": "",
                    "values": []
                  },
                  "kind": ""
                }
              ],
              "kind": ""
            }
          ],
          "kind": "",
          "name": ""
        }
      ]
    },
    "dateRange": {},
    "dimensions": [
      {}
    ],
    "floodlightConfigId": {},
    "metricNames": [],
    "pathFilters": [
      {
        "eventFilters": [
          {}
        ],
        "kind": "",
        "pathMatchPosition": ""
      }
    ]
  },
  "pathCriteria": {
    "activityFilters": [
      {}
    ],
    "customChannelGrouping": {},
    "dateRange": {},
    "dimensions": [
      {}
    ],
    "floodlightConfigId": {},
    "metricNames": [],
    "pathFilters": [
      {}
    ]
  },
  "pathToConversionCriteria": {
    "activityFilters": [
      {}
    ],
    "conversionDimensions": [
      {}
    ],
    "customFloodlightVariables": [
      {}
    ],
    "customRichMediaEvents": [
      {}
    ],
    "dateRange": {},
    "floodlightConfigId": {},
    "metricNames": [],
    "perInteractionDimensions": [
      {}
    ],
    "reportProperties": {
      "clicksLookbackWindow": 0,
      "impressionsLookbackWindow": 0,
      "includeAttributedIPConversions": false,
      "includeUnattributedCookieConversions": false,
      "includeUnattributedIPConversions": false,
      "maximumClickInteractions": 0,
      "maximumImpressionInteractions": 0,
      "maximumInteractionGap": 0,
      "pivotOnInteractionPath": false
    }
  },
  "reachCriteria": {
    "activities": {},
    "customRichMediaEvents": {},
    "dateRange": {},
    "dimensionFilters": [
      {}
    ],
    "dimensions": [
      {}
    ],
    "enableAllDimensionCombinations": false,
    "metricNames": [],
    "reachByFrequencyMetricNames": []
  },
  "schedule": {
    "active": false,
    "every": 0,
    "expirationDate": "",
    "repeats": "",
    "repeatsOnWeekDays": [],
    "runsOnDayOfMonth": "",
    "startDate": ""
  },
  "subAccountId": "",
  "type": ""
}' |  \
  http POST {{baseUrl}}/userprofiles/:profileId/reports \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "accountId": "",\n  "criteria": {\n    "activities": {\n      "filters": [\n        {\n          "dimensionName": "",\n          "etag": "",\n          "id": "",\n          "kind": "",\n          "matchType": "",\n          "value": ""\n        }\n      ],\n      "kind": "",\n      "metricNames": []\n    },\n    "customRichMediaEvents": {\n      "filteredEventIds": [\n        {}\n      ],\n      "kind": ""\n    },\n    "dateRange": {\n      "endDate": "",\n      "kind": "",\n      "relativeDateRange": "",\n      "startDate": ""\n    },\n    "dimensionFilters": [\n      {}\n    ],\n    "dimensions": [\n      {\n        "kind": "",\n        "name": "",\n        "sortOrder": ""\n      }\n    ],\n    "metricNames": []\n  },\n  "crossDimensionReachCriteria": {\n    "breakdown": [\n      {}\n    ],\n    "dateRange": {},\n    "dimension": "",\n    "dimensionFilters": [\n      {}\n    ],\n    "metricNames": [],\n    "overlapMetricNames": [],\n    "pivoted": false\n  },\n  "delivery": {\n    "emailOwner": false,\n    "emailOwnerDeliveryType": "",\n    "message": "",\n    "recipients": [\n      {\n        "deliveryType": "",\n        "email": "",\n        "kind": ""\n      }\n    ]\n  },\n  "etag": "",\n  "fileName": "",\n  "floodlightCriteria": {\n    "customRichMediaEvents": [\n      {}\n    ],\n    "dateRange": {},\n    "dimensionFilters": [\n      {}\n    ],\n    "dimensions": [\n      {}\n    ],\n    "floodlightConfigId": {},\n    "metricNames": [],\n    "reportProperties": {\n      "includeAttributedIPConversions": false,\n      "includeUnattributedCookieConversions": false,\n      "includeUnattributedIPConversions": false\n    }\n  },\n  "format": "",\n  "id": "",\n  "kind": "",\n  "lastModifiedTime": "",\n  "name": "",\n  "ownerProfileId": "",\n  "pathAttributionCriteria": {\n    "activityFilters": [\n      {}\n    ],\n    "customChannelGrouping": {\n      "fallbackName": "",\n      "kind": "",\n      "name": "",\n      "rules": [\n        {\n          "disjunctiveMatchStatements": [\n            {\n              "eventFilters": [\n                {\n                  "dimensionFilter": {\n                    "dimensionName": "",\n                    "ids": [],\n                    "kind": "",\n                    "matchType": "",\n                    "values": []\n                  },\n                  "kind": ""\n                }\n              ],\n              "kind": ""\n            }\n          ],\n          "kind": "",\n          "name": ""\n        }\n      ]\n    },\n    "dateRange": {},\n    "dimensions": [\n      {}\n    ],\n    "floodlightConfigId": {},\n    "metricNames": [],\n    "pathFilters": [\n      {\n        "eventFilters": [\n          {}\n        ],\n        "kind": "",\n        "pathMatchPosition": ""\n      }\n    ]\n  },\n  "pathCriteria": {\n    "activityFilters": [\n      {}\n    ],\n    "customChannelGrouping": {},\n    "dateRange": {},\n    "dimensions": [\n      {}\n    ],\n    "floodlightConfigId": {},\n    "metricNames": [],\n    "pathFilters": [\n      {}\n    ]\n  },\n  "pathToConversionCriteria": {\n    "activityFilters": [\n      {}\n    ],\n    "conversionDimensions": [\n      {}\n    ],\n    "customFloodlightVariables": [\n      {}\n    ],\n    "customRichMediaEvents": [\n      {}\n    ],\n    "dateRange": {},\n    "floodlightConfigId": {},\n    "metricNames": [],\n    "perInteractionDimensions": [\n      {}\n    ],\n    "reportProperties": {\n      "clicksLookbackWindow": 0,\n      "impressionsLookbackWindow": 0,\n      "includeAttributedIPConversions": false,\n      "includeUnattributedCookieConversions": false,\n      "includeUnattributedIPConversions": false,\n      "maximumClickInteractions": 0,\n      "maximumImpressionInteractions": 0,\n      "maximumInteractionGap": 0,\n      "pivotOnInteractionPath": false\n    }\n  },\n  "reachCriteria": {\n    "activities": {},\n    "customRichMediaEvents": {},\n    "dateRange": {},\n    "dimensionFilters": [\n      {}\n    ],\n    "dimensions": [\n      {}\n    ],\n    "enableAllDimensionCombinations": false,\n    "metricNames": [],\n    "reachByFrequencyMetricNames": []\n  },\n  "schedule": {\n    "active": false,\n    "every": 0,\n    "expirationDate": "",\n    "repeats": "",\n    "repeatsOnWeekDays": [],\n    "runsOnDayOfMonth": "",\n    "startDate": ""\n  },\n  "subAccountId": "",\n  "type": ""\n}' \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/reports
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "accountId": "",
  "criteria": [
    "activities": [
      "filters": [
        [
          "dimensionName": "",
          "etag": "",
          "id": "",
          "kind": "",
          "matchType": "",
          "value": ""
        ]
      ],
      "kind": "",
      "metricNames": []
    ],
    "customRichMediaEvents": [
      "filteredEventIds": [[]],
      "kind": ""
    ],
    "dateRange": [
      "endDate": "",
      "kind": "",
      "relativeDateRange": "",
      "startDate": ""
    ],
    "dimensionFilters": [[]],
    "dimensions": [
      [
        "kind": "",
        "name": "",
        "sortOrder": ""
      ]
    ],
    "metricNames": []
  ],
  "crossDimensionReachCriteria": [
    "breakdown": [[]],
    "dateRange": [],
    "dimension": "",
    "dimensionFilters": [[]],
    "metricNames": [],
    "overlapMetricNames": [],
    "pivoted": false
  ],
  "delivery": [
    "emailOwner": false,
    "emailOwnerDeliveryType": "",
    "message": "",
    "recipients": [
      [
        "deliveryType": "",
        "email": "",
        "kind": ""
      ]
    ]
  ],
  "etag": "",
  "fileName": "",
  "floodlightCriteria": [
    "customRichMediaEvents": [[]],
    "dateRange": [],
    "dimensionFilters": [[]],
    "dimensions": [[]],
    "floodlightConfigId": [],
    "metricNames": [],
    "reportProperties": [
      "includeAttributedIPConversions": false,
      "includeUnattributedCookieConversions": false,
      "includeUnattributedIPConversions": false
    ]
  ],
  "format": "",
  "id": "",
  "kind": "",
  "lastModifiedTime": "",
  "name": "",
  "ownerProfileId": "",
  "pathAttributionCriteria": [
    "activityFilters": [[]],
    "customChannelGrouping": [
      "fallbackName": "",
      "kind": "",
      "name": "",
      "rules": [
        [
          "disjunctiveMatchStatements": [
            [
              "eventFilters": [
                [
                  "dimensionFilter": [
                    "dimensionName": "",
                    "ids": [],
                    "kind": "",
                    "matchType": "",
                    "values": []
                  ],
                  "kind": ""
                ]
              ],
              "kind": ""
            ]
          ],
          "kind": "",
          "name": ""
        ]
      ]
    ],
    "dateRange": [],
    "dimensions": [[]],
    "floodlightConfigId": [],
    "metricNames": [],
    "pathFilters": [
      [
        "eventFilters": [[]],
        "kind": "",
        "pathMatchPosition": ""
      ]
    ]
  ],
  "pathCriteria": [
    "activityFilters": [[]],
    "customChannelGrouping": [],
    "dateRange": [],
    "dimensions": [[]],
    "floodlightConfigId": [],
    "metricNames": [],
    "pathFilters": [[]]
  ],
  "pathToConversionCriteria": [
    "activityFilters": [[]],
    "conversionDimensions": [[]],
    "customFloodlightVariables": [[]],
    "customRichMediaEvents": [[]],
    "dateRange": [],
    "floodlightConfigId": [],
    "metricNames": [],
    "perInteractionDimensions": [[]],
    "reportProperties": [
      "clicksLookbackWindow": 0,
      "impressionsLookbackWindow": 0,
      "includeAttributedIPConversions": false,
      "includeUnattributedCookieConversions": false,
      "includeUnattributedIPConversions": false,
      "maximumClickInteractions": 0,
      "maximumImpressionInteractions": 0,
      "maximumInteractionGap": 0,
      "pivotOnInteractionPath": false
    ]
  ],
  "reachCriteria": [
    "activities": [],
    "customRichMediaEvents": [],
    "dateRange": [],
    "dimensionFilters": [[]],
    "dimensions": [[]],
    "enableAllDimensionCombinations": false,
    "metricNames": [],
    "reachByFrequencyMetricNames": []
  ],
  "schedule": [
    "active": false,
    "every": 0,
    "expirationDate": "",
    "repeats": "",
    "repeatsOnWeekDays": [],
    "runsOnDayOfMonth": "",
    "startDate": ""
  ],
  "subAccountId": "",
  "type": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/reports")! 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 dfareporting.reports.list
{{baseUrl}}/userprofiles/:profileId/reports
QUERY PARAMS

profileId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/reports");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/reports")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/reports"

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}}/userprofiles/:profileId/reports"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/reports");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/reports"

	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/userprofiles/:profileId/reports HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/reports")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/reports"))
    .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}}/userprofiles/:profileId/reports")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/reports")
  .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}}/userprofiles/:profileId/reports');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/reports'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/reports';
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}}/userprofiles/:profileId/reports',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/reports")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/reports',
  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}}/userprofiles/:profileId/reports'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/reports');

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}}/userprofiles/:profileId/reports'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/reports';
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}}/userprofiles/:profileId/reports"]
                                                       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}}/userprofiles/:profileId/reports" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/reports",
  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}}/userprofiles/:profileId/reports');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/reports');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/reports');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/reports' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/reports' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/reports")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/reports"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/reports"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/reports")

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/userprofiles/:profileId/reports') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/reports";

    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}}/userprofiles/:profileId/reports
http GET {{baseUrl}}/userprofiles/:profileId/reports
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/reports
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/reports")! 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 dfareporting.reports.patch
{{baseUrl}}/userprofiles/:profileId/reports/:reportId
QUERY PARAMS

profileId
reportId
BODY json

{
  "accountId": "",
  "criteria": {
    "activities": {
      "filters": [
        {
          "dimensionName": "",
          "etag": "",
          "id": "",
          "kind": "",
          "matchType": "",
          "value": ""
        }
      ],
      "kind": "",
      "metricNames": []
    },
    "customRichMediaEvents": {
      "filteredEventIds": [
        {}
      ],
      "kind": ""
    },
    "dateRange": {
      "endDate": "",
      "kind": "",
      "relativeDateRange": "",
      "startDate": ""
    },
    "dimensionFilters": [
      {}
    ],
    "dimensions": [
      {
        "kind": "",
        "name": "",
        "sortOrder": ""
      }
    ],
    "metricNames": []
  },
  "crossDimensionReachCriteria": {
    "breakdown": [
      {}
    ],
    "dateRange": {},
    "dimension": "",
    "dimensionFilters": [
      {}
    ],
    "metricNames": [],
    "overlapMetricNames": [],
    "pivoted": false
  },
  "delivery": {
    "emailOwner": false,
    "emailOwnerDeliveryType": "",
    "message": "",
    "recipients": [
      {
        "deliveryType": "",
        "email": "",
        "kind": ""
      }
    ]
  },
  "etag": "",
  "fileName": "",
  "floodlightCriteria": {
    "customRichMediaEvents": [
      {}
    ],
    "dateRange": {},
    "dimensionFilters": [
      {}
    ],
    "dimensions": [
      {}
    ],
    "floodlightConfigId": {},
    "metricNames": [],
    "reportProperties": {
      "includeAttributedIPConversions": false,
      "includeUnattributedCookieConversions": false,
      "includeUnattributedIPConversions": false
    }
  },
  "format": "",
  "id": "",
  "kind": "",
  "lastModifiedTime": "",
  "name": "",
  "ownerProfileId": "",
  "pathAttributionCriteria": {
    "activityFilters": [
      {}
    ],
    "customChannelGrouping": {
      "fallbackName": "",
      "kind": "",
      "name": "",
      "rules": [
        {
          "disjunctiveMatchStatements": [
            {
              "eventFilters": [
                {
                  "dimensionFilter": {
                    "dimensionName": "",
                    "ids": [],
                    "kind": "",
                    "matchType": "",
                    "values": []
                  },
                  "kind": ""
                }
              ],
              "kind": ""
            }
          ],
          "kind": "",
          "name": ""
        }
      ]
    },
    "dateRange": {},
    "dimensions": [
      {}
    ],
    "floodlightConfigId": {},
    "metricNames": [],
    "pathFilters": [
      {
        "eventFilters": [
          {}
        ],
        "kind": "",
        "pathMatchPosition": ""
      }
    ]
  },
  "pathCriteria": {
    "activityFilters": [
      {}
    ],
    "customChannelGrouping": {},
    "dateRange": {},
    "dimensions": [
      {}
    ],
    "floodlightConfigId": {},
    "metricNames": [],
    "pathFilters": [
      {}
    ]
  },
  "pathToConversionCriteria": {
    "activityFilters": [
      {}
    ],
    "conversionDimensions": [
      {}
    ],
    "customFloodlightVariables": [
      {}
    ],
    "customRichMediaEvents": [
      {}
    ],
    "dateRange": {},
    "floodlightConfigId": {},
    "metricNames": [],
    "perInteractionDimensions": [
      {}
    ],
    "reportProperties": {
      "clicksLookbackWindow": 0,
      "impressionsLookbackWindow": 0,
      "includeAttributedIPConversions": false,
      "includeUnattributedCookieConversions": false,
      "includeUnattributedIPConversions": false,
      "maximumClickInteractions": 0,
      "maximumImpressionInteractions": 0,
      "maximumInteractionGap": 0,
      "pivotOnInteractionPath": false
    }
  },
  "reachCriteria": {
    "activities": {},
    "customRichMediaEvents": {},
    "dateRange": {},
    "dimensionFilters": [
      {}
    ],
    "dimensions": [
      {}
    ],
    "enableAllDimensionCombinations": false,
    "metricNames": [],
    "reachByFrequencyMetricNames": []
  },
  "schedule": {
    "active": false,
    "every": 0,
    "expirationDate": "",
    "repeats": "",
    "repeatsOnWeekDays": [],
    "runsOnDayOfMonth": "",
    "startDate": ""
  },
  "subAccountId": "",
  "type": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/reports/:reportId");

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  \"accountId\": \"\",\n  \"criteria\": {\n    \"activities\": {\n      \"filters\": [\n        {\n          \"dimensionName\": \"\",\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"matchType\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"kind\": \"\",\n      \"metricNames\": []\n    },\n    \"customRichMediaEvents\": {\n      \"filteredEventIds\": [\n        {}\n      ],\n      \"kind\": \"\"\n    },\n    \"dateRange\": {\n      \"endDate\": \"\",\n      \"kind\": \"\",\n      \"relativeDateRange\": \"\",\n      \"startDate\": \"\"\n    },\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sortOrder\": \"\"\n      }\n    ],\n    \"metricNames\": []\n  },\n  \"crossDimensionReachCriteria\": {\n    \"breakdown\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimension\": \"\",\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"metricNames\": [],\n    \"overlapMetricNames\": [],\n    \"pivoted\": false\n  },\n  \"delivery\": {\n    \"emailOwner\": false,\n    \"emailOwnerDeliveryType\": \"\",\n    \"message\": \"\",\n    \"recipients\": [\n      {\n        \"deliveryType\": \"\",\n        \"email\": \"\",\n        \"kind\": \"\"\n      }\n    ]\n  },\n  \"etag\": \"\",\n  \"fileName\": \"\",\n  \"floodlightCriteria\": {\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"reportProperties\": {\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false\n    }\n  },\n  \"format\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedTime\": \"\",\n  \"name\": \"\",\n  \"ownerProfileId\": \"\",\n  \"pathAttributionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {\n      \"fallbackName\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"rules\": [\n        {\n          \"disjunctiveMatchStatements\": [\n            {\n              \"eventFilters\": [\n                {\n                  \"dimensionFilter\": {\n                    \"dimensionName\": \"\",\n                    \"ids\": [],\n                    \"kind\": \"\",\n                    \"matchType\": \"\",\n                    \"values\": []\n                  },\n                  \"kind\": \"\"\n                }\n              ],\n              \"kind\": \"\"\n            }\n          ],\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {\n        \"eventFilters\": [\n          {}\n        ],\n        \"kind\": \"\",\n        \"pathMatchPosition\": \"\"\n      }\n    ]\n  },\n  \"pathCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {},\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {}\n    ]\n  },\n  \"pathToConversionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"conversionDimensions\": [\n      {}\n    ],\n    \"customFloodlightVariables\": [\n      {}\n    ],\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"perInteractionDimensions\": [\n      {}\n    ],\n    \"reportProperties\": {\n      \"clicksLookbackWindow\": 0,\n      \"impressionsLookbackWindow\": 0,\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false,\n      \"maximumClickInteractions\": 0,\n      \"maximumImpressionInteractions\": 0,\n      \"maximumInteractionGap\": 0,\n      \"pivotOnInteractionPath\": false\n    }\n  },\n  \"reachCriteria\": {\n    \"activities\": {},\n    \"customRichMediaEvents\": {},\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"enableAllDimensionCombinations\": false,\n    \"metricNames\": [],\n    \"reachByFrequencyMetricNames\": []\n  },\n  \"schedule\": {\n    \"active\": false,\n    \"every\": 0,\n    \"expirationDate\": \"\",\n    \"repeats\": \"\",\n    \"repeatsOnWeekDays\": [],\n    \"runsOnDayOfMonth\": \"\",\n    \"startDate\": \"\"\n  },\n  \"subAccountId\": \"\",\n  \"type\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/patch "{{baseUrl}}/userprofiles/:profileId/reports/:reportId" {:content-type :json
                                                                                       :form-params {:accountId ""
                                                                                                     :criteria {:activities {:filters [{:dimensionName ""
                                                                                                                                        :etag ""
                                                                                                                                        :id ""
                                                                                                                                        :kind ""
                                                                                                                                        :matchType ""
                                                                                                                                        :value ""}]
                                                                                                                             :kind ""
                                                                                                                             :metricNames []}
                                                                                                                :customRichMediaEvents {:filteredEventIds [{}]
                                                                                                                                        :kind ""}
                                                                                                                :dateRange {:endDate ""
                                                                                                                            :kind ""
                                                                                                                            :relativeDateRange ""
                                                                                                                            :startDate ""}
                                                                                                                :dimensionFilters [{}]
                                                                                                                :dimensions [{:kind ""
                                                                                                                              :name ""
                                                                                                                              :sortOrder ""}]
                                                                                                                :metricNames []}
                                                                                                     :crossDimensionReachCriteria {:breakdown [{}]
                                                                                                                                   :dateRange {}
                                                                                                                                   :dimension ""
                                                                                                                                   :dimensionFilters [{}]
                                                                                                                                   :metricNames []
                                                                                                                                   :overlapMetricNames []
                                                                                                                                   :pivoted false}
                                                                                                     :delivery {:emailOwner false
                                                                                                                :emailOwnerDeliveryType ""
                                                                                                                :message ""
                                                                                                                :recipients [{:deliveryType ""
                                                                                                                              :email ""
                                                                                                                              :kind ""}]}
                                                                                                     :etag ""
                                                                                                     :fileName ""
                                                                                                     :floodlightCriteria {:customRichMediaEvents [{}]
                                                                                                                          :dateRange {}
                                                                                                                          :dimensionFilters [{}]
                                                                                                                          :dimensions [{}]
                                                                                                                          :floodlightConfigId {}
                                                                                                                          :metricNames []
                                                                                                                          :reportProperties {:includeAttributedIPConversions false
                                                                                                                                             :includeUnattributedCookieConversions false
                                                                                                                                             :includeUnattributedIPConversions false}}
                                                                                                     :format ""
                                                                                                     :id ""
                                                                                                     :kind ""
                                                                                                     :lastModifiedTime ""
                                                                                                     :name ""
                                                                                                     :ownerProfileId ""
                                                                                                     :pathAttributionCriteria {:activityFilters [{}]
                                                                                                                               :customChannelGrouping {:fallbackName ""
                                                                                                                                                       :kind ""
                                                                                                                                                       :name ""
                                                                                                                                                       :rules [{:disjunctiveMatchStatements [{:eventFilters [{:dimensionFilter {:dimensionName ""
                                                                                                                                                                                                                                :ids []
                                                                                                                                                                                                                                :kind ""
                                                                                                                                                                                                                                :matchType ""
                                                                                                                                                                                                                                :values []}
                                                                                                                                                                                                              :kind ""}]
                                                                                                                                                                                              :kind ""}]
                                                                                                                                                                :kind ""
                                                                                                                                                                :name ""}]}
                                                                                                                               :dateRange {}
                                                                                                                               :dimensions [{}]
                                                                                                                               :floodlightConfigId {}
                                                                                                                               :metricNames []
                                                                                                                               :pathFilters [{:eventFilters [{}]
                                                                                                                                              :kind ""
                                                                                                                                              :pathMatchPosition ""}]}
                                                                                                     :pathCriteria {:activityFilters [{}]
                                                                                                                    :customChannelGrouping {}
                                                                                                                    :dateRange {}
                                                                                                                    :dimensions [{}]
                                                                                                                    :floodlightConfigId {}
                                                                                                                    :metricNames []
                                                                                                                    :pathFilters [{}]}
                                                                                                     :pathToConversionCriteria {:activityFilters [{}]
                                                                                                                                :conversionDimensions [{}]
                                                                                                                                :customFloodlightVariables [{}]
                                                                                                                                :customRichMediaEvents [{}]
                                                                                                                                :dateRange {}
                                                                                                                                :floodlightConfigId {}
                                                                                                                                :metricNames []
                                                                                                                                :perInteractionDimensions [{}]
                                                                                                                                :reportProperties {:clicksLookbackWindow 0
                                                                                                                                                   :impressionsLookbackWindow 0
                                                                                                                                                   :includeAttributedIPConversions false
                                                                                                                                                   :includeUnattributedCookieConversions false
                                                                                                                                                   :includeUnattributedIPConversions false
                                                                                                                                                   :maximumClickInteractions 0
                                                                                                                                                   :maximumImpressionInteractions 0
                                                                                                                                                   :maximumInteractionGap 0
                                                                                                                                                   :pivotOnInteractionPath false}}
                                                                                                     :reachCriteria {:activities {}
                                                                                                                     :customRichMediaEvents {}
                                                                                                                     :dateRange {}
                                                                                                                     :dimensionFilters [{}]
                                                                                                                     :dimensions [{}]
                                                                                                                     :enableAllDimensionCombinations false
                                                                                                                     :metricNames []
                                                                                                                     :reachByFrequencyMetricNames []}
                                                                                                     :schedule {:active false
                                                                                                                :every 0
                                                                                                                :expirationDate ""
                                                                                                                :repeats ""
                                                                                                                :repeatsOnWeekDays []
                                                                                                                :runsOnDayOfMonth ""
                                                                                                                :startDate ""}
                                                                                                     :subAccountId ""
                                                                                                     :type ""}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/reports/:reportId"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"accountId\": \"\",\n  \"criteria\": {\n    \"activities\": {\n      \"filters\": [\n        {\n          \"dimensionName\": \"\",\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"matchType\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"kind\": \"\",\n      \"metricNames\": []\n    },\n    \"customRichMediaEvents\": {\n      \"filteredEventIds\": [\n        {}\n      ],\n      \"kind\": \"\"\n    },\n    \"dateRange\": {\n      \"endDate\": \"\",\n      \"kind\": \"\",\n      \"relativeDateRange\": \"\",\n      \"startDate\": \"\"\n    },\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sortOrder\": \"\"\n      }\n    ],\n    \"metricNames\": []\n  },\n  \"crossDimensionReachCriteria\": {\n    \"breakdown\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimension\": \"\",\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"metricNames\": [],\n    \"overlapMetricNames\": [],\n    \"pivoted\": false\n  },\n  \"delivery\": {\n    \"emailOwner\": false,\n    \"emailOwnerDeliveryType\": \"\",\n    \"message\": \"\",\n    \"recipients\": [\n      {\n        \"deliveryType\": \"\",\n        \"email\": \"\",\n        \"kind\": \"\"\n      }\n    ]\n  },\n  \"etag\": \"\",\n  \"fileName\": \"\",\n  \"floodlightCriteria\": {\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"reportProperties\": {\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false\n    }\n  },\n  \"format\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedTime\": \"\",\n  \"name\": \"\",\n  \"ownerProfileId\": \"\",\n  \"pathAttributionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {\n      \"fallbackName\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"rules\": [\n        {\n          \"disjunctiveMatchStatements\": [\n            {\n              \"eventFilters\": [\n                {\n                  \"dimensionFilter\": {\n                    \"dimensionName\": \"\",\n                    \"ids\": [],\n                    \"kind\": \"\",\n                    \"matchType\": \"\",\n                    \"values\": []\n                  },\n                  \"kind\": \"\"\n                }\n              ],\n              \"kind\": \"\"\n            }\n          ],\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {\n        \"eventFilters\": [\n          {}\n        ],\n        \"kind\": \"\",\n        \"pathMatchPosition\": \"\"\n      }\n    ]\n  },\n  \"pathCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {},\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {}\n    ]\n  },\n  \"pathToConversionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"conversionDimensions\": [\n      {}\n    ],\n    \"customFloodlightVariables\": [\n      {}\n    ],\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"perInteractionDimensions\": [\n      {}\n    ],\n    \"reportProperties\": {\n      \"clicksLookbackWindow\": 0,\n      \"impressionsLookbackWindow\": 0,\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false,\n      \"maximumClickInteractions\": 0,\n      \"maximumImpressionInteractions\": 0,\n      \"maximumInteractionGap\": 0,\n      \"pivotOnInteractionPath\": false\n    }\n  },\n  \"reachCriteria\": {\n    \"activities\": {},\n    \"customRichMediaEvents\": {},\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"enableAllDimensionCombinations\": false,\n    \"metricNames\": [],\n    \"reachByFrequencyMetricNames\": []\n  },\n  \"schedule\": {\n    \"active\": false,\n    \"every\": 0,\n    \"expirationDate\": \"\",\n    \"repeats\": \"\",\n    \"repeatsOnWeekDays\": [],\n    \"runsOnDayOfMonth\": \"\",\n    \"startDate\": \"\"\n  },\n  \"subAccountId\": \"\",\n  \"type\": \"\"\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}}/userprofiles/:profileId/reports/:reportId"),
    Content = new StringContent("{\n  \"accountId\": \"\",\n  \"criteria\": {\n    \"activities\": {\n      \"filters\": [\n        {\n          \"dimensionName\": \"\",\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"matchType\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"kind\": \"\",\n      \"metricNames\": []\n    },\n    \"customRichMediaEvents\": {\n      \"filteredEventIds\": [\n        {}\n      ],\n      \"kind\": \"\"\n    },\n    \"dateRange\": {\n      \"endDate\": \"\",\n      \"kind\": \"\",\n      \"relativeDateRange\": \"\",\n      \"startDate\": \"\"\n    },\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sortOrder\": \"\"\n      }\n    ],\n    \"metricNames\": []\n  },\n  \"crossDimensionReachCriteria\": {\n    \"breakdown\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimension\": \"\",\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"metricNames\": [],\n    \"overlapMetricNames\": [],\n    \"pivoted\": false\n  },\n  \"delivery\": {\n    \"emailOwner\": false,\n    \"emailOwnerDeliveryType\": \"\",\n    \"message\": \"\",\n    \"recipients\": [\n      {\n        \"deliveryType\": \"\",\n        \"email\": \"\",\n        \"kind\": \"\"\n      }\n    ]\n  },\n  \"etag\": \"\",\n  \"fileName\": \"\",\n  \"floodlightCriteria\": {\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"reportProperties\": {\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false\n    }\n  },\n  \"format\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedTime\": \"\",\n  \"name\": \"\",\n  \"ownerProfileId\": \"\",\n  \"pathAttributionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {\n      \"fallbackName\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"rules\": [\n        {\n          \"disjunctiveMatchStatements\": [\n            {\n              \"eventFilters\": [\n                {\n                  \"dimensionFilter\": {\n                    \"dimensionName\": \"\",\n                    \"ids\": [],\n                    \"kind\": \"\",\n                    \"matchType\": \"\",\n                    \"values\": []\n                  },\n                  \"kind\": \"\"\n                }\n              ],\n              \"kind\": \"\"\n            }\n          ],\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {\n        \"eventFilters\": [\n          {}\n        ],\n        \"kind\": \"\",\n        \"pathMatchPosition\": \"\"\n      }\n    ]\n  },\n  \"pathCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {},\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {}\n    ]\n  },\n  \"pathToConversionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"conversionDimensions\": [\n      {}\n    ],\n    \"customFloodlightVariables\": [\n      {}\n    ],\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"perInteractionDimensions\": [\n      {}\n    ],\n    \"reportProperties\": {\n      \"clicksLookbackWindow\": 0,\n      \"impressionsLookbackWindow\": 0,\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false,\n      \"maximumClickInteractions\": 0,\n      \"maximumImpressionInteractions\": 0,\n      \"maximumInteractionGap\": 0,\n      \"pivotOnInteractionPath\": false\n    }\n  },\n  \"reachCriteria\": {\n    \"activities\": {},\n    \"customRichMediaEvents\": {},\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"enableAllDimensionCombinations\": false,\n    \"metricNames\": [],\n    \"reachByFrequencyMetricNames\": []\n  },\n  \"schedule\": {\n    \"active\": false,\n    \"every\": 0,\n    \"expirationDate\": \"\",\n    \"repeats\": \"\",\n    \"repeatsOnWeekDays\": [],\n    \"runsOnDayOfMonth\": \"\",\n    \"startDate\": \"\"\n  },\n  \"subAccountId\": \"\",\n  \"type\": \"\"\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}}/userprofiles/:profileId/reports/:reportId");
var request = new RestRequest("", Method.Patch);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"accountId\": \"\",\n  \"criteria\": {\n    \"activities\": {\n      \"filters\": [\n        {\n          \"dimensionName\": \"\",\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"matchType\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"kind\": \"\",\n      \"metricNames\": []\n    },\n    \"customRichMediaEvents\": {\n      \"filteredEventIds\": [\n        {}\n      ],\n      \"kind\": \"\"\n    },\n    \"dateRange\": {\n      \"endDate\": \"\",\n      \"kind\": \"\",\n      \"relativeDateRange\": \"\",\n      \"startDate\": \"\"\n    },\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sortOrder\": \"\"\n      }\n    ],\n    \"metricNames\": []\n  },\n  \"crossDimensionReachCriteria\": {\n    \"breakdown\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimension\": \"\",\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"metricNames\": [],\n    \"overlapMetricNames\": [],\n    \"pivoted\": false\n  },\n  \"delivery\": {\n    \"emailOwner\": false,\n    \"emailOwnerDeliveryType\": \"\",\n    \"message\": \"\",\n    \"recipients\": [\n      {\n        \"deliveryType\": \"\",\n        \"email\": \"\",\n        \"kind\": \"\"\n      }\n    ]\n  },\n  \"etag\": \"\",\n  \"fileName\": \"\",\n  \"floodlightCriteria\": {\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"reportProperties\": {\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false\n    }\n  },\n  \"format\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedTime\": \"\",\n  \"name\": \"\",\n  \"ownerProfileId\": \"\",\n  \"pathAttributionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {\n      \"fallbackName\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"rules\": [\n        {\n          \"disjunctiveMatchStatements\": [\n            {\n              \"eventFilters\": [\n                {\n                  \"dimensionFilter\": {\n                    \"dimensionName\": \"\",\n                    \"ids\": [],\n                    \"kind\": \"\",\n                    \"matchType\": \"\",\n                    \"values\": []\n                  },\n                  \"kind\": \"\"\n                }\n              ],\n              \"kind\": \"\"\n            }\n          ],\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {\n        \"eventFilters\": [\n          {}\n        ],\n        \"kind\": \"\",\n        \"pathMatchPosition\": \"\"\n      }\n    ]\n  },\n  \"pathCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {},\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {}\n    ]\n  },\n  \"pathToConversionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"conversionDimensions\": [\n      {}\n    ],\n    \"customFloodlightVariables\": [\n      {}\n    ],\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"perInteractionDimensions\": [\n      {}\n    ],\n    \"reportProperties\": {\n      \"clicksLookbackWindow\": 0,\n      \"impressionsLookbackWindow\": 0,\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false,\n      \"maximumClickInteractions\": 0,\n      \"maximumImpressionInteractions\": 0,\n      \"maximumInteractionGap\": 0,\n      \"pivotOnInteractionPath\": false\n    }\n  },\n  \"reachCriteria\": {\n    \"activities\": {},\n    \"customRichMediaEvents\": {},\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"enableAllDimensionCombinations\": false,\n    \"metricNames\": [],\n    \"reachByFrequencyMetricNames\": []\n  },\n  \"schedule\": {\n    \"active\": false,\n    \"every\": 0,\n    \"expirationDate\": \"\",\n    \"repeats\": \"\",\n    \"repeatsOnWeekDays\": [],\n    \"runsOnDayOfMonth\": \"\",\n    \"startDate\": \"\"\n  },\n  \"subAccountId\": \"\",\n  \"type\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/reports/:reportId"

	payload := strings.NewReader("{\n  \"accountId\": \"\",\n  \"criteria\": {\n    \"activities\": {\n      \"filters\": [\n        {\n          \"dimensionName\": \"\",\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"matchType\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"kind\": \"\",\n      \"metricNames\": []\n    },\n    \"customRichMediaEvents\": {\n      \"filteredEventIds\": [\n        {}\n      ],\n      \"kind\": \"\"\n    },\n    \"dateRange\": {\n      \"endDate\": \"\",\n      \"kind\": \"\",\n      \"relativeDateRange\": \"\",\n      \"startDate\": \"\"\n    },\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sortOrder\": \"\"\n      }\n    ],\n    \"metricNames\": []\n  },\n  \"crossDimensionReachCriteria\": {\n    \"breakdown\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimension\": \"\",\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"metricNames\": [],\n    \"overlapMetricNames\": [],\n    \"pivoted\": false\n  },\n  \"delivery\": {\n    \"emailOwner\": false,\n    \"emailOwnerDeliveryType\": \"\",\n    \"message\": \"\",\n    \"recipients\": [\n      {\n        \"deliveryType\": \"\",\n        \"email\": \"\",\n        \"kind\": \"\"\n      }\n    ]\n  },\n  \"etag\": \"\",\n  \"fileName\": \"\",\n  \"floodlightCriteria\": {\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"reportProperties\": {\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false\n    }\n  },\n  \"format\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedTime\": \"\",\n  \"name\": \"\",\n  \"ownerProfileId\": \"\",\n  \"pathAttributionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {\n      \"fallbackName\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"rules\": [\n        {\n          \"disjunctiveMatchStatements\": [\n            {\n              \"eventFilters\": [\n                {\n                  \"dimensionFilter\": {\n                    \"dimensionName\": \"\",\n                    \"ids\": [],\n                    \"kind\": \"\",\n                    \"matchType\": \"\",\n                    \"values\": []\n                  },\n                  \"kind\": \"\"\n                }\n              ],\n              \"kind\": \"\"\n            }\n          ],\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {\n        \"eventFilters\": [\n          {}\n        ],\n        \"kind\": \"\",\n        \"pathMatchPosition\": \"\"\n      }\n    ]\n  },\n  \"pathCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {},\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {}\n    ]\n  },\n  \"pathToConversionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"conversionDimensions\": [\n      {}\n    ],\n    \"customFloodlightVariables\": [\n      {}\n    ],\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"perInteractionDimensions\": [\n      {}\n    ],\n    \"reportProperties\": {\n      \"clicksLookbackWindow\": 0,\n      \"impressionsLookbackWindow\": 0,\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false,\n      \"maximumClickInteractions\": 0,\n      \"maximumImpressionInteractions\": 0,\n      \"maximumInteractionGap\": 0,\n      \"pivotOnInteractionPath\": false\n    }\n  },\n  \"reachCriteria\": {\n    \"activities\": {},\n    \"customRichMediaEvents\": {},\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"enableAllDimensionCombinations\": false,\n    \"metricNames\": [],\n    \"reachByFrequencyMetricNames\": []\n  },\n  \"schedule\": {\n    \"active\": false,\n    \"every\": 0,\n    \"expirationDate\": \"\",\n    \"repeats\": \"\",\n    \"repeatsOnWeekDays\": [],\n    \"runsOnDayOfMonth\": \"\",\n    \"startDate\": \"\"\n  },\n  \"subAccountId\": \"\",\n  \"type\": \"\"\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/userprofiles/:profileId/reports/:reportId HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 4157

{
  "accountId": "",
  "criteria": {
    "activities": {
      "filters": [
        {
          "dimensionName": "",
          "etag": "",
          "id": "",
          "kind": "",
          "matchType": "",
          "value": ""
        }
      ],
      "kind": "",
      "metricNames": []
    },
    "customRichMediaEvents": {
      "filteredEventIds": [
        {}
      ],
      "kind": ""
    },
    "dateRange": {
      "endDate": "",
      "kind": "",
      "relativeDateRange": "",
      "startDate": ""
    },
    "dimensionFilters": [
      {}
    ],
    "dimensions": [
      {
        "kind": "",
        "name": "",
        "sortOrder": ""
      }
    ],
    "metricNames": []
  },
  "crossDimensionReachCriteria": {
    "breakdown": [
      {}
    ],
    "dateRange": {},
    "dimension": "",
    "dimensionFilters": [
      {}
    ],
    "metricNames": [],
    "overlapMetricNames": [],
    "pivoted": false
  },
  "delivery": {
    "emailOwner": false,
    "emailOwnerDeliveryType": "",
    "message": "",
    "recipients": [
      {
        "deliveryType": "",
        "email": "",
        "kind": ""
      }
    ]
  },
  "etag": "",
  "fileName": "",
  "floodlightCriteria": {
    "customRichMediaEvents": [
      {}
    ],
    "dateRange": {},
    "dimensionFilters": [
      {}
    ],
    "dimensions": [
      {}
    ],
    "floodlightConfigId": {},
    "metricNames": [],
    "reportProperties": {
      "includeAttributedIPConversions": false,
      "includeUnattributedCookieConversions": false,
      "includeUnattributedIPConversions": false
    }
  },
  "format": "",
  "id": "",
  "kind": "",
  "lastModifiedTime": "",
  "name": "",
  "ownerProfileId": "",
  "pathAttributionCriteria": {
    "activityFilters": [
      {}
    ],
    "customChannelGrouping": {
      "fallbackName": "",
      "kind": "",
      "name": "",
      "rules": [
        {
          "disjunctiveMatchStatements": [
            {
              "eventFilters": [
                {
                  "dimensionFilter": {
                    "dimensionName": "",
                    "ids": [],
                    "kind": "",
                    "matchType": "",
                    "values": []
                  },
                  "kind": ""
                }
              ],
              "kind": ""
            }
          ],
          "kind": "",
          "name": ""
        }
      ]
    },
    "dateRange": {},
    "dimensions": [
      {}
    ],
    "floodlightConfigId": {},
    "metricNames": [],
    "pathFilters": [
      {
        "eventFilters": [
          {}
        ],
        "kind": "",
        "pathMatchPosition": ""
      }
    ]
  },
  "pathCriteria": {
    "activityFilters": [
      {}
    ],
    "customChannelGrouping": {},
    "dateRange": {},
    "dimensions": [
      {}
    ],
    "floodlightConfigId": {},
    "metricNames": [],
    "pathFilters": [
      {}
    ]
  },
  "pathToConversionCriteria": {
    "activityFilters": [
      {}
    ],
    "conversionDimensions": [
      {}
    ],
    "customFloodlightVariables": [
      {}
    ],
    "customRichMediaEvents": [
      {}
    ],
    "dateRange": {},
    "floodlightConfigId": {},
    "metricNames": [],
    "perInteractionDimensions": [
      {}
    ],
    "reportProperties": {
      "clicksLookbackWindow": 0,
      "impressionsLookbackWindow": 0,
      "includeAttributedIPConversions": false,
      "includeUnattributedCookieConversions": false,
      "includeUnattributedIPConversions": false,
      "maximumClickInteractions": 0,
      "maximumImpressionInteractions": 0,
      "maximumInteractionGap": 0,
      "pivotOnInteractionPath": false
    }
  },
  "reachCriteria": {
    "activities": {},
    "customRichMediaEvents": {},
    "dateRange": {},
    "dimensionFilters": [
      {}
    ],
    "dimensions": [
      {}
    ],
    "enableAllDimensionCombinations": false,
    "metricNames": [],
    "reachByFrequencyMetricNames": []
  },
  "schedule": {
    "active": false,
    "every": 0,
    "expirationDate": "",
    "repeats": "",
    "repeatsOnWeekDays": [],
    "runsOnDayOfMonth": "",
    "startDate": ""
  },
  "subAccountId": "",
  "type": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/userprofiles/:profileId/reports/:reportId")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"accountId\": \"\",\n  \"criteria\": {\n    \"activities\": {\n      \"filters\": [\n        {\n          \"dimensionName\": \"\",\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"matchType\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"kind\": \"\",\n      \"metricNames\": []\n    },\n    \"customRichMediaEvents\": {\n      \"filteredEventIds\": [\n        {}\n      ],\n      \"kind\": \"\"\n    },\n    \"dateRange\": {\n      \"endDate\": \"\",\n      \"kind\": \"\",\n      \"relativeDateRange\": \"\",\n      \"startDate\": \"\"\n    },\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sortOrder\": \"\"\n      }\n    ],\n    \"metricNames\": []\n  },\n  \"crossDimensionReachCriteria\": {\n    \"breakdown\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimension\": \"\",\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"metricNames\": [],\n    \"overlapMetricNames\": [],\n    \"pivoted\": false\n  },\n  \"delivery\": {\n    \"emailOwner\": false,\n    \"emailOwnerDeliveryType\": \"\",\n    \"message\": \"\",\n    \"recipients\": [\n      {\n        \"deliveryType\": \"\",\n        \"email\": \"\",\n        \"kind\": \"\"\n      }\n    ]\n  },\n  \"etag\": \"\",\n  \"fileName\": \"\",\n  \"floodlightCriteria\": {\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"reportProperties\": {\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false\n    }\n  },\n  \"format\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedTime\": \"\",\n  \"name\": \"\",\n  \"ownerProfileId\": \"\",\n  \"pathAttributionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {\n      \"fallbackName\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"rules\": [\n        {\n          \"disjunctiveMatchStatements\": [\n            {\n              \"eventFilters\": [\n                {\n                  \"dimensionFilter\": {\n                    \"dimensionName\": \"\",\n                    \"ids\": [],\n                    \"kind\": \"\",\n                    \"matchType\": \"\",\n                    \"values\": []\n                  },\n                  \"kind\": \"\"\n                }\n              ],\n              \"kind\": \"\"\n            }\n          ],\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {\n        \"eventFilters\": [\n          {}\n        ],\n        \"kind\": \"\",\n        \"pathMatchPosition\": \"\"\n      }\n    ]\n  },\n  \"pathCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {},\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {}\n    ]\n  },\n  \"pathToConversionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"conversionDimensions\": [\n      {}\n    ],\n    \"customFloodlightVariables\": [\n      {}\n    ],\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"perInteractionDimensions\": [\n      {}\n    ],\n    \"reportProperties\": {\n      \"clicksLookbackWindow\": 0,\n      \"impressionsLookbackWindow\": 0,\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false,\n      \"maximumClickInteractions\": 0,\n      \"maximumImpressionInteractions\": 0,\n      \"maximumInteractionGap\": 0,\n      \"pivotOnInteractionPath\": false\n    }\n  },\n  \"reachCriteria\": {\n    \"activities\": {},\n    \"customRichMediaEvents\": {},\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"enableAllDimensionCombinations\": false,\n    \"metricNames\": [],\n    \"reachByFrequencyMetricNames\": []\n  },\n  \"schedule\": {\n    \"active\": false,\n    \"every\": 0,\n    \"expirationDate\": \"\",\n    \"repeats\": \"\",\n    \"repeatsOnWeekDays\": [],\n    \"runsOnDayOfMonth\": \"\",\n    \"startDate\": \"\"\n  },\n  \"subAccountId\": \"\",\n  \"type\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/reports/:reportId"))
    .header("content-type", "application/json")
    .method("PATCH", HttpRequest.BodyPublishers.ofString("{\n  \"accountId\": \"\",\n  \"criteria\": {\n    \"activities\": {\n      \"filters\": [\n        {\n          \"dimensionName\": \"\",\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"matchType\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"kind\": \"\",\n      \"metricNames\": []\n    },\n    \"customRichMediaEvents\": {\n      \"filteredEventIds\": [\n        {}\n      ],\n      \"kind\": \"\"\n    },\n    \"dateRange\": {\n      \"endDate\": \"\",\n      \"kind\": \"\",\n      \"relativeDateRange\": \"\",\n      \"startDate\": \"\"\n    },\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sortOrder\": \"\"\n      }\n    ],\n    \"metricNames\": []\n  },\n  \"crossDimensionReachCriteria\": {\n    \"breakdown\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimension\": \"\",\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"metricNames\": [],\n    \"overlapMetricNames\": [],\n    \"pivoted\": false\n  },\n  \"delivery\": {\n    \"emailOwner\": false,\n    \"emailOwnerDeliveryType\": \"\",\n    \"message\": \"\",\n    \"recipients\": [\n      {\n        \"deliveryType\": \"\",\n        \"email\": \"\",\n        \"kind\": \"\"\n      }\n    ]\n  },\n  \"etag\": \"\",\n  \"fileName\": \"\",\n  \"floodlightCriteria\": {\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"reportProperties\": {\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false\n    }\n  },\n  \"format\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedTime\": \"\",\n  \"name\": \"\",\n  \"ownerProfileId\": \"\",\n  \"pathAttributionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {\n      \"fallbackName\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"rules\": [\n        {\n          \"disjunctiveMatchStatements\": [\n            {\n              \"eventFilters\": [\n                {\n                  \"dimensionFilter\": {\n                    \"dimensionName\": \"\",\n                    \"ids\": [],\n                    \"kind\": \"\",\n                    \"matchType\": \"\",\n                    \"values\": []\n                  },\n                  \"kind\": \"\"\n                }\n              ],\n              \"kind\": \"\"\n            }\n          ],\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {\n        \"eventFilters\": [\n          {}\n        ],\n        \"kind\": \"\",\n        \"pathMatchPosition\": \"\"\n      }\n    ]\n  },\n  \"pathCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {},\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {}\n    ]\n  },\n  \"pathToConversionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"conversionDimensions\": [\n      {}\n    ],\n    \"customFloodlightVariables\": [\n      {}\n    ],\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"perInteractionDimensions\": [\n      {}\n    ],\n    \"reportProperties\": {\n      \"clicksLookbackWindow\": 0,\n      \"impressionsLookbackWindow\": 0,\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false,\n      \"maximumClickInteractions\": 0,\n      \"maximumImpressionInteractions\": 0,\n      \"maximumInteractionGap\": 0,\n      \"pivotOnInteractionPath\": false\n    }\n  },\n  \"reachCriteria\": {\n    \"activities\": {},\n    \"customRichMediaEvents\": {},\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"enableAllDimensionCombinations\": false,\n    \"metricNames\": [],\n    \"reachByFrequencyMetricNames\": []\n  },\n  \"schedule\": {\n    \"active\": false,\n    \"every\": 0,\n    \"expirationDate\": \"\",\n    \"repeats\": \"\",\n    \"repeatsOnWeekDays\": [],\n    \"runsOnDayOfMonth\": \"\",\n    \"startDate\": \"\"\n  },\n  \"subAccountId\": \"\",\n  \"type\": \"\"\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  \"accountId\": \"\",\n  \"criteria\": {\n    \"activities\": {\n      \"filters\": [\n        {\n          \"dimensionName\": \"\",\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"matchType\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"kind\": \"\",\n      \"metricNames\": []\n    },\n    \"customRichMediaEvents\": {\n      \"filteredEventIds\": [\n        {}\n      ],\n      \"kind\": \"\"\n    },\n    \"dateRange\": {\n      \"endDate\": \"\",\n      \"kind\": \"\",\n      \"relativeDateRange\": \"\",\n      \"startDate\": \"\"\n    },\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sortOrder\": \"\"\n      }\n    ],\n    \"metricNames\": []\n  },\n  \"crossDimensionReachCriteria\": {\n    \"breakdown\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimension\": \"\",\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"metricNames\": [],\n    \"overlapMetricNames\": [],\n    \"pivoted\": false\n  },\n  \"delivery\": {\n    \"emailOwner\": false,\n    \"emailOwnerDeliveryType\": \"\",\n    \"message\": \"\",\n    \"recipients\": [\n      {\n        \"deliveryType\": \"\",\n        \"email\": \"\",\n        \"kind\": \"\"\n      }\n    ]\n  },\n  \"etag\": \"\",\n  \"fileName\": \"\",\n  \"floodlightCriteria\": {\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"reportProperties\": {\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false\n    }\n  },\n  \"format\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedTime\": \"\",\n  \"name\": \"\",\n  \"ownerProfileId\": \"\",\n  \"pathAttributionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {\n      \"fallbackName\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"rules\": [\n        {\n          \"disjunctiveMatchStatements\": [\n            {\n              \"eventFilters\": [\n                {\n                  \"dimensionFilter\": {\n                    \"dimensionName\": \"\",\n                    \"ids\": [],\n                    \"kind\": \"\",\n                    \"matchType\": \"\",\n                    \"values\": []\n                  },\n                  \"kind\": \"\"\n                }\n              ],\n              \"kind\": \"\"\n            }\n          ],\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {\n        \"eventFilters\": [\n          {}\n        ],\n        \"kind\": \"\",\n        \"pathMatchPosition\": \"\"\n      }\n    ]\n  },\n  \"pathCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {},\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {}\n    ]\n  },\n  \"pathToConversionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"conversionDimensions\": [\n      {}\n    ],\n    \"customFloodlightVariables\": [\n      {}\n    ],\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"perInteractionDimensions\": [\n      {}\n    ],\n    \"reportProperties\": {\n      \"clicksLookbackWindow\": 0,\n      \"impressionsLookbackWindow\": 0,\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false,\n      \"maximumClickInteractions\": 0,\n      \"maximumImpressionInteractions\": 0,\n      \"maximumInteractionGap\": 0,\n      \"pivotOnInteractionPath\": false\n    }\n  },\n  \"reachCriteria\": {\n    \"activities\": {},\n    \"customRichMediaEvents\": {},\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"enableAllDimensionCombinations\": false,\n    \"metricNames\": [],\n    \"reachByFrequencyMetricNames\": []\n  },\n  \"schedule\": {\n    \"active\": false,\n    \"every\": 0,\n    \"expirationDate\": \"\",\n    \"repeats\": \"\",\n    \"repeatsOnWeekDays\": [],\n    \"runsOnDayOfMonth\": \"\",\n    \"startDate\": \"\"\n  },\n  \"subAccountId\": \"\",\n  \"type\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/reports/:reportId")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/userprofiles/:profileId/reports/:reportId")
  .header("content-type", "application/json")
  .body("{\n  \"accountId\": \"\",\n  \"criteria\": {\n    \"activities\": {\n      \"filters\": [\n        {\n          \"dimensionName\": \"\",\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"matchType\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"kind\": \"\",\n      \"metricNames\": []\n    },\n    \"customRichMediaEvents\": {\n      \"filteredEventIds\": [\n        {}\n      ],\n      \"kind\": \"\"\n    },\n    \"dateRange\": {\n      \"endDate\": \"\",\n      \"kind\": \"\",\n      \"relativeDateRange\": \"\",\n      \"startDate\": \"\"\n    },\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sortOrder\": \"\"\n      }\n    ],\n    \"metricNames\": []\n  },\n  \"crossDimensionReachCriteria\": {\n    \"breakdown\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimension\": \"\",\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"metricNames\": [],\n    \"overlapMetricNames\": [],\n    \"pivoted\": false\n  },\n  \"delivery\": {\n    \"emailOwner\": false,\n    \"emailOwnerDeliveryType\": \"\",\n    \"message\": \"\",\n    \"recipients\": [\n      {\n        \"deliveryType\": \"\",\n        \"email\": \"\",\n        \"kind\": \"\"\n      }\n    ]\n  },\n  \"etag\": \"\",\n  \"fileName\": \"\",\n  \"floodlightCriteria\": {\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"reportProperties\": {\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false\n    }\n  },\n  \"format\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedTime\": \"\",\n  \"name\": \"\",\n  \"ownerProfileId\": \"\",\n  \"pathAttributionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {\n      \"fallbackName\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"rules\": [\n        {\n          \"disjunctiveMatchStatements\": [\n            {\n              \"eventFilters\": [\n                {\n                  \"dimensionFilter\": {\n                    \"dimensionName\": \"\",\n                    \"ids\": [],\n                    \"kind\": \"\",\n                    \"matchType\": \"\",\n                    \"values\": []\n                  },\n                  \"kind\": \"\"\n                }\n              ],\n              \"kind\": \"\"\n            }\n          ],\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {\n        \"eventFilters\": [\n          {}\n        ],\n        \"kind\": \"\",\n        \"pathMatchPosition\": \"\"\n      }\n    ]\n  },\n  \"pathCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {},\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {}\n    ]\n  },\n  \"pathToConversionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"conversionDimensions\": [\n      {}\n    ],\n    \"customFloodlightVariables\": [\n      {}\n    ],\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"perInteractionDimensions\": [\n      {}\n    ],\n    \"reportProperties\": {\n      \"clicksLookbackWindow\": 0,\n      \"impressionsLookbackWindow\": 0,\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false,\n      \"maximumClickInteractions\": 0,\n      \"maximumImpressionInteractions\": 0,\n      \"maximumInteractionGap\": 0,\n      \"pivotOnInteractionPath\": false\n    }\n  },\n  \"reachCriteria\": {\n    \"activities\": {},\n    \"customRichMediaEvents\": {},\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"enableAllDimensionCombinations\": false,\n    \"metricNames\": [],\n    \"reachByFrequencyMetricNames\": []\n  },\n  \"schedule\": {\n    \"active\": false,\n    \"every\": 0,\n    \"expirationDate\": \"\",\n    \"repeats\": \"\",\n    \"repeatsOnWeekDays\": [],\n    \"runsOnDayOfMonth\": \"\",\n    \"startDate\": \"\"\n  },\n  \"subAccountId\": \"\",\n  \"type\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  accountId: '',
  criteria: {
    activities: {
      filters: [
        {
          dimensionName: '',
          etag: '',
          id: '',
          kind: '',
          matchType: '',
          value: ''
        }
      ],
      kind: '',
      metricNames: []
    },
    customRichMediaEvents: {
      filteredEventIds: [
        {}
      ],
      kind: ''
    },
    dateRange: {
      endDate: '',
      kind: '',
      relativeDateRange: '',
      startDate: ''
    },
    dimensionFilters: [
      {}
    ],
    dimensions: [
      {
        kind: '',
        name: '',
        sortOrder: ''
      }
    ],
    metricNames: []
  },
  crossDimensionReachCriteria: {
    breakdown: [
      {}
    ],
    dateRange: {},
    dimension: '',
    dimensionFilters: [
      {}
    ],
    metricNames: [],
    overlapMetricNames: [],
    pivoted: false
  },
  delivery: {
    emailOwner: false,
    emailOwnerDeliveryType: '',
    message: '',
    recipients: [
      {
        deliveryType: '',
        email: '',
        kind: ''
      }
    ]
  },
  etag: '',
  fileName: '',
  floodlightCriteria: {
    customRichMediaEvents: [
      {}
    ],
    dateRange: {},
    dimensionFilters: [
      {}
    ],
    dimensions: [
      {}
    ],
    floodlightConfigId: {},
    metricNames: [],
    reportProperties: {
      includeAttributedIPConversions: false,
      includeUnattributedCookieConversions: false,
      includeUnattributedIPConversions: false
    }
  },
  format: '',
  id: '',
  kind: '',
  lastModifiedTime: '',
  name: '',
  ownerProfileId: '',
  pathAttributionCriteria: {
    activityFilters: [
      {}
    ],
    customChannelGrouping: {
      fallbackName: '',
      kind: '',
      name: '',
      rules: [
        {
          disjunctiveMatchStatements: [
            {
              eventFilters: [
                {
                  dimensionFilter: {
                    dimensionName: '',
                    ids: [],
                    kind: '',
                    matchType: '',
                    values: []
                  },
                  kind: ''
                }
              ],
              kind: ''
            }
          ],
          kind: '',
          name: ''
        }
      ]
    },
    dateRange: {},
    dimensions: [
      {}
    ],
    floodlightConfigId: {},
    metricNames: [],
    pathFilters: [
      {
        eventFilters: [
          {}
        ],
        kind: '',
        pathMatchPosition: ''
      }
    ]
  },
  pathCriteria: {
    activityFilters: [
      {}
    ],
    customChannelGrouping: {},
    dateRange: {},
    dimensions: [
      {}
    ],
    floodlightConfigId: {},
    metricNames: [],
    pathFilters: [
      {}
    ]
  },
  pathToConversionCriteria: {
    activityFilters: [
      {}
    ],
    conversionDimensions: [
      {}
    ],
    customFloodlightVariables: [
      {}
    ],
    customRichMediaEvents: [
      {}
    ],
    dateRange: {},
    floodlightConfigId: {},
    metricNames: [],
    perInteractionDimensions: [
      {}
    ],
    reportProperties: {
      clicksLookbackWindow: 0,
      impressionsLookbackWindow: 0,
      includeAttributedIPConversions: false,
      includeUnattributedCookieConversions: false,
      includeUnattributedIPConversions: false,
      maximumClickInteractions: 0,
      maximumImpressionInteractions: 0,
      maximumInteractionGap: 0,
      pivotOnInteractionPath: false
    }
  },
  reachCriteria: {
    activities: {},
    customRichMediaEvents: {},
    dateRange: {},
    dimensionFilters: [
      {}
    ],
    dimensions: [
      {}
    ],
    enableAllDimensionCombinations: false,
    metricNames: [],
    reachByFrequencyMetricNames: []
  },
  schedule: {
    active: false,
    every: 0,
    expirationDate: '',
    repeats: '',
    repeatsOnWeekDays: [],
    runsOnDayOfMonth: '',
    startDate: ''
  },
  subAccountId: '',
  type: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PATCH', '{{baseUrl}}/userprofiles/:profileId/reports/:reportId');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/userprofiles/:profileId/reports/:reportId',
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    criteria: {
      activities: {
        filters: [{dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''}],
        kind: '',
        metricNames: []
      },
      customRichMediaEvents: {filteredEventIds: [{}], kind: ''},
      dateRange: {endDate: '', kind: '', relativeDateRange: '', startDate: ''},
      dimensionFilters: [{}],
      dimensions: [{kind: '', name: '', sortOrder: ''}],
      metricNames: []
    },
    crossDimensionReachCriteria: {
      breakdown: [{}],
      dateRange: {},
      dimension: '',
      dimensionFilters: [{}],
      metricNames: [],
      overlapMetricNames: [],
      pivoted: false
    },
    delivery: {
      emailOwner: false,
      emailOwnerDeliveryType: '',
      message: '',
      recipients: [{deliveryType: '', email: '', kind: ''}]
    },
    etag: '',
    fileName: '',
    floodlightCriteria: {
      customRichMediaEvents: [{}],
      dateRange: {},
      dimensionFilters: [{}],
      dimensions: [{}],
      floodlightConfigId: {},
      metricNames: [],
      reportProperties: {
        includeAttributedIPConversions: false,
        includeUnattributedCookieConversions: false,
        includeUnattributedIPConversions: false
      }
    },
    format: '',
    id: '',
    kind: '',
    lastModifiedTime: '',
    name: '',
    ownerProfileId: '',
    pathAttributionCriteria: {
      activityFilters: [{}],
      customChannelGrouping: {
        fallbackName: '',
        kind: '',
        name: '',
        rules: [
          {
            disjunctiveMatchStatements: [
              {
                eventFilters: [
                  {
                    dimensionFilter: {dimensionName: '', ids: [], kind: '', matchType: '', values: []},
                    kind: ''
                  }
                ],
                kind: ''
              }
            ],
            kind: '',
            name: ''
          }
        ]
      },
      dateRange: {},
      dimensions: [{}],
      floodlightConfigId: {},
      metricNames: [],
      pathFilters: [{eventFilters: [{}], kind: '', pathMatchPosition: ''}]
    },
    pathCriteria: {
      activityFilters: [{}],
      customChannelGrouping: {},
      dateRange: {},
      dimensions: [{}],
      floodlightConfigId: {},
      metricNames: [],
      pathFilters: [{}]
    },
    pathToConversionCriteria: {
      activityFilters: [{}],
      conversionDimensions: [{}],
      customFloodlightVariables: [{}],
      customRichMediaEvents: [{}],
      dateRange: {},
      floodlightConfigId: {},
      metricNames: [],
      perInteractionDimensions: [{}],
      reportProperties: {
        clicksLookbackWindow: 0,
        impressionsLookbackWindow: 0,
        includeAttributedIPConversions: false,
        includeUnattributedCookieConversions: false,
        includeUnattributedIPConversions: false,
        maximumClickInteractions: 0,
        maximumImpressionInteractions: 0,
        maximumInteractionGap: 0,
        pivotOnInteractionPath: false
      }
    },
    reachCriteria: {
      activities: {},
      customRichMediaEvents: {},
      dateRange: {},
      dimensionFilters: [{}],
      dimensions: [{}],
      enableAllDimensionCombinations: false,
      metricNames: [],
      reachByFrequencyMetricNames: []
    },
    schedule: {
      active: false,
      every: 0,
      expirationDate: '',
      repeats: '',
      repeatsOnWeekDays: [],
      runsOnDayOfMonth: '',
      startDate: ''
    },
    subAccountId: '',
    type: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/reports/:reportId';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","criteria":{"activities":{"filters":[{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""}],"kind":"","metricNames":[]},"customRichMediaEvents":{"filteredEventIds":[{}],"kind":""},"dateRange":{"endDate":"","kind":"","relativeDateRange":"","startDate":""},"dimensionFilters":[{}],"dimensions":[{"kind":"","name":"","sortOrder":""}],"metricNames":[]},"crossDimensionReachCriteria":{"breakdown":[{}],"dateRange":{},"dimension":"","dimensionFilters":[{}],"metricNames":[],"overlapMetricNames":[],"pivoted":false},"delivery":{"emailOwner":false,"emailOwnerDeliveryType":"","message":"","recipients":[{"deliveryType":"","email":"","kind":""}]},"etag":"","fileName":"","floodlightCriteria":{"customRichMediaEvents":[{}],"dateRange":{},"dimensionFilters":[{}],"dimensions":[{}],"floodlightConfigId":{},"metricNames":[],"reportProperties":{"includeAttributedIPConversions":false,"includeUnattributedCookieConversions":false,"includeUnattributedIPConversions":false}},"format":"","id":"","kind":"","lastModifiedTime":"","name":"","ownerProfileId":"","pathAttributionCriteria":{"activityFilters":[{}],"customChannelGrouping":{"fallbackName":"","kind":"","name":"","rules":[{"disjunctiveMatchStatements":[{"eventFilters":[{"dimensionFilter":{"dimensionName":"","ids":[],"kind":"","matchType":"","values":[]},"kind":""}],"kind":""}],"kind":"","name":""}]},"dateRange":{},"dimensions":[{}],"floodlightConfigId":{},"metricNames":[],"pathFilters":[{"eventFilters":[{}],"kind":"","pathMatchPosition":""}]},"pathCriteria":{"activityFilters":[{}],"customChannelGrouping":{},"dateRange":{},"dimensions":[{}],"floodlightConfigId":{},"metricNames":[],"pathFilters":[{}]},"pathToConversionCriteria":{"activityFilters":[{}],"conversionDimensions":[{}],"customFloodlightVariables":[{}],"customRichMediaEvents":[{}],"dateRange":{},"floodlightConfigId":{},"metricNames":[],"perInteractionDimensions":[{}],"reportProperties":{"clicksLookbackWindow":0,"impressionsLookbackWindow":0,"includeAttributedIPConversions":false,"includeUnattributedCookieConversions":false,"includeUnattributedIPConversions":false,"maximumClickInteractions":0,"maximumImpressionInteractions":0,"maximumInteractionGap":0,"pivotOnInteractionPath":false}},"reachCriteria":{"activities":{},"customRichMediaEvents":{},"dateRange":{},"dimensionFilters":[{}],"dimensions":[{}],"enableAllDimensionCombinations":false,"metricNames":[],"reachByFrequencyMetricNames":[]},"schedule":{"active":false,"every":0,"expirationDate":"","repeats":"","repeatsOnWeekDays":[],"runsOnDayOfMonth":"","startDate":""},"subAccountId":"","type":""}'
};

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}}/userprofiles/:profileId/reports/:reportId',
  method: 'PATCH',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "accountId": "",\n  "criteria": {\n    "activities": {\n      "filters": [\n        {\n          "dimensionName": "",\n          "etag": "",\n          "id": "",\n          "kind": "",\n          "matchType": "",\n          "value": ""\n        }\n      ],\n      "kind": "",\n      "metricNames": []\n    },\n    "customRichMediaEvents": {\n      "filteredEventIds": [\n        {}\n      ],\n      "kind": ""\n    },\n    "dateRange": {\n      "endDate": "",\n      "kind": "",\n      "relativeDateRange": "",\n      "startDate": ""\n    },\n    "dimensionFilters": [\n      {}\n    ],\n    "dimensions": [\n      {\n        "kind": "",\n        "name": "",\n        "sortOrder": ""\n      }\n    ],\n    "metricNames": []\n  },\n  "crossDimensionReachCriteria": {\n    "breakdown": [\n      {}\n    ],\n    "dateRange": {},\n    "dimension": "",\n    "dimensionFilters": [\n      {}\n    ],\n    "metricNames": [],\n    "overlapMetricNames": [],\n    "pivoted": false\n  },\n  "delivery": {\n    "emailOwner": false,\n    "emailOwnerDeliveryType": "",\n    "message": "",\n    "recipients": [\n      {\n        "deliveryType": "",\n        "email": "",\n        "kind": ""\n      }\n    ]\n  },\n  "etag": "",\n  "fileName": "",\n  "floodlightCriteria": {\n    "customRichMediaEvents": [\n      {}\n    ],\n    "dateRange": {},\n    "dimensionFilters": [\n      {}\n    ],\n    "dimensions": [\n      {}\n    ],\n    "floodlightConfigId": {},\n    "metricNames": [],\n    "reportProperties": {\n      "includeAttributedIPConversions": false,\n      "includeUnattributedCookieConversions": false,\n      "includeUnattributedIPConversions": false\n    }\n  },\n  "format": "",\n  "id": "",\n  "kind": "",\n  "lastModifiedTime": "",\n  "name": "",\n  "ownerProfileId": "",\n  "pathAttributionCriteria": {\n    "activityFilters": [\n      {}\n    ],\n    "customChannelGrouping": {\n      "fallbackName": "",\n      "kind": "",\n      "name": "",\n      "rules": [\n        {\n          "disjunctiveMatchStatements": [\n            {\n              "eventFilters": [\n                {\n                  "dimensionFilter": {\n                    "dimensionName": "",\n                    "ids": [],\n                    "kind": "",\n                    "matchType": "",\n                    "values": []\n                  },\n                  "kind": ""\n                }\n              ],\n              "kind": ""\n            }\n          ],\n          "kind": "",\n          "name": ""\n        }\n      ]\n    },\n    "dateRange": {},\n    "dimensions": [\n      {}\n    ],\n    "floodlightConfigId": {},\n    "metricNames": [],\n    "pathFilters": [\n      {\n        "eventFilters": [\n          {}\n        ],\n        "kind": "",\n        "pathMatchPosition": ""\n      }\n    ]\n  },\n  "pathCriteria": {\n    "activityFilters": [\n      {}\n    ],\n    "customChannelGrouping": {},\n    "dateRange": {},\n    "dimensions": [\n      {}\n    ],\n    "floodlightConfigId": {},\n    "metricNames": [],\n    "pathFilters": [\n      {}\n    ]\n  },\n  "pathToConversionCriteria": {\n    "activityFilters": [\n      {}\n    ],\n    "conversionDimensions": [\n      {}\n    ],\n    "customFloodlightVariables": [\n      {}\n    ],\n    "customRichMediaEvents": [\n      {}\n    ],\n    "dateRange": {},\n    "floodlightConfigId": {},\n    "metricNames": [],\n    "perInteractionDimensions": [\n      {}\n    ],\n    "reportProperties": {\n      "clicksLookbackWindow": 0,\n      "impressionsLookbackWindow": 0,\n      "includeAttributedIPConversions": false,\n      "includeUnattributedCookieConversions": false,\n      "includeUnattributedIPConversions": false,\n      "maximumClickInteractions": 0,\n      "maximumImpressionInteractions": 0,\n      "maximumInteractionGap": 0,\n      "pivotOnInteractionPath": false\n    }\n  },\n  "reachCriteria": {\n    "activities": {},\n    "customRichMediaEvents": {},\n    "dateRange": {},\n    "dimensionFilters": [\n      {}\n    ],\n    "dimensions": [\n      {}\n    ],\n    "enableAllDimensionCombinations": false,\n    "metricNames": [],\n    "reachByFrequencyMetricNames": []\n  },\n  "schedule": {\n    "active": false,\n    "every": 0,\n    "expirationDate": "",\n    "repeats": "",\n    "repeatsOnWeekDays": [],\n    "runsOnDayOfMonth": "",\n    "startDate": ""\n  },\n  "subAccountId": "",\n  "type": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"accountId\": \"\",\n  \"criteria\": {\n    \"activities\": {\n      \"filters\": [\n        {\n          \"dimensionName\": \"\",\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"matchType\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"kind\": \"\",\n      \"metricNames\": []\n    },\n    \"customRichMediaEvents\": {\n      \"filteredEventIds\": [\n        {}\n      ],\n      \"kind\": \"\"\n    },\n    \"dateRange\": {\n      \"endDate\": \"\",\n      \"kind\": \"\",\n      \"relativeDateRange\": \"\",\n      \"startDate\": \"\"\n    },\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sortOrder\": \"\"\n      }\n    ],\n    \"metricNames\": []\n  },\n  \"crossDimensionReachCriteria\": {\n    \"breakdown\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimension\": \"\",\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"metricNames\": [],\n    \"overlapMetricNames\": [],\n    \"pivoted\": false\n  },\n  \"delivery\": {\n    \"emailOwner\": false,\n    \"emailOwnerDeliveryType\": \"\",\n    \"message\": \"\",\n    \"recipients\": [\n      {\n        \"deliveryType\": \"\",\n        \"email\": \"\",\n        \"kind\": \"\"\n      }\n    ]\n  },\n  \"etag\": \"\",\n  \"fileName\": \"\",\n  \"floodlightCriteria\": {\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"reportProperties\": {\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false\n    }\n  },\n  \"format\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedTime\": \"\",\n  \"name\": \"\",\n  \"ownerProfileId\": \"\",\n  \"pathAttributionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {\n      \"fallbackName\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"rules\": [\n        {\n          \"disjunctiveMatchStatements\": [\n            {\n              \"eventFilters\": [\n                {\n                  \"dimensionFilter\": {\n                    \"dimensionName\": \"\",\n                    \"ids\": [],\n                    \"kind\": \"\",\n                    \"matchType\": \"\",\n                    \"values\": []\n                  },\n                  \"kind\": \"\"\n                }\n              ],\n              \"kind\": \"\"\n            }\n          ],\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {\n        \"eventFilters\": [\n          {}\n        ],\n        \"kind\": \"\",\n        \"pathMatchPosition\": \"\"\n      }\n    ]\n  },\n  \"pathCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {},\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {}\n    ]\n  },\n  \"pathToConversionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"conversionDimensions\": [\n      {}\n    ],\n    \"customFloodlightVariables\": [\n      {}\n    ],\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"perInteractionDimensions\": [\n      {}\n    ],\n    \"reportProperties\": {\n      \"clicksLookbackWindow\": 0,\n      \"impressionsLookbackWindow\": 0,\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false,\n      \"maximumClickInteractions\": 0,\n      \"maximumImpressionInteractions\": 0,\n      \"maximumInteractionGap\": 0,\n      \"pivotOnInteractionPath\": false\n    }\n  },\n  \"reachCriteria\": {\n    \"activities\": {},\n    \"customRichMediaEvents\": {},\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"enableAllDimensionCombinations\": false,\n    \"metricNames\": [],\n    \"reachByFrequencyMetricNames\": []\n  },\n  \"schedule\": {\n    \"active\": false,\n    \"every\": 0,\n    \"expirationDate\": \"\",\n    \"repeats\": \"\",\n    \"repeatsOnWeekDays\": [],\n    \"runsOnDayOfMonth\": \"\",\n    \"startDate\": \"\"\n  },\n  \"subAccountId\": \"\",\n  \"type\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/reports/:reportId")
  .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/userprofiles/:profileId/reports/:reportId',
  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({
  accountId: '',
  criteria: {
    activities: {
      filters: [{dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''}],
      kind: '',
      metricNames: []
    },
    customRichMediaEvents: {filteredEventIds: [{}], kind: ''},
    dateRange: {endDate: '', kind: '', relativeDateRange: '', startDate: ''},
    dimensionFilters: [{}],
    dimensions: [{kind: '', name: '', sortOrder: ''}],
    metricNames: []
  },
  crossDimensionReachCriteria: {
    breakdown: [{}],
    dateRange: {},
    dimension: '',
    dimensionFilters: [{}],
    metricNames: [],
    overlapMetricNames: [],
    pivoted: false
  },
  delivery: {
    emailOwner: false,
    emailOwnerDeliveryType: '',
    message: '',
    recipients: [{deliveryType: '', email: '', kind: ''}]
  },
  etag: '',
  fileName: '',
  floodlightCriteria: {
    customRichMediaEvents: [{}],
    dateRange: {},
    dimensionFilters: [{}],
    dimensions: [{}],
    floodlightConfigId: {},
    metricNames: [],
    reportProperties: {
      includeAttributedIPConversions: false,
      includeUnattributedCookieConversions: false,
      includeUnattributedIPConversions: false
    }
  },
  format: '',
  id: '',
  kind: '',
  lastModifiedTime: '',
  name: '',
  ownerProfileId: '',
  pathAttributionCriteria: {
    activityFilters: [{}],
    customChannelGrouping: {
      fallbackName: '',
      kind: '',
      name: '',
      rules: [
        {
          disjunctiveMatchStatements: [
            {
              eventFilters: [
                {
                  dimensionFilter: {dimensionName: '', ids: [], kind: '', matchType: '', values: []},
                  kind: ''
                }
              ],
              kind: ''
            }
          ],
          kind: '',
          name: ''
        }
      ]
    },
    dateRange: {},
    dimensions: [{}],
    floodlightConfigId: {},
    metricNames: [],
    pathFilters: [{eventFilters: [{}], kind: '', pathMatchPosition: ''}]
  },
  pathCriteria: {
    activityFilters: [{}],
    customChannelGrouping: {},
    dateRange: {},
    dimensions: [{}],
    floodlightConfigId: {},
    metricNames: [],
    pathFilters: [{}]
  },
  pathToConversionCriteria: {
    activityFilters: [{}],
    conversionDimensions: [{}],
    customFloodlightVariables: [{}],
    customRichMediaEvents: [{}],
    dateRange: {},
    floodlightConfigId: {},
    metricNames: [],
    perInteractionDimensions: [{}],
    reportProperties: {
      clicksLookbackWindow: 0,
      impressionsLookbackWindow: 0,
      includeAttributedIPConversions: false,
      includeUnattributedCookieConversions: false,
      includeUnattributedIPConversions: false,
      maximumClickInteractions: 0,
      maximumImpressionInteractions: 0,
      maximumInteractionGap: 0,
      pivotOnInteractionPath: false
    }
  },
  reachCriteria: {
    activities: {},
    customRichMediaEvents: {},
    dateRange: {},
    dimensionFilters: [{}],
    dimensions: [{}],
    enableAllDimensionCombinations: false,
    metricNames: [],
    reachByFrequencyMetricNames: []
  },
  schedule: {
    active: false,
    every: 0,
    expirationDate: '',
    repeats: '',
    repeatsOnWeekDays: [],
    runsOnDayOfMonth: '',
    startDate: ''
  },
  subAccountId: '',
  type: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/userprofiles/:profileId/reports/:reportId',
  headers: {'content-type': 'application/json'},
  body: {
    accountId: '',
    criteria: {
      activities: {
        filters: [{dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''}],
        kind: '',
        metricNames: []
      },
      customRichMediaEvents: {filteredEventIds: [{}], kind: ''},
      dateRange: {endDate: '', kind: '', relativeDateRange: '', startDate: ''},
      dimensionFilters: [{}],
      dimensions: [{kind: '', name: '', sortOrder: ''}],
      metricNames: []
    },
    crossDimensionReachCriteria: {
      breakdown: [{}],
      dateRange: {},
      dimension: '',
      dimensionFilters: [{}],
      metricNames: [],
      overlapMetricNames: [],
      pivoted: false
    },
    delivery: {
      emailOwner: false,
      emailOwnerDeliveryType: '',
      message: '',
      recipients: [{deliveryType: '', email: '', kind: ''}]
    },
    etag: '',
    fileName: '',
    floodlightCriteria: {
      customRichMediaEvents: [{}],
      dateRange: {},
      dimensionFilters: [{}],
      dimensions: [{}],
      floodlightConfigId: {},
      metricNames: [],
      reportProperties: {
        includeAttributedIPConversions: false,
        includeUnattributedCookieConversions: false,
        includeUnattributedIPConversions: false
      }
    },
    format: '',
    id: '',
    kind: '',
    lastModifiedTime: '',
    name: '',
    ownerProfileId: '',
    pathAttributionCriteria: {
      activityFilters: [{}],
      customChannelGrouping: {
        fallbackName: '',
        kind: '',
        name: '',
        rules: [
          {
            disjunctiveMatchStatements: [
              {
                eventFilters: [
                  {
                    dimensionFilter: {dimensionName: '', ids: [], kind: '', matchType: '', values: []},
                    kind: ''
                  }
                ],
                kind: ''
              }
            ],
            kind: '',
            name: ''
          }
        ]
      },
      dateRange: {},
      dimensions: [{}],
      floodlightConfigId: {},
      metricNames: [],
      pathFilters: [{eventFilters: [{}], kind: '', pathMatchPosition: ''}]
    },
    pathCriteria: {
      activityFilters: [{}],
      customChannelGrouping: {},
      dateRange: {},
      dimensions: [{}],
      floodlightConfigId: {},
      metricNames: [],
      pathFilters: [{}]
    },
    pathToConversionCriteria: {
      activityFilters: [{}],
      conversionDimensions: [{}],
      customFloodlightVariables: [{}],
      customRichMediaEvents: [{}],
      dateRange: {},
      floodlightConfigId: {},
      metricNames: [],
      perInteractionDimensions: [{}],
      reportProperties: {
        clicksLookbackWindow: 0,
        impressionsLookbackWindow: 0,
        includeAttributedIPConversions: false,
        includeUnattributedCookieConversions: false,
        includeUnattributedIPConversions: false,
        maximumClickInteractions: 0,
        maximumImpressionInteractions: 0,
        maximumInteractionGap: 0,
        pivotOnInteractionPath: false
      }
    },
    reachCriteria: {
      activities: {},
      customRichMediaEvents: {},
      dateRange: {},
      dimensionFilters: [{}],
      dimensions: [{}],
      enableAllDimensionCombinations: false,
      metricNames: [],
      reachByFrequencyMetricNames: []
    },
    schedule: {
      active: false,
      every: 0,
      expirationDate: '',
      repeats: '',
      repeatsOnWeekDays: [],
      runsOnDayOfMonth: '',
      startDate: ''
    },
    subAccountId: '',
    type: ''
  },
  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}}/userprofiles/:profileId/reports/:reportId');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  accountId: '',
  criteria: {
    activities: {
      filters: [
        {
          dimensionName: '',
          etag: '',
          id: '',
          kind: '',
          matchType: '',
          value: ''
        }
      ],
      kind: '',
      metricNames: []
    },
    customRichMediaEvents: {
      filteredEventIds: [
        {}
      ],
      kind: ''
    },
    dateRange: {
      endDate: '',
      kind: '',
      relativeDateRange: '',
      startDate: ''
    },
    dimensionFilters: [
      {}
    ],
    dimensions: [
      {
        kind: '',
        name: '',
        sortOrder: ''
      }
    ],
    metricNames: []
  },
  crossDimensionReachCriteria: {
    breakdown: [
      {}
    ],
    dateRange: {},
    dimension: '',
    dimensionFilters: [
      {}
    ],
    metricNames: [],
    overlapMetricNames: [],
    pivoted: false
  },
  delivery: {
    emailOwner: false,
    emailOwnerDeliveryType: '',
    message: '',
    recipients: [
      {
        deliveryType: '',
        email: '',
        kind: ''
      }
    ]
  },
  etag: '',
  fileName: '',
  floodlightCriteria: {
    customRichMediaEvents: [
      {}
    ],
    dateRange: {},
    dimensionFilters: [
      {}
    ],
    dimensions: [
      {}
    ],
    floodlightConfigId: {},
    metricNames: [],
    reportProperties: {
      includeAttributedIPConversions: false,
      includeUnattributedCookieConversions: false,
      includeUnattributedIPConversions: false
    }
  },
  format: '',
  id: '',
  kind: '',
  lastModifiedTime: '',
  name: '',
  ownerProfileId: '',
  pathAttributionCriteria: {
    activityFilters: [
      {}
    ],
    customChannelGrouping: {
      fallbackName: '',
      kind: '',
      name: '',
      rules: [
        {
          disjunctiveMatchStatements: [
            {
              eventFilters: [
                {
                  dimensionFilter: {
                    dimensionName: '',
                    ids: [],
                    kind: '',
                    matchType: '',
                    values: []
                  },
                  kind: ''
                }
              ],
              kind: ''
            }
          ],
          kind: '',
          name: ''
        }
      ]
    },
    dateRange: {},
    dimensions: [
      {}
    ],
    floodlightConfigId: {},
    metricNames: [],
    pathFilters: [
      {
        eventFilters: [
          {}
        ],
        kind: '',
        pathMatchPosition: ''
      }
    ]
  },
  pathCriteria: {
    activityFilters: [
      {}
    ],
    customChannelGrouping: {},
    dateRange: {},
    dimensions: [
      {}
    ],
    floodlightConfigId: {},
    metricNames: [],
    pathFilters: [
      {}
    ]
  },
  pathToConversionCriteria: {
    activityFilters: [
      {}
    ],
    conversionDimensions: [
      {}
    ],
    customFloodlightVariables: [
      {}
    ],
    customRichMediaEvents: [
      {}
    ],
    dateRange: {},
    floodlightConfigId: {},
    metricNames: [],
    perInteractionDimensions: [
      {}
    ],
    reportProperties: {
      clicksLookbackWindow: 0,
      impressionsLookbackWindow: 0,
      includeAttributedIPConversions: false,
      includeUnattributedCookieConversions: false,
      includeUnattributedIPConversions: false,
      maximumClickInteractions: 0,
      maximumImpressionInteractions: 0,
      maximumInteractionGap: 0,
      pivotOnInteractionPath: false
    }
  },
  reachCriteria: {
    activities: {},
    customRichMediaEvents: {},
    dateRange: {},
    dimensionFilters: [
      {}
    ],
    dimensions: [
      {}
    ],
    enableAllDimensionCombinations: false,
    metricNames: [],
    reachByFrequencyMetricNames: []
  },
  schedule: {
    active: false,
    every: 0,
    expirationDate: '',
    repeats: '',
    repeatsOnWeekDays: [],
    runsOnDayOfMonth: '',
    startDate: ''
  },
  subAccountId: '',
  type: ''
});

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}}/userprofiles/:profileId/reports/:reportId',
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    criteria: {
      activities: {
        filters: [{dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''}],
        kind: '',
        metricNames: []
      },
      customRichMediaEvents: {filteredEventIds: [{}], kind: ''},
      dateRange: {endDate: '', kind: '', relativeDateRange: '', startDate: ''},
      dimensionFilters: [{}],
      dimensions: [{kind: '', name: '', sortOrder: ''}],
      metricNames: []
    },
    crossDimensionReachCriteria: {
      breakdown: [{}],
      dateRange: {},
      dimension: '',
      dimensionFilters: [{}],
      metricNames: [],
      overlapMetricNames: [],
      pivoted: false
    },
    delivery: {
      emailOwner: false,
      emailOwnerDeliveryType: '',
      message: '',
      recipients: [{deliveryType: '', email: '', kind: ''}]
    },
    etag: '',
    fileName: '',
    floodlightCriteria: {
      customRichMediaEvents: [{}],
      dateRange: {},
      dimensionFilters: [{}],
      dimensions: [{}],
      floodlightConfigId: {},
      metricNames: [],
      reportProperties: {
        includeAttributedIPConversions: false,
        includeUnattributedCookieConversions: false,
        includeUnattributedIPConversions: false
      }
    },
    format: '',
    id: '',
    kind: '',
    lastModifiedTime: '',
    name: '',
    ownerProfileId: '',
    pathAttributionCriteria: {
      activityFilters: [{}],
      customChannelGrouping: {
        fallbackName: '',
        kind: '',
        name: '',
        rules: [
          {
            disjunctiveMatchStatements: [
              {
                eventFilters: [
                  {
                    dimensionFilter: {dimensionName: '', ids: [], kind: '', matchType: '', values: []},
                    kind: ''
                  }
                ],
                kind: ''
              }
            ],
            kind: '',
            name: ''
          }
        ]
      },
      dateRange: {},
      dimensions: [{}],
      floodlightConfigId: {},
      metricNames: [],
      pathFilters: [{eventFilters: [{}], kind: '', pathMatchPosition: ''}]
    },
    pathCriteria: {
      activityFilters: [{}],
      customChannelGrouping: {},
      dateRange: {},
      dimensions: [{}],
      floodlightConfigId: {},
      metricNames: [],
      pathFilters: [{}]
    },
    pathToConversionCriteria: {
      activityFilters: [{}],
      conversionDimensions: [{}],
      customFloodlightVariables: [{}],
      customRichMediaEvents: [{}],
      dateRange: {},
      floodlightConfigId: {},
      metricNames: [],
      perInteractionDimensions: [{}],
      reportProperties: {
        clicksLookbackWindow: 0,
        impressionsLookbackWindow: 0,
        includeAttributedIPConversions: false,
        includeUnattributedCookieConversions: false,
        includeUnattributedIPConversions: false,
        maximumClickInteractions: 0,
        maximumImpressionInteractions: 0,
        maximumInteractionGap: 0,
        pivotOnInteractionPath: false
      }
    },
    reachCriteria: {
      activities: {},
      customRichMediaEvents: {},
      dateRange: {},
      dimensionFilters: [{}],
      dimensions: [{}],
      enableAllDimensionCombinations: false,
      metricNames: [],
      reachByFrequencyMetricNames: []
    },
    schedule: {
      active: false,
      every: 0,
      expirationDate: '',
      repeats: '',
      repeatsOnWeekDays: [],
      runsOnDayOfMonth: '',
      startDate: ''
    },
    subAccountId: '',
    type: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/reports/:reportId';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","criteria":{"activities":{"filters":[{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""}],"kind":"","metricNames":[]},"customRichMediaEvents":{"filteredEventIds":[{}],"kind":""},"dateRange":{"endDate":"","kind":"","relativeDateRange":"","startDate":""},"dimensionFilters":[{}],"dimensions":[{"kind":"","name":"","sortOrder":""}],"metricNames":[]},"crossDimensionReachCriteria":{"breakdown":[{}],"dateRange":{},"dimension":"","dimensionFilters":[{}],"metricNames":[],"overlapMetricNames":[],"pivoted":false},"delivery":{"emailOwner":false,"emailOwnerDeliveryType":"","message":"","recipients":[{"deliveryType":"","email":"","kind":""}]},"etag":"","fileName":"","floodlightCriteria":{"customRichMediaEvents":[{}],"dateRange":{},"dimensionFilters":[{}],"dimensions":[{}],"floodlightConfigId":{},"metricNames":[],"reportProperties":{"includeAttributedIPConversions":false,"includeUnattributedCookieConversions":false,"includeUnattributedIPConversions":false}},"format":"","id":"","kind":"","lastModifiedTime":"","name":"","ownerProfileId":"","pathAttributionCriteria":{"activityFilters":[{}],"customChannelGrouping":{"fallbackName":"","kind":"","name":"","rules":[{"disjunctiveMatchStatements":[{"eventFilters":[{"dimensionFilter":{"dimensionName":"","ids":[],"kind":"","matchType":"","values":[]},"kind":""}],"kind":""}],"kind":"","name":""}]},"dateRange":{},"dimensions":[{}],"floodlightConfigId":{},"metricNames":[],"pathFilters":[{"eventFilters":[{}],"kind":"","pathMatchPosition":""}]},"pathCriteria":{"activityFilters":[{}],"customChannelGrouping":{},"dateRange":{},"dimensions":[{}],"floodlightConfigId":{},"metricNames":[],"pathFilters":[{}]},"pathToConversionCriteria":{"activityFilters":[{}],"conversionDimensions":[{}],"customFloodlightVariables":[{}],"customRichMediaEvents":[{}],"dateRange":{},"floodlightConfigId":{},"metricNames":[],"perInteractionDimensions":[{}],"reportProperties":{"clicksLookbackWindow":0,"impressionsLookbackWindow":0,"includeAttributedIPConversions":false,"includeUnattributedCookieConversions":false,"includeUnattributedIPConversions":false,"maximumClickInteractions":0,"maximumImpressionInteractions":0,"maximumInteractionGap":0,"pivotOnInteractionPath":false}},"reachCriteria":{"activities":{},"customRichMediaEvents":{},"dateRange":{},"dimensionFilters":[{}],"dimensions":[{}],"enableAllDimensionCombinations":false,"metricNames":[],"reachByFrequencyMetricNames":[]},"schedule":{"active":false,"every":0,"expirationDate":"","repeats":"","repeatsOnWeekDays":[],"runsOnDayOfMonth":"","startDate":""},"subAccountId":"","type":""}'
};

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 = @{ @"accountId": @"",
                              @"criteria": @{ @"activities": @{ @"filters": @[ @{ @"dimensionName": @"", @"etag": @"", @"id": @"", @"kind": @"", @"matchType": @"", @"value": @"" } ], @"kind": @"", @"metricNames": @[  ] }, @"customRichMediaEvents": @{ @"filteredEventIds": @[ @{  } ], @"kind": @"" }, @"dateRange": @{ @"endDate": @"", @"kind": @"", @"relativeDateRange": @"", @"startDate": @"" }, @"dimensionFilters": @[ @{  } ], @"dimensions": @[ @{ @"kind": @"", @"name": @"", @"sortOrder": @"" } ], @"metricNames": @[  ] },
                              @"crossDimensionReachCriteria": @{ @"breakdown": @[ @{  } ], @"dateRange": @{  }, @"dimension": @"", @"dimensionFilters": @[ @{  } ], @"metricNames": @[  ], @"overlapMetricNames": @[  ], @"pivoted": @NO },
                              @"delivery": @{ @"emailOwner": @NO, @"emailOwnerDeliveryType": @"", @"message": @"", @"recipients": @[ @{ @"deliveryType": @"", @"email": @"", @"kind": @"" } ] },
                              @"etag": @"",
                              @"fileName": @"",
                              @"floodlightCriteria": @{ @"customRichMediaEvents": @[ @{  } ], @"dateRange": @{  }, @"dimensionFilters": @[ @{  } ], @"dimensions": @[ @{  } ], @"floodlightConfigId": @{  }, @"metricNames": @[  ], @"reportProperties": @{ @"includeAttributedIPConversions": @NO, @"includeUnattributedCookieConversions": @NO, @"includeUnattributedIPConversions": @NO } },
                              @"format": @"",
                              @"id": @"",
                              @"kind": @"",
                              @"lastModifiedTime": @"",
                              @"name": @"",
                              @"ownerProfileId": @"",
                              @"pathAttributionCriteria": @{ @"activityFilters": @[ @{  } ], @"customChannelGrouping": @{ @"fallbackName": @"", @"kind": @"", @"name": @"", @"rules": @[ @{ @"disjunctiveMatchStatements": @[ @{ @"eventFilters": @[ @{ @"dimensionFilter": @{ @"dimensionName": @"", @"ids": @[  ], @"kind": @"", @"matchType": @"", @"values": @[  ] }, @"kind": @"" } ], @"kind": @"" } ], @"kind": @"", @"name": @"" } ] }, @"dateRange": @{  }, @"dimensions": @[ @{  } ], @"floodlightConfigId": @{  }, @"metricNames": @[  ], @"pathFilters": @[ @{ @"eventFilters": @[ @{  } ], @"kind": @"", @"pathMatchPosition": @"" } ] },
                              @"pathCriteria": @{ @"activityFilters": @[ @{  } ], @"customChannelGrouping": @{  }, @"dateRange": @{  }, @"dimensions": @[ @{  } ], @"floodlightConfigId": @{  }, @"metricNames": @[  ], @"pathFilters": @[ @{  } ] },
                              @"pathToConversionCriteria": @{ @"activityFilters": @[ @{  } ], @"conversionDimensions": @[ @{  } ], @"customFloodlightVariables": @[ @{  } ], @"customRichMediaEvents": @[ @{  } ], @"dateRange": @{  }, @"floodlightConfigId": @{  }, @"metricNames": @[  ], @"perInteractionDimensions": @[ @{  } ], @"reportProperties": @{ @"clicksLookbackWindow": @0, @"impressionsLookbackWindow": @0, @"includeAttributedIPConversions": @NO, @"includeUnattributedCookieConversions": @NO, @"includeUnattributedIPConversions": @NO, @"maximumClickInteractions": @0, @"maximumImpressionInteractions": @0, @"maximumInteractionGap": @0, @"pivotOnInteractionPath": @NO } },
                              @"reachCriteria": @{ @"activities": @{  }, @"customRichMediaEvents": @{  }, @"dateRange": @{  }, @"dimensionFilters": @[ @{  } ], @"dimensions": @[ @{  } ], @"enableAllDimensionCombinations": @NO, @"metricNames": @[  ], @"reachByFrequencyMetricNames": @[  ] },
                              @"schedule": @{ @"active": @NO, @"every": @0, @"expirationDate": @"", @"repeats": @"", @"repeatsOnWeekDays": @[  ], @"runsOnDayOfMonth": @"", @"startDate": @"" },
                              @"subAccountId": @"",
                              @"type": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/userprofiles/:profileId/reports/:reportId"]
                                                       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}}/userprofiles/:profileId/reports/:reportId" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"accountId\": \"\",\n  \"criteria\": {\n    \"activities\": {\n      \"filters\": [\n        {\n          \"dimensionName\": \"\",\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"matchType\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"kind\": \"\",\n      \"metricNames\": []\n    },\n    \"customRichMediaEvents\": {\n      \"filteredEventIds\": [\n        {}\n      ],\n      \"kind\": \"\"\n    },\n    \"dateRange\": {\n      \"endDate\": \"\",\n      \"kind\": \"\",\n      \"relativeDateRange\": \"\",\n      \"startDate\": \"\"\n    },\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sortOrder\": \"\"\n      }\n    ],\n    \"metricNames\": []\n  },\n  \"crossDimensionReachCriteria\": {\n    \"breakdown\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimension\": \"\",\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"metricNames\": [],\n    \"overlapMetricNames\": [],\n    \"pivoted\": false\n  },\n  \"delivery\": {\n    \"emailOwner\": false,\n    \"emailOwnerDeliveryType\": \"\",\n    \"message\": \"\",\n    \"recipients\": [\n      {\n        \"deliveryType\": \"\",\n        \"email\": \"\",\n        \"kind\": \"\"\n      }\n    ]\n  },\n  \"etag\": \"\",\n  \"fileName\": \"\",\n  \"floodlightCriteria\": {\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"reportProperties\": {\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false\n    }\n  },\n  \"format\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedTime\": \"\",\n  \"name\": \"\",\n  \"ownerProfileId\": \"\",\n  \"pathAttributionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {\n      \"fallbackName\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"rules\": [\n        {\n          \"disjunctiveMatchStatements\": [\n            {\n              \"eventFilters\": [\n                {\n                  \"dimensionFilter\": {\n                    \"dimensionName\": \"\",\n                    \"ids\": [],\n                    \"kind\": \"\",\n                    \"matchType\": \"\",\n                    \"values\": []\n                  },\n                  \"kind\": \"\"\n                }\n              ],\n              \"kind\": \"\"\n            }\n          ],\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {\n        \"eventFilters\": [\n          {}\n        ],\n        \"kind\": \"\",\n        \"pathMatchPosition\": \"\"\n      }\n    ]\n  },\n  \"pathCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {},\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {}\n    ]\n  },\n  \"pathToConversionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"conversionDimensions\": [\n      {}\n    ],\n    \"customFloodlightVariables\": [\n      {}\n    ],\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"perInteractionDimensions\": [\n      {}\n    ],\n    \"reportProperties\": {\n      \"clicksLookbackWindow\": 0,\n      \"impressionsLookbackWindow\": 0,\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false,\n      \"maximumClickInteractions\": 0,\n      \"maximumImpressionInteractions\": 0,\n      \"maximumInteractionGap\": 0,\n      \"pivotOnInteractionPath\": false\n    }\n  },\n  \"reachCriteria\": {\n    \"activities\": {},\n    \"customRichMediaEvents\": {},\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"enableAllDimensionCombinations\": false,\n    \"metricNames\": [],\n    \"reachByFrequencyMetricNames\": []\n  },\n  \"schedule\": {\n    \"active\": false,\n    \"every\": 0,\n    \"expirationDate\": \"\",\n    \"repeats\": \"\",\n    \"repeatsOnWeekDays\": [],\n    \"runsOnDayOfMonth\": \"\",\n    \"startDate\": \"\"\n  },\n  \"subAccountId\": \"\",\n  \"type\": \"\"\n}" in

Client.call ~headers ~body `PATCH uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/reports/:reportId",
  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([
    'accountId' => '',
    'criteria' => [
        'activities' => [
                'filters' => [
                                [
                                                                'dimensionName' => '',
                                                                'etag' => '',
                                                                'id' => '',
                                                                'kind' => '',
                                                                'matchType' => '',
                                                                'value' => ''
                                ]
                ],
                'kind' => '',
                'metricNames' => [
                                
                ]
        ],
        'customRichMediaEvents' => [
                'filteredEventIds' => [
                                [
                                                                
                                ]
                ],
                'kind' => ''
        ],
        'dateRange' => [
                'endDate' => '',
                'kind' => '',
                'relativeDateRange' => '',
                'startDate' => ''
        ],
        'dimensionFilters' => [
                [
                                
                ]
        ],
        'dimensions' => [
                [
                                'kind' => '',
                                'name' => '',
                                'sortOrder' => ''
                ]
        ],
        'metricNames' => [
                
        ]
    ],
    'crossDimensionReachCriteria' => [
        'breakdown' => [
                [
                                
                ]
        ],
        'dateRange' => [
                
        ],
        'dimension' => '',
        'dimensionFilters' => [
                [
                                
                ]
        ],
        'metricNames' => [
                
        ],
        'overlapMetricNames' => [
                
        ],
        'pivoted' => null
    ],
    'delivery' => [
        'emailOwner' => null,
        'emailOwnerDeliveryType' => '',
        'message' => '',
        'recipients' => [
                [
                                'deliveryType' => '',
                                'email' => '',
                                'kind' => ''
                ]
        ]
    ],
    'etag' => '',
    'fileName' => '',
    'floodlightCriteria' => [
        'customRichMediaEvents' => [
                [
                                
                ]
        ],
        'dateRange' => [
                
        ],
        'dimensionFilters' => [
                [
                                
                ]
        ],
        'dimensions' => [
                [
                                
                ]
        ],
        'floodlightConfigId' => [
                
        ],
        'metricNames' => [
                
        ],
        'reportProperties' => [
                'includeAttributedIPConversions' => null,
                'includeUnattributedCookieConversions' => null,
                'includeUnattributedIPConversions' => null
        ]
    ],
    'format' => '',
    'id' => '',
    'kind' => '',
    'lastModifiedTime' => '',
    'name' => '',
    'ownerProfileId' => '',
    'pathAttributionCriteria' => [
        'activityFilters' => [
                [
                                
                ]
        ],
        'customChannelGrouping' => [
                'fallbackName' => '',
                'kind' => '',
                'name' => '',
                'rules' => [
                                [
                                                                'disjunctiveMatchStatements' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'eventFilters' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'dimensionFilter' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'dimensionName' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'ids' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'kind' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'matchType' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'values' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'kind' => ''
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'kind' => ''
                                                                                                                                ]
                                                                ],
                                                                'kind' => '',
                                                                'name' => ''
                                ]
                ]
        ],
        'dateRange' => [
                
        ],
        'dimensions' => [
                [
                                
                ]
        ],
        'floodlightConfigId' => [
                
        ],
        'metricNames' => [
                
        ],
        'pathFilters' => [
                [
                                'eventFilters' => [
                                                                [
                                                                                                                                
                                                                ]
                                ],
                                'kind' => '',
                                'pathMatchPosition' => ''
                ]
        ]
    ],
    'pathCriteria' => [
        'activityFilters' => [
                [
                                
                ]
        ],
        'customChannelGrouping' => [
                
        ],
        'dateRange' => [
                
        ],
        'dimensions' => [
                [
                                
                ]
        ],
        'floodlightConfigId' => [
                
        ],
        'metricNames' => [
                
        ],
        'pathFilters' => [
                [
                                
                ]
        ]
    ],
    'pathToConversionCriteria' => [
        'activityFilters' => [
                [
                                
                ]
        ],
        'conversionDimensions' => [
                [
                                
                ]
        ],
        'customFloodlightVariables' => [
                [
                                
                ]
        ],
        'customRichMediaEvents' => [
                [
                                
                ]
        ],
        'dateRange' => [
                
        ],
        'floodlightConfigId' => [
                
        ],
        'metricNames' => [
                
        ],
        'perInteractionDimensions' => [
                [
                                
                ]
        ],
        'reportProperties' => [
                'clicksLookbackWindow' => 0,
                'impressionsLookbackWindow' => 0,
                'includeAttributedIPConversions' => null,
                'includeUnattributedCookieConversions' => null,
                'includeUnattributedIPConversions' => null,
                'maximumClickInteractions' => 0,
                'maximumImpressionInteractions' => 0,
                'maximumInteractionGap' => 0,
                'pivotOnInteractionPath' => null
        ]
    ],
    'reachCriteria' => [
        'activities' => [
                
        ],
        'customRichMediaEvents' => [
                
        ],
        'dateRange' => [
                
        ],
        'dimensionFilters' => [
                [
                                
                ]
        ],
        'dimensions' => [
                [
                                
                ]
        ],
        'enableAllDimensionCombinations' => null,
        'metricNames' => [
                
        ],
        'reachByFrequencyMetricNames' => [
                
        ]
    ],
    'schedule' => [
        'active' => null,
        'every' => 0,
        'expirationDate' => '',
        'repeats' => '',
        'repeatsOnWeekDays' => [
                
        ],
        'runsOnDayOfMonth' => '',
        'startDate' => ''
    ],
    'subAccountId' => '',
    'type' => ''
  ]),
  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}}/userprofiles/:profileId/reports/:reportId', [
  'body' => '{
  "accountId": "",
  "criteria": {
    "activities": {
      "filters": [
        {
          "dimensionName": "",
          "etag": "",
          "id": "",
          "kind": "",
          "matchType": "",
          "value": ""
        }
      ],
      "kind": "",
      "metricNames": []
    },
    "customRichMediaEvents": {
      "filteredEventIds": [
        {}
      ],
      "kind": ""
    },
    "dateRange": {
      "endDate": "",
      "kind": "",
      "relativeDateRange": "",
      "startDate": ""
    },
    "dimensionFilters": [
      {}
    ],
    "dimensions": [
      {
        "kind": "",
        "name": "",
        "sortOrder": ""
      }
    ],
    "metricNames": []
  },
  "crossDimensionReachCriteria": {
    "breakdown": [
      {}
    ],
    "dateRange": {},
    "dimension": "",
    "dimensionFilters": [
      {}
    ],
    "metricNames": [],
    "overlapMetricNames": [],
    "pivoted": false
  },
  "delivery": {
    "emailOwner": false,
    "emailOwnerDeliveryType": "",
    "message": "",
    "recipients": [
      {
        "deliveryType": "",
        "email": "",
        "kind": ""
      }
    ]
  },
  "etag": "",
  "fileName": "",
  "floodlightCriteria": {
    "customRichMediaEvents": [
      {}
    ],
    "dateRange": {},
    "dimensionFilters": [
      {}
    ],
    "dimensions": [
      {}
    ],
    "floodlightConfigId": {},
    "metricNames": [],
    "reportProperties": {
      "includeAttributedIPConversions": false,
      "includeUnattributedCookieConversions": false,
      "includeUnattributedIPConversions": false
    }
  },
  "format": "",
  "id": "",
  "kind": "",
  "lastModifiedTime": "",
  "name": "",
  "ownerProfileId": "",
  "pathAttributionCriteria": {
    "activityFilters": [
      {}
    ],
    "customChannelGrouping": {
      "fallbackName": "",
      "kind": "",
      "name": "",
      "rules": [
        {
          "disjunctiveMatchStatements": [
            {
              "eventFilters": [
                {
                  "dimensionFilter": {
                    "dimensionName": "",
                    "ids": [],
                    "kind": "",
                    "matchType": "",
                    "values": []
                  },
                  "kind": ""
                }
              ],
              "kind": ""
            }
          ],
          "kind": "",
          "name": ""
        }
      ]
    },
    "dateRange": {},
    "dimensions": [
      {}
    ],
    "floodlightConfigId": {},
    "metricNames": [],
    "pathFilters": [
      {
        "eventFilters": [
          {}
        ],
        "kind": "",
        "pathMatchPosition": ""
      }
    ]
  },
  "pathCriteria": {
    "activityFilters": [
      {}
    ],
    "customChannelGrouping": {},
    "dateRange": {},
    "dimensions": [
      {}
    ],
    "floodlightConfigId": {},
    "metricNames": [],
    "pathFilters": [
      {}
    ]
  },
  "pathToConversionCriteria": {
    "activityFilters": [
      {}
    ],
    "conversionDimensions": [
      {}
    ],
    "customFloodlightVariables": [
      {}
    ],
    "customRichMediaEvents": [
      {}
    ],
    "dateRange": {},
    "floodlightConfigId": {},
    "metricNames": [],
    "perInteractionDimensions": [
      {}
    ],
    "reportProperties": {
      "clicksLookbackWindow": 0,
      "impressionsLookbackWindow": 0,
      "includeAttributedIPConversions": false,
      "includeUnattributedCookieConversions": false,
      "includeUnattributedIPConversions": false,
      "maximumClickInteractions": 0,
      "maximumImpressionInteractions": 0,
      "maximumInteractionGap": 0,
      "pivotOnInteractionPath": false
    }
  },
  "reachCriteria": {
    "activities": {},
    "customRichMediaEvents": {},
    "dateRange": {},
    "dimensionFilters": [
      {}
    ],
    "dimensions": [
      {}
    ],
    "enableAllDimensionCombinations": false,
    "metricNames": [],
    "reachByFrequencyMetricNames": []
  },
  "schedule": {
    "active": false,
    "every": 0,
    "expirationDate": "",
    "repeats": "",
    "repeatsOnWeekDays": [],
    "runsOnDayOfMonth": "",
    "startDate": ""
  },
  "subAccountId": "",
  "type": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/reports/:reportId');
$request->setMethod(HttpRequest::HTTP_METH_PATCH);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'accountId' => '',
  'criteria' => [
    'activities' => [
        'filters' => [
                [
                                'dimensionName' => '',
                                'etag' => '',
                                'id' => '',
                                'kind' => '',
                                'matchType' => '',
                                'value' => ''
                ]
        ],
        'kind' => '',
        'metricNames' => [
                
        ]
    ],
    'customRichMediaEvents' => [
        'filteredEventIds' => [
                [
                                
                ]
        ],
        'kind' => ''
    ],
    'dateRange' => [
        'endDate' => '',
        'kind' => '',
        'relativeDateRange' => '',
        'startDate' => ''
    ],
    'dimensionFilters' => [
        [
                
        ]
    ],
    'dimensions' => [
        [
                'kind' => '',
                'name' => '',
                'sortOrder' => ''
        ]
    ],
    'metricNames' => [
        
    ]
  ],
  'crossDimensionReachCriteria' => [
    'breakdown' => [
        [
                
        ]
    ],
    'dateRange' => [
        
    ],
    'dimension' => '',
    'dimensionFilters' => [
        [
                
        ]
    ],
    'metricNames' => [
        
    ],
    'overlapMetricNames' => [
        
    ],
    'pivoted' => null
  ],
  'delivery' => [
    'emailOwner' => null,
    'emailOwnerDeliveryType' => '',
    'message' => '',
    'recipients' => [
        [
                'deliveryType' => '',
                'email' => '',
                'kind' => ''
        ]
    ]
  ],
  'etag' => '',
  'fileName' => '',
  'floodlightCriteria' => [
    'customRichMediaEvents' => [
        [
                
        ]
    ],
    'dateRange' => [
        
    ],
    'dimensionFilters' => [
        [
                
        ]
    ],
    'dimensions' => [
        [
                
        ]
    ],
    'floodlightConfigId' => [
        
    ],
    'metricNames' => [
        
    ],
    'reportProperties' => [
        'includeAttributedIPConversions' => null,
        'includeUnattributedCookieConversions' => null,
        'includeUnattributedIPConversions' => null
    ]
  ],
  'format' => '',
  'id' => '',
  'kind' => '',
  'lastModifiedTime' => '',
  'name' => '',
  'ownerProfileId' => '',
  'pathAttributionCriteria' => [
    'activityFilters' => [
        [
                
        ]
    ],
    'customChannelGrouping' => [
        'fallbackName' => '',
        'kind' => '',
        'name' => '',
        'rules' => [
                [
                                'disjunctiveMatchStatements' => [
                                                                [
                                                                                                                                'eventFilters' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'dimensionFilter' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'dimensionName' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'ids' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'kind' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'matchType' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'values' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'kind' => ''
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'kind' => ''
                                                                ]
                                ],
                                'kind' => '',
                                'name' => ''
                ]
        ]
    ],
    'dateRange' => [
        
    ],
    'dimensions' => [
        [
                
        ]
    ],
    'floodlightConfigId' => [
        
    ],
    'metricNames' => [
        
    ],
    'pathFilters' => [
        [
                'eventFilters' => [
                                [
                                                                
                                ]
                ],
                'kind' => '',
                'pathMatchPosition' => ''
        ]
    ]
  ],
  'pathCriteria' => [
    'activityFilters' => [
        [
                
        ]
    ],
    'customChannelGrouping' => [
        
    ],
    'dateRange' => [
        
    ],
    'dimensions' => [
        [
                
        ]
    ],
    'floodlightConfigId' => [
        
    ],
    'metricNames' => [
        
    ],
    'pathFilters' => [
        [
                
        ]
    ]
  ],
  'pathToConversionCriteria' => [
    'activityFilters' => [
        [
                
        ]
    ],
    'conversionDimensions' => [
        [
                
        ]
    ],
    'customFloodlightVariables' => [
        [
                
        ]
    ],
    'customRichMediaEvents' => [
        [
                
        ]
    ],
    'dateRange' => [
        
    ],
    'floodlightConfigId' => [
        
    ],
    'metricNames' => [
        
    ],
    'perInteractionDimensions' => [
        [
                
        ]
    ],
    'reportProperties' => [
        'clicksLookbackWindow' => 0,
        'impressionsLookbackWindow' => 0,
        'includeAttributedIPConversions' => null,
        'includeUnattributedCookieConversions' => null,
        'includeUnattributedIPConversions' => null,
        'maximumClickInteractions' => 0,
        'maximumImpressionInteractions' => 0,
        'maximumInteractionGap' => 0,
        'pivotOnInteractionPath' => null
    ]
  ],
  'reachCriteria' => [
    'activities' => [
        
    ],
    'customRichMediaEvents' => [
        
    ],
    'dateRange' => [
        
    ],
    'dimensionFilters' => [
        [
                
        ]
    ],
    'dimensions' => [
        [
                
        ]
    ],
    'enableAllDimensionCombinations' => null,
    'metricNames' => [
        
    ],
    'reachByFrequencyMetricNames' => [
        
    ]
  ],
  'schedule' => [
    'active' => null,
    'every' => 0,
    'expirationDate' => '',
    'repeats' => '',
    'repeatsOnWeekDays' => [
        
    ],
    'runsOnDayOfMonth' => '',
    'startDate' => ''
  ],
  'subAccountId' => '',
  'type' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'accountId' => '',
  'criteria' => [
    'activities' => [
        'filters' => [
                [
                                'dimensionName' => '',
                                'etag' => '',
                                'id' => '',
                                'kind' => '',
                                'matchType' => '',
                                'value' => ''
                ]
        ],
        'kind' => '',
        'metricNames' => [
                
        ]
    ],
    'customRichMediaEvents' => [
        'filteredEventIds' => [
                [
                                
                ]
        ],
        'kind' => ''
    ],
    'dateRange' => [
        'endDate' => '',
        'kind' => '',
        'relativeDateRange' => '',
        'startDate' => ''
    ],
    'dimensionFilters' => [
        [
                
        ]
    ],
    'dimensions' => [
        [
                'kind' => '',
                'name' => '',
                'sortOrder' => ''
        ]
    ],
    'metricNames' => [
        
    ]
  ],
  'crossDimensionReachCriteria' => [
    'breakdown' => [
        [
                
        ]
    ],
    'dateRange' => [
        
    ],
    'dimension' => '',
    'dimensionFilters' => [
        [
                
        ]
    ],
    'metricNames' => [
        
    ],
    'overlapMetricNames' => [
        
    ],
    'pivoted' => null
  ],
  'delivery' => [
    'emailOwner' => null,
    'emailOwnerDeliveryType' => '',
    'message' => '',
    'recipients' => [
        [
                'deliveryType' => '',
                'email' => '',
                'kind' => ''
        ]
    ]
  ],
  'etag' => '',
  'fileName' => '',
  'floodlightCriteria' => [
    'customRichMediaEvents' => [
        [
                
        ]
    ],
    'dateRange' => [
        
    ],
    'dimensionFilters' => [
        [
                
        ]
    ],
    'dimensions' => [
        [
                
        ]
    ],
    'floodlightConfigId' => [
        
    ],
    'metricNames' => [
        
    ],
    'reportProperties' => [
        'includeAttributedIPConversions' => null,
        'includeUnattributedCookieConversions' => null,
        'includeUnattributedIPConversions' => null
    ]
  ],
  'format' => '',
  'id' => '',
  'kind' => '',
  'lastModifiedTime' => '',
  'name' => '',
  'ownerProfileId' => '',
  'pathAttributionCriteria' => [
    'activityFilters' => [
        [
                
        ]
    ],
    'customChannelGrouping' => [
        'fallbackName' => '',
        'kind' => '',
        'name' => '',
        'rules' => [
                [
                                'disjunctiveMatchStatements' => [
                                                                [
                                                                                                                                'eventFilters' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'dimensionFilter' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'dimensionName' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'ids' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'kind' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'matchType' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'values' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'kind' => ''
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'kind' => ''
                                                                ]
                                ],
                                'kind' => '',
                                'name' => ''
                ]
        ]
    ],
    'dateRange' => [
        
    ],
    'dimensions' => [
        [
                
        ]
    ],
    'floodlightConfigId' => [
        
    ],
    'metricNames' => [
        
    ],
    'pathFilters' => [
        [
                'eventFilters' => [
                                [
                                                                
                                ]
                ],
                'kind' => '',
                'pathMatchPosition' => ''
        ]
    ]
  ],
  'pathCriteria' => [
    'activityFilters' => [
        [
                
        ]
    ],
    'customChannelGrouping' => [
        
    ],
    'dateRange' => [
        
    ],
    'dimensions' => [
        [
                
        ]
    ],
    'floodlightConfigId' => [
        
    ],
    'metricNames' => [
        
    ],
    'pathFilters' => [
        [
                
        ]
    ]
  ],
  'pathToConversionCriteria' => [
    'activityFilters' => [
        [
                
        ]
    ],
    'conversionDimensions' => [
        [
                
        ]
    ],
    'customFloodlightVariables' => [
        [
                
        ]
    ],
    'customRichMediaEvents' => [
        [
                
        ]
    ],
    'dateRange' => [
        
    ],
    'floodlightConfigId' => [
        
    ],
    'metricNames' => [
        
    ],
    'perInteractionDimensions' => [
        [
                
        ]
    ],
    'reportProperties' => [
        'clicksLookbackWindow' => 0,
        'impressionsLookbackWindow' => 0,
        'includeAttributedIPConversions' => null,
        'includeUnattributedCookieConversions' => null,
        'includeUnattributedIPConversions' => null,
        'maximumClickInteractions' => 0,
        'maximumImpressionInteractions' => 0,
        'maximumInteractionGap' => 0,
        'pivotOnInteractionPath' => null
    ]
  ],
  'reachCriteria' => [
    'activities' => [
        
    ],
    'customRichMediaEvents' => [
        
    ],
    'dateRange' => [
        
    ],
    'dimensionFilters' => [
        [
                
        ]
    ],
    'dimensions' => [
        [
                
        ]
    ],
    'enableAllDimensionCombinations' => null,
    'metricNames' => [
        
    ],
    'reachByFrequencyMetricNames' => [
        
    ]
  ],
  'schedule' => [
    'active' => null,
    'every' => 0,
    'expirationDate' => '',
    'repeats' => '',
    'repeatsOnWeekDays' => [
        
    ],
    'runsOnDayOfMonth' => '',
    'startDate' => ''
  ],
  'subAccountId' => '',
  'type' => ''
]));
$request->setRequestUrl('{{baseUrl}}/userprofiles/:profileId/reports/:reportId');
$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}}/userprofiles/:profileId/reports/:reportId' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "criteria": {
    "activities": {
      "filters": [
        {
          "dimensionName": "",
          "etag": "",
          "id": "",
          "kind": "",
          "matchType": "",
          "value": ""
        }
      ],
      "kind": "",
      "metricNames": []
    },
    "customRichMediaEvents": {
      "filteredEventIds": [
        {}
      ],
      "kind": ""
    },
    "dateRange": {
      "endDate": "",
      "kind": "",
      "relativeDateRange": "",
      "startDate": ""
    },
    "dimensionFilters": [
      {}
    ],
    "dimensions": [
      {
        "kind": "",
        "name": "",
        "sortOrder": ""
      }
    ],
    "metricNames": []
  },
  "crossDimensionReachCriteria": {
    "breakdown": [
      {}
    ],
    "dateRange": {},
    "dimension": "",
    "dimensionFilters": [
      {}
    ],
    "metricNames": [],
    "overlapMetricNames": [],
    "pivoted": false
  },
  "delivery": {
    "emailOwner": false,
    "emailOwnerDeliveryType": "",
    "message": "",
    "recipients": [
      {
        "deliveryType": "",
        "email": "",
        "kind": ""
      }
    ]
  },
  "etag": "",
  "fileName": "",
  "floodlightCriteria": {
    "customRichMediaEvents": [
      {}
    ],
    "dateRange": {},
    "dimensionFilters": [
      {}
    ],
    "dimensions": [
      {}
    ],
    "floodlightConfigId": {},
    "metricNames": [],
    "reportProperties": {
      "includeAttributedIPConversions": false,
      "includeUnattributedCookieConversions": false,
      "includeUnattributedIPConversions": false
    }
  },
  "format": "",
  "id": "",
  "kind": "",
  "lastModifiedTime": "",
  "name": "",
  "ownerProfileId": "",
  "pathAttributionCriteria": {
    "activityFilters": [
      {}
    ],
    "customChannelGrouping": {
      "fallbackName": "",
      "kind": "",
      "name": "",
      "rules": [
        {
          "disjunctiveMatchStatements": [
            {
              "eventFilters": [
                {
                  "dimensionFilter": {
                    "dimensionName": "",
                    "ids": [],
                    "kind": "",
                    "matchType": "",
                    "values": []
                  },
                  "kind": ""
                }
              ],
              "kind": ""
            }
          ],
          "kind": "",
          "name": ""
        }
      ]
    },
    "dateRange": {},
    "dimensions": [
      {}
    ],
    "floodlightConfigId": {},
    "metricNames": [],
    "pathFilters": [
      {
        "eventFilters": [
          {}
        ],
        "kind": "",
        "pathMatchPosition": ""
      }
    ]
  },
  "pathCriteria": {
    "activityFilters": [
      {}
    ],
    "customChannelGrouping": {},
    "dateRange": {},
    "dimensions": [
      {}
    ],
    "floodlightConfigId": {},
    "metricNames": [],
    "pathFilters": [
      {}
    ]
  },
  "pathToConversionCriteria": {
    "activityFilters": [
      {}
    ],
    "conversionDimensions": [
      {}
    ],
    "customFloodlightVariables": [
      {}
    ],
    "customRichMediaEvents": [
      {}
    ],
    "dateRange": {},
    "floodlightConfigId": {},
    "metricNames": [],
    "perInteractionDimensions": [
      {}
    ],
    "reportProperties": {
      "clicksLookbackWindow": 0,
      "impressionsLookbackWindow": 0,
      "includeAttributedIPConversions": false,
      "includeUnattributedCookieConversions": false,
      "includeUnattributedIPConversions": false,
      "maximumClickInteractions": 0,
      "maximumImpressionInteractions": 0,
      "maximumInteractionGap": 0,
      "pivotOnInteractionPath": false
    }
  },
  "reachCriteria": {
    "activities": {},
    "customRichMediaEvents": {},
    "dateRange": {},
    "dimensionFilters": [
      {}
    ],
    "dimensions": [
      {}
    ],
    "enableAllDimensionCombinations": false,
    "metricNames": [],
    "reachByFrequencyMetricNames": []
  },
  "schedule": {
    "active": false,
    "every": 0,
    "expirationDate": "",
    "repeats": "",
    "repeatsOnWeekDays": [],
    "runsOnDayOfMonth": "",
    "startDate": ""
  },
  "subAccountId": "",
  "type": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/reports/:reportId' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "criteria": {
    "activities": {
      "filters": [
        {
          "dimensionName": "",
          "etag": "",
          "id": "",
          "kind": "",
          "matchType": "",
          "value": ""
        }
      ],
      "kind": "",
      "metricNames": []
    },
    "customRichMediaEvents": {
      "filteredEventIds": [
        {}
      ],
      "kind": ""
    },
    "dateRange": {
      "endDate": "",
      "kind": "",
      "relativeDateRange": "",
      "startDate": ""
    },
    "dimensionFilters": [
      {}
    ],
    "dimensions": [
      {
        "kind": "",
        "name": "",
        "sortOrder": ""
      }
    ],
    "metricNames": []
  },
  "crossDimensionReachCriteria": {
    "breakdown": [
      {}
    ],
    "dateRange": {},
    "dimension": "",
    "dimensionFilters": [
      {}
    ],
    "metricNames": [],
    "overlapMetricNames": [],
    "pivoted": false
  },
  "delivery": {
    "emailOwner": false,
    "emailOwnerDeliveryType": "",
    "message": "",
    "recipients": [
      {
        "deliveryType": "",
        "email": "",
        "kind": ""
      }
    ]
  },
  "etag": "",
  "fileName": "",
  "floodlightCriteria": {
    "customRichMediaEvents": [
      {}
    ],
    "dateRange": {},
    "dimensionFilters": [
      {}
    ],
    "dimensions": [
      {}
    ],
    "floodlightConfigId": {},
    "metricNames": [],
    "reportProperties": {
      "includeAttributedIPConversions": false,
      "includeUnattributedCookieConversions": false,
      "includeUnattributedIPConversions": false
    }
  },
  "format": "",
  "id": "",
  "kind": "",
  "lastModifiedTime": "",
  "name": "",
  "ownerProfileId": "",
  "pathAttributionCriteria": {
    "activityFilters": [
      {}
    ],
    "customChannelGrouping": {
      "fallbackName": "",
      "kind": "",
      "name": "",
      "rules": [
        {
          "disjunctiveMatchStatements": [
            {
              "eventFilters": [
                {
                  "dimensionFilter": {
                    "dimensionName": "",
                    "ids": [],
                    "kind": "",
                    "matchType": "",
                    "values": []
                  },
                  "kind": ""
                }
              ],
              "kind": ""
            }
          ],
          "kind": "",
          "name": ""
        }
      ]
    },
    "dateRange": {},
    "dimensions": [
      {}
    ],
    "floodlightConfigId": {},
    "metricNames": [],
    "pathFilters": [
      {
        "eventFilters": [
          {}
        ],
        "kind": "",
        "pathMatchPosition": ""
      }
    ]
  },
  "pathCriteria": {
    "activityFilters": [
      {}
    ],
    "customChannelGrouping": {},
    "dateRange": {},
    "dimensions": [
      {}
    ],
    "floodlightConfigId": {},
    "metricNames": [],
    "pathFilters": [
      {}
    ]
  },
  "pathToConversionCriteria": {
    "activityFilters": [
      {}
    ],
    "conversionDimensions": [
      {}
    ],
    "customFloodlightVariables": [
      {}
    ],
    "customRichMediaEvents": [
      {}
    ],
    "dateRange": {},
    "floodlightConfigId": {},
    "metricNames": [],
    "perInteractionDimensions": [
      {}
    ],
    "reportProperties": {
      "clicksLookbackWindow": 0,
      "impressionsLookbackWindow": 0,
      "includeAttributedIPConversions": false,
      "includeUnattributedCookieConversions": false,
      "includeUnattributedIPConversions": false,
      "maximumClickInteractions": 0,
      "maximumImpressionInteractions": 0,
      "maximumInteractionGap": 0,
      "pivotOnInteractionPath": false
    }
  },
  "reachCriteria": {
    "activities": {},
    "customRichMediaEvents": {},
    "dateRange": {},
    "dimensionFilters": [
      {}
    ],
    "dimensions": [
      {}
    ],
    "enableAllDimensionCombinations": false,
    "metricNames": [],
    "reachByFrequencyMetricNames": []
  },
  "schedule": {
    "active": false,
    "every": 0,
    "expirationDate": "",
    "repeats": "",
    "repeatsOnWeekDays": [],
    "runsOnDayOfMonth": "",
    "startDate": ""
  },
  "subAccountId": "",
  "type": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"accountId\": \"\",\n  \"criteria\": {\n    \"activities\": {\n      \"filters\": [\n        {\n          \"dimensionName\": \"\",\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"matchType\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"kind\": \"\",\n      \"metricNames\": []\n    },\n    \"customRichMediaEvents\": {\n      \"filteredEventIds\": [\n        {}\n      ],\n      \"kind\": \"\"\n    },\n    \"dateRange\": {\n      \"endDate\": \"\",\n      \"kind\": \"\",\n      \"relativeDateRange\": \"\",\n      \"startDate\": \"\"\n    },\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sortOrder\": \"\"\n      }\n    ],\n    \"metricNames\": []\n  },\n  \"crossDimensionReachCriteria\": {\n    \"breakdown\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimension\": \"\",\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"metricNames\": [],\n    \"overlapMetricNames\": [],\n    \"pivoted\": false\n  },\n  \"delivery\": {\n    \"emailOwner\": false,\n    \"emailOwnerDeliveryType\": \"\",\n    \"message\": \"\",\n    \"recipients\": [\n      {\n        \"deliveryType\": \"\",\n        \"email\": \"\",\n        \"kind\": \"\"\n      }\n    ]\n  },\n  \"etag\": \"\",\n  \"fileName\": \"\",\n  \"floodlightCriteria\": {\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"reportProperties\": {\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false\n    }\n  },\n  \"format\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedTime\": \"\",\n  \"name\": \"\",\n  \"ownerProfileId\": \"\",\n  \"pathAttributionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {\n      \"fallbackName\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"rules\": [\n        {\n          \"disjunctiveMatchStatements\": [\n            {\n              \"eventFilters\": [\n                {\n                  \"dimensionFilter\": {\n                    \"dimensionName\": \"\",\n                    \"ids\": [],\n                    \"kind\": \"\",\n                    \"matchType\": \"\",\n                    \"values\": []\n                  },\n                  \"kind\": \"\"\n                }\n              ],\n              \"kind\": \"\"\n            }\n          ],\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {\n        \"eventFilters\": [\n          {}\n        ],\n        \"kind\": \"\",\n        \"pathMatchPosition\": \"\"\n      }\n    ]\n  },\n  \"pathCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {},\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {}\n    ]\n  },\n  \"pathToConversionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"conversionDimensions\": [\n      {}\n    ],\n    \"customFloodlightVariables\": [\n      {}\n    ],\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"perInteractionDimensions\": [\n      {}\n    ],\n    \"reportProperties\": {\n      \"clicksLookbackWindow\": 0,\n      \"impressionsLookbackWindow\": 0,\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false,\n      \"maximumClickInteractions\": 0,\n      \"maximumImpressionInteractions\": 0,\n      \"maximumInteractionGap\": 0,\n      \"pivotOnInteractionPath\": false\n    }\n  },\n  \"reachCriteria\": {\n    \"activities\": {},\n    \"customRichMediaEvents\": {},\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"enableAllDimensionCombinations\": false,\n    \"metricNames\": [],\n    \"reachByFrequencyMetricNames\": []\n  },\n  \"schedule\": {\n    \"active\": false,\n    \"every\": 0,\n    \"expirationDate\": \"\",\n    \"repeats\": \"\",\n    \"repeatsOnWeekDays\": [],\n    \"runsOnDayOfMonth\": \"\",\n    \"startDate\": \"\"\n  },\n  \"subAccountId\": \"\",\n  \"type\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("PATCH", "/baseUrl/userprofiles/:profileId/reports/:reportId", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/reports/:reportId"

payload = {
    "accountId": "",
    "criteria": {
        "activities": {
            "filters": [
                {
                    "dimensionName": "",
                    "etag": "",
                    "id": "",
                    "kind": "",
                    "matchType": "",
                    "value": ""
                }
            ],
            "kind": "",
            "metricNames": []
        },
        "customRichMediaEvents": {
            "filteredEventIds": [{}],
            "kind": ""
        },
        "dateRange": {
            "endDate": "",
            "kind": "",
            "relativeDateRange": "",
            "startDate": ""
        },
        "dimensionFilters": [{}],
        "dimensions": [
            {
                "kind": "",
                "name": "",
                "sortOrder": ""
            }
        ],
        "metricNames": []
    },
    "crossDimensionReachCriteria": {
        "breakdown": [{}],
        "dateRange": {},
        "dimension": "",
        "dimensionFilters": [{}],
        "metricNames": [],
        "overlapMetricNames": [],
        "pivoted": False
    },
    "delivery": {
        "emailOwner": False,
        "emailOwnerDeliveryType": "",
        "message": "",
        "recipients": [
            {
                "deliveryType": "",
                "email": "",
                "kind": ""
            }
        ]
    },
    "etag": "",
    "fileName": "",
    "floodlightCriteria": {
        "customRichMediaEvents": [{}],
        "dateRange": {},
        "dimensionFilters": [{}],
        "dimensions": [{}],
        "floodlightConfigId": {},
        "metricNames": [],
        "reportProperties": {
            "includeAttributedIPConversions": False,
            "includeUnattributedCookieConversions": False,
            "includeUnattributedIPConversions": False
        }
    },
    "format": "",
    "id": "",
    "kind": "",
    "lastModifiedTime": "",
    "name": "",
    "ownerProfileId": "",
    "pathAttributionCriteria": {
        "activityFilters": [{}],
        "customChannelGrouping": {
            "fallbackName": "",
            "kind": "",
            "name": "",
            "rules": [
                {
                    "disjunctiveMatchStatements": [
                        {
                            "eventFilters": [
                                {
                                    "dimensionFilter": {
                                        "dimensionName": "",
                                        "ids": [],
                                        "kind": "",
                                        "matchType": "",
                                        "values": []
                                    },
                                    "kind": ""
                                }
                            ],
                            "kind": ""
                        }
                    ],
                    "kind": "",
                    "name": ""
                }
            ]
        },
        "dateRange": {},
        "dimensions": [{}],
        "floodlightConfigId": {},
        "metricNames": [],
        "pathFilters": [
            {
                "eventFilters": [{}],
                "kind": "",
                "pathMatchPosition": ""
            }
        ]
    },
    "pathCriteria": {
        "activityFilters": [{}],
        "customChannelGrouping": {},
        "dateRange": {},
        "dimensions": [{}],
        "floodlightConfigId": {},
        "metricNames": [],
        "pathFilters": [{}]
    },
    "pathToConversionCriteria": {
        "activityFilters": [{}],
        "conversionDimensions": [{}],
        "customFloodlightVariables": [{}],
        "customRichMediaEvents": [{}],
        "dateRange": {},
        "floodlightConfigId": {},
        "metricNames": [],
        "perInteractionDimensions": [{}],
        "reportProperties": {
            "clicksLookbackWindow": 0,
            "impressionsLookbackWindow": 0,
            "includeAttributedIPConversions": False,
            "includeUnattributedCookieConversions": False,
            "includeUnattributedIPConversions": False,
            "maximumClickInteractions": 0,
            "maximumImpressionInteractions": 0,
            "maximumInteractionGap": 0,
            "pivotOnInteractionPath": False
        }
    },
    "reachCriteria": {
        "activities": {},
        "customRichMediaEvents": {},
        "dateRange": {},
        "dimensionFilters": [{}],
        "dimensions": [{}],
        "enableAllDimensionCombinations": False,
        "metricNames": [],
        "reachByFrequencyMetricNames": []
    },
    "schedule": {
        "active": False,
        "every": 0,
        "expirationDate": "",
        "repeats": "",
        "repeatsOnWeekDays": [],
        "runsOnDayOfMonth": "",
        "startDate": ""
    },
    "subAccountId": "",
    "type": ""
}
headers = {"content-type": "application/json"}

response = requests.patch(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/reports/:reportId"

payload <- "{\n  \"accountId\": \"\",\n  \"criteria\": {\n    \"activities\": {\n      \"filters\": [\n        {\n          \"dimensionName\": \"\",\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"matchType\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"kind\": \"\",\n      \"metricNames\": []\n    },\n    \"customRichMediaEvents\": {\n      \"filteredEventIds\": [\n        {}\n      ],\n      \"kind\": \"\"\n    },\n    \"dateRange\": {\n      \"endDate\": \"\",\n      \"kind\": \"\",\n      \"relativeDateRange\": \"\",\n      \"startDate\": \"\"\n    },\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sortOrder\": \"\"\n      }\n    ],\n    \"metricNames\": []\n  },\n  \"crossDimensionReachCriteria\": {\n    \"breakdown\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimension\": \"\",\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"metricNames\": [],\n    \"overlapMetricNames\": [],\n    \"pivoted\": false\n  },\n  \"delivery\": {\n    \"emailOwner\": false,\n    \"emailOwnerDeliveryType\": \"\",\n    \"message\": \"\",\n    \"recipients\": [\n      {\n        \"deliveryType\": \"\",\n        \"email\": \"\",\n        \"kind\": \"\"\n      }\n    ]\n  },\n  \"etag\": \"\",\n  \"fileName\": \"\",\n  \"floodlightCriteria\": {\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"reportProperties\": {\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false\n    }\n  },\n  \"format\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedTime\": \"\",\n  \"name\": \"\",\n  \"ownerProfileId\": \"\",\n  \"pathAttributionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {\n      \"fallbackName\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"rules\": [\n        {\n          \"disjunctiveMatchStatements\": [\n            {\n              \"eventFilters\": [\n                {\n                  \"dimensionFilter\": {\n                    \"dimensionName\": \"\",\n                    \"ids\": [],\n                    \"kind\": \"\",\n                    \"matchType\": \"\",\n                    \"values\": []\n                  },\n                  \"kind\": \"\"\n                }\n              ],\n              \"kind\": \"\"\n            }\n          ],\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {\n        \"eventFilters\": [\n          {}\n        ],\n        \"kind\": \"\",\n        \"pathMatchPosition\": \"\"\n      }\n    ]\n  },\n  \"pathCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {},\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {}\n    ]\n  },\n  \"pathToConversionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"conversionDimensions\": [\n      {}\n    ],\n    \"customFloodlightVariables\": [\n      {}\n    ],\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"perInteractionDimensions\": [\n      {}\n    ],\n    \"reportProperties\": {\n      \"clicksLookbackWindow\": 0,\n      \"impressionsLookbackWindow\": 0,\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false,\n      \"maximumClickInteractions\": 0,\n      \"maximumImpressionInteractions\": 0,\n      \"maximumInteractionGap\": 0,\n      \"pivotOnInteractionPath\": false\n    }\n  },\n  \"reachCriteria\": {\n    \"activities\": {},\n    \"customRichMediaEvents\": {},\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"enableAllDimensionCombinations\": false,\n    \"metricNames\": [],\n    \"reachByFrequencyMetricNames\": []\n  },\n  \"schedule\": {\n    \"active\": false,\n    \"every\": 0,\n    \"expirationDate\": \"\",\n    \"repeats\": \"\",\n    \"repeatsOnWeekDays\": [],\n    \"runsOnDayOfMonth\": \"\",\n    \"startDate\": \"\"\n  },\n  \"subAccountId\": \"\",\n  \"type\": \"\"\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}}/userprofiles/:profileId/reports/:reportId")

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  \"accountId\": \"\",\n  \"criteria\": {\n    \"activities\": {\n      \"filters\": [\n        {\n          \"dimensionName\": \"\",\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"matchType\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"kind\": \"\",\n      \"metricNames\": []\n    },\n    \"customRichMediaEvents\": {\n      \"filteredEventIds\": [\n        {}\n      ],\n      \"kind\": \"\"\n    },\n    \"dateRange\": {\n      \"endDate\": \"\",\n      \"kind\": \"\",\n      \"relativeDateRange\": \"\",\n      \"startDate\": \"\"\n    },\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sortOrder\": \"\"\n      }\n    ],\n    \"metricNames\": []\n  },\n  \"crossDimensionReachCriteria\": {\n    \"breakdown\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimension\": \"\",\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"metricNames\": [],\n    \"overlapMetricNames\": [],\n    \"pivoted\": false\n  },\n  \"delivery\": {\n    \"emailOwner\": false,\n    \"emailOwnerDeliveryType\": \"\",\n    \"message\": \"\",\n    \"recipients\": [\n      {\n        \"deliveryType\": \"\",\n        \"email\": \"\",\n        \"kind\": \"\"\n      }\n    ]\n  },\n  \"etag\": \"\",\n  \"fileName\": \"\",\n  \"floodlightCriteria\": {\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"reportProperties\": {\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false\n    }\n  },\n  \"format\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedTime\": \"\",\n  \"name\": \"\",\n  \"ownerProfileId\": \"\",\n  \"pathAttributionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {\n      \"fallbackName\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"rules\": [\n        {\n          \"disjunctiveMatchStatements\": [\n            {\n              \"eventFilters\": [\n                {\n                  \"dimensionFilter\": {\n                    \"dimensionName\": \"\",\n                    \"ids\": [],\n                    \"kind\": \"\",\n                    \"matchType\": \"\",\n                    \"values\": []\n                  },\n                  \"kind\": \"\"\n                }\n              ],\n              \"kind\": \"\"\n            }\n          ],\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {\n        \"eventFilters\": [\n          {}\n        ],\n        \"kind\": \"\",\n        \"pathMatchPosition\": \"\"\n      }\n    ]\n  },\n  \"pathCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {},\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {}\n    ]\n  },\n  \"pathToConversionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"conversionDimensions\": [\n      {}\n    ],\n    \"customFloodlightVariables\": [\n      {}\n    ],\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"perInteractionDimensions\": [\n      {}\n    ],\n    \"reportProperties\": {\n      \"clicksLookbackWindow\": 0,\n      \"impressionsLookbackWindow\": 0,\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false,\n      \"maximumClickInteractions\": 0,\n      \"maximumImpressionInteractions\": 0,\n      \"maximumInteractionGap\": 0,\n      \"pivotOnInteractionPath\": false\n    }\n  },\n  \"reachCriteria\": {\n    \"activities\": {},\n    \"customRichMediaEvents\": {},\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"enableAllDimensionCombinations\": false,\n    \"metricNames\": [],\n    \"reachByFrequencyMetricNames\": []\n  },\n  \"schedule\": {\n    \"active\": false,\n    \"every\": 0,\n    \"expirationDate\": \"\",\n    \"repeats\": \"\",\n    \"repeatsOnWeekDays\": [],\n    \"runsOnDayOfMonth\": \"\",\n    \"startDate\": \"\"\n  },\n  \"subAccountId\": \"\",\n  \"type\": \"\"\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/userprofiles/:profileId/reports/:reportId') do |req|
  req.body = "{\n  \"accountId\": \"\",\n  \"criteria\": {\n    \"activities\": {\n      \"filters\": [\n        {\n          \"dimensionName\": \"\",\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"matchType\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"kind\": \"\",\n      \"metricNames\": []\n    },\n    \"customRichMediaEvents\": {\n      \"filteredEventIds\": [\n        {}\n      ],\n      \"kind\": \"\"\n    },\n    \"dateRange\": {\n      \"endDate\": \"\",\n      \"kind\": \"\",\n      \"relativeDateRange\": \"\",\n      \"startDate\": \"\"\n    },\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sortOrder\": \"\"\n      }\n    ],\n    \"metricNames\": []\n  },\n  \"crossDimensionReachCriteria\": {\n    \"breakdown\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimension\": \"\",\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"metricNames\": [],\n    \"overlapMetricNames\": [],\n    \"pivoted\": false\n  },\n  \"delivery\": {\n    \"emailOwner\": false,\n    \"emailOwnerDeliveryType\": \"\",\n    \"message\": \"\",\n    \"recipients\": [\n      {\n        \"deliveryType\": \"\",\n        \"email\": \"\",\n        \"kind\": \"\"\n      }\n    ]\n  },\n  \"etag\": \"\",\n  \"fileName\": \"\",\n  \"floodlightCriteria\": {\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"reportProperties\": {\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false\n    }\n  },\n  \"format\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedTime\": \"\",\n  \"name\": \"\",\n  \"ownerProfileId\": \"\",\n  \"pathAttributionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {\n      \"fallbackName\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"rules\": [\n        {\n          \"disjunctiveMatchStatements\": [\n            {\n              \"eventFilters\": [\n                {\n                  \"dimensionFilter\": {\n                    \"dimensionName\": \"\",\n                    \"ids\": [],\n                    \"kind\": \"\",\n                    \"matchType\": \"\",\n                    \"values\": []\n                  },\n                  \"kind\": \"\"\n                }\n              ],\n              \"kind\": \"\"\n            }\n          ],\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {\n        \"eventFilters\": [\n          {}\n        ],\n        \"kind\": \"\",\n        \"pathMatchPosition\": \"\"\n      }\n    ]\n  },\n  \"pathCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {},\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {}\n    ]\n  },\n  \"pathToConversionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"conversionDimensions\": [\n      {}\n    ],\n    \"customFloodlightVariables\": [\n      {}\n    ],\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"perInteractionDimensions\": [\n      {}\n    ],\n    \"reportProperties\": {\n      \"clicksLookbackWindow\": 0,\n      \"impressionsLookbackWindow\": 0,\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false,\n      \"maximumClickInteractions\": 0,\n      \"maximumImpressionInteractions\": 0,\n      \"maximumInteractionGap\": 0,\n      \"pivotOnInteractionPath\": false\n    }\n  },\n  \"reachCriteria\": {\n    \"activities\": {},\n    \"customRichMediaEvents\": {},\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"enableAllDimensionCombinations\": false,\n    \"metricNames\": [],\n    \"reachByFrequencyMetricNames\": []\n  },\n  \"schedule\": {\n    \"active\": false,\n    \"every\": 0,\n    \"expirationDate\": \"\",\n    \"repeats\": \"\",\n    \"repeatsOnWeekDays\": [],\n    \"runsOnDayOfMonth\": \"\",\n    \"startDate\": \"\"\n  },\n  \"subAccountId\": \"\",\n  \"type\": \"\"\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}}/userprofiles/:profileId/reports/:reportId";

    let payload = json!({
        "accountId": "",
        "criteria": json!({
            "activities": json!({
                "filters": (
                    json!({
                        "dimensionName": "",
                        "etag": "",
                        "id": "",
                        "kind": "",
                        "matchType": "",
                        "value": ""
                    })
                ),
                "kind": "",
                "metricNames": ()
            }),
            "customRichMediaEvents": json!({
                "filteredEventIds": (json!({})),
                "kind": ""
            }),
            "dateRange": json!({
                "endDate": "",
                "kind": "",
                "relativeDateRange": "",
                "startDate": ""
            }),
            "dimensionFilters": (json!({})),
            "dimensions": (
                json!({
                    "kind": "",
                    "name": "",
                    "sortOrder": ""
                })
            ),
            "metricNames": ()
        }),
        "crossDimensionReachCriteria": json!({
            "breakdown": (json!({})),
            "dateRange": json!({}),
            "dimension": "",
            "dimensionFilters": (json!({})),
            "metricNames": (),
            "overlapMetricNames": (),
            "pivoted": false
        }),
        "delivery": json!({
            "emailOwner": false,
            "emailOwnerDeliveryType": "",
            "message": "",
            "recipients": (
                json!({
                    "deliveryType": "",
                    "email": "",
                    "kind": ""
                })
            )
        }),
        "etag": "",
        "fileName": "",
        "floodlightCriteria": json!({
            "customRichMediaEvents": (json!({})),
            "dateRange": json!({}),
            "dimensionFilters": (json!({})),
            "dimensions": (json!({})),
            "floodlightConfigId": json!({}),
            "metricNames": (),
            "reportProperties": json!({
                "includeAttributedIPConversions": false,
                "includeUnattributedCookieConversions": false,
                "includeUnattributedIPConversions": false
            })
        }),
        "format": "",
        "id": "",
        "kind": "",
        "lastModifiedTime": "",
        "name": "",
        "ownerProfileId": "",
        "pathAttributionCriteria": json!({
            "activityFilters": (json!({})),
            "customChannelGrouping": json!({
                "fallbackName": "",
                "kind": "",
                "name": "",
                "rules": (
                    json!({
                        "disjunctiveMatchStatements": (
                            json!({
                                "eventFilters": (
                                    json!({
                                        "dimensionFilter": json!({
                                            "dimensionName": "",
                                            "ids": (),
                                            "kind": "",
                                            "matchType": "",
                                            "values": ()
                                        }),
                                        "kind": ""
                                    })
                                ),
                                "kind": ""
                            })
                        ),
                        "kind": "",
                        "name": ""
                    })
                )
            }),
            "dateRange": json!({}),
            "dimensions": (json!({})),
            "floodlightConfigId": json!({}),
            "metricNames": (),
            "pathFilters": (
                json!({
                    "eventFilters": (json!({})),
                    "kind": "",
                    "pathMatchPosition": ""
                })
            )
        }),
        "pathCriteria": json!({
            "activityFilters": (json!({})),
            "customChannelGrouping": json!({}),
            "dateRange": json!({}),
            "dimensions": (json!({})),
            "floodlightConfigId": json!({}),
            "metricNames": (),
            "pathFilters": (json!({}))
        }),
        "pathToConversionCriteria": json!({
            "activityFilters": (json!({})),
            "conversionDimensions": (json!({})),
            "customFloodlightVariables": (json!({})),
            "customRichMediaEvents": (json!({})),
            "dateRange": json!({}),
            "floodlightConfigId": json!({}),
            "metricNames": (),
            "perInteractionDimensions": (json!({})),
            "reportProperties": json!({
                "clicksLookbackWindow": 0,
                "impressionsLookbackWindow": 0,
                "includeAttributedIPConversions": false,
                "includeUnattributedCookieConversions": false,
                "includeUnattributedIPConversions": false,
                "maximumClickInteractions": 0,
                "maximumImpressionInteractions": 0,
                "maximumInteractionGap": 0,
                "pivotOnInteractionPath": false
            })
        }),
        "reachCriteria": json!({
            "activities": json!({}),
            "customRichMediaEvents": json!({}),
            "dateRange": json!({}),
            "dimensionFilters": (json!({})),
            "dimensions": (json!({})),
            "enableAllDimensionCombinations": false,
            "metricNames": (),
            "reachByFrequencyMetricNames": ()
        }),
        "schedule": json!({
            "active": false,
            "every": 0,
            "expirationDate": "",
            "repeats": "",
            "repeatsOnWeekDays": (),
            "runsOnDayOfMonth": "",
            "startDate": ""
        }),
        "subAccountId": "",
        "type": ""
    });

    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}}/userprofiles/:profileId/reports/:reportId \
  --header 'content-type: application/json' \
  --data '{
  "accountId": "",
  "criteria": {
    "activities": {
      "filters": [
        {
          "dimensionName": "",
          "etag": "",
          "id": "",
          "kind": "",
          "matchType": "",
          "value": ""
        }
      ],
      "kind": "",
      "metricNames": []
    },
    "customRichMediaEvents": {
      "filteredEventIds": [
        {}
      ],
      "kind": ""
    },
    "dateRange": {
      "endDate": "",
      "kind": "",
      "relativeDateRange": "",
      "startDate": ""
    },
    "dimensionFilters": [
      {}
    ],
    "dimensions": [
      {
        "kind": "",
        "name": "",
        "sortOrder": ""
      }
    ],
    "metricNames": []
  },
  "crossDimensionReachCriteria": {
    "breakdown": [
      {}
    ],
    "dateRange": {},
    "dimension": "",
    "dimensionFilters": [
      {}
    ],
    "metricNames": [],
    "overlapMetricNames": [],
    "pivoted": false
  },
  "delivery": {
    "emailOwner": false,
    "emailOwnerDeliveryType": "",
    "message": "",
    "recipients": [
      {
        "deliveryType": "",
        "email": "",
        "kind": ""
      }
    ]
  },
  "etag": "",
  "fileName": "",
  "floodlightCriteria": {
    "customRichMediaEvents": [
      {}
    ],
    "dateRange": {},
    "dimensionFilters": [
      {}
    ],
    "dimensions": [
      {}
    ],
    "floodlightConfigId": {},
    "metricNames": [],
    "reportProperties": {
      "includeAttributedIPConversions": false,
      "includeUnattributedCookieConversions": false,
      "includeUnattributedIPConversions": false
    }
  },
  "format": "",
  "id": "",
  "kind": "",
  "lastModifiedTime": "",
  "name": "",
  "ownerProfileId": "",
  "pathAttributionCriteria": {
    "activityFilters": [
      {}
    ],
    "customChannelGrouping": {
      "fallbackName": "",
      "kind": "",
      "name": "",
      "rules": [
        {
          "disjunctiveMatchStatements": [
            {
              "eventFilters": [
                {
                  "dimensionFilter": {
                    "dimensionName": "",
                    "ids": [],
                    "kind": "",
                    "matchType": "",
                    "values": []
                  },
                  "kind": ""
                }
              ],
              "kind": ""
            }
          ],
          "kind": "",
          "name": ""
        }
      ]
    },
    "dateRange": {},
    "dimensions": [
      {}
    ],
    "floodlightConfigId": {},
    "metricNames": [],
    "pathFilters": [
      {
        "eventFilters": [
          {}
        ],
        "kind": "",
        "pathMatchPosition": ""
      }
    ]
  },
  "pathCriteria": {
    "activityFilters": [
      {}
    ],
    "customChannelGrouping": {},
    "dateRange": {},
    "dimensions": [
      {}
    ],
    "floodlightConfigId": {},
    "metricNames": [],
    "pathFilters": [
      {}
    ]
  },
  "pathToConversionCriteria": {
    "activityFilters": [
      {}
    ],
    "conversionDimensions": [
      {}
    ],
    "customFloodlightVariables": [
      {}
    ],
    "customRichMediaEvents": [
      {}
    ],
    "dateRange": {},
    "floodlightConfigId": {},
    "metricNames": [],
    "perInteractionDimensions": [
      {}
    ],
    "reportProperties": {
      "clicksLookbackWindow": 0,
      "impressionsLookbackWindow": 0,
      "includeAttributedIPConversions": false,
      "includeUnattributedCookieConversions": false,
      "includeUnattributedIPConversions": false,
      "maximumClickInteractions": 0,
      "maximumImpressionInteractions": 0,
      "maximumInteractionGap": 0,
      "pivotOnInteractionPath": false
    }
  },
  "reachCriteria": {
    "activities": {},
    "customRichMediaEvents": {},
    "dateRange": {},
    "dimensionFilters": [
      {}
    ],
    "dimensions": [
      {}
    ],
    "enableAllDimensionCombinations": false,
    "metricNames": [],
    "reachByFrequencyMetricNames": []
  },
  "schedule": {
    "active": false,
    "every": 0,
    "expirationDate": "",
    "repeats": "",
    "repeatsOnWeekDays": [],
    "runsOnDayOfMonth": "",
    "startDate": ""
  },
  "subAccountId": "",
  "type": ""
}'
echo '{
  "accountId": "",
  "criteria": {
    "activities": {
      "filters": [
        {
          "dimensionName": "",
          "etag": "",
          "id": "",
          "kind": "",
          "matchType": "",
          "value": ""
        }
      ],
      "kind": "",
      "metricNames": []
    },
    "customRichMediaEvents": {
      "filteredEventIds": [
        {}
      ],
      "kind": ""
    },
    "dateRange": {
      "endDate": "",
      "kind": "",
      "relativeDateRange": "",
      "startDate": ""
    },
    "dimensionFilters": [
      {}
    ],
    "dimensions": [
      {
        "kind": "",
        "name": "",
        "sortOrder": ""
      }
    ],
    "metricNames": []
  },
  "crossDimensionReachCriteria": {
    "breakdown": [
      {}
    ],
    "dateRange": {},
    "dimension": "",
    "dimensionFilters": [
      {}
    ],
    "metricNames": [],
    "overlapMetricNames": [],
    "pivoted": false
  },
  "delivery": {
    "emailOwner": false,
    "emailOwnerDeliveryType": "",
    "message": "",
    "recipients": [
      {
        "deliveryType": "",
        "email": "",
        "kind": ""
      }
    ]
  },
  "etag": "",
  "fileName": "",
  "floodlightCriteria": {
    "customRichMediaEvents": [
      {}
    ],
    "dateRange": {},
    "dimensionFilters": [
      {}
    ],
    "dimensions": [
      {}
    ],
    "floodlightConfigId": {},
    "metricNames": [],
    "reportProperties": {
      "includeAttributedIPConversions": false,
      "includeUnattributedCookieConversions": false,
      "includeUnattributedIPConversions": false
    }
  },
  "format": "",
  "id": "",
  "kind": "",
  "lastModifiedTime": "",
  "name": "",
  "ownerProfileId": "",
  "pathAttributionCriteria": {
    "activityFilters": [
      {}
    ],
    "customChannelGrouping": {
      "fallbackName": "",
      "kind": "",
      "name": "",
      "rules": [
        {
          "disjunctiveMatchStatements": [
            {
              "eventFilters": [
                {
                  "dimensionFilter": {
                    "dimensionName": "",
                    "ids": [],
                    "kind": "",
                    "matchType": "",
                    "values": []
                  },
                  "kind": ""
                }
              ],
              "kind": ""
            }
          ],
          "kind": "",
          "name": ""
        }
      ]
    },
    "dateRange": {},
    "dimensions": [
      {}
    ],
    "floodlightConfigId": {},
    "metricNames": [],
    "pathFilters": [
      {
        "eventFilters": [
          {}
        ],
        "kind": "",
        "pathMatchPosition": ""
      }
    ]
  },
  "pathCriteria": {
    "activityFilters": [
      {}
    ],
    "customChannelGrouping": {},
    "dateRange": {},
    "dimensions": [
      {}
    ],
    "floodlightConfigId": {},
    "metricNames": [],
    "pathFilters": [
      {}
    ]
  },
  "pathToConversionCriteria": {
    "activityFilters": [
      {}
    ],
    "conversionDimensions": [
      {}
    ],
    "customFloodlightVariables": [
      {}
    ],
    "customRichMediaEvents": [
      {}
    ],
    "dateRange": {},
    "floodlightConfigId": {},
    "metricNames": [],
    "perInteractionDimensions": [
      {}
    ],
    "reportProperties": {
      "clicksLookbackWindow": 0,
      "impressionsLookbackWindow": 0,
      "includeAttributedIPConversions": false,
      "includeUnattributedCookieConversions": false,
      "includeUnattributedIPConversions": false,
      "maximumClickInteractions": 0,
      "maximumImpressionInteractions": 0,
      "maximumInteractionGap": 0,
      "pivotOnInteractionPath": false
    }
  },
  "reachCriteria": {
    "activities": {},
    "customRichMediaEvents": {},
    "dateRange": {},
    "dimensionFilters": [
      {}
    ],
    "dimensions": [
      {}
    ],
    "enableAllDimensionCombinations": false,
    "metricNames": [],
    "reachByFrequencyMetricNames": []
  },
  "schedule": {
    "active": false,
    "every": 0,
    "expirationDate": "",
    "repeats": "",
    "repeatsOnWeekDays": [],
    "runsOnDayOfMonth": "",
    "startDate": ""
  },
  "subAccountId": "",
  "type": ""
}' |  \
  http PATCH {{baseUrl}}/userprofiles/:profileId/reports/:reportId \
  content-type:application/json
wget --quiet \
  --method PATCH \
  --header 'content-type: application/json' \
  --body-data '{\n  "accountId": "",\n  "criteria": {\n    "activities": {\n      "filters": [\n        {\n          "dimensionName": "",\n          "etag": "",\n          "id": "",\n          "kind": "",\n          "matchType": "",\n          "value": ""\n        }\n      ],\n      "kind": "",\n      "metricNames": []\n    },\n    "customRichMediaEvents": {\n      "filteredEventIds": [\n        {}\n      ],\n      "kind": ""\n    },\n    "dateRange": {\n      "endDate": "",\n      "kind": "",\n      "relativeDateRange": "",\n      "startDate": ""\n    },\n    "dimensionFilters": [\n      {}\n    ],\n    "dimensions": [\n      {\n        "kind": "",\n        "name": "",\n        "sortOrder": ""\n      }\n    ],\n    "metricNames": []\n  },\n  "crossDimensionReachCriteria": {\n    "breakdown": [\n      {}\n    ],\n    "dateRange": {},\n    "dimension": "",\n    "dimensionFilters": [\n      {}\n    ],\n    "metricNames": [],\n    "overlapMetricNames": [],\n    "pivoted": false\n  },\n  "delivery": {\n    "emailOwner": false,\n    "emailOwnerDeliveryType": "",\n    "message": "",\n    "recipients": [\n      {\n        "deliveryType": "",\n        "email": "",\n        "kind": ""\n      }\n    ]\n  },\n  "etag": "",\n  "fileName": "",\n  "floodlightCriteria": {\n    "customRichMediaEvents": [\n      {}\n    ],\n    "dateRange": {},\n    "dimensionFilters": [\n      {}\n    ],\n    "dimensions": [\n      {}\n    ],\n    "floodlightConfigId": {},\n    "metricNames": [],\n    "reportProperties": {\n      "includeAttributedIPConversions": false,\n      "includeUnattributedCookieConversions": false,\n      "includeUnattributedIPConversions": false\n    }\n  },\n  "format": "",\n  "id": "",\n  "kind": "",\n  "lastModifiedTime": "",\n  "name": "",\n  "ownerProfileId": "",\n  "pathAttributionCriteria": {\n    "activityFilters": [\n      {}\n    ],\n    "customChannelGrouping": {\n      "fallbackName": "",\n      "kind": "",\n      "name": "",\n      "rules": [\n        {\n          "disjunctiveMatchStatements": [\n            {\n              "eventFilters": [\n                {\n                  "dimensionFilter": {\n                    "dimensionName": "",\n                    "ids": [],\n                    "kind": "",\n                    "matchType": "",\n                    "values": []\n                  },\n                  "kind": ""\n                }\n              ],\n              "kind": ""\n            }\n          ],\n          "kind": "",\n          "name": ""\n        }\n      ]\n    },\n    "dateRange": {},\n    "dimensions": [\n      {}\n    ],\n    "floodlightConfigId": {},\n    "metricNames": [],\n    "pathFilters": [\n      {\n        "eventFilters": [\n          {}\n        ],\n        "kind": "",\n        "pathMatchPosition": ""\n      }\n    ]\n  },\n  "pathCriteria": {\n    "activityFilters": [\n      {}\n    ],\n    "customChannelGrouping": {},\n    "dateRange": {},\n    "dimensions": [\n      {}\n    ],\n    "floodlightConfigId": {},\n    "metricNames": [],\n    "pathFilters": [\n      {}\n    ]\n  },\n  "pathToConversionCriteria": {\n    "activityFilters": [\n      {}\n    ],\n    "conversionDimensions": [\n      {}\n    ],\n    "customFloodlightVariables": [\n      {}\n    ],\n    "customRichMediaEvents": [\n      {}\n    ],\n    "dateRange": {},\n    "floodlightConfigId": {},\n    "metricNames": [],\n    "perInteractionDimensions": [\n      {}\n    ],\n    "reportProperties": {\n      "clicksLookbackWindow": 0,\n      "impressionsLookbackWindow": 0,\n      "includeAttributedIPConversions": false,\n      "includeUnattributedCookieConversions": false,\n      "includeUnattributedIPConversions": false,\n      "maximumClickInteractions": 0,\n      "maximumImpressionInteractions": 0,\n      "maximumInteractionGap": 0,\n      "pivotOnInteractionPath": false\n    }\n  },\n  "reachCriteria": {\n    "activities": {},\n    "customRichMediaEvents": {},\n    "dateRange": {},\n    "dimensionFilters": [\n      {}\n    ],\n    "dimensions": [\n      {}\n    ],\n    "enableAllDimensionCombinations": false,\n    "metricNames": [],\n    "reachByFrequencyMetricNames": []\n  },\n  "schedule": {\n    "active": false,\n    "every": 0,\n    "expirationDate": "",\n    "repeats": "",\n    "repeatsOnWeekDays": [],\n    "runsOnDayOfMonth": "",\n    "startDate": ""\n  },\n  "subAccountId": "",\n  "type": ""\n}' \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/reports/:reportId
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "accountId": "",
  "criteria": [
    "activities": [
      "filters": [
        [
          "dimensionName": "",
          "etag": "",
          "id": "",
          "kind": "",
          "matchType": "",
          "value": ""
        ]
      ],
      "kind": "",
      "metricNames": []
    ],
    "customRichMediaEvents": [
      "filteredEventIds": [[]],
      "kind": ""
    ],
    "dateRange": [
      "endDate": "",
      "kind": "",
      "relativeDateRange": "",
      "startDate": ""
    ],
    "dimensionFilters": [[]],
    "dimensions": [
      [
        "kind": "",
        "name": "",
        "sortOrder": ""
      ]
    ],
    "metricNames": []
  ],
  "crossDimensionReachCriteria": [
    "breakdown": [[]],
    "dateRange": [],
    "dimension": "",
    "dimensionFilters": [[]],
    "metricNames": [],
    "overlapMetricNames": [],
    "pivoted": false
  ],
  "delivery": [
    "emailOwner": false,
    "emailOwnerDeliveryType": "",
    "message": "",
    "recipients": [
      [
        "deliveryType": "",
        "email": "",
        "kind": ""
      ]
    ]
  ],
  "etag": "",
  "fileName": "",
  "floodlightCriteria": [
    "customRichMediaEvents": [[]],
    "dateRange": [],
    "dimensionFilters": [[]],
    "dimensions": [[]],
    "floodlightConfigId": [],
    "metricNames": [],
    "reportProperties": [
      "includeAttributedIPConversions": false,
      "includeUnattributedCookieConversions": false,
      "includeUnattributedIPConversions": false
    ]
  ],
  "format": "",
  "id": "",
  "kind": "",
  "lastModifiedTime": "",
  "name": "",
  "ownerProfileId": "",
  "pathAttributionCriteria": [
    "activityFilters": [[]],
    "customChannelGrouping": [
      "fallbackName": "",
      "kind": "",
      "name": "",
      "rules": [
        [
          "disjunctiveMatchStatements": [
            [
              "eventFilters": [
                [
                  "dimensionFilter": [
                    "dimensionName": "",
                    "ids": [],
                    "kind": "",
                    "matchType": "",
                    "values": []
                  ],
                  "kind": ""
                ]
              ],
              "kind": ""
            ]
          ],
          "kind": "",
          "name": ""
        ]
      ]
    ],
    "dateRange": [],
    "dimensions": [[]],
    "floodlightConfigId": [],
    "metricNames": [],
    "pathFilters": [
      [
        "eventFilters": [[]],
        "kind": "",
        "pathMatchPosition": ""
      ]
    ]
  ],
  "pathCriteria": [
    "activityFilters": [[]],
    "customChannelGrouping": [],
    "dateRange": [],
    "dimensions": [[]],
    "floodlightConfigId": [],
    "metricNames": [],
    "pathFilters": [[]]
  ],
  "pathToConversionCriteria": [
    "activityFilters": [[]],
    "conversionDimensions": [[]],
    "customFloodlightVariables": [[]],
    "customRichMediaEvents": [[]],
    "dateRange": [],
    "floodlightConfigId": [],
    "metricNames": [],
    "perInteractionDimensions": [[]],
    "reportProperties": [
      "clicksLookbackWindow": 0,
      "impressionsLookbackWindow": 0,
      "includeAttributedIPConversions": false,
      "includeUnattributedCookieConversions": false,
      "includeUnattributedIPConversions": false,
      "maximumClickInteractions": 0,
      "maximumImpressionInteractions": 0,
      "maximumInteractionGap": 0,
      "pivotOnInteractionPath": false
    ]
  ],
  "reachCriteria": [
    "activities": [],
    "customRichMediaEvents": [],
    "dateRange": [],
    "dimensionFilters": [[]],
    "dimensions": [[]],
    "enableAllDimensionCombinations": false,
    "metricNames": [],
    "reachByFrequencyMetricNames": []
  ],
  "schedule": [
    "active": false,
    "every": 0,
    "expirationDate": "",
    "repeats": "",
    "repeatsOnWeekDays": [],
    "runsOnDayOfMonth": "",
    "startDate": ""
  ],
  "subAccountId": "",
  "type": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/reports/:reportId")! 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 dfareporting.reports.run
{{baseUrl}}/userprofiles/:profileId/reports/:reportId/run
QUERY PARAMS

profileId
reportId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/reports/:reportId/run");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/userprofiles/:profileId/reports/:reportId/run")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/reports/:reportId/run"

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}}/userprofiles/:profileId/reports/:reportId/run"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/reports/:reportId/run");
var request = new RestRequest("", Method.Post);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/reports/:reportId/run"

	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/userprofiles/:profileId/reports/:reportId/run HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/userprofiles/:profileId/reports/:reportId/run")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/reports/:reportId/run"))
    .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}}/userprofiles/:profileId/reports/:reportId/run")
  .post(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/userprofiles/:profileId/reports/:reportId/run")
  .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}}/userprofiles/:profileId/reports/:reportId/run');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/userprofiles/:profileId/reports/:reportId/run'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/reports/:reportId/run';
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}}/userprofiles/:profileId/reports/:reportId/run',
  method: 'POST',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/reports/:reportId/run")
  .post(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'POST',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/reports/:reportId/run',
  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}}/userprofiles/:profileId/reports/:reportId/run'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/userprofiles/:profileId/reports/:reportId/run');

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}}/userprofiles/:profileId/reports/:reportId/run'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/reports/:reportId/run';
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}}/userprofiles/:profileId/reports/:reportId/run"]
                                                       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}}/userprofiles/:profileId/reports/:reportId/run" in

Client.call `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/reports/:reportId/run",
  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}}/userprofiles/:profileId/reports/:reportId/run');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/reports/:reportId/run');
$request->setMethod(HTTP_METH_POST);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/reports/:reportId/run');
$request->setRequestMethod('POST');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/reports/:reportId/run' -Method POST 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/reports/:reportId/run' -Method POST 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("POST", "/baseUrl/userprofiles/:profileId/reports/:reportId/run")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/reports/:reportId/run"

response = requests.post(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/reports/:reportId/run"

response <- VERB("POST", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/reports/:reportId/run")

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/userprofiles/:profileId/reports/:reportId/run') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/reports/:reportId/run";

    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}}/userprofiles/:profileId/reports/:reportId/run
http POST {{baseUrl}}/userprofiles/:profileId/reports/:reportId/run
wget --quiet \
  --method POST \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/reports/:reportId/run
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/reports/:reportId/run")! 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()
PUT dfareporting.reports.update
{{baseUrl}}/userprofiles/:profileId/reports/:reportId
QUERY PARAMS

profileId
reportId
BODY json

{
  "accountId": "",
  "criteria": {
    "activities": {
      "filters": [
        {
          "dimensionName": "",
          "etag": "",
          "id": "",
          "kind": "",
          "matchType": "",
          "value": ""
        }
      ],
      "kind": "",
      "metricNames": []
    },
    "customRichMediaEvents": {
      "filteredEventIds": [
        {}
      ],
      "kind": ""
    },
    "dateRange": {
      "endDate": "",
      "kind": "",
      "relativeDateRange": "",
      "startDate": ""
    },
    "dimensionFilters": [
      {}
    ],
    "dimensions": [
      {
        "kind": "",
        "name": "",
        "sortOrder": ""
      }
    ],
    "metricNames": []
  },
  "crossDimensionReachCriteria": {
    "breakdown": [
      {}
    ],
    "dateRange": {},
    "dimension": "",
    "dimensionFilters": [
      {}
    ],
    "metricNames": [],
    "overlapMetricNames": [],
    "pivoted": false
  },
  "delivery": {
    "emailOwner": false,
    "emailOwnerDeliveryType": "",
    "message": "",
    "recipients": [
      {
        "deliveryType": "",
        "email": "",
        "kind": ""
      }
    ]
  },
  "etag": "",
  "fileName": "",
  "floodlightCriteria": {
    "customRichMediaEvents": [
      {}
    ],
    "dateRange": {},
    "dimensionFilters": [
      {}
    ],
    "dimensions": [
      {}
    ],
    "floodlightConfigId": {},
    "metricNames": [],
    "reportProperties": {
      "includeAttributedIPConversions": false,
      "includeUnattributedCookieConversions": false,
      "includeUnattributedIPConversions": false
    }
  },
  "format": "",
  "id": "",
  "kind": "",
  "lastModifiedTime": "",
  "name": "",
  "ownerProfileId": "",
  "pathAttributionCriteria": {
    "activityFilters": [
      {}
    ],
    "customChannelGrouping": {
      "fallbackName": "",
      "kind": "",
      "name": "",
      "rules": [
        {
          "disjunctiveMatchStatements": [
            {
              "eventFilters": [
                {
                  "dimensionFilter": {
                    "dimensionName": "",
                    "ids": [],
                    "kind": "",
                    "matchType": "",
                    "values": []
                  },
                  "kind": ""
                }
              ],
              "kind": ""
            }
          ],
          "kind": "",
          "name": ""
        }
      ]
    },
    "dateRange": {},
    "dimensions": [
      {}
    ],
    "floodlightConfigId": {},
    "metricNames": [],
    "pathFilters": [
      {
        "eventFilters": [
          {}
        ],
        "kind": "",
        "pathMatchPosition": ""
      }
    ]
  },
  "pathCriteria": {
    "activityFilters": [
      {}
    ],
    "customChannelGrouping": {},
    "dateRange": {},
    "dimensions": [
      {}
    ],
    "floodlightConfigId": {},
    "metricNames": [],
    "pathFilters": [
      {}
    ]
  },
  "pathToConversionCriteria": {
    "activityFilters": [
      {}
    ],
    "conversionDimensions": [
      {}
    ],
    "customFloodlightVariables": [
      {}
    ],
    "customRichMediaEvents": [
      {}
    ],
    "dateRange": {},
    "floodlightConfigId": {},
    "metricNames": [],
    "perInteractionDimensions": [
      {}
    ],
    "reportProperties": {
      "clicksLookbackWindow": 0,
      "impressionsLookbackWindow": 0,
      "includeAttributedIPConversions": false,
      "includeUnattributedCookieConversions": false,
      "includeUnattributedIPConversions": false,
      "maximumClickInteractions": 0,
      "maximumImpressionInteractions": 0,
      "maximumInteractionGap": 0,
      "pivotOnInteractionPath": false
    }
  },
  "reachCriteria": {
    "activities": {},
    "customRichMediaEvents": {},
    "dateRange": {},
    "dimensionFilters": [
      {}
    ],
    "dimensions": [
      {}
    ],
    "enableAllDimensionCombinations": false,
    "metricNames": [],
    "reachByFrequencyMetricNames": []
  },
  "schedule": {
    "active": false,
    "every": 0,
    "expirationDate": "",
    "repeats": "",
    "repeatsOnWeekDays": [],
    "runsOnDayOfMonth": "",
    "startDate": ""
  },
  "subAccountId": "",
  "type": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/reports/:reportId");

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  \"accountId\": \"\",\n  \"criteria\": {\n    \"activities\": {\n      \"filters\": [\n        {\n          \"dimensionName\": \"\",\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"matchType\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"kind\": \"\",\n      \"metricNames\": []\n    },\n    \"customRichMediaEvents\": {\n      \"filteredEventIds\": [\n        {}\n      ],\n      \"kind\": \"\"\n    },\n    \"dateRange\": {\n      \"endDate\": \"\",\n      \"kind\": \"\",\n      \"relativeDateRange\": \"\",\n      \"startDate\": \"\"\n    },\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sortOrder\": \"\"\n      }\n    ],\n    \"metricNames\": []\n  },\n  \"crossDimensionReachCriteria\": {\n    \"breakdown\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimension\": \"\",\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"metricNames\": [],\n    \"overlapMetricNames\": [],\n    \"pivoted\": false\n  },\n  \"delivery\": {\n    \"emailOwner\": false,\n    \"emailOwnerDeliveryType\": \"\",\n    \"message\": \"\",\n    \"recipients\": [\n      {\n        \"deliveryType\": \"\",\n        \"email\": \"\",\n        \"kind\": \"\"\n      }\n    ]\n  },\n  \"etag\": \"\",\n  \"fileName\": \"\",\n  \"floodlightCriteria\": {\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"reportProperties\": {\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false\n    }\n  },\n  \"format\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedTime\": \"\",\n  \"name\": \"\",\n  \"ownerProfileId\": \"\",\n  \"pathAttributionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {\n      \"fallbackName\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"rules\": [\n        {\n          \"disjunctiveMatchStatements\": [\n            {\n              \"eventFilters\": [\n                {\n                  \"dimensionFilter\": {\n                    \"dimensionName\": \"\",\n                    \"ids\": [],\n                    \"kind\": \"\",\n                    \"matchType\": \"\",\n                    \"values\": []\n                  },\n                  \"kind\": \"\"\n                }\n              ],\n              \"kind\": \"\"\n            }\n          ],\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {\n        \"eventFilters\": [\n          {}\n        ],\n        \"kind\": \"\",\n        \"pathMatchPosition\": \"\"\n      }\n    ]\n  },\n  \"pathCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {},\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {}\n    ]\n  },\n  \"pathToConversionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"conversionDimensions\": [\n      {}\n    ],\n    \"customFloodlightVariables\": [\n      {}\n    ],\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"perInteractionDimensions\": [\n      {}\n    ],\n    \"reportProperties\": {\n      \"clicksLookbackWindow\": 0,\n      \"impressionsLookbackWindow\": 0,\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false,\n      \"maximumClickInteractions\": 0,\n      \"maximumImpressionInteractions\": 0,\n      \"maximumInteractionGap\": 0,\n      \"pivotOnInteractionPath\": false\n    }\n  },\n  \"reachCriteria\": {\n    \"activities\": {},\n    \"customRichMediaEvents\": {},\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"enableAllDimensionCombinations\": false,\n    \"metricNames\": [],\n    \"reachByFrequencyMetricNames\": []\n  },\n  \"schedule\": {\n    \"active\": false,\n    \"every\": 0,\n    \"expirationDate\": \"\",\n    \"repeats\": \"\",\n    \"repeatsOnWeekDays\": [],\n    \"runsOnDayOfMonth\": \"\",\n    \"startDate\": \"\"\n  },\n  \"subAccountId\": \"\",\n  \"type\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/userprofiles/:profileId/reports/:reportId" {:content-type :json
                                                                                     :form-params {:accountId ""
                                                                                                   :criteria {:activities {:filters [{:dimensionName ""
                                                                                                                                      :etag ""
                                                                                                                                      :id ""
                                                                                                                                      :kind ""
                                                                                                                                      :matchType ""
                                                                                                                                      :value ""}]
                                                                                                                           :kind ""
                                                                                                                           :metricNames []}
                                                                                                              :customRichMediaEvents {:filteredEventIds [{}]
                                                                                                                                      :kind ""}
                                                                                                              :dateRange {:endDate ""
                                                                                                                          :kind ""
                                                                                                                          :relativeDateRange ""
                                                                                                                          :startDate ""}
                                                                                                              :dimensionFilters [{}]
                                                                                                              :dimensions [{:kind ""
                                                                                                                            :name ""
                                                                                                                            :sortOrder ""}]
                                                                                                              :metricNames []}
                                                                                                   :crossDimensionReachCriteria {:breakdown [{}]
                                                                                                                                 :dateRange {}
                                                                                                                                 :dimension ""
                                                                                                                                 :dimensionFilters [{}]
                                                                                                                                 :metricNames []
                                                                                                                                 :overlapMetricNames []
                                                                                                                                 :pivoted false}
                                                                                                   :delivery {:emailOwner false
                                                                                                              :emailOwnerDeliveryType ""
                                                                                                              :message ""
                                                                                                              :recipients [{:deliveryType ""
                                                                                                                            :email ""
                                                                                                                            :kind ""}]}
                                                                                                   :etag ""
                                                                                                   :fileName ""
                                                                                                   :floodlightCriteria {:customRichMediaEvents [{}]
                                                                                                                        :dateRange {}
                                                                                                                        :dimensionFilters [{}]
                                                                                                                        :dimensions [{}]
                                                                                                                        :floodlightConfigId {}
                                                                                                                        :metricNames []
                                                                                                                        :reportProperties {:includeAttributedIPConversions false
                                                                                                                                           :includeUnattributedCookieConversions false
                                                                                                                                           :includeUnattributedIPConversions false}}
                                                                                                   :format ""
                                                                                                   :id ""
                                                                                                   :kind ""
                                                                                                   :lastModifiedTime ""
                                                                                                   :name ""
                                                                                                   :ownerProfileId ""
                                                                                                   :pathAttributionCriteria {:activityFilters [{}]
                                                                                                                             :customChannelGrouping {:fallbackName ""
                                                                                                                                                     :kind ""
                                                                                                                                                     :name ""
                                                                                                                                                     :rules [{:disjunctiveMatchStatements [{:eventFilters [{:dimensionFilter {:dimensionName ""
                                                                                                                                                                                                                              :ids []
                                                                                                                                                                                                                              :kind ""
                                                                                                                                                                                                                              :matchType ""
                                                                                                                                                                                                                              :values []}
                                                                                                                                                                                                            :kind ""}]
                                                                                                                                                                                            :kind ""}]
                                                                                                                                                              :kind ""
                                                                                                                                                              :name ""}]}
                                                                                                                             :dateRange {}
                                                                                                                             :dimensions [{}]
                                                                                                                             :floodlightConfigId {}
                                                                                                                             :metricNames []
                                                                                                                             :pathFilters [{:eventFilters [{}]
                                                                                                                                            :kind ""
                                                                                                                                            :pathMatchPosition ""}]}
                                                                                                   :pathCriteria {:activityFilters [{}]
                                                                                                                  :customChannelGrouping {}
                                                                                                                  :dateRange {}
                                                                                                                  :dimensions [{}]
                                                                                                                  :floodlightConfigId {}
                                                                                                                  :metricNames []
                                                                                                                  :pathFilters [{}]}
                                                                                                   :pathToConversionCriteria {:activityFilters [{}]
                                                                                                                              :conversionDimensions [{}]
                                                                                                                              :customFloodlightVariables [{}]
                                                                                                                              :customRichMediaEvents [{}]
                                                                                                                              :dateRange {}
                                                                                                                              :floodlightConfigId {}
                                                                                                                              :metricNames []
                                                                                                                              :perInteractionDimensions [{}]
                                                                                                                              :reportProperties {:clicksLookbackWindow 0
                                                                                                                                                 :impressionsLookbackWindow 0
                                                                                                                                                 :includeAttributedIPConversions false
                                                                                                                                                 :includeUnattributedCookieConversions false
                                                                                                                                                 :includeUnattributedIPConversions false
                                                                                                                                                 :maximumClickInteractions 0
                                                                                                                                                 :maximumImpressionInteractions 0
                                                                                                                                                 :maximumInteractionGap 0
                                                                                                                                                 :pivotOnInteractionPath false}}
                                                                                                   :reachCriteria {:activities {}
                                                                                                                   :customRichMediaEvents {}
                                                                                                                   :dateRange {}
                                                                                                                   :dimensionFilters [{}]
                                                                                                                   :dimensions [{}]
                                                                                                                   :enableAllDimensionCombinations false
                                                                                                                   :metricNames []
                                                                                                                   :reachByFrequencyMetricNames []}
                                                                                                   :schedule {:active false
                                                                                                              :every 0
                                                                                                              :expirationDate ""
                                                                                                              :repeats ""
                                                                                                              :repeatsOnWeekDays []
                                                                                                              :runsOnDayOfMonth ""
                                                                                                              :startDate ""}
                                                                                                   :subAccountId ""
                                                                                                   :type ""}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/reports/:reportId"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"accountId\": \"\",\n  \"criteria\": {\n    \"activities\": {\n      \"filters\": [\n        {\n          \"dimensionName\": \"\",\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"matchType\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"kind\": \"\",\n      \"metricNames\": []\n    },\n    \"customRichMediaEvents\": {\n      \"filteredEventIds\": [\n        {}\n      ],\n      \"kind\": \"\"\n    },\n    \"dateRange\": {\n      \"endDate\": \"\",\n      \"kind\": \"\",\n      \"relativeDateRange\": \"\",\n      \"startDate\": \"\"\n    },\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sortOrder\": \"\"\n      }\n    ],\n    \"metricNames\": []\n  },\n  \"crossDimensionReachCriteria\": {\n    \"breakdown\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimension\": \"\",\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"metricNames\": [],\n    \"overlapMetricNames\": [],\n    \"pivoted\": false\n  },\n  \"delivery\": {\n    \"emailOwner\": false,\n    \"emailOwnerDeliveryType\": \"\",\n    \"message\": \"\",\n    \"recipients\": [\n      {\n        \"deliveryType\": \"\",\n        \"email\": \"\",\n        \"kind\": \"\"\n      }\n    ]\n  },\n  \"etag\": \"\",\n  \"fileName\": \"\",\n  \"floodlightCriteria\": {\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"reportProperties\": {\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false\n    }\n  },\n  \"format\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedTime\": \"\",\n  \"name\": \"\",\n  \"ownerProfileId\": \"\",\n  \"pathAttributionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {\n      \"fallbackName\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"rules\": [\n        {\n          \"disjunctiveMatchStatements\": [\n            {\n              \"eventFilters\": [\n                {\n                  \"dimensionFilter\": {\n                    \"dimensionName\": \"\",\n                    \"ids\": [],\n                    \"kind\": \"\",\n                    \"matchType\": \"\",\n                    \"values\": []\n                  },\n                  \"kind\": \"\"\n                }\n              ],\n              \"kind\": \"\"\n            }\n          ],\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {\n        \"eventFilters\": [\n          {}\n        ],\n        \"kind\": \"\",\n        \"pathMatchPosition\": \"\"\n      }\n    ]\n  },\n  \"pathCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {},\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {}\n    ]\n  },\n  \"pathToConversionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"conversionDimensions\": [\n      {}\n    ],\n    \"customFloodlightVariables\": [\n      {}\n    ],\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"perInteractionDimensions\": [\n      {}\n    ],\n    \"reportProperties\": {\n      \"clicksLookbackWindow\": 0,\n      \"impressionsLookbackWindow\": 0,\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false,\n      \"maximumClickInteractions\": 0,\n      \"maximumImpressionInteractions\": 0,\n      \"maximumInteractionGap\": 0,\n      \"pivotOnInteractionPath\": false\n    }\n  },\n  \"reachCriteria\": {\n    \"activities\": {},\n    \"customRichMediaEvents\": {},\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"enableAllDimensionCombinations\": false,\n    \"metricNames\": [],\n    \"reachByFrequencyMetricNames\": []\n  },\n  \"schedule\": {\n    \"active\": false,\n    \"every\": 0,\n    \"expirationDate\": \"\",\n    \"repeats\": \"\",\n    \"repeatsOnWeekDays\": [],\n    \"runsOnDayOfMonth\": \"\",\n    \"startDate\": \"\"\n  },\n  \"subAccountId\": \"\",\n  \"type\": \"\"\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/userprofiles/:profileId/reports/:reportId"),
    Content = new StringContent("{\n  \"accountId\": \"\",\n  \"criteria\": {\n    \"activities\": {\n      \"filters\": [\n        {\n          \"dimensionName\": \"\",\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"matchType\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"kind\": \"\",\n      \"metricNames\": []\n    },\n    \"customRichMediaEvents\": {\n      \"filteredEventIds\": [\n        {}\n      ],\n      \"kind\": \"\"\n    },\n    \"dateRange\": {\n      \"endDate\": \"\",\n      \"kind\": \"\",\n      \"relativeDateRange\": \"\",\n      \"startDate\": \"\"\n    },\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sortOrder\": \"\"\n      }\n    ],\n    \"metricNames\": []\n  },\n  \"crossDimensionReachCriteria\": {\n    \"breakdown\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimension\": \"\",\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"metricNames\": [],\n    \"overlapMetricNames\": [],\n    \"pivoted\": false\n  },\n  \"delivery\": {\n    \"emailOwner\": false,\n    \"emailOwnerDeliveryType\": \"\",\n    \"message\": \"\",\n    \"recipients\": [\n      {\n        \"deliveryType\": \"\",\n        \"email\": \"\",\n        \"kind\": \"\"\n      }\n    ]\n  },\n  \"etag\": \"\",\n  \"fileName\": \"\",\n  \"floodlightCriteria\": {\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"reportProperties\": {\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false\n    }\n  },\n  \"format\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedTime\": \"\",\n  \"name\": \"\",\n  \"ownerProfileId\": \"\",\n  \"pathAttributionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {\n      \"fallbackName\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"rules\": [\n        {\n          \"disjunctiveMatchStatements\": [\n            {\n              \"eventFilters\": [\n                {\n                  \"dimensionFilter\": {\n                    \"dimensionName\": \"\",\n                    \"ids\": [],\n                    \"kind\": \"\",\n                    \"matchType\": \"\",\n                    \"values\": []\n                  },\n                  \"kind\": \"\"\n                }\n              ],\n              \"kind\": \"\"\n            }\n          ],\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {\n        \"eventFilters\": [\n          {}\n        ],\n        \"kind\": \"\",\n        \"pathMatchPosition\": \"\"\n      }\n    ]\n  },\n  \"pathCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {},\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {}\n    ]\n  },\n  \"pathToConversionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"conversionDimensions\": [\n      {}\n    ],\n    \"customFloodlightVariables\": [\n      {}\n    ],\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"perInteractionDimensions\": [\n      {}\n    ],\n    \"reportProperties\": {\n      \"clicksLookbackWindow\": 0,\n      \"impressionsLookbackWindow\": 0,\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false,\n      \"maximumClickInteractions\": 0,\n      \"maximumImpressionInteractions\": 0,\n      \"maximumInteractionGap\": 0,\n      \"pivotOnInteractionPath\": false\n    }\n  },\n  \"reachCriteria\": {\n    \"activities\": {},\n    \"customRichMediaEvents\": {},\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"enableAllDimensionCombinations\": false,\n    \"metricNames\": [],\n    \"reachByFrequencyMetricNames\": []\n  },\n  \"schedule\": {\n    \"active\": false,\n    \"every\": 0,\n    \"expirationDate\": \"\",\n    \"repeats\": \"\",\n    \"repeatsOnWeekDays\": [],\n    \"runsOnDayOfMonth\": \"\",\n    \"startDate\": \"\"\n  },\n  \"subAccountId\": \"\",\n  \"type\": \"\"\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}}/userprofiles/:profileId/reports/:reportId");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"accountId\": \"\",\n  \"criteria\": {\n    \"activities\": {\n      \"filters\": [\n        {\n          \"dimensionName\": \"\",\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"matchType\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"kind\": \"\",\n      \"metricNames\": []\n    },\n    \"customRichMediaEvents\": {\n      \"filteredEventIds\": [\n        {}\n      ],\n      \"kind\": \"\"\n    },\n    \"dateRange\": {\n      \"endDate\": \"\",\n      \"kind\": \"\",\n      \"relativeDateRange\": \"\",\n      \"startDate\": \"\"\n    },\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sortOrder\": \"\"\n      }\n    ],\n    \"metricNames\": []\n  },\n  \"crossDimensionReachCriteria\": {\n    \"breakdown\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimension\": \"\",\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"metricNames\": [],\n    \"overlapMetricNames\": [],\n    \"pivoted\": false\n  },\n  \"delivery\": {\n    \"emailOwner\": false,\n    \"emailOwnerDeliveryType\": \"\",\n    \"message\": \"\",\n    \"recipients\": [\n      {\n        \"deliveryType\": \"\",\n        \"email\": \"\",\n        \"kind\": \"\"\n      }\n    ]\n  },\n  \"etag\": \"\",\n  \"fileName\": \"\",\n  \"floodlightCriteria\": {\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"reportProperties\": {\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false\n    }\n  },\n  \"format\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedTime\": \"\",\n  \"name\": \"\",\n  \"ownerProfileId\": \"\",\n  \"pathAttributionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {\n      \"fallbackName\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"rules\": [\n        {\n          \"disjunctiveMatchStatements\": [\n            {\n              \"eventFilters\": [\n                {\n                  \"dimensionFilter\": {\n                    \"dimensionName\": \"\",\n                    \"ids\": [],\n                    \"kind\": \"\",\n                    \"matchType\": \"\",\n                    \"values\": []\n                  },\n                  \"kind\": \"\"\n                }\n              ],\n              \"kind\": \"\"\n            }\n          ],\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {\n        \"eventFilters\": [\n          {}\n        ],\n        \"kind\": \"\",\n        \"pathMatchPosition\": \"\"\n      }\n    ]\n  },\n  \"pathCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {},\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {}\n    ]\n  },\n  \"pathToConversionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"conversionDimensions\": [\n      {}\n    ],\n    \"customFloodlightVariables\": [\n      {}\n    ],\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"perInteractionDimensions\": [\n      {}\n    ],\n    \"reportProperties\": {\n      \"clicksLookbackWindow\": 0,\n      \"impressionsLookbackWindow\": 0,\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false,\n      \"maximumClickInteractions\": 0,\n      \"maximumImpressionInteractions\": 0,\n      \"maximumInteractionGap\": 0,\n      \"pivotOnInteractionPath\": false\n    }\n  },\n  \"reachCriteria\": {\n    \"activities\": {},\n    \"customRichMediaEvents\": {},\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"enableAllDimensionCombinations\": false,\n    \"metricNames\": [],\n    \"reachByFrequencyMetricNames\": []\n  },\n  \"schedule\": {\n    \"active\": false,\n    \"every\": 0,\n    \"expirationDate\": \"\",\n    \"repeats\": \"\",\n    \"repeatsOnWeekDays\": [],\n    \"runsOnDayOfMonth\": \"\",\n    \"startDate\": \"\"\n  },\n  \"subAccountId\": \"\",\n  \"type\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/reports/:reportId"

	payload := strings.NewReader("{\n  \"accountId\": \"\",\n  \"criteria\": {\n    \"activities\": {\n      \"filters\": [\n        {\n          \"dimensionName\": \"\",\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"matchType\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"kind\": \"\",\n      \"metricNames\": []\n    },\n    \"customRichMediaEvents\": {\n      \"filteredEventIds\": [\n        {}\n      ],\n      \"kind\": \"\"\n    },\n    \"dateRange\": {\n      \"endDate\": \"\",\n      \"kind\": \"\",\n      \"relativeDateRange\": \"\",\n      \"startDate\": \"\"\n    },\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sortOrder\": \"\"\n      }\n    ],\n    \"metricNames\": []\n  },\n  \"crossDimensionReachCriteria\": {\n    \"breakdown\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimension\": \"\",\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"metricNames\": [],\n    \"overlapMetricNames\": [],\n    \"pivoted\": false\n  },\n  \"delivery\": {\n    \"emailOwner\": false,\n    \"emailOwnerDeliveryType\": \"\",\n    \"message\": \"\",\n    \"recipients\": [\n      {\n        \"deliveryType\": \"\",\n        \"email\": \"\",\n        \"kind\": \"\"\n      }\n    ]\n  },\n  \"etag\": \"\",\n  \"fileName\": \"\",\n  \"floodlightCriteria\": {\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"reportProperties\": {\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false\n    }\n  },\n  \"format\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedTime\": \"\",\n  \"name\": \"\",\n  \"ownerProfileId\": \"\",\n  \"pathAttributionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {\n      \"fallbackName\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"rules\": [\n        {\n          \"disjunctiveMatchStatements\": [\n            {\n              \"eventFilters\": [\n                {\n                  \"dimensionFilter\": {\n                    \"dimensionName\": \"\",\n                    \"ids\": [],\n                    \"kind\": \"\",\n                    \"matchType\": \"\",\n                    \"values\": []\n                  },\n                  \"kind\": \"\"\n                }\n              ],\n              \"kind\": \"\"\n            }\n          ],\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {\n        \"eventFilters\": [\n          {}\n        ],\n        \"kind\": \"\",\n        \"pathMatchPosition\": \"\"\n      }\n    ]\n  },\n  \"pathCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {},\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {}\n    ]\n  },\n  \"pathToConversionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"conversionDimensions\": [\n      {}\n    ],\n    \"customFloodlightVariables\": [\n      {}\n    ],\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"perInteractionDimensions\": [\n      {}\n    ],\n    \"reportProperties\": {\n      \"clicksLookbackWindow\": 0,\n      \"impressionsLookbackWindow\": 0,\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false,\n      \"maximumClickInteractions\": 0,\n      \"maximumImpressionInteractions\": 0,\n      \"maximumInteractionGap\": 0,\n      \"pivotOnInteractionPath\": false\n    }\n  },\n  \"reachCriteria\": {\n    \"activities\": {},\n    \"customRichMediaEvents\": {},\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"enableAllDimensionCombinations\": false,\n    \"metricNames\": [],\n    \"reachByFrequencyMetricNames\": []\n  },\n  \"schedule\": {\n    \"active\": false,\n    \"every\": 0,\n    \"expirationDate\": \"\",\n    \"repeats\": \"\",\n    \"repeatsOnWeekDays\": [],\n    \"runsOnDayOfMonth\": \"\",\n    \"startDate\": \"\"\n  },\n  \"subAccountId\": \"\",\n  \"type\": \"\"\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/userprofiles/:profileId/reports/:reportId HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 4157

{
  "accountId": "",
  "criteria": {
    "activities": {
      "filters": [
        {
          "dimensionName": "",
          "etag": "",
          "id": "",
          "kind": "",
          "matchType": "",
          "value": ""
        }
      ],
      "kind": "",
      "metricNames": []
    },
    "customRichMediaEvents": {
      "filteredEventIds": [
        {}
      ],
      "kind": ""
    },
    "dateRange": {
      "endDate": "",
      "kind": "",
      "relativeDateRange": "",
      "startDate": ""
    },
    "dimensionFilters": [
      {}
    ],
    "dimensions": [
      {
        "kind": "",
        "name": "",
        "sortOrder": ""
      }
    ],
    "metricNames": []
  },
  "crossDimensionReachCriteria": {
    "breakdown": [
      {}
    ],
    "dateRange": {},
    "dimension": "",
    "dimensionFilters": [
      {}
    ],
    "metricNames": [],
    "overlapMetricNames": [],
    "pivoted": false
  },
  "delivery": {
    "emailOwner": false,
    "emailOwnerDeliveryType": "",
    "message": "",
    "recipients": [
      {
        "deliveryType": "",
        "email": "",
        "kind": ""
      }
    ]
  },
  "etag": "",
  "fileName": "",
  "floodlightCriteria": {
    "customRichMediaEvents": [
      {}
    ],
    "dateRange": {},
    "dimensionFilters": [
      {}
    ],
    "dimensions": [
      {}
    ],
    "floodlightConfigId": {},
    "metricNames": [],
    "reportProperties": {
      "includeAttributedIPConversions": false,
      "includeUnattributedCookieConversions": false,
      "includeUnattributedIPConversions": false
    }
  },
  "format": "",
  "id": "",
  "kind": "",
  "lastModifiedTime": "",
  "name": "",
  "ownerProfileId": "",
  "pathAttributionCriteria": {
    "activityFilters": [
      {}
    ],
    "customChannelGrouping": {
      "fallbackName": "",
      "kind": "",
      "name": "",
      "rules": [
        {
          "disjunctiveMatchStatements": [
            {
              "eventFilters": [
                {
                  "dimensionFilter": {
                    "dimensionName": "",
                    "ids": [],
                    "kind": "",
                    "matchType": "",
                    "values": []
                  },
                  "kind": ""
                }
              ],
              "kind": ""
            }
          ],
          "kind": "",
          "name": ""
        }
      ]
    },
    "dateRange": {},
    "dimensions": [
      {}
    ],
    "floodlightConfigId": {},
    "metricNames": [],
    "pathFilters": [
      {
        "eventFilters": [
          {}
        ],
        "kind": "",
        "pathMatchPosition": ""
      }
    ]
  },
  "pathCriteria": {
    "activityFilters": [
      {}
    ],
    "customChannelGrouping": {},
    "dateRange": {},
    "dimensions": [
      {}
    ],
    "floodlightConfigId": {},
    "metricNames": [],
    "pathFilters": [
      {}
    ]
  },
  "pathToConversionCriteria": {
    "activityFilters": [
      {}
    ],
    "conversionDimensions": [
      {}
    ],
    "customFloodlightVariables": [
      {}
    ],
    "customRichMediaEvents": [
      {}
    ],
    "dateRange": {},
    "floodlightConfigId": {},
    "metricNames": [],
    "perInteractionDimensions": [
      {}
    ],
    "reportProperties": {
      "clicksLookbackWindow": 0,
      "impressionsLookbackWindow": 0,
      "includeAttributedIPConversions": false,
      "includeUnattributedCookieConversions": false,
      "includeUnattributedIPConversions": false,
      "maximumClickInteractions": 0,
      "maximumImpressionInteractions": 0,
      "maximumInteractionGap": 0,
      "pivotOnInteractionPath": false
    }
  },
  "reachCriteria": {
    "activities": {},
    "customRichMediaEvents": {},
    "dateRange": {},
    "dimensionFilters": [
      {}
    ],
    "dimensions": [
      {}
    ],
    "enableAllDimensionCombinations": false,
    "metricNames": [],
    "reachByFrequencyMetricNames": []
  },
  "schedule": {
    "active": false,
    "every": 0,
    "expirationDate": "",
    "repeats": "",
    "repeatsOnWeekDays": [],
    "runsOnDayOfMonth": "",
    "startDate": ""
  },
  "subAccountId": "",
  "type": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/userprofiles/:profileId/reports/:reportId")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"accountId\": \"\",\n  \"criteria\": {\n    \"activities\": {\n      \"filters\": [\n        {\n          \"dimensionName\": \"\",\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"matchType\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"kind\": \"\",\n      \"metricNames\": []\n    },\n    \"customRichMediaEvents\": {\n      \"filteredEventIds\": [\n        {}\n      ],\n      \"kind\": \"\"\n    },\n    \"dateRange\": {\n      \"endDate\": \"\",\n      \"kind\": \"\",\n      \"relativeDateRange\": \"\",\n      \"startDate\": \"\"\n    },\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sortOrder\": \"\"\n      }\n    ],\n    \"metricNames\": []\n  },\n  \"crossDimensionReachCriteria\": {\n    \"breakdown\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimension\": \"\",\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"metricNames\": [],\n    \"overlapMetricNames\": [],\n    \"pivoted\": false\n  },\n  \"delivery\": {\n    \"emailOwner\": false,\n    \"emailOwnerDeliveryType\": \"\",\n    \"message\": \"\",\n    \"recipients\": [\n      {\n        \"deliveryType\": \"\",\n        \"email\": \"\",\n        \"kind\": \"\"\n      }\n    ]\n  },\n  \"etag\": \"\",\n  \"fileName\": \"\",\n  \"floodlightCriteria\": {\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"reportProperties\": {\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false\n    }\n  },\n  \"format\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedTime\": \"\",\n  \"name\": \"\",\n  \"ownerProfileId\": \"\",\n  \"pathAttributionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {\n      \"fallbackName\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"rules\": [\n        {\n          \"disjunctiveMatchStatements\": [\n            {\n              \"eventFilters\": [\n                {\n                  \"dimensionFilter\": {\n                    \"dimensionName\": \"\",\n                    \"ids\": [],\n                    \"kind\": \"\",\n                    \"matchType\": \"\",\n                    \"values\": []\n                  },\n                  \"kind\": \"\"\n                }\n              ],\n              \"kind\": \"\"\n            }\n          ],\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {\n        \"eventFilters\": [\n          {}\n        ],\n        \"kind\": \"\",\n        \"pathMatchPosition\": \"\"\n      }\n    ]\n  },\n  \"pathCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {},\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {}\n    ]\n  },\n  \"pathToConversionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"conversionDimensions\": [\n      {}\n    ],\n    \"customFloodlightVariables\": [\n      {}\n    ],\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"perInteractionDimensions\": [\n      {}\n    ],\n    \"reportProperties\": {\n      \"clicksLookbackWindow\": 0,\n      \"impressionsLookbackWindow\": 0,\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false,\n      \"maximumClickInteractions\": 0,\n      \"maximumImpressionInteractions\": 0,\n      \"maximumInteractionGap\": 0,\n      \"pivotOnInteractionPath\": false\n    }\n  },\n  \"reachCriteria\": {\n    \"activities\": {},\n    \"customRichMediaEvents\": {},\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"enableAllDimensionCombinations\": false,\n    \"metricNames\": [],\n    \"reachByFrequencyMetricNames\": []\n  },\n  \"schedule\": {\n    \"active\": false,\n    \"every\": 0,\n    \"expirationDate\": \"\",\n    \"repeats\": \"\",\n    \"repeatsOnWeekDays\": [],\n    \"runsOnDayOfMonth\": \"\",\n    \"startDate\": \"\"\n  },\n  \"subAccountId\": \"\",\n  \"type\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/reports/:reportId"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"accountId\": \"\",\n  \"criteria\": {\n    \"activities\": {\n      \"filters\": [\n        {\n          \"dimensionName\": \"\",\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"matchType\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"kind\": \"\",\n      \"metricNames\": []\n    },\n    \"customRichMediaEvents\": {\n      \"filteredEventIds\": [\n        {}\n      ],\n      \"kind\": \"\"\n    },\n    \"dateRange\": {\n      \"endDate\": \"\",\n      \"kind\": \"\",\n      \"relativeDateRange\": \"\",\n      \"startDate\": \"\"\n    },\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sortOrder\": \"\"\n      }\n    ],\n    \"metricNames\": []\n  },\n  \"crossDimensionReachCriteria\": {\n    \"breakdown\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimension\": \"\",\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"metricNames\": [],\n    \"overlapMetricNames\": [],\n    \"pivoted\": false\n  },\n  \"delivery\": {\n    \"emailOwner\": false,\n    \"emailOwnerDeliveryType\": \"\",\n    \"message\": \"\",\n    \"recipients\": [\n      {\n        \"deliveryType\": \"\",\n        \"email\": \"\",\n        \"kind\": \"\"\n      }\n    ]\n  },\n  \"etag\": \"\",\n  \"fileName\": \"\",\n  \"floodlightCriteria\": {\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"reportProperties\": {\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false\n    }\n  },\n  \"format\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedTime\": \"\",\n  \"name\": \"\",\n  \"ownerProfileId\": \"\",\n  \"pathAttributionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {\n      \"fallbackName\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"rules\": [\n        {\n          \"disjunctiveMatchStatements\": [\n            {\n              \"eventFilters\": [\n                {\n                  \"dimensionFilter\": {\n                    \"dimensionName\": \"\",\n                    \"ids\": [],\n                    \"kind\": \"\",\n                    \"matchType\": \"\",\n                    \"values\": []\n                  },\n                  \"kind\": \"\"\n                }\n              ],\n              \"kind\": \"\"\n            }\n          ],\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {\n        \"eventFilters\": [\n          {}\n        ],\n        \"kind\": \"\",\n        \"pathMatchPosition\": \"\"\n      }\n    ]\n  },\n  \"pathCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {},\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {}\n    ]\n  },\n  \"pathToConversionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"conversionDimensions\": [\n      {}\n    ],\n    \"customFloodlightVariables\": [\n      {}\n    ],\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"perInteractionDimensions\": [\n      {}\n    ],\n    \"reportProperties\": {\n      \"clicksLookbackWindow\": 0,\n      \"impressionsLookbackWindow\": 0,\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false,\n      \"maximumClickInteractions\": 0,\n      \"maximumImpressionInteractions\": 0,\n      \"maximumInteractionGap\": 0,\n      \"pivotOnInteractionPath\": false\n    }\n  },\n  \"reachCriteria\": {\n    \"activities\": {},\n    \"customRichMediaEvents\": {},\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"enableAllDimensionCombinations\": false,\n    \"metricNames\": [],\n    \"reachByFrequencyMetricNames\": []\n  },\n  \"schedule\": {\n    \"active\": false,\n    \"every\": 0,\n    \"expirationDate\": \"\",\n    \"repeats\": \"\",\n    \"repeatsOnWeekDays\": [],\n    \"runsOnDayOfMonth\": \"\",\n    \"startDate\": \"\"\n  },\n  \"subAccountId\": \"\",\n  \"type\": \"\"\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  \"accountId\": \"\",\n  \"criteria\": {\n    \"activities\": {\n      \"filters\": [\n        {\n          \"dimensionName\": \"\",\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"matchType\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"kind\": \"\",\n      \"metricNames\": []\n    },\n    \"customRichMediaEvents\": {\n      \"filteredEventIds\": [\n        {}\n      ],\n      \"kind\": \"\"\n    },\n    \"dateRange\": {\n      \"endDate\": \"\",\n      \"kind\": \"\",\n      \"relativeDateRange\": \"\",\n      \"startDate\": \"\"\n    },\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sortOrder\": \"\"\n      }\n    ],\n    \"metricNames\": []\n  },\n  \"crossDimensionReachCriteria\": {\n    \"breakdown\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimension\": \"\",\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"metricNames\": [],\n    \"overlapMetricNames\": [],\n    \"pivoted\": false\n  },\n  \"delivery\": {\n    \"emailOwner\": false,\n    \"emailOwnerDeliveryType\": \"\",\n    \"message\": \"\",\n    \"recipients\": [\n      {\n        \"deliveryType\": \"\",\n        \"email\": \"\",\n        \"kind\": \"\"\n      }\n    ]\n  },\n  \"etag\": \"\",\n  \"fileName\": \"\",\n  \"floodlightCriteria\": {\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"reportProperties\": {\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false\n    }\n  },\n  \"format\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedTime\": \"\",\n  \"name\": \"\",\n  \"ownerProfileId\": \"\",\n  \"pathAttributionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {\n      \"fallbackName\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"rules\": [\n        {\n          \"disjunctiveMatchStatements\": [\n            {\n              \"eventFilters\": [\n                {\n                  \"dimensionFilter\": {\n                    \"dimensionName\": \"\",\n                    \"ids\": [],\n                    \"kind\": \"\",\n                    \"matchType\": \"\",\n                    \"values\": []\n                  },\n                  \"kind\": \"\"\n                }\n              ],\n              \"kind\": \"\"\n            }\n          ],\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {\n        \"eventFilters\": [\n          {}\n        ],\n        \"kind\": \"\",\n        \"pathMatchPosition\": \"\"\n      }\n    ]\n  },\n  \"pathCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {},\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {}\n    ]\n  },\n  \"pathToConversionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"conversionDimensions\": [\n      {}\n    ],\n    \"customFloodlightVariables\": [\n      {}\n    ],\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"perInteractionDimensions\": [\n      {}\n    ],\n    \"reportProperties\": {\n      \"clicksLookbackWindow\": 0,\n      \"impressionsLookbackWindow\": 0,\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false,\n      \"maximumClickInteractions\": 0,\n      \"maximumImpressionInteractions\": 0,\n      \"maximumInteractionGap\": 0,\n      \"pivotOnInteractionPath\": false\n    }\n  },\n  \"reachCriteria\": {\n    \"activities\": {},\n    \"customRichMediaEvents\": {},\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"enableAllDimensionCombinations\": false,\n    \"metricNames\": [],\n    \"reachByFrequencyMetricNames\": []\n  },\n  \"schedule\": {\n    \"active\": false,\n    \"every\": 0,\n    \"expirationDate\": \"\",\n    \"repeats\": \"\",\n    \"repeatsOnWeekDays\": [],\n    \"runsOnDayOfMonth\": \"\",\n    \"startDate\": \"\"\n  },\n  \"subAccountId\": \"\",\n  \"type\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/reports/:reportId")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/userprofiles/:profileId/reports/:reportId")
  .header("content-type", "application/json")
  .body("{\n  \"accountId\": \"\",\n  \"criteria\": {\n    \"activities\": {\n      \"filters\": [\n        {\n          \"dimensionName\": \"\",\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"matchType\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"kind\": \"\",\n      \"metricNames\": []\n    },\n    \"customRichMediaEvents\": {\n      \"filteredEventIds\": [\n        {}\n      ],\n      \"kind\": \"\"\n    },\n    \"dateRange\": {\n      \"endDate\": \"\",\n      \"kind\": \"\",\n      \"relativeDateRange\": \"\",\n      \"startDate\": \"\"\n    },\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sortOrder\": \"\"\n      }\n    ],\n    \"metricNames\": []\n  },\n  \"crossDimensionReachCriteria\": {\n    \"breakdown\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimension\": \"\",\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"metricNames\": [],\n    \"overlapMetricNames\": [],\n    \"pivoted\": false\n  },\n  \"delivery\": {\n    \"emailOwner\": false,\n    \"emailOwnerDeliveryType\": \"\",\n    \"message\": \"\",\n    \"recipients\": [\n      {\n        \"deliveryType\": \"\",\n        \"email\": \"\",\n        \"kind\": \"\"\n      }\n    ]\n  },\n  \"etag\": \"\",\n  \"fileName\": \"\",\n  \"floodlightCriteria\": {\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"reportProperties\": {\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false\n    }\n  },\n  \"format\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedTime\": \"\",\n  \"name\": \"\",\n  \"ownerProfileId\": \"\",\n  \"pathAttributionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {\n      \"fallbackName\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"rules\": [\n        {\n          \"disjunctiveMatchStatements\": [\n            {\n              \"eventFilters\": [\n                {\n                  \"dimensionFilter\": {\n                    \"dimensionName\": \"\",\n                    \"ids\": [],\n                    \"kind\": \"\",\n                    \"matchType\": \"\",\n                    \"values\": []\n                  },\n                  \"kind\": \"\"\n                }\n              ],\n              \"kind\": \"\"\n            }\n          ],\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {\n        \"eventFilters\": [\n          {}\n        ],\n        \"kind\": \"\",\n        \"pathMatchPosition\": \"\"\n      }\n    ]\n  },\n  \"pathCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {},\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {}\n    ]\n  },\n  \"pathToConversionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"conversionDimensions\": [\n      {}\n    ],\n    \"customFloodlightVariables\": [\n      {}\n    ],\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"perInteractionDimensions\": [\n      {}\n    ],\n    \"reportProperties\": {\n      \"clicksLookbackWindow\": 0,\n      \"impressionsLookbackWindow\": 0,\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false,\n      \"maximumClickInteractions\": 0,\n      \"maximumImpressionInteractions\": 0,\n      \"maximumInteractionGap\": 0,\n      \"pivotOnInteractionPath\": false\n    }\n  },\n  \"reachCriteria\": {\n    \"activities\": {},\n    \"customRichMediaEvents\": {},\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"enableAllDimensionCombinations\": false,\n    \"metricNames\": [],\n    \"reachByFrequencyMetricNames\": []\n  },\n  \"schedule\": {\n    \"active\": false,\n    \"every\": 0,\n    \"expirationDate\": \"\",\n    \"repeats\": \"\",\n    \"repeatsOnWeekDays\": [],\n    \"runsOnDayOfMonth\": \"\",\n    \"startDate\": \"\"\n  },\n  \"subAccountId\": \"\",\n  \"type\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  accountId: '',
  criteria: {
    activities: {
      filters: [
        {
          dimensionName: '',
          etag: '',
          id: '',
          kind: '',
          matchType: '',
          value: ''
        }
      ],
      kind: '',
      metricNames: []
    },
    customRichMediaEvents: {
      filteredEventIds: [
        {}
      ],
      kind: ''
    },
    dateRange: {
      endDate: '',
      kind: '',
      relativeDateRange: '',
      startDate: ''
    },
    dimensionFilters: [
      {}
    ],
    dimensions: [
      {
        kind: '',
        name: '',
        sortOrder: ''
      }
    ],
    metricNames: []
  },
  crossDimensionReachCriteria: {
    breakdown: [
      {}
    ],
    dateRange: {},
    dimension: '',
    dimensionFilters: [
      {}
    ],
    metricNames: [],
    overlapMetricNames: [],
    pivoted: false
  },
  delivery: {
    emailOwner: false,
    emailOwnerDeliveryType: '',
    message: '',
    recipients: [
      {
        deliveryType: '',
        email: '',
        kind: ''
      }
    ]
  },
  etag: '',
  fileName: '',
  floodlightCriteria: {
    customRichMediaEvents: [
      {}
    ],
    dateRange: {},
    dimensionFilters: [
      {}
    ],
    dimensions: [
      {}
    ],
    floodlightConfigId: {},
    metricNames: [],
    reportProperties: {
      includeAttributedIPConversions: false,
      includeUnattributedCookieConversions: false,
      includeUnattributedIPConversions: false
    }
  },
  format: '',
  id: '',
  kind: '',
  lastModifiedTime: '',
  name: '',
  ownerProfileId: '',
  pathAttributionCriteria: {
    activityFilters: [
      {}
    ],
    customChannelGrouping: {
      fallbackName: '',
      kind: '',
      name: '',
      rules: [
        {
          disjunctiveMatchStatements: [
            {
              eventFilters: [
                {
                  dimensionFilter: {
                    dimensionName: '',
                    ids: [],
                    kind: '',
                    matchType: '',
                    values: []
                  },
                  kind: ''
                }
              ],
              kind: ''
            }
          ],
          kind: '',
          name: ''
        }
      ]
    },
    dateRange: {},
    dimensions: [
      {}
    ],
    floodlightConfigId: {},
    metricNames: [],
    pathFilters: [
      {
        eventFilters: [
          {}
        ],
        kind: '',
        pathMatchPosition: ''
      }
    ]
  },
  pathCriteria: {
    activityFilters: [
      {}
    ],
    customChannelGrouping: {},
    dateRange: {},
    dimensions: [
      {}
    ],
    floodlightConfigId: {},
    metricNames: [],
    pathFilters: [
      {}
    ]
  },
  pathToConversionCriteria: {
    activityFilters: [
      {}
    ],
    conversionDimensions: [
      {}
    ],
    customFloodlightVariables: [
      {}
    ],
    customRichMediaEvents: [
      {}
    ],
    dateRange: {},
    floodlightConfigId: {},
    metricNames: [],
    perInteractionDimensions: [
      {}
    ],
    reportProperties: {
      clicksLookbackWindow: 0,
      impressionsLookbackWindow: 0,
      includeAttributedIPConversions: false,
      includeUnattributedCookieConversions: false,
      includeUnattributedIPConversions: false,
      maximumClickInteractions: 0,
      maximumImpressionInteractions: 0,
      maximumInteractionGap: 0,
      pivotOnInteractionPath: false
    }
  },
  reachCriteria: {
    activities: {},
    customRichMediaEvents: {},
    dateRange: {},
    dimensionFilters: [
      {}
    ],
    dimensions: [
      {}
    ],
    enableAllDimensionCombinations: false,
    metricNames: [],
    reachByFrequencyMetricNames: []
  },
  schedule: {
    active: false,
    every: 0,
    expirationDate: '',
    repeats: '',
    repeatsOnWeekDays: [],
    runsOnDayOfMonth: '',
    startDate: ''
  },
  subAccountId: '',
  type: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/userprofiles/:profileId/reports/:reportId');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/userprofiles/:profileId/reports/:reportId',
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    criteria: {
      activities: {
        filters: [{dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''}],
        kind: '',
        metricNames: []
      },
      customRichMediaEvents: {filteredEventIds: [{}], kind: ''},
      dateRange: {endDate: '', kind: '', relativeDateRange: '', startDate: ''},
      dimensionFilters: [{}],
      dimensions: [{kind: '', name: '', sortOrder: ''}],
      metricNames: []
    },
    crossDimensionReachCriteria: {
      breakdown: [{}],
      dateRange: {},
      dimension: '',
      dimensionFilters: [{}],
      metricNames: [],
      overlapMetricNames: [],
      pivoted: false
    },
    delivery: {
      emailOwner: false,
      emailOwnerDeliveryType: '',
      message: '',
      recipients: [{deliveryType: '', email: '', kind: ''}]
    },
    etag: '',
    fileName: '',
    floodlightCriteria: {
      customRichMediaEvents: [{}],
      dateRange: {},
      dimensionFilters: [{}],
      dimensions: [{}],
      floodlightConfigId: {},
      metricNames: [],
      reportProperties: {
        includeAttributedIPConversions: false,
        includeUnattributedCookieConversions: false,
        includeUnattributedIPConversions: false
      }
    },
    format: '',
    id: '',
    kind: '',
    lastModifiedTime: '',
    name: '',
    ownerProfileId: '',
    pathAttributionCriteria: {
      activityFilters: [{}],
      customChannelGrouping: {
        fallbackName: '',
        kind: '',
        name: '',
        rules: [
          {
            disjunctiveMatchStatements: [
              {
                eventFilters: [
                  {
                    dimensionFilter: {dimensionName: '', ids: [], kind: '', matchType: '', values: []},
                    kind: ''
                  }
                ],
                kind: ''
              }
            ],
            kind: '',
            name: ''
          }
        ]
      },
      dateRange: {},
      dimensions: [{}],
      floodlightConfigId: {},
      metricNames: [],
      pathFilters: [{eventFilters: [{}], kind: '', pathMatchPosition: ''}]
    },
    pathCriteria: {
      activityFilters: [{}],
      customChannelGrouping: {},
      dateRange: {},
      dimensions: [{}],
      floodlightConfigId: {},
      metricNames: [],
      pathFilters: [{}]
    },
    pathToConversionCriteria: {
      activityFilters: [{}],
      conversionDimensions: [{}],
      customFloodlightVariables: [{}],
      customRichMediaEvents: [{}],
      dateRange: {},
      floodlightConfigId: {},
      metricNames: [],
      perInteractionDimensions: [{}],
      reportProperties: {
        clicksLookbackWindow: 0,
        impressionsLookbackWindow: 0,
        includeAttributedIPConversions: false,
        includeUnattributedCookieConversions: false,
        includeUnattributedIPConversions: false,
        maximumClickInteractions: 0,
        maximumImpressionInteractions: 0,
        maximumInteractionGap: 0,
        pivotOnInteractionPath: false
      }
    },
    reachCriteria: {
      activities: {},
      customRichMediaEvents: {},
      dateRange: {},
      dimensionFilters: [{}],
      dimensions: [{}],
      enableAllDimensionCombinations: false,
      metricNames: [],
      reachByFrequencyMetricNames: []
    },
    schedule: {
      active: false,
      every: 0,
      expirationDate: '',
      repeats: '',
      repeatsOnWeekDays: [],
      runsOnDayOfMonth: '',
      startDate: ''
    },
    subAccountId: '',
    type: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/reports/:reportId';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","criteria":{"activities":{"filters":[{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""}],"kind":"","metricNames":[]},"customRichMediaEvents":{"filteredEventIds":[{}],"kind":""},"dateRange":{"endDate":"","kind":"","relativeDateRange":"","startDate":""},"dimensionFilters":[{}],"dimensions":[{"kind":"","name":"","sortOrder":""}],"metricNames":[]},"crossDimensionReachCriteria":{"breakdown":[{}],"dateRange":{},"dimension":"","dimensionFilters":[{}],"metricNames":[],"overlapMetricNames":[],"pivoted":false},"delivery":{"emailOwner":false,"emailOwnerDeliveryType":"","message":"","recipients":[{"deliveryType":"","email":"","kind":""}]},"etag":"","fileName":"","floodlightCriteria":{"customRichMediaEvents":[{}],"dateRange":{},"dimensionFilters":[{}],"dimensions":[{}],"floodlightConfigId":{},"metricNames":[],"reportProperties":{"includeAttributedIPConversions":false,"includeUnattributedCookieConversions":false,"includeUnattributedIPConversions":false}},"format":"","id":"","kind":"","lastModifiedTime":"","name":"","ownerProfileId":"","pathAttributionCriteria":{"activityFilters":[{}],"customChannelGrouping":{"fallbackName":"","kind":"","name":"","rules":[{"disjunctiveMatchStatements":[{"eventFilters":[{"dimensionFilter":{"dimensionName":"","ids":[],"kind":"","matchType":"","values":[]},"kind":""}],"kind":""}],"kind":"","name":""}]},"dateRange":{},"dimensions":[{}],"floodlightConfigId":{},"metricNames":[],"pathFilters":[{"eventFilters":[{}],"kind":"","pathMatchPosition":""}]},"pathCriteria":{"activityFilters":[{}],"customChannelGrouping":{},"dateRange":{},"dimensions":[{}],"floodlightConfigId":{},"metricNames":[],"pathFilters":[{}]},"pathToConversionCriteria":{"activityFilters":[{}],"conversionDimensions":[{}],"customFloodlightVariables":[{}],"customRichMediaEvents":[{}],"dateRange":{},"floodlightConfigId":{},"metricNames":[],"perInteractionDimensions":[{}],"reportProperties":{"clicksLookbackWindow":0,"impressionsLookbackWindow":0,"includeAttributedIPConversions":false,"includeUnattributedCookieConversions":false,"includeUnattributedIPConversions":false,"maximumClickInteractions":0,"maximumImpressionInteractions":0,"maximumInteractionGap":0,"pivotOnInteractionPath":false}},"reachCriteria":{"activities":{},"customRichMediaEvents":{},"dateRange":{},"dimensionFilters":[{}],"dimensions":[{}],"enableAllDimensionCombinations":false,"metricNames":[],"reachByFrequencyMetricNames":[]},"schedule":{"active":false,"every":0,"expirationDate":"","repeats":"","repeatsOnWeekDays":[],"runsOnDayOfMonth":"","startDate":""},"subAccountId":"","type":""}'
};

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}}/userprofiles/:profileId/reports/:reportId',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "accountId": "",\n  "criteria": {\n    "activities": {\n      "filters": [\n        {\n          "dimensionName": "",\n          "etag": "",\n          "id": "",\n          "kind": "",\n          "matchType": "",\n          "value": ""\n        }\n      ],\n      "kind": "",\n      "metricNames": []\n    },\n    "customRichMediaEvents": {\n      "filteredEventIds": [\n        {}\n      ],\n      "kind": ""\n    },\n    "dateRange": {\n      "endDate": "",\n      "kind": "",\n      "relativeDateRange": "",\n      "startDate": ""\n    },\n    "dimensionFilters": [\n      {}\n    ],\n    "dimensions": [\n      {\n        "kind": "",\n        "name": "",\n        "sortOrder": ""\n      }\n    ],\n    "metricNames": []\n  },\n  "crossDimensionReachCriteria": {\n    "breakdown": [\n      {}\n    ],\n    "dateRange": {},\n    "dimension": "",\n    "dimensionFilters": [\n      {}\n    ],\n    "metricNames": [],\n    "overlapMetricNames": [],\n    "pivoted": false\n  },\n  "delivery": {\n    "emailOwner": false,\n    "emailOwnerDeliveryType": "",\n    "message": "",\n    "recipients": [\n      {\n        "deliveryType": "",\n        "email": "",\n        "kind": ""\n      }\n    ]\n  },\n  "etag": "",\n  "fileName": "",\n  "floodlightCriteria": {\n    "customRichMediaEvents": [\n      {}\n    ],\n    "dateRange": {},\n    "dimensionFilters": [\n      {}\n    ],\n    "dimensions": [\n      {}\n    ],\n    "floodlightConfigId": {},\n    "metricNames": [],\n    "reportProperties": {\n      "includeAttributedIPConversions": false,\n      "includeUnattributedCookieConversions": false,\n      "includeUnattributedIPConversions": false\n    }\n  },\n  "format": "",\n  "id": "",\n  "kind": "",\n  "lastModifiedTime": "",\n  "name": "",\n  "ownerProfileId": "",\n  "pathAttributionCriteria": {\n    "activityFilters": [\n      {}\n    ],\n    "customChannelGrouping": {\n      "fallbackName": "",\n      "kind": "",\n      "name": "",\n      "rules": [\n        {\n          "disjunctiveMatchStatements": [\n            {\n              "eventFilters": [\n                {\n                  "dimensionFilter": {\n                    "dimensionName": "",\n                    "ids": [],\n                    "kind": "",\n                    "matchType": "",\n                    "values": []\n                  },\n                  "kind": ""\n                }\n              ],\n              "kind": ""\n            }\n          ],\n          "kind": "",\n          "name": ""\n        }\n      ]\n    },\n    "dateRange": {},\n    "dimensions": [\n      {}\n    ],\n    "floodlightConfigId": {},\n    "metricNames": [],\n    "pathFilters": [\n      {\n        "eventFilters": [\n          {}\n        ],\n        "kind": "",\n        "pathMatchPosition": ""\n      }\n    ]\n  },\n  "pathCriteria": {\n    "activityFilters": [\n      {}\n    ],\n    "customChannelGrouping": {},\n    "dateRange": {},\n    "dimensions": [\n      {}\n    ],\n    "floodlightConfigId": {},\n    "metricNames": [],\n    "pathFilters": [\n      {}\n    ]\n  },\n  "pathToConversionCriteria": {\n    "activityFilters": [\n      {}\n    ],\n    "conversionDimensions": [\n      {}\n    ],\n    "customFloodlightVariables": [\n      {}\n    ],\n    "customRichMediaEvents": [\n      {}\n    ],\n    "dateRange": {},\n    "floodlightConfigId": {},\n    "metricNames": [],\n    "perInteractionDimensions": [\n      {}\n    ],\n    "reportProperties": {\n      "clicksLookbackWindow": 0,\n      "impressionsLookbackWindow": 0,\n      "includeAttributedIPConversions": false,\n      "includeUnattributedCookieConversions": false,\n      "includeUnattributedIPConversions": false,\n      "maximumClickInteractions": 0,\n      "maximumImpressionInteractions": 0,\n      "maximumInteractionGap": 0,\n      "pivotOnInteractionPath": false\n    }\n  },\n  "reachCriteria": {\n    "activities": {},\n    "customRichMediaEvents": {},\n    "dateRange": {},\n    "dimensionFilters": [\n      {}\n    ],\n    "dimensions": [\n      {}\n    ],\n    "enableAllDimensionCombinations": false,\n    "metricNames": [],\n    "reachByFrequencyMetricNames": []\n  },\n  "schedule": {\n    "active": false,\n    "every": 0,\n    "expirationDate": "",\n    "repeats": "",\n    "repeatsOnWeekDays": [],\n    "runsOnDayOfMonth": "",\n    "startDate": ""\n  },\n  "subAccountId": "",\n  "type": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"accountId\": \"\",\n  \"criteria\": {\n    \"activities\": {\n      \"filters\": [\n        {\n          \"dimensionName\": \"\",\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"matchType\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"kind\": \"\",\n      \"metricNames\": []\n    },\n    \"customRichMediaEvents\": {\n      \"filteredEventIds\": [\n        {}\n      ],\n      \"kind\": \"\"\n    },\n    \"dateRange\": {\n      \"endDate\": \"\",\n      \"kind\": \"\",\n      \"relativeDateRange\": \"\",\n      \"startDate\": \"\"\n    },\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sortOrder\": \"\"\n      }\n    ],\n    \"metricNames\": []\n  },\n  \"crossDimensionReachCriteria\": {\n    \"breakdown\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimension\": \"\",\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"metricNames\": [],\n    \"overlapMetricNames\": [],\n    \"pivoted\": false\n  },\n  \"delivery\": {\n    \"emailOwner\": false,\n    \"emailOwnerDeliveryType\": \"\",\n    \"message\": \"\",\n    \"recipients\": [\n      {\n        \"deliveryType\": \"\",\n        \"email\": \"\",\n        \"kind\": \"\"\n      }\n    ]\n  },\n  \"etag\": \"\",\n  \"fileName\": \"\",\n  \"floodlightCriteria\": {\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"reportProperties\": {\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false\n    }\n  },\n  \"format\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedTime\": \"\",\n  \"name\": \"\",\n  \"ownerProfileId\": \"\",\n  \"pathAttributionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {\n      \"fallbackName\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"rules\": [\n        {\n          \"disjunctiveMatchStatements\": [\n            {\n              \"eventFilters\": [\n                {\n                  \"dimensionFilter\": {\n                    \"dimensionName\": \"\",\n                    \"ids\": [],\n                    \"kind\": \"\",\n                    \"matchType\": \"\",\n                    \"values\": []\n                  },\n                  \"kind\": \"\"\n                }\n              ],\n              \"kind\": \"\"\n            }\n          ],\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {\n        \"eventFilters\": [\n          {}\n        ],\n        \"kind\": \"\",\n        \"pathMatchPosition\": \"\"\n      }\n    ]\n  },\n  \"pathCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {},\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {}\n    ]\n  },\n  \"pathToConversionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"conversionDimensions\": [\n      {}\n    ],\n    \"customFloodlightVariables\": [\n      {}\n    ],\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"perInteractionDimensions\": [\n      {}\n    ],\n    \"reportProperties\": {\n      \"clicksLookbackWindow\": 0,\n      \"impressionsLookbackWindow\": 0,\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false,\n      \"maximumClickInteractions\": 0,\n      \"maximumImpressionInteractions\": 0,\n      \"maximumInteractionGap\": 0,\n      \"pivotOnInteractionPath\": false\n    }\n  },\n  \"reachCriteria\": {\n    \"activities\": {},\n    \"customRichMediaEvents\": {},\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"enableAllDimensionCombinations\": false,\n    \"metricNames\": [],\n    \"reachByFrequencyMetricNames\": []\n  },\n  \"schedule\": {\n    \"active\": false,\n    \"every\": 0,\n    \"expirationDate\": \"\",\n    \"repeats\": \"\",\n    \"repeatsOnWeekDays\": [],\n    \"runsOnDayOfMonth\": \"\",\n    \"startDate\": \"\"\n  },\n  \"subAccountId\": \"\",\n  \"type\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/reports/:reportId")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/reports/:reportId',
  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({
  accountId: '',
  criteria: {
    activities: {
      filters: [{dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''}],
      kind: '',
      metricNames: []
    },
    customRichMediaEvents: {filteredEventIds: [{}], kind: ''},
    dateRange: {endDate: '', kind: '', relativeDateRange: '', startDate: ''},
    dimensionFilters: [{}],
    dimensions: [{kind: '', name: '', sortOrder: ''}],
    metricNames: []
  },
  crossDimensionReachCriteria: {
    breakdown: [{}],
    dateRange: {},
    dimension: '',
    dimensionFilters: [{}],
    metricNames: [],
    overlapMetricNames: [],
    pivoted: false
  },
  delivery: {
    emailOwner: false,
    emailOwnerDeliveryType: '',
    message: '',
    recipients: [{deliveryType: '', email: '', kind: ''}]
  },
  etag: '',
  fileName: '',
  floodlightCriteria: {
    customRichMediaEvents: [{}],
    dateRange: {},
    dimensionFilters: [{}],
    dimensions: [{}],
    floodlightConfigId: {},
    metricNames: [],
    reportProperties: {
      includeAttributedIPConversions: false,
      includeUnattributedCookieConversions: false,
      includeUnattributedIPConversions: false
    }
  },
  format: '',
  id: '',
  kind: '',
  lastModifiedTime: '',
  name: '',
  ownerProfileId: '',
  pathAttributionCriteria: {
    activityFilters: [{}],
    customChannelGrouping: {
      fallbackName: '',
      kind: '',
      name: '',
      rules: [
        {
          disjunctiveMatchStatements: [
            {
              eventFilters: [
                {
                  dimensionFilter: {dimensionName: '', ids: [], kind: '', matchType: '', values: []},
                  kind: ''
                }
              ],
              kind: ''
            }
          ],
          kind: '',
          name: ''
        }
      ]
    },
    dateRange: {},
    dimensions: [{}],
    floodlightConfigId: {},
    metricNames: [],
    pathFilters: [{eventFilters: [{}], kind: '', pathMatchPosition: ''}]
  },
  pathCriteria: {
    activityFilters: [{}],
    customChannelGrouping: {},
    dateRange: {},
    dimensions: [{}],
    floodlightConfigId: {},
    metricNames: [],
    pathFilters: [{}]
  },
  pathToConversionCriteria: {
    activityFilters: [{}],
    conversionDimensions: [{}],
    customFloodlightVariables: [{}],
    customRichMediaEvents: [{}],
    dateRange: {},
    floodlightConfigId: {},
    metricNames: [],
    perInteractionDimensions: [{}],
    reportProperties: {
      clicksLookbackWindow: 0,
      impressionsLookbackWindow: 0,
      includeAttributedIPConversions: false,
      includeUnattributedCookieConversions: false,
      includeUnattributedIPConversions: false,
      maximumClickInteractions: 0,
      maximumImpressionInteractions: 0,
      maximumInteractionGap: 0,
      pivotOnInteractionPath: false
    }
  },
  reachCriteria: {
    activities: {},
    customRichMediaEvents: {},
    dateRange: {},
    dimensionFilters: [{}],
    dimensions: [{}],
    enableAllDimensionCombinations: false,
    metricNames: [],
    reachByFrequencyMetricNames: []
  },
  schedule: {
    active: false,
    every: 0,
    expirationDate: '',
    repeats: '',
    repeatsOnWeekDays: [],
    runsOnDayOfMonth: '',
    startDate: ''
  },
  subAccountId: '',
  type: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/userprofiles/:profileId/reports/:reportId',
  headers: {'content-type': 'application/json'},
  body: {
    accountId: '',
    criteria: {
      activities: {
        filters: [{dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''}],
        kind: '',
        metricNames: []
      },
      customRichMediaEvents: {filteredEventIds: [{}], kind: ''},
      dateRange: {endDate: '', kind: '', relativeDateRange: '', startDate: ''},
      dimensionFilters: [{}],
      dimensions: [{kind: '', name: '', sortOrder: ''}],
      metricNames: []
    },
    crossDimensionReachCriteria: {
      breakdown: [{}],
      dateRange: {},
      dimension: '',
      dimensionFilters: [{}],
      metricNames: [],
      overlapMetricNames: [],
      pivoted: false
    },
    delivery: {
      emailOwner: false,
      emailOwnerDeliveryType: '',
      message: '',
      recipients: [{deliveryType: '', email: '', kind: ''}]
    },
    etag: '',
    fileName: '',
    floodlightCriteria: {
      customRichMediaEvents: [{}],
      dateRange: {},
      dimensionFilters: [{}],
      dimensions: [{}],
      floodlightConfigId: {},
      metricNames: [],
      reportProperties: {
        includeAttributedIPConversions: false,
        includeUnattributedCookieConversions: false,
        includeUnattributedIPConversions: false
      }
    },
    format: '',
    id: '',
    kind: '',
    lastModifiedTime: '',
    name: '',
    ownerProfileId: '',
    pathAttributionCriteria: {
      activityFilters: [{}],
      customChannelGrouping: {
        fallbackName: '',
        kind: '',
        name: '',
        rules: [
          {
            disjunctiveMatchStatements: [
              {
                eventFilters: [
                  {
                    dimensionFilter: {dimensionName: '', ids: [], kind: '', matchType: '', values: []},
                    kind: ''
                  }
                ],
                kind: ''
              }
            ],
            kind: '',
            name: ''
          }
        ]
      },
      dateRange: {},
      dimensions: [{}],
      floodlightConfigId: {},
      metricNames: [],
      pathFilters: [{eventFilters: [{}], kind: '', pathMatchPosition: ''}]
    },
    pathCriteria: {
      activityFilters: [{}],
      customChannelGrouping: {},
      dateRange: {},
      dimensions: [{}],
      floodlightConfigId: {},
      metricNames: [],
      pathFilters: [{}]
    },
    pathToConversionCriteria: {
      activityFilters: [{}],
      conversionDimensions: [{}],
      customFloodlightVariables: [{}],
      customRichMediaEvents: [{}],
      dateRange: {},
      floodlightConfigId: {},
      metricNames: [],
      perInteractionDimensions: [{}],
      reportProperties: {
        clicksLookbackWindow: 0,
        impressionsLookbackWindow: 0,
        includeAttributedIPConversions: false,
        includeUnattributedCookieConversions: false,
        includeUnattributedIPConversions: false,
        maximumClickInteractions: 0,
        maximumImpressionInteractions: 0,
        maximumInteractionGap: 0,
        pivotOnInteractionPath: false
      }
    },
    reachCriteria: {
      activities: {},
      customRichMediaEvents: {},
      dateRange: {},
      dimensionFilters: [{}],
      dimensions: [{}],
      enableAllDimensionCombinations: false,
      metricNames: [],
      reachByFrequencyMetricNames: []
    },
    schedule: {
      active: false,
      every: 0,
      expirationDate: '',
      repeats: '',
      repeatsOnWeekDays: [],
      runsOnDayOfMonth: '',
      startDate: ''
    },
    subAccountId: '',
    type: ''
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/userprofiles/:profileId/reports/:reportId');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  accountId: '',
  criteria: {
    activities: {
      filters: [
        {
          dimensionName: '',
          etag: '',
          id: '',
          kind: '',
          matchType: '',
          value: ''
        }
      ],
      kind: '',
      metricNames: []
    },
    customRichMediaEvents: {
      filteredEventIds: [
        {}
      ],
      kind: ''
    },
    dateRange: {
      endDate: '',
      kind: '',
      relativeDateRange: '',
      startDate: ''
    },
    dimensionFilters: [
      {}
    ],
    dimensions: [
      {
        kind: '',
        name: '',
        sortOrder: ''
      }
    ],
    metricNames: []
  },
  crossDimensionReachCriteria: {
    breakdown: [
      {}
    ],
    dateRange: {},
    dimension: '',
    dimensionFilters: [
      {}
    ],
    metricNames: [],
    overlapMetricNames: [],
    pivoted: false
  },
  delivery: {
    emailOwner: false,
    emailOwnerDeliveryType: '',
    message: '',
    recipients: [
      {
        deliveryType: '',
        email: '',
        kind: ''
      }
    ]
  },
  etag: '',
  fileName: '',
  floodlightCriteria: {
    customRichMediaEvents: [
      {}
    ],
    dateRange: {},
    dimensionFilters: [
      {}
    ],
    dimensions: [
      {}
    ],
    floodlightConfigId: {},
    metricNames: [],
    reportProperties: {
      includeAttributedIPConversions: false,
      includeUnattributedCookieConversions: false,
      includeUnattributedIPConversions: false
    }
  },
  format: '',
  id: '',
  kind: '',
  lastModifiedTime: '',
  name: '',
  ownerProfileId: '',
  pathAttributionCriteria: {
    activityFilters: [
      {}
    ],
    customChannelGrouping: {
      fallbackName: '',
      kind: '',
      name: '',
      rules: [
        {
          disjunctiveMatchStatements: [
            {
              eventFilters: [
                {
                  dimensionFilter: {
                    dimensionName: '',
                    ids: [],
                    kind: '',
                    matchType: '',
                    values: []
                  },
                  kind: ''
                }
              ],
              kind: ''
            }
          ],
          kind: '',
          name: ''
        }
      ]
    },
    dateRange: {},
    dimensions: [
      {}
    ],
    floodlightConfigId: {},
    metricNames: [],
    pathFilters: [
      {
        eventFilters: [
          {}
        ],
        kind: '',
        pathMatchPosition: ''
      }
    ]
  },
  pathCriteria: {
    activityFilters: [
      {}
    ],
    customChannelGrouping: {},
    dateRange: {},
    dimensions: [
      {}
    ],
    floodlightConfigId: {},
    metricNames: [],
    pathFilters: [
      {}
    ]
  },
  pathToConversionCriteria: {
    activityFilters: [
      {}
    ],
    conversionDimensions: [
      {}
    ],
    customFloodlightVariables: [
      {}
    ],
    customRichMediaEvents: [
      {}
    ],
    dateRange: {},
    floodlightConfigId: {},
    metricNames: [],
    perInteractionDimensions: [
      {}
    ],
    reportProperties: {
      clicksLookbackWindow: 0,
      impressionsLookbackWindow: 0,
      includeAttributedIPConversions: false,
      includeUnattributedCookieConversions: false,
      includeUnattributedIPConversions: false,
      maximumClickInteractions: 0,
      maximumImpressionInteractions: 0,
      maximumInteractionGap: 0,
      pivotOnInteractionPath: false
    }
  },
  reachCriteria: {
    activities: {},
    customRichMediaEvents: {},
    dateRange: {},
    dimensionFilters: [
      {}
    ],
    dimensions: [
      {}
    ],
    enableAllDimensionCombinations: false,
    metricNames: [],
    reachByFrequencyMetricNames: []
  },
  schedule: {
    active: false,
    every: 0,
    expirationDate: '',
    repeats: '',
    repeatsOnWeekDays: [],
    runsOnDayOfMonth: '',
    startDate: ''
  },
  subAccountId: '',
  type: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/userprofiles/:profileId/reports/:reportId',
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    criteria: {
      activities: {
        filters: [{dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''}],
        kind: '',
        metricNames: []
      },
      customRichMediaEvents: {filteredEventIds: [{}], kind: ''},
      dateRange: {endDate: '', kind: '', relativeDateRange: '', startDate: ''},
      dimensionFilters: [{}],
      dimensions: [{kind: '', name: '', sortOrder: ''}],
      metricNames: []
    },
    crossDimensionReachCriteria: {
      breakdown: [{}],
      dateRange: {},
      dimension: '',
      dimensionFilters: [{}],
      metricNames: [],
      overlapMetricNames: [],
      pivoted: false
    },
    delivery: {
      emailOwner: false,
      emailOwnerDeliveryType: '',
      message: '',
      recipients: [{deliveryType: '', email: '', kind: ''}]
    },
    etag: '',
    fileName: '',
    floodlightCriteria: {
      customRichMediaEvents: [{}],
      dateRange: {},
      dimensionFilters: [{}],
      dimensions: [{}],
      floodlightConfigId: {},
      metricNames: [],
      reportProperties: {
        includeAttributedIPConversions: false,
        includeUnattributedCookieConversions: false,
        includeUnattributedIPConversions: false
      }
    },
    format: '',
    id: '',
    kind: '',
    lastModifiedTime: '',
    name: '',
    ownerProfileId: '',
    pathAttributionCriteria: {
      activityFilters: [{}],
      customChannelGrouping: {
        fallbackName: '',
        kind: '',
        name: '',
        rules: [
          {
            disjunctiveMatchStatements: [
              {
                eventFilters: [
                  {
                    dimensionFilter: {dimensionName: '', ids: [], kind: '', matchType: '', values: []},
                    kind: ''
                  }
                ],
                kind: ''
              }
            ],
            kind: '',
            name: ''
          }
        ]
      },
      dateRange: {},
      dimensions: [{}],
      floodlightConfigId: {},
      metricNames: [],
      pathFilters: [{eventFilters: [{}], kind: '', pathMatchPosition: ''}]
    },
    pathCriteria: {
      activityFilters: [{}],
      customChannelGrouping: {},
      dateRange: {},
      dimensions: [{}],
      floodlightConfigId: {},
      metricNames: [],
      pathFilters: [{}]
    },
    pathToConversionCriteria: {
      activityFilters: [{}],
      conversionDimensions: [{}],
      customFloodlightVariables: [{}],
      customRichMediaEvents: [{}],
      dateRange: {},
      floodlightConfigId: {},
      metricNames: [],
      perInteractionDimensions: [{}],
      reportProperties: {
        clicksLookbackWindow: 0,
        impressionsLookbackWindow: 0,
        includeAttributedIPConversions: false,
        includeUnattributedCookieConversions: false,
        includeUnattributedIPConversions: false,
        maximumClickInteractions: 0,
        maximumImpressionInteractions: 0,
        maximumInteractionGap: 0,
        pivotOnInteractionPath: false
      }
    },
    reachCriteria: {
      activities: {},
      customRichMediaEvents: {},
      dateRange: {},
      dimensionFilters: [{}],
      dimensions: [{}],
      enableAllDimensionCombinations: false,
      metricNames: [],
      reachByFrequencyMetricNames: []
    },
    schedule: {
      active: false,
      every: 0,
      expirationDate: '',
      repeats: '',
      repeatsOnWeekDays: [],
      runsOnDayOfMonth: '',
      startDate: ''
    },
    subAccountId: '',
    type: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/reports/:reportId';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","criteria":{"activities":{"filters":[{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""}],"kind":"","metricNames":[]},"customRichMediaEvents":{"filteredEventIds":[{}],"kind":""},"dateRange":{"endDate":"","kind":"","relativeDateRange":"","startDate":""},"dimensionFilters":[{}],"dimensions":[{"kind":"","name":"","sortOrder":""}],"metricNames":[]},"crossDimensionReachCriteria":{"breakdown":[{}],"dateRange":{},"dimension":"","dimensionFilters":[{}],"metricNames":[],"overlapMetricNames":[],"pivoted":false},"delivery":{"emailOwner":false,"emailOwnerDeliveryType":"","message":"","recipients":[{"deliveryType":"","email":"","kind":""}]},"etag":"","fileName":"","floodlightCriteria":{"customRichMediaEvents":[{}],"dateRange":{},"dimensionFilters":[{}],"dimensions":[{}],"floodlightConfigId":{},"metricNames":[],"reportProperties":{"includeAttributedIPConversions":false,"includeUnattributedCookieConversions":false,"includeUnattributedIPConversions":false}},"format":"","id":"","kind":"","lastModifiedTime":"","name":"","ownerProfileId":"","pathAttributionCriteria":{"activityFilters":[{}],"customChannelGrouping":{"fallbackName":"","kind":"","name":"","rules":[{"disjunctiveMatchStatements":[{"eventFilters":[{"dimensionFilter":{"dimensionName":"","ids":[],"kind":"","matchType":"","values":[]},"kind":""}],"kind":""}],"kind":"","name":""}]},"dateRange":{},"dimensions":[{}],"floodlightConfigId":{},"metricNames":[],"pathFilters":[{"eventFilters":[{}],"kind":"","pathMatchPosition":""}]},"pathCriteria":{"activityFilters":[{}],"customChannelGrouping":{},"dateRange":{},"dimensions":[{}],"floodlightConfigId":{},"metricNames":[],"pathFilters":[{}]},"pathToConversionCriteria":{"activityFilters":[{}],"conversionDimensions":[{}],"customFloodlightVariables":[{}],"customRichMediaEvents":[{}],"dateRange":{},"floodlightConfigId":{},"metricNames":[],"perInteractionDimensions":[{}],"reportProperties":{"clicksLookbackWindow":0,"impressionsLookbackWindow":0,"includeAttributedIPConversions":false,"includeUnattributedCookieConversions":false,"includeUnattributedIPConversions":false,"maximumClickInteractions":0,"maximumImpressionInteractions":0,"maximumInteractionGap":0,"pivotOnInteractionPath":false}},"reachCriteria":{"activities":{},"customRichMediaEvents":{},"dateRange":{},"dimensionFilters":[{}],"dimensions":[{}],"enableAllDimensionCombinations":false,"metricNames":[],"reachByFrequencyMetricNames":[]},"schedule":{"active":false,"every":0,"expirationDate":"","repeats":"","repeatsOnWeekDays":[],"runsOnDayOfMonth":"","startDate":""},"subAccountId":"","type":""}'
};

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 = @{ @"accountId": @"",
                              @"criteria": @{ @"activities": @{ @"filters": @[ @{ @"dimensionName": @"", @"etag": @"", @"id": @"", @"kind": @"", @"matchType": @"", @"value": @"" } ], @"kind": @"", @"metricNames": @[  ] }, @"customRichMediaEvents": @{ @"filteredEventIds": @[ @{  } ], @"kind": @"" }, @"dateRange": @{ @"endDate": @"", @"kind": @"", @"relativeDateRange": @"", @"startDate": @"" }, @"dimensionFilters": @[ @{  } ], @"dimensions": @[ @{ @"kind": @"", @"name": @"", @"sortOrder": @"" } ], @"metricNames": @[  ] },
                              @"crossDimensionReachCriteria": @{ @"breakdown": @[ @{  } ], @"dateRange": @{  }, @"dimension": @"", @"dimensionFilters": @[ @{  } ], @"metricNames": @[  ], @"overlapMetricNames": @[  ], @"pivoted": @NO },
                              @"delivery": @{ @"emailOwner": @NO, @"emailOwnerDeliveryType": @"", @"message": @"", @"recipients": @[ @{ @"deliveryType": @"", @"email": @"", @"kind": @"" } ] },
                              @"etag": @"",
                              @"fileName": @"",
                              @"floodlightCriteria": @{ @"customRichMediaEvents": @[ @{  } ], @"dateRange": @{  }, @"dimensionFilters": @[ @{  } ], @"dimensions": @[ @{  } ], @"floodlightConfigId": @{  }, @"metricNames": @[  ], @"reportProperties": @{ @"includeAttributedIPConversions": @NO, @"includeUnattributedCookieConversions": @NO, @"includeUnattributedIPConversions": @NO } },
                              @"format": @"",
                              @"id": @"",
                              @"kind": @"",
                              @"lastModifiedTime": @"",
                              @"name": @"",
                              @"ownerProfileId": @"",
                              @"pathAttributionCriteria": @{ @"activityFilters": @[ @{  } ], @"customChannelGrouping": @{ @"fallbackName": @"", @"kind": @"", @"name": @"", @"rules": @[ @{ @"disjunctiveMatchStatements": @[ @{ @"eventFilters": @[ @{ @"dimensionFilter": @{ @"dimensionName": @"", @"ids": @[  ], @"kind": @"", @"matchType": @"", @"values": @[  ] }, @"kind": @"" } ], @"kind": @"" } ], @"kind": @"", @"name": @"" } ] }, @"dateRange": @{  }, @"dimensions": @[ @{  } ], @"floodlightConfigId": @{  }, @"metricNames": @[  ], @"pathFilters": @[ @{ @"eventFilters": @[ @{  } ], @"kind": @"", @"pathMatchPosition": @"" } ] },
                              @"pathCriteria": @{ @"activityFilters": @[ @{  } ], @"customChannelGrouping": @{  }, @"dateRange": @{  }, @"dimensions": @[ @{  } ], @"floodlightConfigId": @{  }, @"metricNames": @[  ], @"pathFilters": @[ @{  } ] },
                              @"pathToConversionCriteria": @{ @"activityFilters": @[ @{  } ], @"conversionDimensions": @[ @{  } ], @"customFloodlightVariables": @[ @{  } ], @"customRichMediaEvents": @[ @{  } ], @"dateRange": @{  }, @"floodlightConfigId": @{  }, @"metricNames": @[  ], @"perInteractionDimensions": @[ @{  } ], @"reportProperties": @{ @"clicksLookbackWindow": @0, @"impressionsLookbackWindow": @0, @"includeAttributedIPConversions": @NO, @"includeUnattributedCookieConversions": @NO, @"includeUnattributedIPConversions": @NO, @"maximumClickInteractions": @0, @"maximumImpressionInteractions": @0, @"maximumInteractionGap": @0, @"pivotOnInteractionPath": @NO } },
                              @"reachCriteria": @{ @"activities": @{  }, @"customRichMediaEvents": @{  }, @"dateRange": @{  }, @"dimensionFilters": @[ @{  } ], @"dimensions": @[ @{  } ], @"enableAllDimensionCombinations": @NO, @"metricNames": @[  ], @"reachByFrequencyMetricNames": @[  ] },
                              @"schedule": @{ @"active": @NO, @"every": @0, @"expirationDate": @"", @"repeats": @"", @"repeatsOnWeekDays": @[  ], @"runsOnDayOfMonth": @"", @"startDate": @"" },
                              @"subAccountId": @"",
                              @"type": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/userprofiles/:profileId/reports/:reportId"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/userprofiles/:profileId/reports/:reportId" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"accountId\": \"\",\n  \"criteria\": {\n    \"activities\": {\n      \"filters\": [\n        {\n          \"dimensionName\": \"\",\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"matchType\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"kind\": \"\",\n      \"metricNames\": []\n    },\n    \"customRichMediaEvents\": {\n      \"filteredEventIds\": [\n        {}\n      ],\n      \"kind\": \"\"\n    },\n    \"dateRange\": {\n      \"endDate\": \"\",\n      \"kind\": \"\",\n      \"relativeDateRange\": \"\",\n      \"startDate\": \"\"\n    },\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sortOrder\": \"\"\n      }\n    ],\n    \"metricNames\": []\n  },\n  \"crossDimensionReachCriteria\": {\n    \"breakdown\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimension\": \"\",\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"metricNames\": [],\n    \"overlapMetricNames\": [],\n    \"pivoted\": false\n  },\n  \"delivery\": {\n    \"emailOwner\": false,\n    \"emailOwnerDeliveryType\": \"\",\n    \"message\": \"\",\n    \"recipients\": [\n      {\n        \"deliveryType\": \"\",\n        \"email\": \"\",\n        \"kind\": \"\"\n      }\n    ]\n  },\n  \"etag\": \"\",\n  \"fileName\": \"\",\n  \"floodlightCriteria\": {\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"reportProperties\": {\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false\n    }\n  },\n  \"format\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedTime\": \"\",\n  \"name\": \"\",\n  \"ownerProfileId\": \"\",\n  \"pathAttributionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {\n      \"fallbackName\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"rules\": [\n        {\n          \"disjunctiveMatchStatements\": [\n            {\n              \"eventFilters\": [\n                {\n                  \"dimensionFilter\": {\n                    \"dimensionName\": \"\",\n                    \"ids\": [],\n                    \"kind\": \"\",\n                    \"matchType\": \"\",\n                    \"values\": []\n                  },\n                  \"kind\": \"\"\n                }\n              ],\n              \"kind\": \"\"\n            }\n          ],\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {\n        \"eventFilters\": [\n          {}\n        ],\n        \"kind\": \"\",\n        \"pathMatchPosition\": \"\"\n      }\n    ]\n  },\n  \"pathCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {},\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {}\n    ]\n  },\n  \"pathToConversionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"conversionDimensions\": [\n      {}\n    ],\n    \"customFloodlightVariables\": [\n      {}\n    ],\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"perInteractionDimensions\": [\n      {}\n    ],\n    \"reportProperties\": {\n      \"clicksLookbackWindow\": 0,\n      \"impressionsLookbackWindow\": 0,\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false,\n      \"maximumClickInteractions\": 0,\n      \"maximumImpressionInteractions\": 0,\n      \"maximumInteractionGap\": 0,\n      \"pivotOnInteractionPath\": false\n    }\n  },\n  \"reachCriteria\": {\n    \"activities\": {},\n    \"customRichMediaEvents\": {},\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"enableAllDimensionCombinations\": false,\n    \"metricNames\": [],\n    \"reachByFrequencyMetricNames\": []\n  },\n  \"schedule\": {\n    \"active\": false,\n    \"every\": 0,\n    \"expirationDate\": \"\",\n    \"repeats\": \"\",\n    \"repeatsOnWeekDays\": [],\n    \"runsOnDayOfMonth\": \"\",\n    \"startDate\": \"\"\n  },\n  \"subAccountId\": \"\",\n  \"type\": \"\"\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/reports/:reportId",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'accountId' => '',
    'criteria' => [
        'activities' => [
                'filters' => [
                                [
                                                                'dimensionName' => '',
                                                                'etag' => '',
                                                                'id' => '',
                                                                'kind' => '',
                                                                'matchType' => '',
                                                                'value' => ''
                                ]
                ],
                'kind' => '',
                'metricNames' => [
                                
                ]
        ],
        'customRichMediaEvents' => [
                'filteredEventIds' => [
                                [
                                                                
                                ]
                ],
                'kind' => ''
        ],
        'dateRange' => [
                'endDate' => '',
                'kind' => '',
                'relativeDateRange' => '',
                'startDate' => ''
        ],
        'dimensionFilters' => [
                [
                                
                ]
        ],
        'dimensions' => [
                [
                                'kind' => '',
                                'name' => '',
                                'sortOrder' => ''
                ]
        ],
        'metricNames' => [
                
        ]
    ],
    'crossDimensionReachCriteria' => [
        'breakdown' => [
                [
                                
                ]
        ],
        'dateRange' => [
                
        ],
        'dimension' => '',
        'dimensionFilters' => [
                [
                                
                ]
        ],
        'metricNames' => [
                
        ],
        'overlapMetricNames' => [
                
        ],
        'pivoted' => null
    ],
    'delivery' => [
        'emailOwner' => null,
        'emailOwnerDeliveryType' => '',
        'message' => '',
        'recipients' => [
                [
                                'deliveryType' => '',
                                'email' => '',
                                'kind' => ''
                ]
        ]
    ],
    'etag' => '',
    'fileName' => '',
    'floodlightCriteria' => [
        'customRichMediaEvents' => [
                [
                                
                ]
        ],
        'dateRange' => [
                
        ],
        'dimensionFilters' => [
                [
                                
                ]
        ],
        'dimensions' => [
                [
                                
                ]
        ],
        'floodlightConfigId' => [
                
        ],
        'metricNames' => [
                
        ],
        'reportProperties' => [
                'includeAttributedIPConversions' => null,
                'includeUnattributedCookieConversions' => null,
                'includeUnattributedIPConversions' => null
        ]
    ],
    'format' => '',
    'id' => '',
    'kind' => '',
    'lastModifiedTime' => '',
    'name' => '',
    'ownerProfileId' => '',
    'pathAttributionCriteria' => [
        'activityFilters' => [
                [
                                
                ]
        ],
        'customChannelGrouping' => [
                'fallbackName' => '',
                'kind' => '',
                'name' => '',
                'rules' => [
                                [
                                                                'disjunctiveMatchStatements' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'eventFilters' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'dimensionFilter' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'dimensionName' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'ids' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'kind' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'matchType' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'values' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'kind' => ''
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'kind' => ''
                                                                                                                                ]
                                                                ],
                                                                'kind' => '',
                                                                'name' => ''
                                ]
                ]
        ],
        'dateRange' => [
                
        ],
        'dimensions' => [
                [
                                
                ]
        ],
        'floodlightConfigId' => [
                
        ],
        'metricNames' => [
                
        ],
        'pathFilters' => [
                [
                                'eventFilters' => [
                                                                [
                                                                                                                                
                                                                ]
                                ],
                                'kind' => '',
                                'pathMatchPosition' => ''
                ]
        ]
    ],
    'pathCriteria' => [
        'activityFilters' => [
                [
                                
                ]
        ],
        'customChannelGrouping' => [
                
        ],
        'dateRange' => [
                
        ],
        'dimensions' => [
                [
                                
                ]
        ],
        'floodlightConfigId' => [
                
        ],
        'metricNames' => [
                
        ],
        'pathFilters' => [
                [
                                
                ]
        ]
    ],
    'pathToConversionCriteria' => [
        'activityFilters' => [
                [
                                
                ]
        ],
        'conversionDimensions' => [
                [
                                
                ]
        ],
        'customFloodlightVariables' => [
                [
                                
                ]
        ],
        'customRichMediaEvents' => [
                [
                                
                ]
        ],
        'dateRange' => [
                
        ],
        'floodlightConfigId' => [
                
        ],
        'metricNames' => [
                
        ],
        'perInteractionDimensions' => [
                [
                                
                ]
        ],
        'reportProperties' => [
                'clicksLookbackWindow' => 0,
                'impressionsLookbackWindow' => 0,
                'includeAttributedIPConversions' => null,
                'includeUnattributedCookieConversions' => null,
                'includeUnattributedIPConversions' => null,
                'maximumClickInteractions' => 0,
                'maximumImpressionInteractions' => 0,
                'maximumInteractionGap' => 0,
                'pivotOnInteractionPath' => null
        ]
    ],
    'reachCriteria' => [
        'activities' => [
                
        ],
        'customRichMediaEvents' => [
                
        ],
        'dateRange' => [
                
        ],
        'dimensionFilters' => [
                [
                                
                ]
        ],
        'dimensions' => [
                [
                                
                ]
        ],
        'enableAllDimensionCombinations' => null,
        'metricNames' => [
                
        ],
        'reachByFrequencyMetricNames' => [
                
        ]
    ],
    'schedule' => [
        'active' => null,
        'every' => 0,
        'expirationDate' => '',
        'repeats' => '',
        'repeatsOnWeekDays' => [
                
        ],
        'runsOnDayOfMonth' => '',
        'startDate' => ''
    ],
    'subAccountId' => '',
    'type' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/userprofiles/:profileId/reports/:reportId', [
  'body' => '{
  "accountId": "",
  "criteria": {
    "activities": {
      "filters": [
        {
          "dimensionName": "",
          "etag": "",
          "id": "",
          "kind": "",
          "matchType": "",
          "value": ""
        }
      ],
      "kind": "",
      "metricNames": []
    },
    "customRichMediaEvents": {
      "filteredEventIds": [
        {}
      ],
      "kind": ""
    },
    "dateRange": {
      "endDate": "",
      "kind": "",
      "relativeDateRange": "",
      "startDate": ""
    },
    "dimensionFilters": [
      {}
    ],
    "dimensions": [
      {
        "kind": "",
        "name": "",
        "sortOrder": ""
      }
    ],
    "metricNames": []
  },
  "crossDimensionReachCriteria": {
    "breakdown": [
      {}
    ],
    "dateRange": {},
    "dimension": "",
    "dimensionFilters": [
      {}
    ],
    "metricNames": [],
    "overlapMetricNames": [],
    "pivoted": false
  },
  "delivery": {
    "emailOwner": false,
    "emailOwnerDeliveryType": "",
    "message": "",
    "recipients": [
      {
        "deliveryType": "",
        "email": "",
        "kind": ""
      }
    ]
  },
  "etag": "",
  "fileName": "",
  "floodlightCriteria": {
    "customRichMediaEvents": [
      {}
    ],
    "dateRange": {},
    "dimensionFilters": [
      {}
    ],
    "dimensions": [
      {}
    ],
    "floodlightConfigId": {},
    "metricNames": [],
    "reportProperties": {
      "includeAttributedIPConversions": false,
      "includeUnattributedCookieConversions": false,
      "includeUnattributedIPConversions": false
    }
  },
  "format": "",
  "id": "",
  "kind": "",
  "lastModifiedTime": "",
  "name": "",
  "ownerProfileId": "",
  "pathAttributionCriteria": {
    "activityFilters": [
      {}
    ],
    "customChannelGrouping": {
      "fallbackName": "",
      "kind": "",
      "name": "",
      "rules": [
        {
          "disjunctiveMatchStatements": [
            {
              "eventFilters": [
                {
                  "dimensionFilter": {
                    "dimensionName": "",
                    "ids": [],
                    "kind": "",
                    "matchType": "",
                    "values": []
                  },
                  "kind": ""
                }
              ],
              "kind": ""
            }
          ],
          "kind": "",
          "name": ""
        }
      ]
    },
    "dateRange": {},
    "dimensions": [
      {}
    ],
    "floodlightConfigId": {},
    "metricNames": [],
    "pathFilters": [
      {
        "eventFilters": [
          {}
        ],
        "kind": "",
        "pathMatchPosition": ""
      }
    ]
  },
  "pathCriteria": {
    "activityFilters": [
      {}
    ],
    "customChannelGrouping": {},
    "dateRange": {},
    "dimensions": [
      {}
    ],
    "floodlightConfigId": {},
    "metricNames": [],
    "pathFilters": [
      {}
    ]
  },
  "pathToConversionCriteria": {
    "activityFilters": [
      {}
    ],
    "conversionDimensions": [
      {}
    ],
    "customFloodlightVariables": [
      {}
    ],
    "customRichMediaEvents": [
      {}
    ],
    "dateRange": {},
    "floodlightConfigId": {},
    "metricNames": [],
    "perInteractionDimensions": [
      {}
    ],
    "reportProperties": {
      "clicksLookbackWindow": 0,
      "impressionsLookbackWindow": 0,
      "includeAttributedIPConversions": false,
      "includeUnattributedCookieConversions": false,
      "includeUnattributedIPConversions": false,
      "maximumClickInteractions": 0,
      "maximumImpressionInteractions": 0,
      "maximumInteractionGap": 0,
      "pivotOnInteractionPath": false
    }
  },
  "reachCriteria": {
    "activities": {},
    "customRichMediaEvents": {},
    "dateRange": {},
    "dimensionFilters": [
      {}
    ],
    "dimensions": [
      {}
    ],
    "enableAllDimensionCombinations": false,
    "metricNames": [],
    "reachByFrequencyMetricNames": []
  },
  "schedule": {
    "active": false,
    "every": 0,
    "expirationDate": "",
    "repeats": "",
    "repeatsOnWeekDays": [],
    "runsOnDayOfMonth": "",
    "startDate": ""
  },
  "subAccountId": "",
  "type": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/reports/:reportId');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'accountId' => '',
  'criteria' => [
    'activities' => [
        'filters' => [
                [
                                'dimensionName' => '',
                                'etag' => '',
                                'id' => '',
                                'kind' => '',
                                'matchType' => '',
                                'value' => ''
                ]
        ],
        'kind' => '',
        'metricNames' => [
                
        ]
    ],
    'customRichMediaEvents' => [
        'filteredEventIds' => [
                [
                                
                ]
        ],
        'kind' => ''
    ],
    'dateRange' => [
        'endDate' => '',
        'kind' => '',
        'relativeDateRange' => '',
        'startDate' => ''
    ],
    'dimensionFilters' => [
        [
                
        ]
    ],
    'dimensions' => [
        [
                'kind' => '',
                'name' => '',
                'sortOrder' => ''
        ]
    ],
    'metricNames' => [
        
    ]
  ],
  'crossDimensionReachCriteria' => [
    'breakdown' => [
        [
                
        ]
    ],
    'dateRange' => [
        
    ],
    'dimension' => '',
    'dimensionFilters' => [
        [
                
        ]
    ],
    'metricNames' => [
        
    ],
    'overlapMetricNames' => [
        
    ],
    'pivoted' => null
  ],
  'delivery' => [
    'emailOwner' => null,
    'emailOwnerDeliveryType' => '',
    'message' => '',
    'recipients' => [
        [
                'deliveryType' => '',
                'email' => '',
                'kind' => ''
        ]
    ]
  ],
  'etag' => '',
  'fileName' => '',
  'floodlightCriteria' => [
    'customRichMediaEvents' => [
        [
                
        ]
    ],
    'dateRange' => [
        
    ],
    'dimensionFilters' => [
        [
                
        ]
    ],
    'dimensions' => [
        [
                
        ]
    ],
    'floodlightConfigId' => [
        
    ],
    'metricNames' => [
        
    ],
    'reportProperties' => [
        'includeAttributedIPConversions' => null,
        'includeUnattributedCookieConversions' => null,
        'includeUnattributedIPConversions' => null
    ]
  ],
  'format' => '',
  'id' => '',
  'kind' => '',
  'lastModifiedTime' => '',
  'name' => '',
  'ownerProfileId' => '',
  'pathAttributionCriteria' => [
    'activityFilters' => [
        [
                
        ]
    ],
    'customChannelGrouping' => [
        'fallbackName' => '',
        'kind' => '',
        'name' => '',
        'rules' => [
                [
                                'disjunctiveMatchStatements' => [
                                                                [
                                                                                                                                'eventFilters' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'dimensionFilter' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'dimensionName' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'ids' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'kind' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'matchType' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'values' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'kind' => ''
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'kind' => ''
                                                                ]
                                ],
                                'kind' => '',
                                'name' => ''
                ]
        ]
    ],
    'dateRange' => [
        
    ],
    'dimensions' => [
        [
                
        ]
    ],
    'floodlightConfigId' => [
        
    ],
    'metricNames' => [
        
    ],
    'pathFilters' => [
        [
                'eventFilters' => [
                                [
                                                                
                                ]
                ],
                'kind' => '',
                'pathMatchPosition' => ''
        ]
    ]
  ],
  'pathCriteria' => [
    'activityFilters' => [
        [
                
        ]
    ],
    'customChannelGrouping' => [
        
    ],
    'dateRange' => [
        
    ],
    'dimensions' => [
        [
                
        ]
    ],
    'floodlightConfigId' => [
        
    ],
    'metricNames' => [
        
    ],
    'pathFilters' => [
        [
                
        ]
    ]
  ],
  'pathToConversionCriteria' => [
    'activityFilters' => [
        [
                
        ]
    ],
    'conversionDimensions' => [
        [
                
        ]
    ],
    'customFloodlightVariables' => [
        [
                
        ]
    ],
    'customRichMediaEvents' => [
        [
                
        ]
    ],
    'dateRange' => [
        
    ],
    'floodlightConfigId' => [
        
    ],
    'metricNames' => [
        
    ],
    'perInteractionDimensions' => [
        [
                
        ]
    ],
    'reportProperties' => [
        'clicksLookbackWindow' => 0,
        'impressionsLookbackWindow' => 0,
        'includeAttributedIPConversions' => null,
        'includeUnattributedCookieConversions' => null,
        'includeUnattributedIPConversions' => null,
        'maximumClickInteractions' => 0,
        'maximumImpressionInteractions' => 0,
        'maximumInteractionGap' => 0,
        'pivotOnInteractionPath' => null
    ]
  ],
  'reachCriteria' => [
    'activities' => [
        
    ],
    'customRichMediaEvents' => [
        
    ],
    'dateRange' => [
        
    ],
    'dimensionFilters' => [
        [
                
        ]
    ],
    'dimensions' => [
        [
                
        ]
    ],
    'enableAllDimensionCombinations' => null,
    'metricNames' => [
        
    ],
    'reachByFrequencyMetricNames' => [
        
    ]
  ],
  'schedule' => [
    'active' => null,
    'every' => 0,
    'expirationDate' => '',
    'repeats' => '',
    'repeatsOnWeekDays' => [
        
    ],
    'runsOnDayOfMonth' => '',
    'startDate' => ''
  ],
  'subAccountId' => '',
  'type' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'accountId' => '',
  'criteria' => [
    'activities' => [
        'filters' => [
                [
                                'dimensionName' => '',
                                'etag' => '',
                                'id' => '',
                                'kind' => '',
                                'matchType' => '',
                                'value' => ''
                ]
        ],
        'kind' => '',
        'metricNames' => [
                
        ]
    ],
    'customRichMediaEvents' => [
        'filteredEventIds' => [
                [
                                
                ]
        ],
        'kind' => ''
    ],
    'dateRange' => [
        'endDate' => '',
        'kind' => '',
        'relativeDateRange' => '',
        'startDate' => ''
    ],
    'dimensionFilters' => [
        [
                
        ]
    ],
    'dimensions' => [
        [
                'kind' => '',
                'name' => '',
                'sortOrder' => ''
        ]
    ],
    'metricNames' => [
        
    ]
  ],
  'crossDimensionReachCriteria' => [
    'breakdown' => [
        [
                
        ]
    ],
    'dateRange' => [
        
    ],
    'dimension' => '',
    'dimensionFilters' => [
        [
                
        ]
    ],
    'metricNames' => [
        
    ],
    'overlapMetricNames' => [
        
    ],
    'pivoted' => null
  ],
  'delivery' => [
    'emailOwner' => null,
    'emailOwnerDeliveryType' => '',
    'message' => '',
    'recipients' => [
        [
                'deliveryType' => '',
                'email' => '',
                'kind' => ''
        ]
    ]
  ],
  'etag' => '',
  'fileName' => '',
  'floodlightCriteria' => [
    'customRichMediaEvents' => [
        [
                
        ]
    ],
    'dateRange' => [
        
    ],
    'dimensionFilters' => [
        [
                
        ]
    ],
    'dimensions' => [
        [
                
        ]
    ],
    'floodlightConfigId' => [
        
    ],
    'metricNames' => [
        
    ],
    'reportProperties' => [
        'includeAttributedIPConversions' => null,
        'includeUnattributedCookieConversions' => null,
        'includeUnattributedIPConversions' => null
    ]
  ],
  'format' => '',
  'id' => '',
  'kind' => '',
  'lastModifiedTime' => '',
  'name' => '',
  'ownerProfileId' => '',
  'pathAttributionCriteria' => [
    'activityFilters' => [
        [
                
        ]
    ],
    'customChannelGrouping' => [
        'fallbackName' => '',
        'kind' => '',
        'name' => '',
        'rules' => [
                [
                                'disjunctiveMatchStatements' => [
                                                                [
                                                                                                                                'eventFilters' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'dimensionFilter' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'dimensionName' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'ids' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'kind' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'matchType' => '',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'values' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'kind' => ''
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'kind' => ''
                                                                ]
                                ],
                                'kind' => '',
                                'name' => ''
                ]
        ]
    ],
    'dateRange' => [
        
    ],
    'dimensions' => [
        [
                
        ]
    ],
    'floodlightConfigId' => [
        
    ],
    'metricNames' => [
        
    ],
    'pathFilters' => [
        [
                'eventFilters' => [
                                [
                                                                
                                ]
                ],
                'kind' => '',
                'pathMatchPosition' => ''
        ]
    ]
  ],
  'pathCriteria' => [
    'activityFilters' => [
        [
                
        ]
    ],
    'customChannelGrouping' => [
        
    ],
    'dateRange' => [
        
    ],
    'dimensions' => [
        [
                
        ]
    ],
    'floodlightConfigId' => [
        
    ],
    'metricNames' => [
        
    ],
    'pathFilters' => [
        [
                
        ]
    ]
  ],
  'pathToConversionCriteria' => [
    'activityFilters' => [
        [
                
        ]
    ],
    'conversionDimensions' => [
        [
                
        ]
    ],
    'customFloodlightVariables' => [
        [
                
        ]
    ],
    'customRichMediaEvents' => [
        [
                
        ]
    ],
    'dateRange' => [
        
    ],
    'floodlightConfigId' => [
        
    ],
    'metricNames' => [
        
    ],
    'perInteractionDimensions' => [
        [
                
        ]
    ],
    'reportProperties' => [
        'clicksLookbackWindow' => 0,
        'impressionsLookbackWindow' => 0,
        'includeAttributedIPConversions' => null,
        'includeUnattributedCookieConversions' => null,
        'includeUnattributedIPConversions' => null,
        'maximumClickInteractions' => 0,
        'maximumImpressionInteractions' => 0,
        'maximumInteractionGap' => 0,
        'pivotOnInteractionPath' => null
    ]
  ],
  'reachCriteria' => [
    'activities' => [
        
    ],
    'customRichMediaEvents' => [
        
    ],
    'dateRange' => [
        
    ],
    'dimensionFilters' => [
        [
                
        ]
    ],
    'dimensions' => [
        [
                
        ]
    ],
    'enableAllDimensionCombinations' => null,
    'metricNames' => [
        
    ],
    'reachByFrequencyMetricNames' => [
        
    ]
  ],
  'schedule' => [
    'active' => null,
    'every' => 0,
    'expirationDate' => '',
    'repeats' => '',
    'repeatsOnWeekDays' => [
        
    ],
    'runsOnDayOfMonth' => '',
    'startDate' => ''
  ],
  'subAccountId' => '',
  'type' => ''
]));
$request->setRequestUrl('{{baseUrl}}/userprofiles/:profileId/reports/:reportId');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/reports/:reportId' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "criteria": {
    "activities": {
      "filters": [
        {
          "dimensionName": "",
          "etag": "",
          "id": "",
          "kind": "",
          "matchType": "",
          "value": ""
        }
      ],
      "kind": "",
      "metricNames": []
    },
    "customRichMediaEvents": {
      "filteredEventIds": [
        {}
      ],
      "kind": ""
    },
    "dateRange": {
      "endDate": "",
      "kind": "",
      "relativeDateRange": "",
      "startDate": ""
    },
    "dimensionFilters": [
      {}
    ],
    "dimensions": [
      {
        "kind": "",
        "name": "",
        "sortOrder": ""
      }
    ],
    "metricNames": []
  },
  "crossDimensionReachCriteria": {
    "breakdown": [
      {}
    ],
    "dateRange": {},
    "dimension": "",
    "dimensionFilters": [
      {}
    ],
    "metricNames": [],
    "overlapMetricNames": [],
    "pivoted": false
  },
  "delivery": {
    "emailOwner": false,
    "emailOwnerDeliveryType": "",
    "message": "",
    "recipients": [
      {
        "deliveryType": "",
        "email": "",
        "kind": ""
      }
    ]
  },
  "etag": "",
  "fileName": "",
  "floodlightCriteria": {
    "customRichMediaEvents": [
      {}
    ],
    "dateRange": {},
    "dimensionFilters": [
      {}
    ],
    "dimensions": [
      {}
    ],
    "floodlightConfigId": {},
    "metricNames": [],
    "reportProperties": {
      "includeAttributedIPConversions": false,
      "includeUnattributedCookieConversions": false,
      "includeUnattributedIPConversions": false
    }
  },
  "format": "",
  "id": "",
  "kind": "",
  "lastModifiedTime": "",
  "name": "",
  "ownerProfileId": "",
  "pathAttributionCriteria": {
    "activityFilters": [
      {}
    ],
    "customChannelGrouping": {
      "fallbackName": "",
      "kind": "",
      "name": "",
      "rules": [
        {
          "disjunctiveMatchStatements": [
            {
              "eventFilters": [
                {
                  "dimensionFilter": {
                    "dimensionName": "",
                    "ids": [],
                    "kind": "",
                    "matchType": "",
                    "values": []
                  },
                  "kind": ""
                }
              ],
              "kind": ""
            }
          ],
          "kind": "",
          "name": ""
        }
      ]
    },
    "dateRange": {},
    "dimensions": [
      {}
    ],
    "floodlightConfigId": {},
    "metricNames": [],
    "pathFilters": [
      {
        "eventFilters": [
          {}
        ],
        "kind": "",
        "pathMatchPosition": ""
      }
    ]
  },
  "pathCriteria": {
    "activityFilters": [
      {}
    ],
    "customChannelGrouping": {},
    "dateRange": {},
    "dimensions": [
      {}
    ],
    "floodlightConfigId": {},
    "metricNames": [],
    "pathFilters": [
      {}
    ]
  },
  "pathToConversionCriteria": {
    "activityFilters": [
      {}
    ],
    "conversionDimensions": [
      {}
    ],
    "customFloodlightVariables": [
      {}
    ],
    "customRichMediaEvents": [
      {}
    ],
    "dateRange": {},
    "floodlightConfigId": {},
    "metricNames": [],
    "perInteractionDimensions": [
      {}
    ],
    "reportProperties": {
      "clicksLookbackWindow": 0,
      "impressionsLookbackWindow": 0,
      "includeAttributedIPConversions": false,
      "includeUnattributedCookieConversions": false,
      "includeUnattributedIPConversions": false,
      "maximumClickInteractions": 0,
      "maximumImpressionInteractions": 0,
      "maximumInteractionGap": 0,
      "pivotOnInteractionPath": false
    }
  },
  "reachCriteria": {
    "activities": {},
    "customRichMediaEvents": {},
    "dateRange": {},
    "dimensionFilters": [
      {}
    ],
    "dimensions": [
      {}
    ],
    "enableAllDimensionCombinations": false,
    "metricNames": [],
    "reachByFrequencyMetricNames": []
  },
  "schedule": {
    "active": false,
    "every": 0,
    "expirationDate": "",
    "repeats": "",
    "repeatsOnWeekDays": [],
    "runsOnDayOfMonth": "",
    "startDate": ""
  },
  "subAccountId": "",
  "type": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/reports/:reportId' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "criteria": {
    "activities": {
      "filters": [
        {
          "dimensionName": "",
          "etag": "",
          "id": "",
          "kind": "",
          "matchType": "",
          "value": ""
        }
      ],
      "kind": "",
      "metricNames": []
    },
    "customRichMediaEvents": {
      "filteredEventIds": [
        {}
      ],
      "kind": ""
    },
    "dateRange": {
      "endDate": "",
      "kind": "",
      "relativeDateRange": "",
      "startDate": ""
    },
    "dimensionFilters": [
      {}
    ],
    "dimensions": [
      {
        "kind": "",
        "name": "",
        "sortOrder": ""
      }
    ],
    "metricNames": []
  },
  "crossDimensionReachCriteria": {
    "breakdown": [
      {}
    ],
    "dateRange": {},
    "dimension": "",
    "dimensionFilters": [
      {}
    ],
    "metricNames": [],
    "overlapMetricNames": [],
    "pivoted": false
  },
  "delivery": {
    "emailOwner": false,
    "emailOwnerDeliveryType": "",
    "message": "",
    "recipients": [
      {
        "deliveryType": "",
        "email": "",
        "kind": ""
      }
    ]
  },
  "etag": "",
  "fileName": "",
  "floodlightCriteria": {
    "customRichMediaEvents": [
      {}
    ],
    "dateRange": {},
    "dimensionFilters": [
      {}
    ],
    "dimensions": [
      {}
    ],
    "floodlightConfigId": {},
    "metricNames": [],
    "reportProperties": {
      "includeAttributedIPConversions": false,
      "includeUnattributedCookieConversions": false,
      "includeUnattributedIPConversions": false
    }
  },
  "format": "",
  "id": "",
  "kind": "",
  "lastModifiedTime": "",
  "name": "",
  "ownerProfileId": "",
  "pathAttributionCriteria": {
    "activityFilters": [
      {}
    ],
    "customChannelGrouping": {
      "fallbackName": "",
      "kind": "",
      "name": "",
      "rules": [
        {
          "disjunctiveMatchStatements": [
            {
              "eventFilters": [
                {
                  "dimensionFilter": {
                    "dimensionName": "",
                    "ids": [],
                    "kind": "",
                    "matchType": "",
                    "values": []
                  },
                  "kind": ""
                }
              ],
              "kind": ""
            }
          ],
          "kind": "",
          "name": ""
        }
      ]
    },
    "dateRange": {},
    "dimensions": [
      {}
    ],
    "floodlightConfigId": {},
    "metricNames": [],
    "pathFilters": [
      {
        "eventFilters": [
          {}
        ],
        "kind": "",
        "pathMatchPosition": ""
      }
    ]
  },
  "pathCriteria": {
    "activityFilters": [
      {}
    ],
    "customChannelGrouping": {},
    "dateRange": {},
    "dimensions": [
      {}
    ],
    "floodlightConfigId": {},
    "metricNames": [],
    "pathFilters": [
      {}
    ]
  },
  "pathToConversionCriteria": {
    "activityFilters": [
      {}
    ],
    "conversionDimensions": [
      {}
    ],
    "customFloodlightVariables": [
      {}
    ],
    "customRichMediaEvents": [
      {}
    ],
    "dateRange": {},
    "floodlightConfigId": {},
    "metricNames": [],
    "perInteractionDimensions": [
      {}
    ],
    "reportProperties": {
      "clicksLookbackWindow": 0,
      "impressionsLookbackWindow": 0,
      "includeAttributedIPConversions": false,
      "includeUnattributedCookieConversions": false,
      "includeUnattributedIPConversions": false,
      "maximumClickInteractions": 0,
      "maximumImpressionInteractions": 0,
      "maximumInteractionGap": 0,
      "pivotOnInteractionPath": false
    }
  },
  "reachCriteria": {
    "activities": {},
    "customRichMediaEvents": {},
    "dateRange": {},
    "dimensionFilters": [
      {}
    ],
    "dimensions": [
      {}
    ],
    "enableAllDimensionCombinations": false,
    "metricNames": [],
    "reachByFrequencyMetricNames": []
  },
  "schedule": {
    "active": false,
    "every": 0,
    "expirationDate": "",
    "repeats": "",
    "repeatsOnWeekDays": [],
    "runsOnDayOfMonth": "",
    "startDate": ""
  },
  "subAccountId": "",
  "type": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"accountId\": \"\",\n  \"criteria\": {\n    \"activities\": {\n      \"filters\": [\n        {\n          \"dimensionName\": \"\",\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"matchType\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"kind\": \"\",\n      \"metricNames\": []\n    },\n    \"customRichMediaEvents\": {\n      \"filteredEventIds\": [\n        {}\n      ],\n      \"kind\": \"\"\n    },\n    \"dateRange\": {\n      \"endDate\": \"\",\n      \"kind\": \"\",\n      \"relativeDateRange\": \"\",\n      \"startDate\": \"\"\n    },\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sortOrder\": \"\"\n      }\n    ],\n    \"metricNames\": []\n  },\n  \"crossDimensionReachCriteria\": {\n    \"breakdown\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimension\": \"\",\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"metricNames\": [],\n    \"overlapMetricNames\": [],\n    \"pivoted\": false\n  },\n  \"delivery\": {\n    \"emailOwner\": false,\n    \"emailOwnerDeliveryType\": \"\",\n    \"message\": \"\",\n    \"recipients\": [\n      {\n        \"deliveryType\": \"\",\n        \"email\": \"\",\n        \"kind\": \"\"\n      }\n    ]\n  },\n  \"etag\": \"\",\n  \"fileName\": \"\",\n  \"floodlightCriteria\": {\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"reportProperties\": {\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false\n    }\n  },\n  \"format\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedTime\": \"\",\n  \"name\": \"\",\n  \"ownerProfileId\": \"\",\n  \"pathAttributionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {\n      \"fallbackName\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"rules\": [\n        {\n          \"disjunctiveMatchStatements\": [\n            {\n              \"eventFilters\": [\n                {\n                  \"dimensionFilter\": {\n                    \"dimensionName\": \"\",\n                    \"ids\": [],\n                    \"kind\": \"\",\n                    \"matchType\": \"\",\n                    \"values\": []\n                  },\n                  \"kind\": \"\"\n                }\n              ],\n              \"kind\": \"\"\n            }\n          ],\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {\n        \"eventFilters\": [\n          {}\n        ],\n        \"kind\": \"\",\n        \"pathMatchPosition\": \"\"\n      }\n    ]\n  },\n  \"pathCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {},\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {}\n    ]\n  },\n  \"pathToConversionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"conversionDimensions\": [\n      {}\n    ],\n    \"customFloodlightVariables\": [\n      {}\n    ],\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"perInteractionDimensions\": [\n      {}\n    ],\n    \"reportProperties\": {\n      \"clicksLookbackWindow\": 0,\n      \"impressionsLookbackWindow\": 0,\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false,\n      \"maximumClickInteractions\": 0,\n      \"maximumImpressionInteractions\": 0,\n      \"maximumInteractionGap\": 0,\n      \"pivotOnInteractionPath\": false\n    }\n  },\n  \"reachCriteria\": {\n    \"activities\": {},\n    \"customRichMediaEvents\": {},\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"enableAllDimensionCombinations\": false,\n    \"metricNames\": [],\n    \"reachByFrequencyMetricNames\": []\n  },\n  \"schedule\": {\n    \"active\": false,\n    \"every\": 0,\n    \"expirationDate\": \"\",\n    \"repeats\": \"\",\n    \"repeatsOnWeekDays\": [],\n    \"runsOnDayOfMonth\": \"\",\n    \"startDate\": \"\"\n  },\n  \"subAccountId\": \"\",\n  \"type\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/userprofiles/:profileId/reports/:reportId", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/reports/:reportId"

payload = {
    "accountId": "",
    "criteria": {
        "activities": {
            "filters": [
                {
                    "dimensionName": "",
                    "etag": "",
                    "id": "",
                    "kind": "",
                    "matchType": "",
                    "value": ""
                }
            ],
            "kind": "",
            "metricNames": []
        },
        "customRichMediaEvents": {
            "filteredEventIds": [{}],
            "kind": ""
        },
        "dateRange": {
            "endDate": "",
            "kind": "",
            "relativeDateRange": "",
            "startDate": ""
        },
        "dimensionFilters": [{}],
        "dimensions": [
            {
                "kind": "",
                "name": "",
                "sortOrder": ""
            }
        ],
        "metricNames": []
    },
    "crossDimensionReachCriteria": {
        "breakdown": [{}],
        "dateRange": {},
        "dimension": "",
        "dimensionFilters": [{}],
        "metricNames": [],
        "overlapMetricNames": [],
        "pivoted": False
    },
    "delivery": {
        "emailOwner": False,
        "emailOwnerDeliveryType": "",
        "message": "",
        "recipients": [
            {
                "deliveryType": "",
                "email": "",
                "kind": ""
            }
        ]
    },
    "etag": "",
    "fileName": "",
    "floodlightCriteria": {
        "customRichMediaEvents": [{}],
        "dateRange": {},
        "dimensionFilters": [{}],
        "dimensions": [{}],
        "floodlightConfigId": {},
        "metricNames": [],
        "reportProperties": {
            "includeAttributedIPConversions": False,
            "includeUnattributedCookieConversions": False,
            "includeUnattributedIPConversions": False
        }
    },
    "format": "",
    "id": "",
    "kind": "",
    "lastModifiedTime": "",
    "name": "",
    "ownerProfileId": "",
    "pathAttributionCriteria": {
        "activityFilters": [{}],
        "customChannelGrouping": {
            "fallbackName": "",
            "kind": "",
            "name": "",
            "rules": [
                {
                    "disjunctiveMatchStatements": [
                        {
                            "eventFilters": [
                                {
                                    "dimensionFilter": {
                                        "dimensionName": "",
                                        "ids": [],
                                        "kind": "",
                                        "matchType": "",
                                        "values": []
                                    },
                                    "kind": ""
                                }
                            ],
                            "kind": ""
                        }
                    ],
                    "kind": "",
                    "name": ""
                }
            ]
        },
        "dateRange": {},
        "dimensions": [{}],
        "floodlightConfigId": {},
        "metricNames": [],
        "pathFilters": [
            {
                "eventFilters": [{}],
                "kind": "",
                "pathMatchPosition": ""
            }
        ]
    },
    "pathCriteria": {
        "activityFilters": [{}],
        "customChannelGrouping": {},
        "dateRange": {},
        "dimensions": [{}],
        "floodlightConfigId": {},
        "metricNames": [],
        "pathFilters": [{}]
    },
    "pathToConversionCriteria": {
        "activityFilters": [{}],
        "conversionDimensions": [{}],
        "customFloodlightVariables": [{}],
        "customRichMediaEvents": [{}],
        "dateRange": {},
        "floodlightConfigId": {},
        "metricNames": [],
        "perInteractionDimensions": [{}],
        "reportProperties": {
            "clicksLookbackWindow": 0,
            "impressionsLookbackWindow": 0,
            "includeAttributedIPConversions": False,
            "includeUnattributedCookieConversions": False,
            "includeUnattributedIPConversions": False,
            "maximumClickInteractions": 0,
            "maximumImpressionInteractions": 0,
            "maximumInteractionGap": 0,
            "pivotOnInteractionPath": False
        }
    },
    "reachCriteria": {
        "activities": {},
        "customRichMediaEvents": {},
        "dateRange": {},
        "dimensionFilters": [{}],
        "dimensions": [{}],
        "enableAllDimensionCombinations": False,
        "metricNames": [],
        "reachByFrequencyMetricNames": []
    },
    "schedule": {
        "active": False,
        "every": 0,
        "expirationDate": "",
        "repeats": "",
        "repeatsOnWeekDays": [],
        "runsOnDayOfMonth": "",
        "startDate": ""
    },
    "subAccountId": "",
    "type": ""
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/reports/:reportId"

payload <- "{\n  \"accountId\": \"\",\n  \"criteria\": {\n    \"activities\": {\n      \"filters\": [\n        {\n          \"dimensionName\": \"\",\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"matchType\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"kind\": \"\",\n      \"metricNames\": []\n    },\n    \"customRichMediaEvents\": {\n      \"filteredEventIds\": [\n        {}\n      ],\n      \"kind\": \"\"\n    },\n    \"dateRange\": {\n      \"endDate\": \"\",\n      \"kind\": \"\",\n      \"relativeDateRange\": \"\",\n      \"startDate\": \"\"\n    },\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sortOrder\": \"\"\n      }\n    ],\n    \"metricNames\": []\n  },\n  \"crossDimensionReachCriteria\": {\n    \"breakdown\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimension\": \"\",\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"metricNames\": [],\n    \"overlapMetricNames\": [],\n    \"pivoted\": false\n  },\n  \"delivery\": {\n    \"emailOwner\": false,\n    \"emailOwnerDeliveryType\": \"\",\n    \"message\": \"\",\n    \"recipients\": [\n      {\n        \"deliveryType\": \"\",\n        \"email\": \"\",\n        \"kind\": \"\"\n      }\n    ]\n  },\n  \"etag\": \"\",\n  \"fileName\": \"\",\n  \"floodlightCriteria\": {\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"reportProperties\": {\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false\n    }\n  },\n  \"format\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedTime\": \"\",\n  \"name\": \"\",\n  \"ownerProfileId\": \"\",\n  \"pathAttributionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {\n      \"fallbackName\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"rules\": [\n        {\n          \"disjunctiveMatchStatements\": [\n            {\n              \"eventFilters\": [\n                {\n                  \"dimensionFilter\": {\n                    \"dimensionName\": \"\",\n                    \"ids\": [],\n                    \"kind\": \"\",\n                    \"matchType\": \"\",\n                    \"values\": []\n                  },\n                  \"kind\": \"\"\n                }\n              ],\n              \"kind\": \"\"\n            }\n          ],\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {\n        \"eventFilters\": [\n          {}\n        ],\n        \"kind\": \"\",\n        \"pathMatchPosition\": \"\"\n      }\n    ]\n  },\n  \"pathCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {},\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {}\n    ]\n  },\n  \"pathToConversionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"conversionDimensions\": [\n      {}\n    ],\n    \"customFloodlightVariables\": [\n      {}\n    ],\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"perInteractionDimensions\": [\n      {}\n    ],\n    \"reportProperties\": {\n      \"clicksLookbackWindow\": 0,\n      \"impressionsLookbackWindow\": 0,\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false,\n      \"maximumClickInteractions\": 0,\n      \"maximumImpressionInteractions\": 0,\n      \"maximumInteractionGap\": 0,\n      \"pivotOnInteractionPath\": false\n    }\n  },\n  \"reachCriteria\": {\n    \"activities\": {},\n    \"customRichMediaEvents\": {},\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"enableAllDimensionCombinations\": false,\n    \"metricNames\": [],\n    \"reachByFrequencyMetricNames\": []\n  },\n  \"schedule\": {\n    \"active\": false,\n    \"every\": 0,\n    \"expirationDate\": \"\",\n    \"repeats\": \"\",\n    \"repeatsOnWeekDays\": [],\n    \"runsOnDayOfMonth\": \"\",\n    \"startDate\": \"\"\n  },\n  \"subAccountId\": \"\",\n  \"type\": \"\"\n}"

encode <- "json"

response <- VERB("PUT", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/reports/:reportId")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"accountId\": \"\",\n  \"criteria\": {\n    \"activities\": {\n      \"filters\": [\n        {\n          \"dimensionName\": \"\",\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"matchType\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"kind\": \"\",\n      \"metricNames\": []\n    },\n    \"customRichMediaEvents\": {\n      \"filteredEventIds\": [\n        {}\n      ],\n      \"kind\": \"\"\n    },\n    \"dateRange\": {\n      \"endDate\": \"\",\n      \"kind\": \"\",\n      \"relativeDateRange\": \"\",\n      \"startDate\": \"\"\n    },\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sortOrder\": \"\"\n      }\n    ],\n    \"metricNames\": []\n  },\n  \"crossDimensionReachCriteria\": {\n    \"breakdown\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimension\": \"\",\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"metricNames\": [],\n    \"overlapMetricNames\": [],\n    \"pivoted\": false\n  },\n  \"delivery\": {\n    \"emailOwner\": false,\n    \"emailOwnerDeliveryType\": \"\",\n    \"message\": \"\",\n    \"recipients\": [\n      {\n        \"deliveryType\": \"\",\n        \"email\": \"\",\n        \"kind\": \"\"\n      }\n    ]\n  },\n  \"etag\": \"\",\n  \"fileName\": \"\",\n  \"floodlightCriteria\": {\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"reportProperties\": {\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false\n    }\n  },\n  \"format\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedTime\": \"\",\n  \"name\": \"\",\n  \"ownerProfileId\": \"\",\n  \"pathAttributionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {\n      \"fallbackName\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"rules\": [\n        {\n          \"disjunctiveMatchStatements\": [\n            {\n              \"eventFilters\": [\n                {\n                  \"dimensionFilter\": {\n                    \"dimensionName\": \"\",\n                    \"ids\": [],\n                    \"kind\": \"\",\n                    \"matchType\": \"\",\n                    \"values\": []\n                  },\n                  \"kind\": \"\"\n                }\n              ],\n              \"kind\": \"\"\n            }\n          ],\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {\n        \"eventFilters\": [\n          {}\n        ],\n        \"kind\": \"\",\n        \"pathMatchPosition\": \"\"\n      }\n    ]\n  },\n  \"pathCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {},\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {}\n    ]\n  },\n  \"pathToConversionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"conversionDimensions\": [\n      {}\n    ],\n    \"customFloodlightVariables\": [\n      {}\n    ],\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"perInteractionDimensions\": [\n      {}\n    ],\n    \"reportProperties\": {\n      \"clicksLookbackWindow\": 0,\n      \"impressionsLookbackWindow\": 0,\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false,\n      \"maximumClickInteractions\": 0,\n      \"maximumImpressionInteractions\": 0,\n      \"maximumInteractionGap\": 0,\n      \"pivotOnInteractionPath\": false\n    }\n  },\n  \"reachCriteria\": {\n    \"activities\": {},\n    \"customRichMediaEvents\": {},\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"enableAllDimensionCombinations\": false,\n    \"metricNames\": [],\n    \"reachByFrequencyMetricNames\": []\n  },\n  \"schedule\": {\n    \"active\": false,\n    \"every\": 0,\n    \"expirationDate\": \"\",\n    \"repeats\": \"\",\n    \"repeatsOnWeekDays\": [],\n    \"runsOnDayOfMonth\": \"\",\n    \"startDate\": \"\"\n  },\n  \"subAccountId\": \"\",\n  \"type\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.put('/baseUrl/userprofiles/:profileId/reports/:reportId') do |req|
  req.body = "{\n  \"accountId\": \"\",\n  \"criteria\": {\n    \"activities\": {\n      \"filters\": [\n        {\n          \"dimensionName\": \"\",\n          \"etag\": \"\",\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"matchType\": \"\",\n          \"value\": \"\"\n        }\n      ],\n      \"kind\": \"\",\n      \"metricNames\": []\n    },\n    \"customRichMediaEvents\": {\n      \"filteredEventIds\": [\n        {}\n      ],\n      \"kind\": \"\"\n    },\n    \"dateRange\": {\n      \"endDate\": \"\",\n      \"kind\": \"\",\n      \"relativeDateRange\": \"\",\n      \"startDate\": \"\"\n    },\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sortOrder\": \"\"\n      }\n    ],\n    \"metricNames\": []\n  },\n  \"crossDimensionReachCriteria\": {\n    \"breakdown\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimension\": \"\",\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"metricNames\": [],\n    \"overlapMetricNames\": [],\n    \"pivoted\": false\n  },\n  \"delivery\": {\n    \"emailOwner\": false,\n    \"emailOwnerDeliveryType\": \"\",\n    \"message\": \"\",\n    \"recipients\": [\n      {\n        \"deliveryType\": \"\",\n        \"email\": \"\",\n        \"kind\": \"\"\n      }\n    ]\n  },\n  \"etag\": \"\",\n  \"fileName\": \"\",\n  \"floodlightCriteria\": {\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"reportProperties\": {\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false\n    }\n  },\n  \"format\": \"\",\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"lastModifiedTime\": \"\",\n  \"name\": \"\",\n  \"ownerProfileId\": \"\",\n  \"pathAttributionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {\n      \"fallbackName\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"rules\": [\n        {\n          \"disjunctiveMatchStatements\": [\n            {\n              \"eventFilters\": [\n                {\n                  \"dimensionFilter\": {\n                    \"dimensionName\": \"\",\n                    \"ids\": [],\n                    \"kind\": \"\",\n                    \"matchType\": \"\",\n                    \"values\": []\n                  },\n                  \"kind\": \"\"\n                }\n              ],\n              \"kind\": \"\"\n            }\n          ],\n          \"kind\": \"\",\n          \"name\": \"\"\n        }\n      ]\n    },\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {\n        \"eventFilters\": [\n          {}\n        ],\n        \"kind\": \"\",\n        \"pathMatchPosition\": \"\"\n      }\n    ]\n  },\n  \"pathCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"customChannelGrouping\": {},\n    \"dateRange\": {},\n    \"dimensions\": [\n      {}\n    ],\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"pathFilters\": [\n      {}\n    ]\n  },\n  \"pathToConversionCriteria\": {\n    \"activityFilters\": [\n      {}\n    ],\n    \"conversionDimensions\": [\n      {}\n    ],\n    \"customFloodlightVariables\": [\n      {}\n    ],\n    \"customRichMediaEvents\": [\n      {}\n    ],\n    \"dateRange\": {},\n    \"floodlightConfigId\": {},\n    \"metricNames\": [],\n    \"perInteractionDimensions\": [\n      {}\n    ],\n    \"reportProperties\": {\n      \"clicksLookbackWindow\": 0,\n      \"impressionsLookbackWindow\": 0,\n      \"includeAttributedIPConversions\": false,\n      \"includeUnattributedCookieConversions\": false,\n      \"includeUnattributedIPConversions\": false,\n      \"maximumClickInteractions\": 0,\n      \"maximumImpressionInteractions\": 0,\n      \"maximumInteractionGap\": 0,\n      \"pivotOnInteractionPath\": false\n    }\n  },\n  \"reachCriteria\": {\n    \"activities\": {},\n    \"customRichMediaEvents\": {},\n    \"dateRange\": {},\n    \"dimensionFilters\": [\n      {}\n    ],\n    \"dimensions\": [\n      {}\n    ],\n    \"enableAllDimensionCombinations\": false,\n    \"metricNames\": [],\n    \"reachByFrequencyMetricNames\": []\n  },\n  \"schedule\": {\n    \"active\": false,\n    \"every\": 0,\n    \"expirationDate\": \"\",\n    \"repeats\": \"\",\n    \"repeatsOnWeekDays\": [],\n    \"runsOnDayOfMonth\": \"\",\n    \"startDate\": \"\"\n  },\n  \"subAccountId\": \"\",\n  \"type\": \"\"\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}}/userprofiles/:profileId/reports/:reportId";

    let payload = json!({
        "accountId": "",
        "criteria": json!({
            "activities": json!({
                "filters": (
                    json!({
                        "dimensionName": "",
                        "etag": "",
                        "id": "",
                        "kind": "",
                        "matchType": "",
                        "value": ""
                    })
                ),
                "kind": "",
                "metricNames": ()
            }),
            "customRichMediaEvents": json!({
                "filteredEventIds": (json!({})),
                "kind": ""
            }),
            "dateRange": json!({
                "endDate": "",
                "kind": "",
                "relativeDateRange": "",
                "startDate": ""
            }),
            "dimensionFilters": (json!({})),
            "dimensions": (
                json!({
                    "kind": "",
                    "name": "",
                    "sortOrder": ""
                })
            ),
            "metricNames": ()
        }),
        "crossDimensionReachCriteria": json!({
            "breakdown": (json!({})),
            "dateRange": json!({}),
            "dimension": "",
            "dimensionFilters": (json!({})),
            "metricNames": (),
            "overlapMetricNames": (),
            "pivoted": false
        }),
        "delivery": json!({
            "emailOwner": false,
            "emailOwnerDeliveryType": "",
            "message": "",
            "recipients": (
                json!({
                    "deliveryType": "",
                    "email": "",
                    "kind": ""
                })
            )
        }),
        "etag": "",
        "fileName": "",
        "floodlightCriteria": json!({
            "customRichMediaEvents": (json!({})),
            "dateRange": json!({}),
            "dimensionFilters": (json!({})),
            "dimensions": (json!({})),
            "floodlightConfigId": json!({}),
            "metricNames": (),
            "reportProperties": json!({
                "includeAttributedIPConversions": false,
                "includeUnattributedCookieConversions": false,
                "includeUnattributedIPConversions": false
            })
        }),
        "format": "",
        "id": "",
        "kind": "",
        "lastModifiedTime": "",
        "name": "",
        "ownerProfileId": "",
        "pathAttributionCriteria": json!({
            "activityFilters": (json!({})),
            "customChannelGrouping": json!({
                "fallbackName": "",
                "kind": "",
                "name": "",
                "rules": (
                    json!({
                        "disjunctiveMatchStatements": (
                            json!({
                                "eventFilters": (
                                    json!({
                                        "dimensionFilter": json!({
                                            "dimensionName": "",
                                            "ids": (),
                                            "kind": "",
                                            "matchType": "",
                                            "values": ()
                                        }),
                                        "kind": ""
                                    })
                                ),
                                "kind": ""
                            })
                        ),
                        "kind": "",
                        "name": ""
                    })
                )
            }),
            "dateRange": json!({}),
            "dimensions": (json!({})),
            "floodlightConfigId": json!({}),
            "metricNames": (),
            "pathFilters": (
                json!({
                    "eventFilters": (json!({})),
                    "kind": "",
                    "pathMatchPosition": ""
                })
            )
        }),
        "pathCriteria": json!({
            "activityFilters": (json!({})),
            "customChannelGrouping": json!({}),
            "dateRange": json!({}),
            "dimensions": (json!({})),
            "floodlightConfigId": json!({}),
            "metricNames": (),
            "pathFilters": (json!({}))
        }),
        "pathToConversionCriteria": json!({
            "activityFilters": (json!({})),
            "conversionDimensions": (json!({})),
            "customFloodlightVariables": (json!({})),
            "customRichMediaEvents": (json!({})),
            "dateRange": json!({}),
            "floodlightConfigId": json!({}),
            "metricNames": (),
            "perInteractionDimensions": (json!({})),
            "reportProperties": json!({
                "clicksLookbackWindow": 0,
                "impressionsLookbackWindow": 0,
                "includeAttributedIPConversions": false,
                "includeUnattributedCookieConversions": false,
                "includeUnattributedIPConversions": false,
                "maximumClickInteractions": 0,
                "maximumImpressionInteractions": 0,
                "maximumInteractionGap": 0,
                "pivotOnInteractionPath": false
            })
        }),
        "reachCriteria": json!({
            "activities": json!({}),
            "customRichMediaEvents": json!({}),
            "dateRange": json!({}),
            "dimensionFilters": (json!({})),
            "dimensions": (json!({})),
            "enableAllDimensionCombinations": false,
            "metricNames": (),
            "reachByFrequencyMetricNames": ()
        }),
        "schedule": json!({
            "active": false,
            "every": 0,
            "expirationDate": "",
            "repeats": "",
            "repeatsOnWeekDays": (),
            "runsOnDayOfMonth": "",
            "startDate": ""
        }),
        "subAccountId": "",
        "type": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/userprofiles/:profileId/reports/:reportId \
  --header 'content-type: application/json' \
  --data '{
  "accountId": "",
  "criteria": {
    "activities": {
      "filters": [
        {
          "dimensionName": "",
          "etag": "",
          "id": "",
          "kind": "",
          "matchType": "",
          "value": ""
        }
      ],
      "kind": "",
      "metricNames": []
    },
    "customRichMediaEvents": {
      "filteredEventIds": [
        {}
      ],
      "kind": ""
    },
    "dateRange": {
      "endDate": "",
      "kind": "",
      "relativeDateRange": "",
      "startDate": ""
    },
    "dimensionFilters": [
      {}
    ],
    "dimensions": [
      {
        "kind": "",
        "name": "",
        "sortOrder": ""
      }
    ],
    "metricNames": []
  },
  "crossDimensionReachCriteria": {
    "breakdown": [
      {}
    ],
    "dateRange": {},
    "dimension": "",
    "dimensionFilters": [
      {}
    ],
    "metricNames": [],
    "overlapMetricNames": [],
    "pivoted": false
  },
  "delivery": {
    "emailOwner": false,
    "emailOwnerDeliveryType": "",
    "message": "",
    "recipients": [
      {
        "deliveryType": "",
        "email": "",
        "kind": ""
      }
    ]
  },
  "etag": "",
  "fileName": "",
  "floodlightCriteria": {
    "customRichMediaEvents": [
      {}
    ],
    "dateRange": {},
    "dimensionFilters": [
      {}
    ],
    "dimensions": [
      {}
    ],
    "floodlightConfigId": {},
    "metricNames": [],
    "reportProperties": {
      "includeAttributedIPConversions": false,
      "includeUnattributedCookieConversions": false,
      "includeUnattributedIPConversions": false
    }
  },
  "format": "",
  "id": "",
  "kind": "",
  "lastModifiedTime": "",
  "name": "",
  "ownerProfileId": "",
  "pathAttributionCriteria": {
    "activityFilters": [
      {}
    ],
    "customChannelGrouping": {
      "fallbackName": "",
      "kind": "",
      "name": "",
      "rules": [
        {
          "disjunctiveMatchStatements": [
            {
              "eventFilters": [
                {
                  "dimensionFilter": {
                    "dimensionName": "",
                    "ids": [],
                    "kind": "",
                    "matchType": "",
                    "values": []
                  },
                  "kind": ""
                }
              ],
              "kind": ""
            }
          ],
          "kind": "",
          "name": ""
        }
      ]
    },
    "dateRange": {},
    "dimensions": [
      {}
    ],
    "floodlightConfigId": {},
    "metricNames": [],
    "pathFilters": [
      {
        "eventFilters": [
          {}
        ],
        "kind": "",
        "pathMatchPosition": ""
      }
    ]
  },
  "pathCriteria": {
    "activityFilters": [
      {}
    ],
    "customChannelGrouping": {},
    "dateRange": {},
    "dimensions": [
      {}
    ],
    "floodlightConfigId": {},
    "metricNames": [],
    "pathFilters": [
      {}
    ]
  },
  "pathToConversionCriteria": {
    "activityFilters": [
      {}
    ],
    "conversionDimensions": [
      {}
    ],
    "customFloodlightVariables": [
      {}
    ],
    "customRichMediaEvents": [
      {}
    ],
    "dateRange": {},
    "floodlightConfigId": {},
    "metricNames": [],
    "perInteractionDimensions": [
      {}
    ],
    "reportProperties": {
      "clicksLookbackWindow": 0,
      "impressionsLookbackWindow": 0,
      "includeAttributedIPConversions": false,
      "includeUnattributedCookieConversions": false,
      "includeUnattributedIPConversions": false,
      "maximumClickInteractions": 0,
      "maximumImpressionInteractions": 0,
      "maximumInteractionGap": 0,
      "pivotOnInteractionPath": false
    }
  },
  "reachCriteria": {
    "activities": {},
    "customRichMediaEvents": {},
    "dateRange": {},
    "dimensionFilters": [
      {}
    ],
    "dimensions": [
      {}
    ],
    "enableAllDimensionCombinations": false,
    "metricNames": [],
    "reachByFrequencyMetricNames": []
  },
  "schedule": {
    "active": false,
    "every": 0,
    "expirationDate": "",
    "repeats": "",
    "repeatsOnWeekDays": [],
    "runsOnDayOfMonth": "",
    "startDate": ""
  },
  "subAccountId": "",
  "type": ""
}'
echo '{
  "accountId": "",
  "criteria": {
    "activities": {
      "filters": [
        {
          "dimensionName": "",
          "etag": "",
          "id": "",
          "kind": "",
          "matchType": "",
          "value": ""
        }
      ],
      "kind": "",
      "metricNames": []
    },
    "customRichMediaEvents": {
      "filteredEventIds": [
        {}
      ],
      "kind": ""
    },
    "dateRange": {
      "endDate": "",
      "kind": "",
      "relativeDateRange": "",
      "startDate": ""
    },
    "dimensionFilters": [
      {}
    ],
    "dimensions": [
      {
        "kind": "",
        "name": "",
        "sortOrder": ""
      }
    ],
    "metricNames": []
  },
  "crossDimensionReachCriteria": {
    "breakdown": [
      {}
    ],
    "dateRange": {},
    "dimension": "",
    "dimensionFilters": [
      {}
    ],
    "metricNames": [],
    "overlapMetricNames": [],
    "pivoted": false
  },
  "delivery": {
    "emailOwner": false,
    "emailOwnerDeliveryType": "",
    "message": "",
    "recipients": [
      {
        "deliveryType": "",
        "email": "",
        "kind": ""
      }
    ]
  },
  "etag": "",
  "fileName": "",
  "floodlightCriteria": {
    "customRichMediaEvents": [
      {}
    ],
    "dateRange": {},
    "dimensionFilters": [
      {}
    ],
    "dimensions": [
      {}
    ],
    "floodlightConfigId": {},
    "metricNames": [],
    "reportProperties": {
      "includeAttributedIPConversions": false,
      "includeUnattributedCookieConversions": false,
      "includeUnattributedIPConversions": false
    }
  },
  "format": "",
  "id": "",
  "kind": "",
  "lastModifiedTime": "",
  "name": "",
  "ownerProfileId": "",
  "pathAttributionCriteria": {
    "activityFilters": [
      {}
    ],
    "customChannelGrouping": {
      "fallbackName": "",
      "kind": "",
      "name": "",
      "rules": [
        {
          "disjunctiveMatchStatements": [
            {
              "eventFilters": [
                {
                  "dimensionFilter": {
                    "dimensionName": "",
                    "ids": [],
                    "kind": "",
                    "matchType": "",
                    "values": []
                  },
                  "kind": ""
                }
              ],
              "kind": ""
            }
          ],
          "kind": "",
          "name": ""
        }
      ]
    },
    "dateRange": {},
    "dimensions": [
      {}
    ],
    "floodlightConfigId": {},
    "metricNames": [],
    "pathFilters": [
      {
        "eventFilters": [
          {}
        ],
        "kind": "",
        "pathMatchPosition": ""
      }
    ]
  },
  "pathCriteria": {
    "activityFilters": [
      {}
    ],
    "customChannelGrouping": {},
    "dateRange": {},
    "dimensions": [
      {}
    ],
    "floodlightConfigId": {},
    "metricNames": [],
    "pathFilters": [
      {}
    ]
  },
  "pathToConversionCriteria": {
    "activityFilters": [
      {}
    ],
    "conversionDimensions": [
      {}
    ],
    "customFloodlightVariables": [
      {}
    ],
    "customRichMediaEvents": [
      {}
    ],
    "dateRange": {},
    "floodlightConfigId": {},
    "metricNames": [],
    "perInteractionDimensions": [
      {}
    ],
    "reportProperties": {
      "clicksLookbackWindow": 0,
      "impressionsLookbackWindow": 0,
      "includeAttributedIPConversions": false,
      "includeUnattributedCookieConversions": false,
      "includeUnattributedIPConversions": false,
      "maximumClickInteractions": 0,
      "maximumImpressionInteractions": 0,
      "maximumInteractionGap": 0,
      "pivotOnInteractionPath": false
    }
  },
  "reachCriteria": {
    "activities": {},
    "customRichMediaEvents": {},
    "dateRange": {},
    "dimensionFilters": [
      {}
    ],
    "dimensions": [
      {}
    ],
    "enableAllDimensionCombinations": false,
    "metricNames": [],
    "reachByFrequencyMetricNames": []
  },
  "schedule": {
    "active": false,
    "every": 0,
    "expirationDate": "",
    "repeats": "",
    "repeatsOnWeekDays": [],
    "runsOnDayOfMonth": "",
    "startDate": ""
  },
  "subAccountId": "",
  "type": ""
}' |  \
  http PUT {{baseUrl}}/userprofiles/:profileId/reports/:reportId \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "accountId": "",\n  "criteria": {\n    "activities": {\n      "filters": [\n        {\n          "dimensionName": "",\n          "etag": "",\n          "id": "",\n          "kind": "",\n          "matchType": "",\n          "value": ""\n        }\n      ],\n      "kind": "",\n      "metricNames": []\n    },\n    "customRichMediaEvents": {\n      "filteredEventIds": [\n        {}\n      ],\n      "kind": ""\n    },\n    "dateRange": {\n      "endDate": "",\n      "kind": "",\n      "relativeDateRange": "",\n      "startDate": ""\n    },\n    "dimensionFilters": [\n      {}\n    ],\n    "dimensions": [\n      {\n        "kind": "",\n        "name": "",\n        "sortOrder": ""\n      }\n    ],\n    "metricNames": []\n  },\n  "crossDimensionReachCriteria": {\n    "breakdown": [\n      {}\n    ],\n    "dateRange": {},\n    "dimension": "",\n    "dimensionFilters": [\n      {}\n    ],\n    "metricNames": [],\n    "overlapMetricNames": [],\n    "pivoted": false\n  },\n  "delivery": {\n    "emailOwner": false,\n    "emailOwnerDeliveryType": "",\n    "message": "",\n    "recipients": [\n      {\n        "deliveryType": "",\n        "email": "",\n        "kind": ""\n      }\n    ]\n  },\n  "etag": "",\n  "fileName": "",\n  "floodlightCriteria": {\n    "customRichMediaEvents": [\n      {}\n    ],\n    "dateRange": {},\n    "dimensionFilters": [\n      {}\n    ],\n    "dimensions": [\n      {}\n    ],\n    "floodlightConfigId": {},\n    "metricNames": [],\n    "reportProperties": {\n      "includeAttributedIPConversions": false,\n      "includeUnattributedCookieConversions": false,\n      "includeUnattributedIPConversions": false\n    }\n  },\n  "format": "",\n  "id": "",\n  "kind": "",\n  "lastModifiedTime": "",\n  "name": "",\n  "ownerProfileId": "",\n  "pathAttributionCriteria": {\n    "activityFilters": [\n      {}\n    ],\n    "customChannelGrouping": {\n      "fallbackName": "",\n      "kind": "",\n      "name": "",\n      "rules": [\n        {\n          "disjunctiveMatchStatements": [\n            {\n              "eventFilters": [\n                {\n                  "dimensionFilter": {\n                    "dimensionName": "",\n                    "ids": [],\n                    "kind": "",\n                    "matchType": "",\n                    "values": []\n                  },\n                  "kind": ""\n                }\n              ],\n              "kind": ""\n            }\n          ],\n          "kind": "",\n          "name": ""\n        }\n      ]\n    },\n    "dateRange": {},\n    "dimensions": [\n      {}\n    ],\n    "floodlightConfigId": {},\n    "metricNames": [],\n    "pathFilters": [\n      {\n        "eventFilters": [\n          {}\n        ],\n        "kind": "",\n        "pathMatchPosition": ""\n      }\n    ]\n  },\n  "pathCriteria": {\n    "activityFilters": [\n      {}\n    ],\n    "customChannelGrouping": {},\n    "dateRange": {},\n    "dimensions": [\n      {}\n    ],\n    "floodlightConfigId": {},\n    "metricNames": [],\n    "pathFilters": [\n      {}\n    ]\n  },\n  "pathToConversionCriteria": {\n    "activityFilters": [\n      {}\n    ],\n    "conversionDimensions": [\n      {}\n    ],\n    "customFloodlightVariables": [\n      {}\n    ],\n    "customRichMediaEvents": [\n      {}\n    ],\n    "dateRange": {},\n    "floodlightConfigId": {},\n    "metricNames": [],\n    "perInteractionDimensions": [\n      {}\n    ],\n    "reportProperties": {\n      "clicksLookbackWindow": 0,\n      "impressionsLookbackWindow": 0,\n      "includeAttributedIPConversions": false,\n      "includeUnattributedCookieConversions": false,\n      "includeUnattributedIPConversions": false,\n      "maximumClickInteractions": 0,\n      "maximumImpressionInteractions": 0,\n      "maximumInteractionGap": 0,\n      "pivotOnInteractionPath": false\n    }\n  },\n  "reachCriteria": {\n    "activities": {},\n    "customRichMediaEvents": {},\n    "dateRange": {},\n    "dimensionFilters": [\n      {}\n    ],\n    "dimensions": [\n      {}\n    ],\n    "enableAllDimensionCombinations": false,\n    "metricNames": [],\n    "reachByFrequencyMetricNames": []\n  },\n  "schedule": {\n    "active": false,\n    "every": 0,\n    "expirationDate": "",\n    "repeats": "",\n    "repeatsOnWeekDays": [],\n    "runsOnDayOfMonth": "",\n    "startDate": ""\n  },\n  "subAccountId": "",\n  "type": ""\n}' \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/reports/:reportId
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "accountId": "",
  "criteria": [
    "activities": [
      "filters": [
        [
          "dimensionName": "",
          "etag": "",
          "id": "",
          "kind": "",
          "matchType": "",
          "value": ""
        ]
      ],
      "kind": "",
      "metricNames": []
    ],
    "customRichMediaEvents": [
      "filteredEventIds": [[]],
      "kind": ""
    ],
    "dateRange": [
      "endDate": "",
      "kind": "",
      "relativeDateRange": "",
      "startDate": ""
    ],
    "dimensionFilters": [[]],
    "dimensions": [
      [
        "kind": "",
        "name": "",
        "sortOrder": ""
      ]
    ],
    "metricNames": []
  ],
  "crossDimensionReachCriteria": [
    "breakdown": [[]],
    "dateRange": [],
    "dimension": "",
    "dimensionFilters": [[]],
    "metricNames": [],
    "overlapMetricNames": [],
    "pivoted": false
  ],
  "delivery": [
    "emailOwner": false,
    "emailOwnerDeliveryType": "",
    "message": "",
    "recipients": [
      [
        "deliveryType": "",
        "email": "",
        "kind": ""
      ]
    ]
  ],
  "etag": "",
  "fileName": "",
  "floodlightCriteria": [
    "customRichMediaEvents": [[]],
    "dateRange": [],
    "dimensionFilters": [[]],
    "dimensions": [[]],
    "floodlightConfigId": [],
    "metricNames": [],
    "reportProperties": [
      "includeAttributedIPConversions": false,
      "includeUnattributedCookieConversions": false,
      "includeUnattributedIPConversions": false
    ]
  ],
  "format": "",
  "id": "",
  "kind": "",
  "lastModifiedTime": "",
  "name": "",
  "ownerProfileId": "",
  "pathAttributionCriteria": [
    "activityFilters": [[]],
    "customChannelGrouping": [
      "fallbackName": "",
      "kind": "",
      "name": "",
      "rules": [
        [
          "disjunctiveMatchStatements": [
            [
              "eventFilters": [
                [
                  "dimensionFilter": [
                    "dimensionName": "",
                    "ids": [],
                    "kind": "",
                    "matchType": "",
                    "values": []
                  ],
                  "kind": ""
                ]
              ],
              "kind": ""
            ]
          ],
          "kind": "",
          "name": ""
        ]
      ]
    ],
    "dateRange": [],
    "dimensions": [[]],
    "floodlightConfigId": [],
    "metricNames": [],
    "pathFilters": [
      [
        "eventFilters": [[]],
        "kind": "",
        "pathMatchPosition": ""
      ]
    ]
  ],
  "pathCriteria": [
    "activityFilters": [[]],
    "customChannelGrouping": [],
    "dateRange": [],
    "dimensions": [[]],
    "floodlightConfigId": [],
    "metricNames": [],
    "pathFilters": [[]]
  ],
  "pathToConversionCriteria": [
    "activityFilters": [[]],
    "conversionDimensions": [[]],
    "customFloodlightVariables": [[]],
    "customRichMediaEvents": [[]],
    "dateRange": [],
    "floodlightConfigId": [],
    "metricNames": [],
    "perInteractionDimensions": [[]],
    "reportProperties": [
      "clicksLookbackWindow": 0,
      "impressionsLookbackWindow": 0,
      "includeAttributedIPConversions": false,
      "includeUnattributedCookieConversions": false,
      "includeUnattributedIPConversions": false,
      "maximumClickInteractions": 0,
      "maximumImpressionInteractions": 0,
      "maximumInteractionGap": 0,
      "pivotOnInteractionPath": false
    ]
  ],
  "reachCriteria": [
    "activities": [],
    "customRichMediaEvents": [],
    "dateRange": [],
    "dimensionFilters": [[]],
    "dimensions": [[]],
    "enableAllDimensionCombinations": false,
    "metricNames": [],
    "reachByFrequencyMetricNames": []
  ],
  "schedule": [
    "active": false,
    "every": 0,
    "expirationDate": "",
    "repeats": "",
    "repeatsOnWeekDays": [],
    "runsOnDayOfMonth": "",
    "startDate": ""
  ],
  "subAccountId": "",
  "type": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/reports/:reportId")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET dfareporting.sites.get
{{baseUrl}}/userprofiles/:profileId/sites/:id
QUERY PARAMS

profileId
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/sites/:id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/sites/:id")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/sites/:id"

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}}/userprofiles/:profileId/sites/:id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/sites/:id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/sites/:id"

	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/userprofiles/:profileId/sites/:id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/sites/:id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/sites/:id"))
    .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}}/userprofiles/:profileId/sites/:id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/sites/:id")
  .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}}/userprofiles/:profileId/sites/:id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/sites/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/sites/:id';
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}}/userprofiles/:profileId/sites/:id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/sites/:id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/sites/:id',
  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}}/userprofiles/:profileId/sites/:id'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/sites/:id');

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}}/userprofiles/:profileId/sites/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/sites/:id';
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}}/userprofiles/:profileId/sites/:id"]
                                                       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}}/userprofiles/:profileId/sites/:id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/sites/:id",
  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}}/userprofiles/:profileId/sites/:id');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/sites/:id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/sites/:id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/sites/:id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/sites/:id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/sites/:id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/sites/:id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/sites/:id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/sites/:id")

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/userprofiles/:profileId/sites/:id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/sites/:id";

    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}}/userprofiles/:profileId/sites/:id
http GET {{baseUrl}}/userprofiles/:profileId/sites/:id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/sites/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/sites/:id")! 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 dfareporting.sites.insert
{{baseUrl}}/userprofiles/:profileId/sites
QUERY PARAMS

profileId
BODY json

{
  "accountId": "",
  "approved": false,
  "directorySiteId": "",
  "directorySiteIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "id": "",
  "idDimensionValue": {},
  "keyName": "",
  "kind": "",
  "name": "",
  "siteContacts": [
    {
      "address": "",
      "contactType": "",
      "email": "",
      "firstName": "",
      "id": "",
      "lastName": "",
      "phone": "",
      "title": ""
    }
  ],
  "siteSettings": {
    "activeViewOptOut": false,
    "adBlockingOptOut": false,
    "disableNewCookie": false,
    "tagSetting": {
      "additionalKeyValues": "",
      "includeClickThroughUrls": false,
      "includeClickTracking": false,
      "keywordOption": ""
    },
    "videoActiveViewOptOutTemplate": false,
    "vpaidAdapterChoiceTemplate": ""
  },
  "subaccountId": "",
  "videoSettings": {
    "companionSettings": {
      "companionsDisabled": false,
      "enabledSizes": [
        {
          "height": 0,
          "iab": false,
          "id": "",
          "kind": "",
          "width": 0
        }
      ],
      "imageOnly": false,
      "kind": ""
    },
    "kind": "",
    "obaEnabled": false,
    "obaSettings": {
      "iconClickThroughUrl": "",
      "iconClickTrackingUrl": "",
      "iconViewTrackingUrl": "",
      "program": "",
      "resourceUrl": "",
      "size": {},
      "xPosition": "",
      "yPosition": ""
    },
    "orientation": "",
    "skippableSettings": {
      "kind": "",
      "progressOffset": {
        "offsetPercentage": 0,
        "offsetSeconds": 0
      },
      "skipOffset": {},
      "skippable": false
    },
    "transcodeSettings": {
      "enabledVideoFormats": [],
      "kind": ""
    }
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/sites");

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  \"accountId\": \"\",\n  \"approved\": false,\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteContacts\": [\n    {\n      \"address\": \"\",\n      \"contactType\": \"\",\n      \"email\": \"\",\n      \"firstName\": \"\",\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"phone\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"siteSettings\": {\n    \"activeViewOptOut\": false,\n    \"adBlockingOptOut\": false,\n    \"disableNewCookie\": false,\n    \"tagSetting\": {\n      \"additionalKeyValues\": \"\",\n      \"includeClickThroughUrls\": false,\n      \"includeClickTracking\": false,\n      \"keywordOption\": \"\"\n    },\n    \"videoActiveViewOptOutTemplate\": false,\n    \"vpaidAdapterChoiceTemplate\": \"\"\n  },\n  \"subaccountId\": \"\",\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {\n          \"height\": 0,\n          \"iab\": false,\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"width\": 0\n        }\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\n    }\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/userprofiles/:profileId/sites" {:content-type :json
                                                                          :form-params {:accountId ""
                                                                                        :approved false
                                                                                        :directorySiteId ""
                                                                                        :directorySiteIdDimensionValue {:dimensionName ""
                                                                                                                        :etag ""
                                                                                                                        :id ""
                                                                                                                        :kind ""
                                                                                                                        :matchType ""
                                                                                                                        :value ""}
                                                                                        :id ""
                                                                                        :idDimensionValue {}
                                                                                        :keyName ""
                                                                                        :kind ""
                                                                                        :name ""
                                                                                        :siteContacts [{:address ""
                                                                                                        :contactType ""
                                                                                                        :email ""
                                                                                                        :firstName ""
                                                                                                        :id ""
                                                                                                        :lastName ""
                                                                                                        :phone ""
                                                                                                        :title ""}]
                                                                                        :siteSettings {:activeViewOptOut false
                                                                                                       :adBlockingOptOut false
                                                                                                       :disableNewCookie false
                                                                                                       :tagSetting {:additionalKeyValues ""
                                                                                                                    :includeClickThroughUrls false
                                                                                                                    :includeClickTracking false
                                                                                                                    :keywordOption ""}
                                                                                                       :videoActiveViewOptOutTemplate false
                                                                                                       :vpaidAdapterChoiceTemplate ""}
                                                                                        :subaccountId ""
                                                                                        :videoSettings {:companionSettings {:companionsDisabled false
                                                                                                                            :enabledSizes [{:height 0
                                                                                                                                            :iab false
                                                                                                                                            :id ""
                                                                                                                                            :kind ""
                                                                                                                                            :width 0}]
                                                                                                                            :imageOnly false
                                                                                                                            :kind ""}
                                                                                                        :kind ""
                                                                                                        :obaEnabled false
                                                                                                        :obaSettings {:iconClickThroughUrl ""
                                                                                                                      :iconClickTrackingUrl ""
                                                                                                                      :iconViewTrackingUrl ""
                                                                                                                      :program ""
                                                                                                                      :resourceUrl ""
                                                                                                                      :size {}
                                                                                                                      :xPosition ""
                                                                                                                      :yPosition ""}
                                                                                                        :orientation ""
                                                                                                        :skippableSettings {:kind ""
                                                                                                                            :progressOffset {:offsetPercentage 0
                                                                                                                                             :offsetSeconds 0}
                                                                                                                            :skipOffset {}
                                                                                                                            :skippable false}
                                                                                                        :transcodeSettings {:enabledVideoFormats []
                                                                                                                            :kind ""}}}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/sites"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"accountId\": \"\",\n  \"approved\": false,\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteContacts\": [\n    {\n      \"address\": \"\",\n      \"contactType\": \"\",\n      \"email\": \"\",\n      \"firstName\": \"\",\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"phone\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"siteSettings\": {\n    \"activeViewOptOut\": false,\n    \"adBlockingOptOut\": false,\n    \"disableNewCookie\": false,\n    \"tagSetting\": {\n      \"additionalKeyValues\": \"\",\n      \"includeClickThroughUrls\": false,\n      \"includeClickTracking\": false,\n      \"keywordOption\": \"\"\n    },\n    \"videoActiveViewOptOutTemplate\": false,\n    \"vpaidAdapterChoiceTemplate\": \"\"\n  },\n  \"subaccountId\": \"\",\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {\n          \"height\": 0,\n          \"iab\": false,\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"width\": 0\n        }\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\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}}/userprofiles/:profileId/sites"),
    Content = new StringContent("{\n  \"accountId\": \"\",\n  \"approved\": false,\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteContacts\": [\n    {\n      \"address\": \"\",\n      \"contactType\": \"\",\n      \"email\": \"\",\n      \"firstName\": \"\",\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"phone\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"siteSettings\": {\n    \"activeViewOptOut\": false,\n    \"adBlockingOptOut\": false,\n    \"disableNewCookie\": false,\n    \"tagSetting\": {\n      \"additionalKeyValues\": \"\",\n      \"includeClickThroughUrls\": false,\n      \"includeClickTracking\": false,\n      \"keywordOption\": \"\"\n    },\n    \"videoActiveViewOptOutTemplate\": false,\n    \"vpaidAdapterChoiceTemplate\": \"\"\n  },\n  \"subaccountId\": \"\",\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {\n          \"height\": 0,\n          \"iab\": false,\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"width\": 0\n        }\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\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}}/userprofiles/:profileId/sites");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"accountId\": \"\",\n  \"approved\": false,\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteContacts\": [\n    {\n      \"address\": \"\",\n      \"contactType\": \"\",\n      \"email\": \"\",\n      \"firstName\": \"\",\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"phone\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"siteSettings\": {\n    \"activeViewOptOut\": false,\n    \"adBlockingOptOut\": false,\n    \"disableNewCookie\": false,\n    \"tagSetting\": {\n      \"additionalKeyValues\": \"\",\n      \"includeClickThroughUrls\": false,\n      \"includeClickTracking\": false,\n      \"keywordOption\": \"\"\n    },\n    \"videoActiveViewOptOutTemplate\": false,\n    \"vpaidAdapterChoiceTemplate\": \"\"\n  },\n  \"subaccountId\": \"\",\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {\n          \"height\": 0,\n          \"iab\": false,\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"width\": 0\n        }\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\n    }\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/sites"

	payload := strings.NewReader("{\n  \"accountId\": \"\",\n  \"approved\": false,\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteContacts\": [\n    {\n      \"address\": \"\",\n      \"contactType\": \"\",\n      \"email\": \"\",\n      \"firstName\": \"\",\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"phone\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"siteSettings\": {\n    \"activeViewOptOut\": false,\n    \"adBlockingOptOut\": false,\n    \"disableNewCookie\": false,\n    \"tagSetting\": {\n      \"additionalKeyValues\": \"\",\n      \"includeClickThroughUrls\": false,\n      \"includeClickTracking\": false,\n      \"keywordOption\": \"\"\n    },\n    \"videoActiveViewOptOutTemplate\": false,\n    \"vpaidAdapterChoiceTemplate\": \"\"\n  },\n  \"subaccountId\": \"\",\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {\n          \"height\": 0,\n          \"iab\": false,\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"width\": 0\n        }\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\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/userprofiles/:profileId/sites HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 1763

{
  "accountId": "",
  "approved": false,
  "directorySiteId": "",
  "directorySiteIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "id": "",
  "idDimensionValue": {},
  "keyName": "",
  "kind": "",
  "name": "",
  "siteContacts": [
    {
      "address": "",
      "contactType": "",
      "email": "",
      "firstName": "",
      "id": "",
      "lastName": "",
      "phone": "",
      "title": ""
    }
  ],
  "siteSettings": {
    "activeViewOptOut": false,
    "adBlockingOptOut": false,
    "disableNewCookie": false,
    "tagSetting": {
      "additionalKeyValues": "",
      "includeClickThroughUrls": false,
      "includeClickTracking": false,
      "keywordOption": ""
    },
    "videoActiveViewOptOutTemplate": false,
    "vpaidAdapterChoiceTemplate": ""
  },
  "subaccountId": "",
  "videoSettings": {
    "companionSettings": {
      "companionsDisabled": false,
      "enabledSizes": [
        {
          "height": 0,
          "iab": false,
          "id": "",
          "kind": "",
          "width": 0
        }
      ],
      "imageOnly": false,
      "kind": ""
    },
    "kind": "",
    "obaEnabled": false,
    "obaSettings": {
      "iconClickThroughUrl": "",
      "iconClickTrackingUrl": "",
      "iconViewTrackingUrl": "",
      "program": "",
      "resourceUrl": "",
      "size": {},
      "xPosition": "",
      "yPosition": ""
    },
    "orientation": "",
    "skippableSettings": {
      "kind": "",
      "progressOffset": {
        "offsetPercentage": 0,
        "offsetSeconds": 0
      },
      "skipOffset": {},
      "skippable": false
    },
    "transcodeSettings": {
      "enabledVideoFormats": [],
      "kind": ""
    }
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/userprofiles/:profileId/sites")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"accountId\": \"\",\n  \"approved\": false,\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteContacts\": [\n    {\n      \"address\": \"\",\n      \"contactType\": \"\",\n      \"email\": \"\",\n      \"firstName\": \"\",\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"phone\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"siteSettings\": {\n    \"activeViewOptOut\": false,\n    \"adBlockingOptOut\": false,\n    \"disableNewCookie\": false,\n    \"tagSetting\": {\n      \"additionalKeyValues\": \"\",\n      \"includeClickThroughUrls\": false,\n      \"includeClickTracking\": false,\n      \"keywordOption\": \"\"\n    },\n    \"videoActiveViewOptOutTemplate\": false,\n    \"vpaidAdapterChoiceTemplate\": \"\"\n  },\n  \"subaccountId\": \"\",\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {\n          \"height\": 0,\n          \"iab\": false,\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"width\": 0\n        }\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\n    }\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/sites"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"accountId\": \"\",\n  \"approved\": false,\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteContacts\": [\n    {\n      \"address\": \"\",\n      \"contactType\": \"\",\n      \"email\": \"\",\n      \"firstName\": \"\",\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"phone\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"siteSettings\": {\n    \"activeViewOptOut\": false,\n    \"adBlockingOptOut\": false,\n    \"disableNewCookie\": false,\n    \"tagSetting\": {\n      \"additionalKeyValues\": \"\",\n      \"includeClickThroughUrls\": false,\n      \"includeClickTracking\": false,\n      \"keywordOption\": \"\"\n    },\n    \"videoActiveViewOptOutTemplate\": false,\n    \"vpaidAdapterChoiceTemplate\": \"\"\n  },\n  \"subaccountId\": \"\",\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {\n          \"height\": 0,\n          \"iab\": false,\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"width\": 0\n        }\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\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  \"accountId\": \"\",\n  \"approved\": false,\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteContacts\": [\n    {\n      \"address\": \"\",\n      \"contactType\": \"\",\n      \"email\": \"\",\n      \"firstName\": \"\",\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"phone\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"siteSettings\": {\n    \"activeViewOptOut\": false,\n    \"adBlockingOptOut\": false,\n    \"disableNewCookie\": false,\n    \"tagSetting\": {\n      \"additionalKeyValues\": \"\",\n      \"includeClickThroughUrls\": false,\n      \"includeClickTracking\": false,\n      \"keywordOption\": \"\"\n    },\n    \"videoActiveViewOptOutTemplate\": false,\n    \"vpaidAdapterChoiceTemplate\": \"\"\n  },\n  \"subaccountId\": \"\",\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {\n          \"height\": 0,\n          \"iab\": false,\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"width\": 0\n        }\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\n    }\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/sites")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/userprofiles/:profileId/sites")
  .header("content-type", "application/json")
  .body("{\n  \"accountId\": \"\",\n  \"approved\": false,\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteContacts\": [\n    {\n      \"address\": \"\",\n      \"contactType\": \"\",\n      \"email\": \"\",\n      \"firstName\": \"\",\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"phone\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"siteSettings\": {\n    \"activeViewOptOut\": false,\n    \"adBlockingOptOut\": false,\n    \"disableNewCookie\": false,\n    \"tagSetting\": {\n      \"additionalKeyValues\": \"\",\n      \"includeClickThroughUrls\": false,\n      \"includeClickTracking\": false,\n      \"keywordOption\": \"\"\n    },\n    \"videoActiveViewOptOutTemplate\": false,\n    \"vpaidAdapterChoiceTemplate\": \"\"\n  },\n  \"subaccountId\": \"\",\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {\n          \"height\": 0,\n          \"iab\": false,\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"width\": 0\n        }\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\n    }\n  }\n}")
  .asString();
const data = JSON.stringify({
  accountId: '',
  approved: false,
  directorySiteId: '',
  directorySiteIdDimensionValue: {
    dimensionName: '',
    etag: '',
    id: '',
    kind: '',
    matchType: '',
    value: ''
  },
  id: '',
  idDimensionValue: {},
  keyName: '',
  kind: '',
  name: '',
  siteContacts: [
    {
      address: '',
      contactType: '',
      email: '',
      firstName: '',
      id: '',
      lastName: '',
      phone: '',
      title: ''
    }
  ],
  siteSettings: {
    activeViewOptOut: false,
    adBlockingOptOut: false,
    disableNewCookie: false,
    tagSetting: {
      additionalKeyValues: '',
      includeClickThroughUrls: false,
      includeClickTracking: false,
      keywordOption: ''
    },
    videoActiveViewOptOutTemplate: false,
    vpaidAdapterChoiceTemplate: ''
  },
  subaccountId: '',
  videoSettings: {
    companionSettings: {
      companionsDisabled: false,
      enabledSizes: [
        {
          height: 0,
          iab: false,
          id: '',
          kind: '',
          width: 0
        }
      ],
      imageOnly: false,
      kind: ''
    },
    kind: '',
    obaEnabled: false,
    obaSettings: {
      iconClickThroughUrl: '',
      iconClickTrackingUrl: '',
      iconViewTrackingUrl: '',
      program: '',
      resourceUrl: '',
      size: {},
      xPosition: '',
      yPosition: ''
    },
    orientation: '',
    skippableSettings: {
      kind: '',
      progressOffset: {
        offsetPercentage: 0,
        offsetSeconds: 0
      },
      skipOffset: {},
      skippable: false
    },
    transcodeSettings: {
      enabledVideoFormats: [],
      kind: ''
    }
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/userprofiles/:profileId/sites');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/userprofiles/:profileId/sites',
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    approved: false,
    directorySiteId: '',
    directorySiteIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    id: '',
    idDimensionValue: {},
    keyName: '',
    kind: '',
    name: '',
    siteContacts: [
      {
        address: '',
        contactType: '',
        email: '',
        firstName: '',
        id: '',
        lastName: '',
        phone: '',
        title: ''
      }
    ],
    siteSettings: {
      activeViewOptOut: false,
      adBlockingOptOut: false,
      disableNewCookie: false,
      tagSetting: {
        additionalKeyValues: '',
        includeClickThroughUrls: false,
        includeClickTracking: false,
        keywordOption: ''
      },
      videoActiveViewOptOutTemplate: false,
      vpaidAdapterChoiceTemplate: ''
    },
    subaccountId: '',
    videoSettings: {
      companionSettings: {
        companionsDisabled: false,
        enabledSizes: [{height: 0, iab: false, id: '', kind: '', width: 0}],
        imageOnly: false,
        kind: ''
      },
      kind: '',
      obaEnabled: false,
      obaSettings: {
        iconClickThroughUrl: '',
        iconClickTrackingUrl: '',
        iconViewTrackingUrl: '',
        program: '',
        resourceUrl: '',
        size: {},
        xPosition: '',
        yPosition: ''
      },
      orientation: '',
      skippableSettings: {
        kind: '',
        progressOffset: {offsetPercentage: 0, offsetSeconds: 0},
        skipOffset: {},
        skippable: false
      },
      transcodeSettings: {enabledVideoFormats: [], kind: ''}
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/sites';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","approved":false,"directorySiteId":"","directorySiteIdDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"id":"","idDimensionValue":{},"keyName":"","kind":"","name":"","siteContacts":[{"address":"","contactType":"","email":"","firstName":"","id":"","lastName":"","phone":"","title":""}],"siteSettings":{"activeViewOptOut":false,"adBlockingOptOut":false,"disableNewCookie":false,"tagSetting":{"additionalKeyValues":"","includeClickThroughUrls":false,"includeClickTracking":false,"keywordOption":""},"videoActiveViewOptOutTemplate":false,"vpaidAdapterChoiceTemplate":""},"subaccountId":"","videoSettings":{"companionSettings":{"companionsDisabled":false,"enabledSizes":[{"height":0,"iab":false,"id":"","kind":"","width":0}],"imageOnly":false,"kind":""},"kind":"","obaEnabled":false,"obaSettings":{"iconClickThroughUrl":"","iconClickTrackingUrl":"","iconViewTrackingUrl":"","program":"","resourceUrl":"","size":{},"xPosition":"","yPosition":""},"orientation":"","skippableSettings":{"kind":"","progressOffset":{"offsetPercentage":0,"offsetSeconds":0},"skipOffset":{},"skippable":false},"transcodeSettings":{"enabledVideoFormats":[],"kind":""}}}'
};

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}}/userprofiles/:profileId/sites',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "accountId": "",\n  "approved": false,\n  "directorySiteId": "",\n  "directorySiteIdDimensionValue": {\n    "dimensionName": "",\n    "etag": "",\n    "id": "",\n    "kind": "",\n    "matchType": "",\n    "value": ""\n  },\n  "id": "",\n  "idDimensionValue": {},\n  "keyName": "",\n  "kind": "",\n  "name": "",\n  "siteContacts": [\n    {\n      "address": "",\n      "contactType": "",\n      "email": "",\n      "firstName": "",\n      "id": "",\n      "lastName": "",\n      "phone": "",\n      "title": ""\n    }\n  ],\n  "siteSettings": {\n    "activeViewOptOut": false,\n    "adBlockingOptOut": false,\n    "disableNewCookie": false,\n    "tagSetting": {\n      "additionalKeyValues": "",\n      "includeClickThroughUrls": false,\n      "includeClickTracking": false,\n      "keywordOption": ""\n    },\n    "videoActiveViewOptOutTemplate": false,\n    "vpaidAdapterChoiceTemplate": ""\n  },\n  "subaccountId": "",\n  "videoSettings": {\n    "companionSettings": {\n      "companionsDisabled": false,\n      "enabledSizes": [\n        {\n          "height": 0,\n          "iab": false,\n          "id": "",\n          "kind": "",\n          "width": 0\n        }\n      ],\n      "imageOnly": false,\n      "kind": ""\n    },\n    "kind": "",\n    "obaEnabled": false,\n    "obaSettings": {\n      "iconClickThroughUrl": "",\n      "iconClickTrackingUrl": "",\n      "iconViewTrackingUrl": "",\n      "program": "",\n      "resourceUrl": "",\n      "size": {},\n      "xPosition": "",\n      "yPosition": ""\n    },\n    "orientation": "",\n    "skippableSettings": {\n      "kind": "",\n      "progressOffset": {\n        "offsetPercentage": 0,\n        "offsetSeconds": 0\n      },\n      "skipOffset": {},\n      "skippable": false\n    },\n    "transcodeSettings": {\n      "enabledVideoFormats": [],\n      "kind": ""\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  \"accountId\": \"\",\n  \"approved\": false,\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteContacts\": [\n    {\n      \"address\": \"\",\n      \"contactType\": \"\",\n      \"email\": \"\",\n      \"firstName\": \"\",\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"phone\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"siteSettings\": {\n    \"activeViewOptOut\": false,\n    \"adBlockingOptOut\": false,\n    \"disableNewCookie\": false,\n    \"tagSetting\": {\n      \"additionalKeyValues\": \"\",\n      \"includeClickThroughUrls\": false,\n      \"includeClickTracking\": false,\n      \"keywordOption\": \"\"\n    },\n    \"videoActiveViewOptOutTemplate\": false,\n    \"vpaidAdapterChoiceTemplate\": \"\"\n  },\n  \"subaccountId\": \"\",\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {\n          \"height\": 0,\n          \"iab\": false,\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"width\": 0\n        }\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\n    }\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/sites")
  .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/userprofiles/:profileId/sites',
  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({
  accountId: '',
  approved: false,
  directorySiteId: '',
  directorySiteIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
  id: '',
  idDimensionValue: {},
  keyName: '',
  kind: '',
  name: '',
  siteContacts: [
    {
      address: '',
      contactType: '',
      email: '',
      firstName: '',
      id: '',
      lastName: '',
      phone: '',
      title: ''
    }
  ],
  siteSettings: {
    activeViewOptOut: false,
    adBlockingOptOut: false,
    disableNewCookie: false,
    tagSetting: {
      additionalKeyValues: '',
      includeClickThroughUrls: false,
      includeClickTracking: false,
      keywordOption: ''
    },
    videoActiveViewOptOutTemplate: false,
    vpaidAdapterChoiceTemplate: ''
  },
  subaccountId: '',
  videoSettings: {
    companionSettings: {
      companionsDisabled: false,
      enabledSizes: [{height: 0, iab: false, id: '', kind: '', width: 0}],
      imageOnly: false,
      kind: ''
    },
    kind: '',
    obaEnabled: false,
    obaSettings: {
      iconClickThroughUrl: '',
      iconClickTrackingUrl: '',
      iconViewTrackingUrl: '',
      program: '',
      resourceUrl: '',
      size: {},
      xPosition: '',
      yPosition: ''
    },
    orientation: '',
    skippableSettings: {
      kind: '',
      progressOffset: {offsetPercentage: 0, offsetSeconds: 0},
      skipOffset: {},
      skippable: false
    },
    transcodeSettings: {enabledVideoFormats: [], kind: ''}
  }
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/userprofiles/:profileId/sites',
  headers: {'content-type': 'application/json'},
  body: {
    accountId: '',
    approved: false,
    directorySiteId: '',
    directorySiteIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    id: '',
    idDimensionValue: {},
    keyName: '',
    kind: '',
    name: '',
    siteContacts: [
      {
        address: '',
        contactType: '',
        email: '',
        firstName: '',
        id: '',
        lastName: '',
        phone: '',
        title: ''
      }
    ],
    siteSettings: {
      activeViewOptOut: false,
      adBlockingOptOut: false,
      disableNewCookie: false,
      tagSetting: {
        additionalKeyValues: '',
        includeClickThroughUrls: false,
        includeClickTracking: false,
        keywordOption: ''
      },
      videoActiveViewOptOutTemplate: false,
      vpaidAdapterChoiceTemplate: ''
    },
    subaccountId: '',
    videoSettings: {
      companionSettings: {
        companionsDisabled: false,
        enabledSizes: [{height: 0, iab: false, id: '', kind: '', width: 0}],
        imageOnly: false,
        kind: ''
      },
      kind: '',
      obaEnabled: false,
      obaSettings: {
        iconClickThroughUrl: '',
        iconClickTrackingUrl: '',
        iconViewTrackingUrl: '',
        program: '',
        resourceUrl: '',
        size: {},
        xPosition: '',
        yPosition: ''
      },
      orientation: '',
      skippableSettings: {
        kind: '',
        progressOffset: {offsetPercentage: 0, offsetSeconds: 0},
        skipOffset: {},
        skippable: false
      },
      transcodeSettings: {enabledVideoFormats: [], kind: ''}
    }
  },
  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}}/userprofiles/:profileId/sites');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  accountId: '',
  approved: false,
  directorySiteId: '',
  directorySiteIdDimensionValue: {
    dimensionName: '',
    etag: '',
    id: '',
    kind: '',
    matchType: '',
    value: ''
  },
  id: '',
  idDimensionValue: {},
  keyName: '',
  kind: '',
  name: '',
  siteContacts: [
    {
      address: '',
      contactType: '',
      email: '',
      firstName: '',
      id: '',
      lastName: '',
      phone: '',
      title: ''
    }
  ],
  siteSettings: {
    activeViewOptOut: false,
    adBlockingOptOut: false,
    disableNewCookie: false,
    tagSetting: {
      additionalKeyValues: '',
      includeClickThroughUrls: false,
      includeClickTracking: false,
      keywordOption: ''
    },
    videoActiveViewOptOutTemplate: false,
    vpaidAdapterChoiceTemplate: ''
  },
  subaccountId: '',
  videoSettings: {
    companionSettings: {
      companionsDisabled: false,
      enabledSizes: [
        {
          height: 0,
          iab: false,
          id: '',
          kind: '',
          width: 0
        }
      ],
      imageOnly: false,
      kind: ''
    },
    kind: '',
    obaEnabled: false,
    obaSettings: {
      iconClickThroughUrl: '',
      iconClickTrackingUrl: '',
      iconViewTrackingUrl: '',
      program: '',
      resourceUrl: '',
      size: {},
      xPosition: '',
      yPosition: ''
    },
    orientation: '',
    skippableSettings: {
      kind: '',
      progressOffset: {
        offsetPercentage: 0,
        offsetSeconds: 0
      },
      skipOffset: {},
      skippable: false
    },
    transcodeSettings: {
      enabledVideoFormats: [],
      kind: ''
    }
  }
});

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}}/userprofiles/:profileId/sites',
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    approved: false,
    directorySiteId: '',
    directorySiteIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    id: '',
    idDimensionValue: {},
    keyName: '',
    kind: '',
    name: '',
    siteContacts: [
      {
        address: '',
        contactType: '',
        email: '',
        firstName: '',
        id: '',
        lastName: '',
        phone: '',
        title: ''
      }
    ],
    siteSettings: {
      activeViewOptOut: false,
      adBlockingOptOut: false,
      disableNewCookie: false,
      tagSetting: {
        additionalKeyValues: '',
        includeClickThroughUrls: false,
        includeClickTracking: false,
        keywordOption: ''
      },
      videoActiveViewOptOutTemplate: false,
      vpaidAdapterChoiceTemplate: ''
    },
    subaccountId: '',
    videoSettings: {
      companionSettings: {
        companionsDisabled: false,
        enabledSizes: [{height: 0, iab: false, id: '', kind: '', width: 0}],
        imageOnly: false,
        kind: ''
      },
      kind: '',
      obaEnabled: false,
      obaSettings: {
        iconClickThroughUrl: '',
        iconClickTrackingUrl: '',
        iconViewTrackingUrl: '',
        program: '',
        resourceUrl: '',
        size: {},
        xPosition: '',
        yPosition: ''
      },
      orientation: '',
      skippableSettings: {
        kind: '',
        progressOffset: {offsetPercentage: 0, offsetSeconds: 0},
        skipOffset: {},
        skippable: false
      },
      transcodeSettings: {enabledVideoFormats: [], kind: ''}
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/sites';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","approved":false,"directorySiteId":"","directorySiteIdDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"id":"","idDimensionValue":{},"keyName":"","kind":"","name":"","siteContacts":[{"address":"","contactType":"","email":"","firstName":"","id":"","lastName":"","phone":"","title":""}],"siteSettings":{"activeViewOptOut":false,"adBlockingOptOut":false,"disableNewCookie":false,"tagSetting":{"additionalKeyValues":"","includeClickThroughUrls":false,"includeClickTracking":false,"keywordOption":""},"videoActiveViewOptOutTemplate":false,"vpaidAdapterChoiceTemplate":""},"subaccountId":"","videoSettings":{"companionSettings":{"companionsDisabled":false,"enabledSizes":[{"height":0,"iab":false,"id":"","kind":"","width":0}],"imageOnly":false,"kind":""},"kind":"","obaEnabled":false,"obaSettings":{"iconClickThroughUrl":"","iconClickTrackingUrl":"","iconViewTrackingUrl":"","program":"","resourceUrl":"","size":{},"xPosition":"","yPosition":""},"orientation":"","skippableSettings":{"kind":"","progressOffset":{"offsetPercentage":0,"offsetSeconds":0},"skipOffset":{},"skippable":false},"transcodeSettings":{"enabledVideoFormats":[],"kind":""}}}'
};

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 = @{ @"accountId": @"",
                              @"approved": @NO,
                              @"directorySiteId": @"",
                              @"directorySiteIdDimensionValue": @{ @"dimensionName": @"", @"etag": @"", @"id": @"", @"kind": @"", @"matchType": @"", @"value": @"" },
                              @"id": @"",
                              @"idDimensionValue": @{  },
                              @"keyName": @"",
                              @"kind": @"",
                              @"name": @"",
                              @"siteContacts": @[ @{ @"address": @"", @"contactType": @"", @"email": @"", @"firstName": @"", @"id": @"", @"lastName": @"", @"phone": @"", @"title": @"" } ],
                              @"siteSettings": @{ @"activeViewOptOut": @NO, @"adBlockingOptOut": @NO, @"disableNewCookie": @NO, @"tagSetting": @{ @"additionalKeyValues": @"", @"includeClickThroughUrls": @NO, @"includeClickTracking": @NO, @"keywordOption": @"" }, @"videoActiveViewOptOutTemplate": @NO, @"vpaidAdapterChoiceTemplate": @"" },
                              @"subaccountId": @"",
                              @"videoSettings": @{ @"companionSettings": @{ @"companionsDisabled": @NO, @"enabledSizes": @[ @{ @"height": @0, @"iab": @NO, @"id": @"", @"kind": @"", @"width": @0 } ], @"imageOnly": @NO, @"kind": @"" }, @"kind": @"", @"obaEnabled": @NO, @"obaSettings": @{ @"iconClickThroughUrl": @"", @"iconClickTrackingUrl": @"", @"iconViewTrackingUrl": @"", @"program": @"", @"resourceUrl": @"", @"size": @{  }, @"xPosition": @"", @"yPosition": @"" }, @"orientation": @"", @"skippableSettings": @{ @"kind": @"", @"progressOffset": @{ @"offsetPercentage": @0, @"offsetSeconds": @0 }, @"skipOffset": @{  }, @"skippable": @NO }, @"transcodeSettings": @{ @"enabledVideoFormats": @[  ], @"kind": @"" } } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/userprofiles/:profileId/sites"]
                                                       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}}/userprofiles/:profileId/sites" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"accountId\": \"\",\n  \"approved\": false,\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteContacts\": [\n    {\n      \"address\": \"\",\n      \"contactType\": \"\",\n      \"email\": \"\",\n      \"firstName\": \"\",\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"phone\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"siteSettings\": {\n    \"activeViewOptOut\": false,\n    \"adBlockingOptOut\": false,\n    \"disableNewCookie\": false,\n    \"tagSetting\": {\n      \"additionalKeyValues\": \"\",\n      \"includeClickThroughUrls\": false,\n      \"includeClickTracking\": false,\n      \"keywordOption\": \"\"\n    },\n    \"videoActiveViewOptOutTemplate\": false,\n    \"vpaidAdapterChoiceTemplate\": \"\"\n  },\n  \"subaccountId\": \"\",\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {\n          \"height\": 0,\n          \"iab\": false,\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"width\": 0\n        }\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\n    }\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/sites",
  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([
    'accountId' => '',
    'approved' => null,
    'directorySiteId' => '',
    'directorySiteIdDimensionValue' => [
        'dimensionName' => '',
        'etag' => '',
        'id' => '',
        'kind' => '',
        'matchType' => '',
        'value' => ''
    ],
    'id' => '',
    'idDimensionValue' => [
        
    ],
    'keyName' => '',
    'kind' => '',
    'name' => '',
    'siteContacts' => [
        [
                'address' => '',
                'contactType' => '',
                'email' => '',
                'firstName' => '',
                'id' => '',
                'lastName' => '',
                'phone' => '',
                'title' => ''
        ]
    ],
    'siteSettings' => [
        'activeViewOptOut' => null,
        'adBlockingOptOut' => null,
        'disableNewCookie' => null,
        'tagSetting' => [
                'additionalKeyValues' => '',
                'includeClickThroughUrls' => null,
                'includeClickTracking' => null,
                'keywordOption' => ''
        ],
        'videoActiveViewOptOutTemplate' => null,
        'vpaidAdapterChoiceTemplate' => ''
    ],
    'subaccountId' => '',
    'videoSettings' => [
        'companionSettings' => [
                'companionsDisabled' => null,
                'enabledSizes' => [
                                [
                                                                'height' => 0,
                                                                'iab' => null,
                                                                'id' => '',
                                                                'kind' => '',
                                                                'width' => 0
                                ]
                ],
                'imageOnly' => null,
                'kind' => ''
        ],
        'kind' => '',
        'obaEnabled' => null,
        'obaSettings' => [
                'iconClickThroughUrl' => '',
                'iconClickTrackingUrl' => '',
                'iconViewTrackingUrl' => '',
                'program' => '',
                'resourceUrl' => '',
                'size' => [
                                
                ],
                'xPosition' => '',
                'yPosition' => ''
        ],
        'orientation' => '',
        'skippableSettings' => [
                'kind' => '',
                'progressOffset' => [
                                'offsetPercentage' => 0,
                                'offsetSeconds' => 0
                ],
                'skipOffset' => [
                                
                ],
                'skippable' => null
        ],
        'transcodeSettings' => [
                'enabledVideoFormats' => [
                                
                ],
                'kind' => ''
        ]
    ]
  ]),
  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}}/userprofiles/:profileId/sites', [
  'body' => '{
  "accountId": "",
  "approved": false,
  "directorySiteId": "",
  "directorySiteIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "id": "",
  "idDimensionValue": {},
  "keyName": "",
  "kind": "",
  "name": "",
  "siteContacts": [
    {
      "address": "",
      "contactType": "",
      "email": "",
      "firstName": "",
      "id": "",
      "lastName": "",
      "phone": "",
      "title": ""
    }
  ],
  "siteSettings": {
    "activeViewOptOut": false,
    "adBlockingOptOut": false,
    "disableNewCookie": false,
    "tagSetting": {
      "additionalKeyValues": "",
      "includeClickThroughUrls": false,
      "includeClickTracking": false,
      "keywordOption": ""
    },
    "videoActiveViewOptOutTemplate": false,
    "vpaidAdapterChoiceTemplate": ""
  },
  "subaccountId": "",
  "videoSettings": {
    "companionSettings": {
      "companionsDisabled": false,
      "enabledSizes": [
        {
          "height": 0,
          "iab": false,
          "id": "",
          "kind": "",
          "width": 0
        }
      ],
      "imageOnly": false,
      "kind": ""
    },
    "kind": "",
    "obaEnabled": false,
    "obaSettings": {
      "iconClickThroughUrl": "",
      "iconClickTrackingUrl": "",
      "iconViewTrackingUrl": "",
      "program": "",
      "resourceUrl": "",
      "size": {},
      "xPosition": "",
      "yPosition": ""
    },
    "orientation": "",
    "skippableSettings": {
      "kind": "",
      "progressOffset": {
        "offsetPercentage": 0,
        "offsetSeconds": 0
      },
      "skipOffset": {},
      "skippable": false
    },
    "transcodeSettings": {
      "enabledVideoFormats": [],
      "kind": ""
    }
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/sites');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'accountId' => '',
  'approved' => null,
  'directorySiteId' => '',
  'directorySiteIdDimensionValue' => [
    'dimensionName' => '',
    'etag' => '',
    'id' => '',
    'kind' => '',
    'matchType' => '',
    'value' => ''
  ],
  'id' => '',
  'idDimensionValue' => [
    
  ],
  'keyName' => '',
  'kind' => '',
  'name' => '',
  'siteContacts' => [
    [
        'address' => '',
        'contactType' => '',
        'email' => '',
        'firstName' => '',
        'id' => '',
        'lastName' => '',
        'phone' => '',
        'title' => ''
    ]
  ],
  'siteSettings' => [
    'activeViewOptOut' => null,
    'adBlockingOptOut' => null,
    'disableNewCookie' => null,
    'tagSetting' => [
        'additionalKeyValues' => '',
        'includeClickThroughUrls' => null,
        'includeClickTracking' => null,
        'keywordOption' => ''
    ],
    'videoActiveViewOptOutTemplate' => null,
    'vpaidAdapterChoiceTemplate' => ''
  ],
  'subaccountId' => '',
  'videoSettings' => [
    'companionSettings' => [
        'companionsDisabled' => null,
        'enabledSizes' => [
                [
                                'height' => 0,
                                'iab' => null,
                                'id' => '',
                                'kind' => '',
                                'width' => 0
                ]
        ],
        'imageOnly' => null,
        'kind' => ''
    ],
    'kind' => '',
    'obaEnabled' => null,
    'obaSettings' => [
        'iconClickThroughUrl' => '',
        'iconClickTrackingUrl' => '',
        'iconViewTrackingUrl' => '',
        'program' => '',
        'resourceUrl' => '',
        'size' => [
                
        ],
        'xPosition' => '',
        'yPosition' => ''
    ],
    'orientation' => '',
    'skippableSettings' => [
        'kind' => '',
        'progressOffset' => [
                'offsetPercentage' => 0,
                'offsetSeconds' => 0
        ],
        'skipOffset' => [
                
        ],
        'skippable' => null
    ],
    'transcodeSettings' => [
        'enabledVideoFormats' => [
                
        ],
        'kind' => ''
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'accountId' => '',
  'approved' => null,
  'directorySiteId' => '',
  'directorySiteIdDimensionValue' => [
    'dimensionName' => '',
    'etag' => '',
    'id' => '',
    'kind' => '',
    'matchType' => '',
    'value' => ''
  ],
  'id' => '',
  'idDimensionValue' => [
    
  ],
  'keyName' => '',
  'kind' => '',
  'name' => '',
  'siteContacts' => [
    [
        'address' => '',
        'contactType' => '',
        'email' => '',
        'firstName' => '',
        'id' => '',
        'lastName' => '',
        'phone' => '',
        'title' => ''
    ]
  ],
  'siteSettings' => [
    'activeViewOptOut' => null,
    'adBlockingOptOut' => null,
    'disableNewCookie' => null,
    'tagSetting' => [
        'additionalKeyValues' => '',
        'includeClickThroughUrls' => null,
        'includeClickTracking' => null,
        'keywordOption' => ''
    ],
    'videoActiveViewOptOutTemplate' => null,
    'vpaidAdapterChoiceTemplate' => ''
  ],
  'subaccountId' => '',
  'videoSettings' => [
    'companionSettings' => [
        'companionsDisabled' => null,
        'enabledSizes' => [
                [
                                'height' => 0,
                                'iab' => null,
                                'id' => '',
                                'kind' => '',
                                'width' => 0
                ]
        ],
        'imageOnly' => null,
        'kind' => ''
    ],
    'kind' => '',
    'obaEnabled' => null,
    'obaSettings' => [
        'iconClickThroughUrl' => '',
        'iconClickTrackingUrl' => '',
        'iconViewTrackingUrl' => '',
        'program' => '',
        'resourceUrl' => '',
        'size' => [
                
        ],
        'xPosition' => '',
        'yPosition' => ''
    ],
    'orientation' => '',
    'skippableSettings' => [
        'kind' => '',
        'progressOffset' => [
                'offsetPercentage' => 0,
                'offsetSeconds' => 0
        ],
        'skipOffset' => [
                
        ],
        'skippable' => null
    ],
    'transcodeSettings' => [
        'enabledVideoFormats' => [
                
        ],
        'kind' => ''
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/userprofiles/:profileId/sites');
$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}}/userprofiles/:profileId/sites' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "approved": false,
  "directorySiteId": "",
  "directorySiteIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "id": "",
  "idDimensionValue": {},
  "keyName": "",
  "kind": "",
  "name": "",
  "siteContacts": [
    {
      "address": "",
      "contactType": "",
      "email": "",
      "firstName": "",
      "id": "",
      "lastName": "",
      "phone": "",
      "title": ""
    }
  ],
  "siteSettings": {
    "activeViewOptOut": false,
    "adBlockingOptOut": false,
    "disableNewCookie": false,
    "tagSetting": {
      "additionalKeyValues": "",
      "includeClickThroughUrls": false,
      "includeClickTracking": false,
      "keywordOption": ""
    },
    "videoActiveViewOptOutTemplate": false,
    "vpaidAdapterChoiceTemplate": ""
  },
  "subaccountId": "",
  "videoSettings": {
    "companionSettings": {
      "companionsDisabled": false,
      "enabledSizes": [
        {
          "height": 0,
          "iab": false,
          "id": "",
          "kind": "",
          "width": 0
        }
      ],
      "imageOnly": false,
      "kind": ""
    },
    "kind": "",
    "obaEnabled": false,
    "obaSettings": {
      "iconClickThroughUrl": "",
      "iconClickTrackingUrl": "",
      "iconViewTrackingUrl": "",
      "program": "",
      "resourceUrl": "",
      "size": {},
      "xPosition": "",
      "yPosition": ""
    },
    "orientation": "",
    "skippableSettings": {
      "kind": "",
      "progressOffset": {
        "offsetPercentage": 0,
        "offsetSeconds": 0
      },
      "skipOffset": {},
      "skippable": false
    },
    "transcodeSettings": {
      "enabledVideoFormats": [],
      "kind": ""
    }
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/sites' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "approved": false,
  "directorySiteId": "",
  "directorySiteIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "id": "",
  "idDimensionValue": {},
  "keyName": "",
  "kind": "",
  "name": "",
  "siteContacts": [
    {
      "address": "",
      "contactType": "",
      "email": "",
      "firstName": "",
      "id": "",
      "lastName": "",
      "phone": "",
      "title": ""
    }
  ],
  "siteSettings": {
    "activeViewOptOut": false,
    "adBlockingOptOut": false,
    "disableNewCookie": false,
    "tagSetting": {
      "additionalKeyValues": "",
      "includeClickThroughUrls": false,
      "includeClickTracking": false,
      "keywordOption": ""
    },
    "videoActiveViewOptOutTemplate": false,
    "vpaidAdapterChoiceTemplate": ""
  },
  "subaccountId": "",
  "videoSettings": {
    "companionSettings": {
      "companionsDisabled": false,
      "enabledSizes": [
        {
          "height": 0,
          "iab": false,
          "id": "",
          "kind": "",
          "width": 0
        }
      ],
      "imageOnly": false,
      "kind": ""
    },
    "kind": "",
    "obaEnabled": false,
    "obaSettings": {
      "iconClickThroughUrl": "",
      "iconClickTrackingUrl": "",
      "iconViewTrackingUrl": "",
      "program": "",
      "resourceUrl": "",
      "size": {},
      "xPosition": "",
      "yPosition": ""
    },
    "orientation": "",
    "skippableSettings": {
      "kind": "",
      "progressOffset": {
        "offsetPercentage": 0,
        "offsetSeconds": 0
      },
      "skipOffset": {},
      "skippable": false
    },
    "transcodeSettings": {
      "enabledVideoFormats": [],
      "kind": ""
    }
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"accountId\": \"\",\n  \"approved\": false,\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteContacts\": [\n    {\n      \"address\": \"\",\n      \"contactType\": \"\",\n      \"email\": \"\",\n      \"firstName\": \"\",\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"phone\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"siteSettings\": {\n    \"activeViewOptOut\": false,\n    \"adBlockingOptOut\": false,\n    \"disableNewCookie\": false,\n    \"tagSetting\": {\n      \"additionalKeyValues\": \"\",\n      \"includeClickThroughUrls\": false,\n      \"includeClickTracking\": false,\n      \"keywordOption\": \"\"\n    },\n    \"videoActiveViewOptOutTemplate\": false,\n    \"vpaidAdapterChoiceTemplate\": \"\"\n  },\n  \"subaccountId\": \"\",\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {\n          \"height\": 0,\n          \"iab\": false,\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"width\": 0\n        }\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\n    }\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/userprofiles/:profileId/sites", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/sites"

payload = {
    "accountId": "",
    "approved": False,
    "directorySiteId": "",
    "directorySiteIdDimensionValue": {
        "dimensionName": "",
        "etag": "",
        "id": "",
        "kind": "",
        "matchType": "",
        "value": ""
    },
    "id": "",
    "idDimensionValue": {},
    "keyName": "",
    "kind": "",
    "name": "",
    "siteContacts": [
        {
            "address": "",
            "contactType": "",
            "email": "",
            "firstName": "",
            "id": "",
            "lastName": "",
            "phone": "",
            "title": ""
        }
    ],
    "siteSettings": {
        "activeViewOptOut": False,
        "adBlockingOptOut": False,
        "disableNewCookie": False,
        "tagSetting": {
            "additionalKeyValues": "",
            "includeClickThroughUrls": False,
            "includeClickTracking": False,
            "keywordOption": ""
        },
        "videoActiveViewOptOutTemplate": False,
        "vpaidAdapterChoiceTemplate": ""
    },
    "subaccountId": "",
    "videoSettings": {
        "companionSettings": {
            "companionsDisabled": False,
            "enabledSizes": [
                {
                    "height": 0,
                    "iab": False,
                    "id": "",
                    "kind": "",
                    "width": 0
                }
            ],
            "imageOnly": False,
            "kind": ""
        },
        "kind": "",
        "obaEnabled": False,
        "obaSettings": {
            "iconClickThroughUrl": "",
            "iconClickTrackingUrl": "",
            "iconViewTrackingUrl": "",
            "program": "",
            "resourceUrl": "",
            "size": {},
            "xPosition": "",
            "yPosition": ""
        },
        "orientation": "",
        "skippableSettings": {
            "kind": "",
            "progressOffset": {
                "offsetPercentage": 0,
                "offsetSeconds": 0
            },
            "skipOffset": {},
            "skippable": False
        },
        "transcodeSettings": {
            "enabledVideoFormats": [],
            "kind": ""
        }
    }
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/sites"

payload <- "{\n  \"accountId\": \"\",\n  \"approved\": false,\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteContacts\": [\n    {\n      \"address\": \"\",\n      \"contactType\": \"\",\n      \"email\": \"\",\n      \"firstName\": \"\",\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"phone\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"siteSettings\": {\n    \"activeViewOptOut\": false,\n    \"adBlockingOptOut\": false,\n    \"disableNewCookie\": false,\n    \"tagSetting\": {\n      \"additionalKeyValues\": \"\",\n      \"includeClickThroughUrls\": false,\n      \"includeClickTracking\": false,\n      \"keywordOption\": \"\"\n    },\n    \"videoActiveViewOptOutTemplate\": false,\n    \"vpaidAdapterChoiceTemplate\": \"\"\n  },\n  \"subaccountId\": \"\",\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {\n          \"height\": 0,\n          \"iab\": false,\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"width\": 0\n        }\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\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}}/userprofiles/:profileId/sites")

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  \"accountId\": \"\",\n  \"approved\": false,\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteContacts\": [\n    {\n      \"address\": \"\",\n      \"contactType\": \"\",\n      \"email\": \"\",\n      \"firstName\": \"\",\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"phone\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"siteSettings\": {\n    \"activeViewOptOut\": false,\n    \"adBlockingOptOut\": false,\n    \"disableNewCookie\": false,\n    \"tagSetting\": {\n      \"additionalKeyValues\": \"\",\n      \"includeClickThroughUrls\": false,\n      \"includeClickTracking\": false,\n      \"keywordOption\": \"\"\n    },\n    \"videoActiveViewOptOutTemplate\": false,\n    \"vpaidAdapterChoiceTemplate\": \"\"\n  },\n  \"subaccountId\": \"\",\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {\n          \"height\": 0,\n          \"iab\": false,\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"width\": 0\n        }\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\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/userprofiles/:profileId/sites') do |req|
  req.body = "{\n  \"accountId\": \"\",\n  \"approved\": false,\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteContacts\": [\n    {\n      \"address\": \"\",\n      \"contactType\": \"\",\n      \"email\": \"\",\n      \"firstName\": \"\",\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"phone\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"siteSettings\": {\n    \"activeViewOptOut\": false,\n    \"adBlockingOptOut\": false,\n    \"disableNewCookie\": false,\n    \"tagSetting\": {\n      \"additionalKeyValues\": \"\",\n      \"includeClickThroughUrls\": false,\n      \"includeClickTracking\": false,\n      \"keywordOption\": \"\"\n    },\n    \"videoActiveViewOptOutTemplate\": false,\n    \"vpaidAdapterChoiceTemplate\": \"\"\n  },\n  \"subaccountId\": \"\",\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {\n          \"height\": 0,\n          \"iab\": false,\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"width\": 0\n        }\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\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}}/userprofiles/:profileId/sites";

    let payload = json!({
        "accountId": "",
        "approved": false,
        "directorySiteId": "",
        "directorySiteIdDimensionValue": json!({
            "dimensionName": "",
            "etag": "",
            "id": "",
            "kind": "",
            "matchType": "",
            "value": ""
        }),
        "id": "",
        "idDimensionValue": json!({}),
        "keyName": "",
        "kind": "",
        "name": "",
        "siteContacts": (
            json!({
                "address": "",
                "contactType": "",
                "email": "",
                "firstName": "",
                "id": "",
                "lastName": "",
                "phone": "",
                "title": ""
            })
        ),
        "siteSettings": json!({
            "activeViewOptOut": false,
            "adBlockingOptOut": false,
            "disableNewCookie": false,
            "tagSetting": json!({
                "additionalKeyValues": "",
                "includeClickThroughUrls": false,
                "includeClickTracking": false,
                "keywordOption": ""
            }),
            "videoActiveViewOptOutTemplate": false,
            "vpaidAdapterChoiceTemplate": ""
        }),
        "subaccountId": "",
        "videoSettings": json!({
            "companionSettings": json!({
                "companionsDisabled": false,
                "enabledSizes": (
                    json!({
                        "height": 0,
                        "iab": false,
                        "id": "",
                        "kind": "",
                        "width": 0
                    })
                ),
                "imageOnly": false,
                "kind": ""
            }),
            "kind": "",
            "obaEnabled": false,
            "obaSettings": json!({
                "iconClickThroughUrl": "",
                "iconClickTrackingUrl": "",
                "iconViewTrackingUrl": "",
                "program": "",
                "resourceUrl": "",
                "size": json!({}),
                "xPosition": "",
                "yPosition": ""
            }),
            "orientation": "",
            "skippableSettings": json!({
                "kind": "",
                "progressOffset": json!({
                    "offsetPercentage": 0,
                    "offsetSeconds": 0
                }),
                "skipOffset": json!({}),
                "skippable": false
            }),
            "transcodeSettings": json!({
                "enabledVideoFormats": (),
                "kind": ""
            })
        })
    });

    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}}/userprofiles/:profileId/sites \
  --header 'content-type: application/json' \
  --data '{
  "accountId": "",
  "approved": false,
  "directorySiteId": "",
  "directorySiteIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "id": "",
  "idDimensionValue": {},
  "keyName": "",
  "kind": "",
  "name": "",
  "siteContacts": [
    {
      "address": "",
      "contactType": "",
      "email": "",
      "firstName": "",
      "id": "",
      "lastName": "",
      "phone": "",
      "title": ""
    }
  ],
  "siteSettings": {
    "activeViewOptOut": false,
    "adBlockingOptOut": false,
    "disableNewCookie": false,
    "tagSetting": {
      "additionalKeyValues": "",
      "includeClickThroughUrls": false,
      "includeClickTracking": false,
      "keywordOption": ""
    },
    "videoActiveViewOptOutTemplate": false,
    "vpaidAdapterChoiceTemplate": ""
  },
  "subaccountId": "",
  "videoSettings": {
    "companionSettings": {
      "companionsDisabled": false,
      "enabledSizes": [
        {
          "height": 0,
          "iab": false,
          "id": "",
          "kind": "",
          "width": 0
        }
      ],
      "imageOnly": false,
      "kind": ""
    },
    "kind": "",
    "obaEnabled": false,
    "obaSettings": {
      "iconClickThroughUrl": "",
      "iconClickTrackingUrl": "",
      "iconViewTrackingUrl": "",
      "program": "",
      "resourceUrl": "",
      "size": {},
      "xPosition": "",
      "yPosition": ""
    },
    "orientation": "",
    "skippableSettings": {
      "kind": "",
      "progressOffset": {
        "offsetPercentage": 0,
        "offsetSeconds": 0
      },
      "skipOffset": {},
      "skippable": false
    },
    "transcodeSettings": {
      "enabledVideoFormats": [],
      "kind": ""
    }
  }
}'
echo '{
  "accountId": "",
  "approved": false,
  "directorySiteId": "",
  "directorySiteIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "id": "",
  "idDimensionValue": {},
  "keyName": "",
  "kind": "",
  "name": "",
  "siteContacts": [
    {
      "address": "",
      "contactType": "",
      "email": "",
      "firstName": "",
      "id": "",
      "lastName": "",
      "phone": "",
      "title": ""
    }
  ],
  "siteSettings": {
    "activeViewOptOut": false,
    "adBlockingOptOut": false,
    "disableNewCookie": false,
    "tagSetting": {
      "additionalKeyValues": "",
      "includeClickThroughUrls": false,
      "includeClickTracking": false,
      "keywordOption": ""
    },
    "videoActiveViewOptOutTemplate": false,
    "vpaidAdapterChoiceTemplate": ""
  },
  "subaccountId": "",
  "videoSettings": {
    "companionSettings": {
      "companionsDisabled": false,
      "enabledSizes": [
        {
          "height": 0,
          "iab": false,
          "id": "",
          "kind": "",
          "width": 0
        }
      ],
      "imageOnly": false,
      "kind": ""
    },
    "kind": "",
    "obaEnabled": false,
    "obaSettings": {
      "iconClickThroughUrl": "",
      "iconClickTrackingUrl": "",
      "iconViewTrackingUrl": "",
      "program": "",
      "resourceUrl": "",
      "size": {},
      "xPosition": "",
      "yPosition": ""
    },
    "orientation": "",
    "skippableSettings": {
      "kind": "",
      "progressOffset": {
        "offsetPercentage": 0,
        "offsetSeconds": 0
      },
      "skipOffset": {},
      "skippable": false
    },
    "transcodeSettings": {
      "enabledVideoFormats": [],
      "kind": ""
    }
  }
}' |  \
  http POST {{baseUrl}}/userprofiles/:profileId/sites \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "accountId": "",\n  "approved": false,\n  "directorySiteId": "",\n  "directorySiteIdDimensionValue": {\n    "dimensionName": "",\n    "etag": "",\n    "id": "",\n    "kind": "",\n    "matchType": "",\n    "value": ""\n  },\n  "id": "",\n  "idDimensionValue": {},\n  "keyName": "",\n  "kind": "",\n  "name": "",\n  "siteContacts": [\n    {\n      "address": "",\n      "contactType": "",\n      "email": "",\n      "firstName": "",\n      "id": "",\n      "lastName": "",\n      "phone": "",\n      "title": ""\n    }\n  ],\n  "siteSettings": {\n    "activeViewOptOut": false,\n    "adBlockingOptOut": false,\n    "disableNewCookie": false,\n    "tagSetting": {\n      "additionalKeyValues": "",\n      "includeClickThroughUrls": false,\n      "includeClickTracking": false,\n      "keywordOption": ""\n    },\n    "videoActiveViewOptOutTemplate": false,\n    "vpaidAdapterChoiceTemplate": ""\n  },\n  "subaccountId": "",\n  "videoSettings": {\n    "companionSettings": {\n      "companionsDisabled": false,\n      "enabledSizes": [\n        {\n          "height": 0,\n          "iab": false,\n          "id": "",\n          "kind": "",\n          "width": 0\n        }\n      ],\n      "imageOnly": false,\n      "kind": ""\n    },\n    "kind": "",\n    "obaEnabled": false,\n    "obaSettings": {\n      "iconClickThroughUrl": "",\n      "iconClickTrackingUrl": "",\n      "iconViewTrackingUrl": "",\n      "program": "",\n      "resourceUrl": "",\n      "size": {},\n      "xPosition": "",\n      "yPosition": ""\n    },\n    "orientation": "",\n    "skippableSettings": {\n      "kind": "",\n      "progressOffset": {\n        "offsetPercentage": 0,\n        "offsetSeconds": 0\n      },\n      "skipOffset": {},\n      "skippable": false\n    },\n    "transcodeSettings": {\n      "enabledVideoFormats": [],\n      "kind": ""\n    }\n  }\n}' \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/sites
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "accountId": "",
  "approved": false,
  "directorySiteId": "",
  "directorySiteIdDimensionValue": [
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  ],
  "id": "",
  "idDimensionValue": [],
  "keyName": "",
  "kind": "",
  "name": "",
  "siteContacts": [
    [
      "address": "",
      "contactType": "",
      "email": "",
      "firstName": "",
      "id": "",
      "lastName": "",
      "phone": "",
      "title": ""
    ]
  ],
  "siteSettings": [
    "activeViewOptOut": false,
    "adBlockingOptOut": false,
    "disableNewCookie": false,
    "tagSetting": [
      "additionalKeyValues": "",
      "includeClickThroughUrls": false,
      "includeClickTracking": false,
      "keywordOption": ""
    ],
    "videoActiveViewOptOutTemplate": false,
    "vpaidAdapterChoiceTemplate": ""
  ],
  "subaccountId": "",
  "videoSettings": [
    "companionSettings": [
      "companionsDisabled": false,
      "enabledSizes": [
        [
          "height": 0,
          "iab": false,
          "id": "",
          "kind": "",
          "width": 0
        ]
      ],
      "imageOnly": false,
      "kind": ""
    ],
    "kind": "",
    "obaEnabled": false,
    "obaSettings": [
      "iconClickThroughUrl": "",
      "iconClickTrackingUrl": "",
      "iconViewTrackingUrl": "",
      "program": "",
      "resourceUrl": "",
      "size": [],
      "xPosition": "",
      "yPosition": ""
    ],
    "orientation": "",
    "skippableSettings": [
      "kind": "",
      "progressOffset": [
        "offsetPercentage": 0,
        "offsetSeconds": 0
      ],
      "skipOffset": [],
      "skippable": false
    ],
    "transcodeSettings": [
      "enabledVideoFormats": [],
      "kind": ""
    ]
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/sites")! 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 dfareporting.sites.list
{{baseUrl}}/userprofiles/:profileId/sites
QUERY PARAMS

profileId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/sites");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/sites")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/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}}/userprofiles/:profileId/sites"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/sites");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/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/userprofiles/:profileId/sites HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/sites")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/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}}/userprofiles/:profileId/sites")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/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}}/userprofiles/:profileId/sites');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/sites'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/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}}/userprofiles/:profileId/sites',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/sites")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/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}}/userprofiles/:profileId/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}}/userprofiles/:profileId/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}}/userprofiles/:profileId/sites'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/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}}/userprofiles/:profileId/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}}/userprofiles/:profileId/sites" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/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}}/userprofiles/:profileId/sites');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/sites');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/sites');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/sites' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/sites' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/sites")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/sites"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/sites"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/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/userprofiles/:profileId/sites') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/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}}/userprofiles/:profileId/sites
http GET {{baseUrl}}/userprofiles/:profileId/sites
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/sites
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/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()
PATCH dfareporting.sites.patch
{{baseUrl}}/userprofiles/:profileId/sites
QUERY PARAMS

id
profileId
BODY json

{
  "accountId": "",
  "approved": false,
  "directorySiteId": "",
  "directorySiteIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "id": "",
  "idDimensionValue": {},
  "keyName": "",
  "kind": "",
  "name": "",
  "siteContacts": [
    {
      "address": "",
      "contactType": "",
      "email": "",
      "firstName": "",
      "id": "",
      "lastName": "",
      "phone": "",
      "title": ""
    }
  ],
  "siteSettings": {
    "activeViewOptOut": false,
    "adBlockingOptOut": false,
    "disableNewCookie": false,
    "tagSetting": {
      "additionalKeyValues": "",
      "includeClickThroughUrls": false,
      "includeClickTracking": false,
      "keywordOption": ""
    },
    "videoActiveViewOptOutTemplate": false,
    "vpaidAdapterChoiceTemplate": ""
  },
  "subaccountId": "",
  "videoSettings": {
    "companionSettings": {
      "companionsDisabled": false,
      "enabledSizes": [
        {
          "height": 0,
          "iab": false,
          "id": "",
          "kind": "",
          "width": 0
        }
      ],
      "imageOnly": false,
      "kind": ""
    },
    "kind": "",
    "obaEnabled": false,
    "obaSettings": {
      "iconClickThroughUrl": "",
      "iconClickTrackingUrl": "",
      "iconViewTrackingUrl": "",
      "program": "",
      "resourceUrl": "",
      "size": {},
      "xPosition": "",
      "yPosition": ""
    },
    "orientation": "",
    "skippableSettings": {
      "kind": "",
      "progressOffset": {
        "offsetPercentage": 0,
        "offsetSeconds": 0
      },
      "skipOffset": {},
      "skippable": false
    },
    "transcodeSettings": {
      "enabledVideoFormats": [],
      "kind": ""
    }
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/sites?id=");

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  \"accountId\": \"\",\n  \"approved\": false,\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteContacts\": [\n    {\n      \"address\": \"\",\n      \"contactType\": \"\",\n      \"email\": \"\",\n      \"firstName\": \"\",\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"phone\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"siteSettings\": {\n    \"activeViewOptOut\": false,\n    \"adBlockingOptOut\": false,\n    \"disableNewCookie\": false,\n    \"tagSetting\": {\n      \"additionalKeyValues\": \"\",\n      \"includeClickThroughUrls\": false,\n      \"includeClickTracking\": false,\n      \"keywordOption\": \"\"\n    },\n    \"videoActiveViewOptOutTemplate\": false,\n    \"vpaidAdapterChoiceTemplate\": \"\"\n  },\n  \"subaccountId\": \"\",\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {\n          \"height\": 0,\n          \"iab\": false,\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"width\": 0\n        }\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\n    }\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/patch "{{baseUrl}}/userprofiles/:profileId/sites" {:query-params {:id ""}
                                                                           :content-type :json
                                                                           :form-params {:accountId ""
                                                                                         :approved false
                                                                                         :directorySiteId ""
                                                                                         :directorySiteIdDimensionValue {:dimensionName ""
                                                                                                                         :etag ""
                                                                                                                         :id ""
                                                                                                                         :kind ""
                                                                                                                         :matchType ""
                                                                                                                         :value ""}
                                                                                         :id ""
                                                                                         :idDimensionValue {}
                                                                                         :keyName ""
                                                                                         :kind ""
                                                                                         :name ""
                                                                                         :siteContacts [{:address ""
                                                                                                         :contactType ""
                                                                                                         :email ""
                                                                                                         :firstName ""
                                                                                                         :id ""
                                                                                                         :lastName ""
                                                                                                         :phone ""
                                                                                                         :title ""}]
                                                                                         :siteSettings {:activeViewOptOut false
                                                                                                        :adBlockingOptOut false
                                                                                                        :disableNewCookie false
                                                                                                        :tagSetting {:additionalKeyValues ""
                                                                                                                     :includeClickThroughUrls false
                                                                                                                     :includeClickTracking false
                                                                                                                     :keywordOption ""}
                                                                                                        :videoActiveViewOptOutTemplate false
                                                                                                        :vpaidAdapterChoiceTemplate ""}
                                                                                         :subaccountId ""
                                                                                         :videoSettings {:companionSettings {:companionsDisabled false
                                                                                                                             :enabledSizes [{:height 0
                                                                                                                                             :iab false
                                                                                                                                             :id ""
                                                                                                                                             :kind ""
                                                                                                                                             :width 0}]
                                                                                                                             :imageOnly false
                                                                                                                             :kind ""}
                                                                                                         :kind ""
                                                                                                         :obaEnabled false
                                                                                                         :obaSettings {:iconClickThroughUrl ""
                                                                                                                       :iconClickTrackingUrl ""
                                                                                                                       :iconViewTrackingUrl ""
                                                                                                                       :program ""
                                                                                                                       :resourceUrl ""
                                                                                                                       :size {}
                                                                                                                       :xPosition ""
                                                                                                                       :yPosition ""}
                                                                                                         :orientation ""
                                                                                                         :skippableSettings {:kind ""
                                                                                                                             :progressOffset {:offsetPercentage 0
                                                                                                                                              :offsetSeconds 0}
                                                                                                                             :skipOffset {}
                                                                                                                             :skippable false}
                                                                                                         :transcodeSettings {:enabledVideoFormats []
                                                                                                                             :kind ""}}}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/sites?id="
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"accountId\": \"\",\n  \"approved\": false,\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteContacts\": [\n    {\n      \"address\": \"\",\n      \"contactType\": \"\",\n      \"email\": \"\",\n      \"firstName\": \"\",\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"phone\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"siteSettings\": {\n    \"activeViewOptOut\": false,\n    \"adBlockingOptOut\": false,\n    \"disableNewCookie\": false,\n    \"tagSetting\": {\n      \"additionalKeyValues\": \"\",\n      \"includeClickThroughUrls\": false,\n      \"includeClickTracking\": false,\n      \"keywordOption\": \"\"\n    },\n    \"videoActiveViewOptOutTemplate\": false,\n    \"vpaidAdapterChoiceTemplate\": \"\"\n  },\n  \"subaccountId\": \"\",\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {\n          \"height\": 0,\n          \"iab\": false,\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"width\": 0\n        }\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\n    }\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}}/userprofiles/:profileId/sites?id="),
    Content = new StringContent("{\n  \"accountId\": \"\",\n  \"approved\": false,\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteContacts\": [\n    {\n      \"address\": \"\",\n      \"contactType\": \"\",\n      \"email\": \"\",\n      \"firstName\": \"\",\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"phone\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"siteSettings\": {\n    \"activeViewOptOut\": false,\n    \"adBlockingOptOut\": false,\n    \"disableNewCookie\": false,\n    \"tagSetting\": {\n      \"additionalKeyValues\": \"\",\n      \"includeClickThroughUrls\": false,\n      \"includeClickTracking\": false,\n      \"keywordOption\": \"\"\n    },\n    \"videoActiveViewOptOutTemplate\": false,\n    \"vpaidAdapterChoiceTemplate\": \"\"\n  },\n  \"subaccountId\": \"\",\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {\n          \"height\": 0,\n          \"iab\": false,\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"width\": 0\n        }\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\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}}/userprofiles/:profileId/sites?id=");
var request = new RestRequest("", Method.Patch);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"accountId\": \"\",\n  \"approved\": false,\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteContacts\": [\n    {\n      \"address\": \"\",\n      \"contactType\": \"\",\n      \"email\": \"\",\n      \"firstName\": \"\",\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"phone\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"siteSettings\": {\n    \"activeViewOptOut\": false,\n    \"adBlockingOptOut\": false,\n    \"disableNewCookie\": false,\n    \"tagSetting\": {\n      \"additionalKeyValues\": \"\",\n      \"includeClickThroughUrls\": false,\n      \"includeClickTracking\": false,\n      \"keywordOption\": \"\"\n    },\n    \"videoActiveViewOptOutTemplate\": false,\n    \"vpaidAdapterChoiceTemplate\": \"\"\n  },\n  \"subaccountId\": \"\",\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {\n          \"height\": 0,\n          \"iab\": false,\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"width\": 0\n        }\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\n    }\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/sites?id="

	payload := strings.NewReader("{\n  \"accountId\": \"\",\n  \"approved\": false,\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteContacts\": [\n    {\n      \"address\": \"\",\n      \"contactType\": \"\",\n      \"email\": \"\",\n      \"firstName\": \"\",\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"phone\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"siteSettings\": {\n    \"activeViewOptOut\": false,\n    \"adBlockingOptOut\": false,\n    \"disableNewCookie\": false,\n    \"tagSetting\": {\n      \"additionalKeyValues\": \"\",\n      \"includeClickThroughUrls\": false,\n      \"includeClickTracking\": false,\n      \"keywordOption\": \"\"\n    },\n    \"videoActiveViewOptOutTemplate\": false,\n    \"vpaidAdapterChoiceTemplate\": \"\"\n  },\n  \"subaccountId\": \"\",\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {\n          \"height\": 0,\n          \"iab\": false,\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"width\": 0\n        }\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\n    }\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/userprofiles/:profileId/sites?id= HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 1763

{
  "accountId": "",
  "approved": false,
  "directorySiteId": "",
  "directorySiteIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "id": "",
  "idDimensionValue": {},
  "keyName": "",
  "kind": "",
  "name": "",
  "siteContacts": [
    {
      "address": "",
      "contactType": "",
      "email": "",
      "firstName": "",
      "id": "",
      "lastName": "",
      "phone": "",
      "title": ""
    }
  ],
  "siteSettings": {
    "activeViewOptOut": false,
    "adBlockingOptOut": false,
    "disableNewCookie": false,
    "tagSetting": {
      "additionalKeyValues": "",
      "includeClickThroughUrls": false,
      "includeClickTracking": false,
      "keywordOption": ""
    },
    "videoActiveViewOptOutTemplate": false,
    "vpaidAdapterChoiceTemplate": ""
  },
  "subaccountId": "",
  "videoSettings": {
    "companionSettings": {
      "companionsDisabled": false,
      "enabledSizes": [
        {
          "height": 0,
          "iab": false,
          "id": "",
          "kind": "",
          "width": 0
        }
      ],
      "imageOnly": false,
      "kind": ""
    },
    "kind": "",
    "obaEnabled": false,
    "obaSettings": {
      "iconClickThroughUrl": "",
      "iconClickTrackingUrl": "",
      "iconViewTrackingUrl": "",
      "program": "",
      "resourceUrl": "",
      "size": {},
      "xPosition": "",
      "yPosition": ""
    },
    "orientation": "",
    "skippableSettings": {
      "kind": "",
      "progressOffset": {
        "offsetPercentage": 0,
        "offsetSeconds": 0
      },
      "skipOffset": {},
      "skippable": false
    },
    "transcodeSettings": {
      "enabledVideoFormats": [],
      "kind": ""
    }
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/userprofiles/:profileId/sites?id=")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"accountId\": \"\",\n  \"approved\": false,\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteContacts\": [\n    {\n      \"address\": \"\",\n      \"contactType\": \"\",\n      \"email\": \"\",\n      \"firstName\": \"\",\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"phone\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"siteSettings\": {\n    \"activeViewOptOut\": false,\n    \"adBlockingOptOut\": false,\n    \"disableNewCookie\": false,\n    \"tagSetting\": {\n      \"additionalKeyValues\": \"\",\n      \"includeClickThroughUrls\": false,\n      \"includeClickTracking\": false,\n      \"keywordOption\": \"\"\n    },\n    \"videoActiveViewOptOutTemplate\": false,\n    \"vpaidAdapterChoiceTemplate\": \"\"\n  },\n  \"subaccountId\": \"\",\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {\n          \"height\": 0,\n          \"iab\": false,\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"width\": 0\n        }\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\n    }\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/sites?id="))
    .header("content-type", "application/json")
    .method("PATCH", HttpRequest.BodyPublishers.ofString("{\n  \"accountId\": \"\",\n  \"approved\": false,\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteContacts\": [\n    {\n      \"address\": \"\",\n      \"contactType\": \"\",\n      \"email\": \"\",\n      \"firstName\": \"\",\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"phone\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"siteSettings\": {\n    \"activeViewOptOut\": false,\n    \"adBlockingOptOut\": false,\n    \"disableNewCookie\": false,\n    \"tagSetting\": {\n      \"additionalKeyValues\": \"\",\n      \"includeClickThroughUrls\": false,\n      \"includeClickTracking\": false,\n      \"keywordOption\": \"\"\n    },\n    \"videoActiveViewOptOutTemplate\": false,\n    \"vpaidAdapterChoiceTemplate\": \"\"\n  },\n  \"subaccountId\": \"\",\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {\n          \"height\": 0,\n          \"iab\": false,\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"width\": 0\n        }\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\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  \"accountId\": \"\",\n  \"approved\": false,\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteContacts\": [\n    {\n      \"address\": \"\",\n      \"contactType\": \"\",\n      \"email\": \"\",\n      \"firstName\": \"\",\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"phone\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"siteSettings\": {\n    \"activeViewOptOut\": false,\n    \"adBlockingOptOut\": false,\n    \"disableNewCookie\": false,\n    \"tagSetting\": {\n      \"additionalKeyValues\": \"\",\n      \"includeClickThroughUrls\": false,\n      \"includeClickTracking\": false,\n      \"keywordOption\": \"\"\n    },\n    \"videoActiveViewOptOutTemplate\": false,\n    \"vpaidAdapterChoiceTemplate\": \"\"\n  },\n  \"subaccountId\": \"\",\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {\n          \"height\": 0,\n          \"iab\": false,\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"width\": 0\n        }\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\n    }\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/sites?id=")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/userprofiles/:profileId/sites?id=")
  .header("content-type", "application/json")
  .body("{\n  \"accountId\": \"\",\n  \"approved\": false,\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteContacts\": [\n    {\n      \"address\": \"\",\n      \"contactType\": \"\",\n      \"email\": \"\",\n      \"firstName\": \"\",\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"phone\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"siteSettings\": {\n    \"activeViewOptOut\": false,\n    \"adBlockingOptOut\": false,\n    \"disableNewCookie\": false,\n    \"tagSetting\": {\n      \"additionalKeyValues\": \"\",\n      \"includeClickThroughUrls\": false,\n      \"includeClickTracking\": false,\n      \"keywordOption\": \"\"\n    },\n    \"videoActiveViewOptOutTemplate\": false,\n    \"vpaidAdapterChoiceTemplate\": \"\"\n  },\n  \"subaccountId\": \"\",\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {\n          \"height\": 0,\n          \"iab\": false,\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"width\": 0\n        }\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\n    }\n  }\n}")
  .asString();
const data = JSON.stringify({
  accountId: '',
  approved: false,
  directorySiteId: '',
  directorySiteIdDimensionValue: {
    dimensionName: '',
    etag: '',
    id: '',
    kind: '',
    matchType: '',
    value: ''
  },
  id: '',
  idDimensionValue: {},
  keyName: '',
  kind: '',
  name: '',
  siteContacts: [
    {
      address: '',
      contactType: '',
      email: '',
      firstName: '',
      id: '',
      lastName: '',
      phone: '',
      title: ''
    }
  ],
  siteSettings: {
    activeViewOptOut: false,
    adBlockingOptOut: false,
    disableNewCookie: false,
    tagSetting: {
      additionalKeyValues: '',
      includeClickThroughUrls: false,
      includeClickTracking: false,
      keywordOption: ''
    },
    videoActiveViewOptOutTemplate: false,
    vpaidAdapterChoiceTemplate: ''
  },
  subaccountId: '',
  videoSettings: {
    companionSettings: {
      companionsDisabled: false,
      enabledSizes: [
        {
          height: 0,
          iab: false,
          id: '',
          kind: '',
          width: 0
        }
      ],
      imageOnly: false,
      kind: ''
    },
    kind: '',
    obaEnabled: false,
    obaSettings: {
      iconClickThroughUrl: '',
      iconClickTrackingUrl: '',
      iconViewTrackingUrl: '',
      program: '',
      resourceUrl: '',
      size: {},
      xPosition: '',
      yPosition: ''
    },
    orientation: '',
    skippableSettings: {
      kind: '',
      progressOffset: {
        offsetPercentage: 0,
        offsetSeconds: 0
      },
      skipOffset: {},
      skippable: false
    },
    transcodeSettings: {
      enabledVideoFormats: [],
      kind: ''
    }
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PATCH', '{{baseUrl}}/userprofiles/:profileId/sites?id=');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/userprofiles/:profileId/sites',
  params: {id: ''},
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    approved: false,
    directorySiteId: '',
    directorySiteIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    id: '',
    idDimensionValue: {},
    keyName: '',
    kind: '',
    name: '',
    siteContacts: [
      {
        address: '',
        contactType: '',
        email: '',
        firstName: '',
        id: '',
        lastName: '',
        phone: '',
        title: ''
      }
    ],
    siteSettings: {
      activeViewOptOut: false,
      adBlockingOptOut: false,
      disableNewCookie: false,
      tagSetting: {
        additionalKeyValues: '',
        includeClickThroughUrls: false,
        includeClickTracking: false,
        keywordOption: ''
      },
      videoActiveViewOptOutTemplate: false,
      vpaidAdapterChoiceTemplate: ''
    },
    subaccountId: '',
    videoSettings: {
      companionSettings: {
        companionsDisabled: false,
        enabledSizes: [{height: 0, iab: false, id: '', kind: '', width: 0}],
        imageOnly: false,
        kind: ''
      },
      kind: '',
      obaEnabled: false,
      obaSettings: {
        iconClickThroughUrl: '',
        iconClickTrackingUrl: '',
        iconViewTrackingUrl: '',
        program: '',
        resourceUrl: '',
        size: {},
        xPosition: '',
        yPosition: ''
      },
      orientation: '',
      skippableSettings: {
        kind: '',
        progressOffset: {offsetPercentage: 0, offsetSeconds: 0},
        skipOffset: {},
        skippable: false
      },
      transcodeSettings: {enabledVideoFormats: [], kind: ''}
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/sites?id=';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","approved":false,"directorySiteId":"","directorySiteIdDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"id":"","idDimensionValue":{},"keyName":"","kind":"","name":"","siteContacts":[{"address":"","contactType":"","email":"","firstName":"","id":"","lastName":"","phone":"","title":""}],"siteSettings":{"activeViewOptOut":false,"adBlockingOptOut":false,"disableNewCookie":false,"tagSetting":{"additionalKeyValues":"","includeClickThroughUrls":false,"includeClickTracking":false,"keywordOption":""},"videoActiveViewOptOutTemplate":false,"vpaidAdapterChoiceTemplate":""},"subaccountId":"","videoSettings":{"companionSettings":{"companionsDisabled":false,"enabledSizes":[{"height":0,"iab":false,"id":"","kind":"","width":0}],"imageOnly":false,"kind":""},"kind":"","obaEnabled":false,"obaSettings":{"iconClickThroughUrl":"","iconClickTrackingUrl":"","iconViewTrackingUrl":"","program":"","resourceUrl":"","size":{},"xPosition":"","yPosition":""},"orientation":"","skippableSettings":{"kind":"","progressOffset":{"offsetPercentage":0,"offsetSeconds":0},"skipOffset":{},"skippable":false},"transcodeSettings":{"enabledVideoFormats":[],"kind":""}}}'
};

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}}/userprofiles/:profileId/sites?id=',
  method: 'PATCH',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "accountId": "",\n  "approved": false,\n  "directorySiteId": "",\n  "directorySiteIdDimensionValue": {\n    "dimensionName": "",\n    "etag": "",\n    "id": "",\n    "kind": "",\n    "matchType": "",\n    "value": ""\n  },\n  "id": "",\n  "idDimensionValue": {},\n  "keyName": "",\n  "kind": "",\n  "name": "",\n  "siteContacts": [\n    {\n      "address": "",\n      "contactType": "",\n      "email": "",\n      "firstName": "",\n      "id": "",\n      "lastName": "",\n      "phone": "",\n      "title": ""\n    }\n  ],\n  "siteSettings": {\n    "activeViewOptOut": false,\n    "adBlockingOptOut": false,\n    "disableNewCookie": false,\n    "tagSetting": {\n      "additionalKeyValues": "",\n      "includeClickThroughUrls": false,\n      "includeClickTracking": false,\n      "keywordOption": ""\n    },\n    "videoActiveViewOptOutTemplate": false,\n    "vpaidAdapterChoiceTemplate": ""\n  },\n  "subaccountId": "",\n  "videoSettings": {\n    "companionSettings": {\n      "companionsDisabled": false,\n      "enabledSizes": [\n        {\n          "height": 0,\n          "iab": false,\n          "id": "",\n          "kind": "",\n          "width": 0\n        }\n      ],\n      "imageOnly": false,\n      "kind": ""\n    },\n    "kind": "",\n    "obaEnabled": false,\n    "obaSettings": {\n      "iconClickThroughUrl": "",\n      "iconClickTrackingUrl": "",\n      "iconViewTrackingUrl": "",\n      "program": "",\n      "resourceUrl": "",\n      "size": {},\n      "xPosition": "",\n      "yPosition": ""\n    },\n    "orientation": "",\n    "skippableSettings": {\n      "kind": "",\n      "progressOffset": {\n        "offsetPercentage": 0,\n        "offsetSeconds": 0\n      },\n      "skipOffset": {},\n      "skippable": false\n    },\n    "transcodeSettings": {\n      "enabledVideoFormats": [],\n      "kind": ""\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  \"accountId\": \"\",\n  \"approved\": false,\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteContacts\": [\n    {\n      \"address\": \"\",\n      \"contactType\": \"\",\n      \"email\": \"\",\n      \"firstName\": \"\",\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"phone\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"siteSettings\": {\n    \"activeViewOptOut\": false,\n    \"adBlockingOptOut\": false,\n    \"disableNewCookie\": false,\n    \"tagSetting\": {\n      \"additionalKeyValues\": \"\",\n      \"includeClickThroughUrls\": false,\n      \"includeClickTracking\": false,\n      \"keywordOption\": \"\"\n    },\n    \"videoActiveViewOptOutTemplate\": false,\n    \"vpaidAdapterChoiceTemplate\": \"\"\n  },\n  \"subaccountId\": \"\",\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {\n          \"height\": 0,\n          \"iab\": false,\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"width\": 0\n        }\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\n    }\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/sites?id=")
  .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/userprofiles/:profileId/sites?id=',
  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({
  accountId: '',
  approved: false,
  directorySiteId: '',
  directorySiteIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
  id: '',
  idDimensionValue: {},
  keyName: '',
  kind: '',
  name: '',
  siteContacts: [
    {
      address: '',
      contactType: '',
      email: '',
      firstName: '',
      id: '',
      lastName: '',
      phone: '',
      title: ''
    }
  ],
  siteSettings: {
    activeViewOptOut: false,
    adBlockingOptOut: false,
    disableNewCookie: false,
    tagSetting: {
      additionalKeyValues: '',
      includeClickThroughUrls: false,
      includeClickTracking: false,
      keywordOption: ''
    },
    videoActiveViewOptOutTemplate: false,
    vpaidAdapterChoiceTemplate: ''
  },
  subaccountId: '',
  videoSettings: {
    companionSettings: {
      companionsDisabled: false,
      enabledSizes: [{height: 0, iab: false, id: '', kind: '', width: 0}],
      imageOnly: false,
      kind: ''
    },
    kind: '',
    obaEnabled: false,
    obaSettings: {
      iconClickThroughUrl: '',
      iconClickTrackingUrl: '',
      iconViewTrackingUrl: '',
      program: '',
      resourceUrl: '',
      size: {},
      xPosition: '',
      yPosition: ''
    },
    orientation: '',
    skippableSettings: {
      kind: '',
      progressOffset: {offsetPercentage: 0, offsetSeconds: 0},
      skipOffset: {},
      skippable: false
    },
    transcodeSettings: {enabledVideoFormats: [], kind: ''}
  }
}));
req.end();
const request = require('request');

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/userprofiles/:profileId/sites',
  qs: {id: ''},
  headers: {'content-type': 'application/json'},
  body: {
    accountId: '',
    approved: false,
    directorySiteId: '',
    directorySiteIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    id: '',
    idDimensionValue: {},
    keyName: '',
    kind: '',
    name: '',
    siteContacts: [
      {
        address: '',
        contactType: '',
        email: '',
        firstName: '',
        id: '',
        lastName: '',
        phone: '',
        title: ''
      }
    ],
    siteSettings: {
      activeViewOptOut: false,
      adBlockingOptOut: false,
      disableNewCookie: false,
      tagSetting: {
        additionalKeyValues: '',
        includeClickThroughUrls: false,
        includeClickTracking: false,
        keywordOption: ''
      },
      videoActiveViewOptOutTemplate: false,
      vpaidAdapterChoiceTemplate: ''
    },
    subaccountId: '',
    videoSettings: {
      companionSettings: {
        companionsDisabled: false,
        enabledSizes: [{height: 0, iab: false, id: '', kind: '', width: 0}],
        imageOnly: false,
        kind: ''
      },
      kind: '',
      obaEnabled: false,
      obaSettings: {
        iconClickThroughUrl: '',
        iconClickTrackingUrl: '',
        iconViewTrackingUrl: '',
        program: '',
        resourceUrl: '',
        size: {},
        xPosition: '',
        yPosition: ''
      },
      orientation: '',
      skippableSettings: {
        kind: '',
        progressOffset: {offsetPercentage: 0, offsetSeconds: 0},
        skipOffset: {},
        skippable: false
      },
      transcodeSettings: {enabledVideoFormats: [], kind: ''}
    }
  },
  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}}/userprofiles/:profileId/sites');

req.query({
  id: ''
});

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  accountId: '',
  approved: false,
  directorySiteId: '',
  directorySiteIdDimensionValue: {
    dimensionName: '',
    etag: '',
    id: '',
    kind: '',
    matchType: '',
    value: ''
  },
  id: '',
  idDimensionValue: {},
  keyName: '',
  kind: '',
  name: '',
  siteContacts: [
    {
      address: '',
      contactType: '',
      email: '',
      firstName: '',
      id: '',
      lastName: '',
      phone: '',
      title: ''
    }
  ],
  siteSettings: {
    activeViewOptOut: false,
    adBlockingOptOut: false,
    disableNewCookie: false,
    tagSetting: {
      additionalKeyValues: '',
      includeClickThroughUrls: false,
      includeClickTracking: false,
      keywordOption: ''
    },
    videoActiveViewOptOutTemplate: false,
    vpaidAdapterChoiceTemplate: ''
  },
  subaccountId: '',
  videoSettings: {
    companionSettings: {
      companionsDisabled: false,
      enabledSizes: [
        {
          height: 0,
          iab: false,
          id: '',
          kind: '',
          width: 0
        }
      ],
      imageOnly: false,
      kind: ''
    },
    kind: '',
    obaEnabled: false,
    obaSettings: {
      iconClickThroughUrl: '',
      iconClickTrackingUrl: '',
      iconViewTrackingUrl: '',
      program: '',
      resourceUrl: '',
      size: {},
      xPosition: '',
      yPosition: ''
    },
    orientation: '',
    skippableSettings: {
      kind: '',
      progressOffset: {
        offsetPercentage: 0,
        offsetSeconds: 0
      },
      skipOffset: {},
      skippable: false
    },
    transcodeSettings: {
      enabledVideoFormats: [],
      kind: ''
    }
  }
});

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}}/userprofiles/:profileId/sites',
  params: {id: ''},
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    approved: false,
    directorySiteId: '',
    directorySiteIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    id: '',
    idDimensionValue: {},
    keyName: '',
    kind: '',
    name: '',
    siteContacts: [
      {
        address: '',
        contactType: '',
        email: '',
        firstName: '',
        id: '',
        lastName: '',
        phone: '',
        title: ''
      }
    ],
    siteSettings: {
      activeViewOptOut: false,
      adBlockingOptOut: false,
      disableNewCookie: false,
      tagSetting: {
        additionalKeyValues: '',
        includeClickThroughUrls: false,
        includeClickTracking: false,
        keywordOption: ''
      },
      videoActiveViewOptOutTemplate: false,
      vpaidAdapterChoiceTemplate: ''
    },
    subaccountId: '',
    videoSettings: {
      companionSettings: {
        companionsDisabled: false,
        enabledSizes: [{height: 0, iab: false, id: '', kind: '', width: 0}],
        imageOnly: false,
        kind: ''
      },
      kind: '',
      obaEnabled: false,
      obaSettings: {
        iconClickThroughUrl: '',
        iconClickTrackingUrl: '',
        iconViewTrackingUrl: '',
        program: '',
        resourceUrl: '',
        size: {},
        xPosition: '',
        yPosition: ''
      },
      orientation: '',
      skippableSettings: {
        kind: '',
        progressOffset: {offsetPercentage: 0, offsetSeconds: 0},
        skipOffset: {},
        skippable: false
      },
      transcodeSettings: {enabledVideoFormats: [], kind: ''}
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/sites?id=';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","approved":false,"directorySiteId":"","directorySiteIdDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"id":"","idDimensionValue":{},"keyName":"","kind":"","name":"","siteContacts":[{"address":"","contactType":"","email":"","firstName":"","id":"","lastName":"","phone":"","title":""}],"siteSettings":{"activeViewOptOut":false,"adBlockingOptOut":false,"disableNewCookie":false,"tagSetting":{"additionalKeyValues":"","includeClickThroughUrls":false,"includeClickTracking":false,"keywordOption":""},"videoActiveViewOptOutTemplate":false,"vpaidAdapterChoiceTemplate":""},"subaccountId":"","videoSettings":{"companionSettings":{"companionsDisabled":false,"enabledSizes":[{"height":0,"iab":false,"id":"","kind":"","width":0}],"imageOnly":false,"kind":""},"kind":"","obaEnabled":false,"obaSettings":{"iconClickThroughUrl":"","iconClickTrackingUrl":"","iconViewTrackingUrl":"","program":"","resourceUrl":"","size":{},"xPosition":"","yPosition":""},"orientation":"","skippableSettings":{"kind":"","progressOffset":{"offsetPercentage":0,"offsetSeconds":0},"skipOffset":{},"skippable":false},"transcodeSettings":{"enabledVideoFormats":[],"kind":""}}}'
};

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 = @{ @"accountId": @"",
                              @"approved": @NO,
                              @"directorySiteId": @"",
                              @"directorySiteIdDimensionValue": @{ @"dimensionName": @"", @"etag": @"", @"id": @"", @"kind": @"", @"matchType": @"", @"value": @"" },
                              @"id": @"",
                              @"idDimensionValue": @{  },
                              @"keyName": @"",
                              @"kind": @"",
                              @"name": @"",
                              @"siteContacts": @[ @{ @"address": @"", @"contactType": @"", @"email": @"", @"firstName": @"", @"id": @"", @"lastName": @"", @"phone": @"", @"title": @"" } ],
                              @"siteSettings": @{ @"activeViewOptOut": @NO, @"adBlockingOptOut": @NO, @"disableNewCookie": @NO, @"tagSetting": @{ @"additionalKeyValues": @"", @"includeClickThroughUrls": @NO, @"includeClickTracking": @NO, @"keywordOption": @"" }, @"videoActiveViewOptOutTemplate": @NO, @"vpaidAdapterChoiceTemplate": @"" },
                              @"subaccountId": @"",
                              @"videoSettings": @{ @"companionSettings": @{ @"companionsDisabled": @NO, @"enabledSizes": @[ @{ @"height": @0, @"iab": @NO, @"id": @"", @"kind": @"", @"width": @0 } ], @"imageOnly": @NO, @"kind": @"" }, @"kind": @"", @"obaEnabled": @NO, @"obaSettings": @{ @"iconClickThroughUrl": @"", @"iconClickTrackingUrl": @"", @"iconViewTrackingUrl": @"", @"program": @"", @"resourceUrl": @"", @"size": @{  }, @"xPosition": @"", @"yPosition": @"" }, @"orientation": @"", @"skippableSettings": @{ @"kind": @"", @"progressOffset": @{ @"offsetPercentage": @0, @"offsetSeconds": @0 }, @"skipOffset": @{  }, @"skippable": @NO }, @"transcodeSettings": @{ @"enabledVideoFormats": @[  ], @"kind": @"" } } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/userprofiles/:profileId/sites?id="]
                                                       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}}/userprofiles/:profileId/sites?id=" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"accountId\": \"\",\n  \"approved\": false,\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteContacts\": [\n    {\n      \"address\": \"\",\n      \"contactType\": \"\",\n      \"email\": \"\",\n      \"firstName\": \"\",\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"phone\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"siteSettings\": {\n    \"activeViewOptOut\": false,\n    \"adBlockingOptOut\": false,\n    \"disableNewCookie\": false,\n    \"tagSetting\": {\n      \"additionalKeyValues\": \"\",\n      \"includeClickThroughUrls\": false,\n      \"includeClickTracking\": false,\n      \"keywordOption\": \"\"\n    },\n    \"videoActiveViewOptOutTemplate\": false,\n    \"vpaidAdapterChoiceTemplate\": \"\"\n  },\n  \"subaccountId\": \"\",\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {\n          \"height\": 0,\n          \"iab\": false,\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"width\": 0\n        }\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\n    }\n  }\n}" in

Client.call ~headers ~body `PATCH uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/sites?id=",
  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([
    'accountId' => '',
    'approved' => null,
    'directorySiteId' => '',
    'directorySiteIdDimensionValue' => [
        'dimensionName' => '',
        'etag' => '',
        'id' => '',
        'kind' => '',
        'matchType' => '',
        'value' => ''
    ],
    'id' => '',
    'idDimensionValue' => [
        
    ],
    'keyName' => '',
    'kind' => '',
    'name' => '',
    'siteContacts' => [
        [
                'address' => '',
                'contactType' => '',
                'email' => '',
                'firstName' => '',
                'id' => '',
                'lastName' => '',
                'phone' => '',
                'title' => ''
        ]
    ],
    'siteSettings' => [
        'activeViewOptOut' => null,
        'adBlockingOptOut' => null,
        'disableNewCookie' => null,
        'tagSetting' => [
                'additionalKeyValues' => '',
                'includeClickThroughUrls' => null,
                'includeClickTracking' => null,
                'keywordOption' => ''
        ],
        'videoActiveViewOptOutTemplate' => null,
        'vpaidAdapterChoiceTemplate' => ''
    ],
    'subaccountId' => '',
    'videoSettings' => [
        'companionSettings' => [
                'companionsDisabled' => null,
                'enabledSizes' => [
                                [
                                                                'height' => 0,
                                                                'iab' => null,
                                                                'id' => '',
                                                                'kind' => '',
                                                                'width' => 0
                                ]
                ],
                'imageOnly' => null,
                'kind' => ''
        ],
        'kind' => '',
        'obaEnabled' => null,
        'obaSettings' => [
                'iconClickThroughUrl' => '',
                'iconClickTrackingUrl' => '',
                'iconViewTrackingUrl' => '',
                'program' => '',
                'resourceUrl' => '',
                'size' => [
                                
                ],
                'xPosition' => '',
                'yPosition' => ''
        ],
        'orientation' => '',
        'skippableSettings' => [
                'kind' => '',
                'progressOffset' => [
                                'offsetPercentage' => 0,
                                'offsetSeconds' => 0
                ],
                'skipOffset' => [
                                
                ],
                'skippable' => null
        ],
        'transcodeSettings' => [
                'enabledVideoFormats' => [
                                
                ],
                'kind' => ''
        ]
    ]
  ]),
  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}}/userprofiles/:profileId/sites?id=', [
  'body' => '{
  "accountId": "",
  "approved": false,
  "directorySiteId": "",
  "directorySiteIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "id": "",
  "idDimensionValue": {},
  "keyName": "",
  "kind": "",
  "name": "",
  "siteContacts": [
    {
      "address": "",
      "contactType": "",
      "email": "",
      "firstName": "",
      "id": "",
      "lastName": "",
      "phone": "",
      "title": ""
    }
  ],
  "siteSettings": {
    "activeViewOptOut": false,
    "adBlockingOptOut": false,
    "disableNewCookie": false,
    "tagSetting": {
      "additionalKeyValues": "",
      "includeClickThroughUrls": false,
      "includeClickTracking": false,
      "keywordOption": ""
    },
    "videoActiveViewOptOutTemplate": false,
    "vpaidAdapterChoiceTemplate": ""
  },
  "subaccountId": "",
  "videoSettings": {
    "companionSettings": {
      "companionsDisabled": false,
      "enabledSizes": [
        {
          "height": 0,
          "iab": false,
          "id": "",
          "kind": "",
          "width": 0
        }
      ],
      "imageOnly": false,
      "kind": ""
    },
    "kind": "",
    "obaEnabled": false,
    "obaSettings": {
      "iconClickThroughUrl": "",
      "iconClickTrackingUrl": "",
      "iconViewTrackingUrl": "",
      "program": "",
      "resourceUrl": "",
      "size": {},
      "xPosition": "",
      "yPosition": ""
    },
    "orientation": "",
    "skippableSettings": {
      "kind": "",
      "progressOffset": {
        "offsetPercentage": 0,
        "offsetSeconds": 0
      },
      "skipOffset": {},
      "skippable": false
    },
    "transcodeSettings": {
      "enabledVideoFormats": [],
      "kind": ""
    }
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/sites');
$request->setMethod(HttpRequest::HTTP_METH_PATCH);

$request->setQueryData([
  'id' => ''
]);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'accountId' => '',
  'approved' => null,
  'directorySiteId' => '',
  'directorySiteIdDimensionValue' => [
    'dimensionName' => '',
    'etag' => '',
    'id' => '',
    'kind' => '',
    'matchType' => '',
    'value' => ''
  ],
  'id' => '',
  'idDimensionValue' => [
    
  ],
  'keyName' => '',
  'kind' => '',
  'name' => '',
  'siteContacts' => [
    [
        'address' => '',
        'contactType' => '',
        'email' => '',
        'firstName' => '',
        'id' => '',
        'lastName' => '',
        'phone' => '',
        'title' => ''
    ]
  ],
  'siteSettings' => [
    'activeViewOptOut' => null,
    'adBlockingOptOut' => null,
    'disableNewCookie' => null,
    'tagSetting' => [
        'additionalKeyValues' => '',
        'includeClickThroughUrls' => null,
        'includeClickTracking' => null,
        'keywordOption' => ''
    ],
    'videoActiveViewOptOutTemplate' => null,
    'vpaidAdapterChoiceTemplate' => ''
  ],
  'subaccountId' => '',
  'videoSettings' => [
    'companionSettings' => [
        'companionsDisabled' => null,
        'enabledSizes' => [
                [
                                'height' => 0,
                                'iab' => null,
                                'id' => '',
                                'kind' => '',
                                'width' => 0
                ]
        ],
        'imageOnly' => null,
        'kind' => ''
    ],
    'kind' => '',
    'obaEnabled' => null,
    'obaSettings' => [
        'iconClickThroughUrl' => '',
        'iconClickTrackingUrl' => '',
        'iconViewTrackingUrl' => '',
        'program' => '',
        'resourceUrl' => '',
        'size' => [
                
        ],
        'xPosition' => '',
        'yPosition' => ''
    ],
    'orientation' => '',
    'skippableSettings' => [
        'kind' => '',
        'progressOffset' => [
                'offsetPercentage' => 0,
                'offsetSeconds' => 0
        ],
        'skipOffset' => [
                
        ],
        'skippable' => null
    ],
    'transcodeSettings' => [
        'enabledVideoFormats' => [
                
        ],
        'kind' => ''
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'accountId' => '',
  'approved' => null,
  'directorySiteId' => '',
  'directorySiteIdDimensionValue' => [
    'dimensionName' => '',
    'etag' => '',
    'id' => '',
    'kind' => '',
    'matchType' => '',
    'value' => ''
  ],
  'id' => '',
  'idDimensionValue' => [
    
  ],
  'keyName' => '',
  'kind' => '',
  'name' => '',
  'siteContacts' => [
    [
        'address' => '',
        'contactType' => '',
        'email' => '',
        'firstName' => '',
        'id' => '',
        'lastName' => '',
        'phone' => '',
        'title' => ''
    ]
  ],
  'siteSettings' => [
    'activeViewOptOut' => null,
    'adBlockingOptOut' => null,
    'disableNewCookie' => null,
    'tagSetting' => [
        'additionalKeyValues' => '',
        'includeClickThroughUrls' => null,
        'includeClickTracking' => null,
        'keywordOption' => ''
    ],
    'videoActiveViewOptOutTemplate' => null,
    'vpaidAdapterChoiceTemplate' => ''
  ],
  'subaccountId' => '',
  'videoSettings' => [
    'companionSettings' => [
        'companionsDisabled' => null,
        'enabledSizes' => [
                [
                                'height' => 0,
                                'iab' => null,
                                'id' => '',
                                'kind' => '',
                                'width' => 0
                ]
        ],
        'imageOnly' => null,
        'kind' => ''
    ],
    'kind' => '',
    'obaEnabled' => null,
    'obaSettings' => [
        'iconClickThroughUrl' => '',
        'iconClickTrackingUrl' => '',
        'iconViewTrackingUrl' => '',
        'program' => '',
        'resourceUrl' => '',
        'size' => [
                
        ],
        'xPosition' => '',
        'yPosition' => ''
    ],
    'orientation' => '',
    'skippableSettings' => [
        'kind' => '',
        'progressOffset' => [
                'offsetPercentage' => 0,
                'offsetSeconds' => 0
        ],
        'skipOffset' => [
                
        ],
        'skippable' => null
    ],
    'transcodeSettings' => [
        'enabledVideoFormats' => [
                
        ],
        'kind' => ''
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/userprofiles/:profileId/sites');
$request->setRequestMethod('PATCH');
$request->setBody($body);

$request->setQuery(new http\QueryString([
  'id' => ''
]));

$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}}/userprofiles/:profileId/sites?id=' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "approved": false,
  "directorySiteId": "",
  "directorySiteIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "id": "",
  "idDimensionValue": {},
  "keyName": "",
  "kind": "",
  "name": "",
  "siteContacts": [
    {
      "address": "",
      "contactType": "",
      "email": "",
      "firstName": "",
      "id": "",
      "lastName": "",
      "phone": "",
      "title": ""
    }
  ],
  "siteSettings": {
    "activeViewOptOut": false,
    "adBlockingOptOut": false,
    "disableNewCookie": false,
    "tagSetting": {
      "additionalKeyValues": "",
      "includeClickThroughUrls": false,
      "includeClickTracking": false,
      "keywordOption": ""
    },
    "videoActiveViewOptOutTemplate": false,
    "vpaidAdapterChoiceTemplate": ""
  },
  "subaccountId": "",
  "videoSettings": {
    "companionSettings": {
      "companionsDisabled": false,
      "enabledSizes": [
        {
          "height": 0,
          "iab": false,
          "id": "",
          "kind": "",
          "width": 0
        }
      ],
      "imageOnly": false,
      "kind": ""
    },
    "kind": "",
    "obaEnabled": false,
    "obaSettings": {
      "iconClickThroughUrl": "",
      "iconClickTrackingUrl": "",
      "iconViewTrackingUrl": "",
      "program": "",
      "resourceUrl": "",
      "size": {},
      "xPosition": "",
      "yPosition": ""
    },
    "orientation": "",
    "skippableSettings": {
      "kind": "",
      "progressOffset": {
        "offsetPercentage": 0,
        "offsetSeconds": 0
      },
      "skipOffset": {},
      "skippable": false
    },
    "transcodeSettings": {
      "enabledVideoFormats": [],
      "kind": ""
    }
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/sites?id=' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "approved": false,
  "directorySiteId": "",
  "directorySiteIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "id": "",
  "idDimensionValue": {},
  "keyName": "",
  "kind": "",
  "name": "",
  "siteContacts": [
    {
      "address": "",
      "contactType": "",
      "email": "",
      "firstName": "",
      "id": "",
      "lastName": "",
      "phone": "",
      "title": ""
    }
  ],
  "siteSettings": {
    "activeViewOptOut": false,
    "adBlockingOptOut": false,
    "disableNewCookie": false,
    "tagSetting": {
      "additionalKeyValues": "",
      "includeClickThroughUrls": false,
      "includeClickTracking": false,
      "keywordOption": ""
    },
    "videoActiveViewOptOutTemplate": false,
    "vpaidAdapterChoiceTemplate": ""
  },
  "subaccountId": "",
  "videoSettings": {
    "companionSettings": {
      "companionsDisabled": false,
      "enabledSizes": [
        {
          "height": 0,
          "iab": false,
          "id": "",
          "kind": "",
          "width": 0
        }
      ],
      "imageOnly": false,
      "kind": ""
    },
    "kind": "",
    "obaEnabled": false,
    "obaSettings": {
      "iconClickThroughUrl": "",
      "iconClickTrackingUrl": "",
      "iconViewTrackingUrl": "",
      "program": "",
      "resourceUrl": "",
      "size": {},
      "xPosition": "",
      "yPosition": ""
    },
    "orientation": "",
    "skippableSettings": {
      "kind": "",
      "progressOffset": {
        "offsetPercentage": 0,
        "offsetSeconds": 0
      },
      "skipOffset": {},
      "skippable": false
    },
    "transcodeSettings": {
      "enabledVideoFormats": [],
      "kind": ""
    }
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"accountId\": \"\",\n  \"approved\": false,\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteContacts\": [\n    {\n      \"address\": \"\",\n      \"contactType\": \"\",\n      \"email\": \"\",\n      \"firstName\": \"\",\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"phone\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"siteSettings\": {\n    \"activeViewOptOut\": false,\n    \"adBlockingOptOut\": false,\n    \"disableNewCookie\": false,\n    \"tagSetting\": {\n      \"additionalKeyValues\": \"\",\n      \"includeClickThroughUrls\": false,\n      \"includeClickTracking\": false,\n      \"keywordOption\": \"\"\n    },\n    \"videoActiveViewOptOutTemplate\": false,\n    \"vpaidAdapterChoiceTemplate\": \"\"\n  },\n  \"subaccountId\": \"\",\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {\n          \"height\": 0,\n          \"iab\": false,\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"width\": 0\n        }\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\n    }\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("PATCH", "/baseUrl/userprofiles/:profileId/sites?id=", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/sites"

querystring = {"id":""}

payload = {
    "accountId": "",
    "approved": False,
    "directorySiteId": "",
    "directorySiteIdDimensionValue": {
        "dimensionName": "",
        "etag": "",
        "id": "",
        "kind": "",
        "matchType": "",
        "value": ""
    },
    "id": "",
    "idDimensionValue": {},
    "keyName": "",
    "kind": "",
    "name": "",
    "siteContacts": [
        {
            "address": "",
            "contactType": "",
            "email": "",
            "firstName": "",
            "id": "",
            "lastName": "",
            "phone": "",
            "title": ""
        }
    ],
    "siteSettings": {
        "activeViewOptOut": False,
        "adBlockingOptOut": False,
        "disableNewCookie": False,
        "tagSetting": {
            "additionalKeyValues": "",
            "includeClickThroughUrls": False,
            "includeClickTracking": False,
            "keywordOption": ""
        },
        "videoActiveViewOptOutTemplate": False,
        "vpaidAdapterChoiceTemplate": ""
    },
    "subaccountId": "",
    "videoSettings": {
        "companionSettings": {
            "companionsDisabled": False,
            "enabledSizes": [
                {
                    "height": 0,
                    "iab": False,
                    "id": "",
                    "kind": "",
                    "width": 0
                }
            ],
            "imageOnly": False,
            "kind": ""
        },
        "kind": "",
        "obaEnabled": False,
        "obaSettings": {
            "iconClickThroughUrl": "",
            "iconClickTrackingUrl": "",
            "iconViewTrackingUrl": "",
            "program": "",
            "resourceUrl": "",
            "size": {},
            "xPosition": "",
            "yPosition": ""
        },
        "orientation": "",
        "skippableSettings": {
            "kind": "",
            "progressOffset": {
                "offsetPercentage": 0,
                "offsetSeconds": 0
            },
            "skipOffset": {},
            "skippable": False
        },
        "transcodeSettings": {
            "enabledVideoFormats": [],
            "kind": ""
        }
    }
}
headers = {"content-type": "application/json"}

response = requests.patch(url, json=payload, headers=headers, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/sites"

queryString <- list(id = "")

payload <- "{\n  \"accountId\": \"\",\n  \"approved\": false,\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteContacts\": [\n    {\n      \"address\": \"\",\n      \"contactType\": \"\",\n      \"email\": \"\",\n      \"firstName\": \"\",\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"phone\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"siteSettings\": {\n    \"activeViewOptOut\": false,\n    \"adBlockingOptOut\": false,\n    \"disableNewCookie\": false,\n    \"tagSetting\": {\n      \"additionalKeyValues\": \"\",\n      \"includeClickThroughUrls\": false,\n      \"includeClickTracking\": false,\n      \"keywordOption\": \"\"\n    },\n    \"videoActiveViewOptOutTemplate\": false,\n    \"vpaidAdapterChoiceTemplate\": \"\"\n  },\n  \"subaccountId\": \"\",\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {\n          \"height\": 0,\n          \"iab\": false,\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"width\": 0\n        }\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\n    }\n  }\n}"

encode <- "json"

response <- VERB("PATCH", url, body = payload, query = queryString, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/sites?id=")

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  \"accountId\": \"\",\n  \"approved\": false,\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteContacts\": [\n    {\n      \"address\": \"\",\n      \"contactType\": \"\",\n      \"email\": \"\",\n      \"firstName\": \"\",\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"phone\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"siteSettings\": {\n    \"activeViewOptOut\": false,\n    \"adBlockingOptOut\": false,\n    \"disableNewCookie\": false,\n    \"tagSetting\": {\n      \"additionalKeyValues\": \"\",\n      \"includeClickThroughUrls\": false,\n      \"includeClickTracking\": false,\n      \"keywordOption\": \"\"\n    },\n    \"videoActiveViewOptOutTemplate\": false,\n    \"vpaidAdapterChoiceTemplate\": \"\"\n  },\n  \"subaccountId\": \"\",\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {\n          \"height\": 0,\n          \"iab\": false,\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"width\": 0\n        }\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\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.patch('/baseUrl/userprofiles/:profileId/sites') do |req|
  req.params['id'] = ''
  req.body = "{\n  \"accountId\": \"\",\n  \"approved\": false,\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteContacts\": [\n    {\n      \"address\": \"\",\n      \"contactType\": \"\",\n      \"email\": \"\",\n      \"firstName\": \"\",\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"phone\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"siteSettings\": {\n    \"activeViewOptOut\": false,\n    \"adBlockingOptOut\": false,\n    \"disableNewCookie\": false,\n    \"tagSetting\": {\n      \"additionalKeyValues\": \"\",\n      \"includeClickThroughUrls\": false,\n      \"includeClickTracking\": false,\n      \"keywordOption\": \"\"\n    },\n    \"videoActiveViewOptOutTemplate\": false,\n    \"vpaidAdapterChoiceTemplate\": \"\"\n  },\n  \"subaccountId\": \"\",\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {\n          \"height\": 0,\n          \"iab\": false,\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"width\": 0\n        }\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\n    }\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}}/userprofiles/:profileId/sites";

    let querystring = [
        ("id", ""),
    ];

    let payload = json!({
        "accountId": "",
        "approved": false,
        "directorySiteId": "",
        "directorySiteIdDimensionValue": json!({
            "dimensionName": "",
            "etag": "",
            "id": "",
            "kind": "",
            "matchType": "",
            "value": ""
        }),
        "id": "",
        "idDimensionValue": json!({}),
        "keyName": "",
        "kind": "",
        "name": "",
        "siteContacts": (
            json!({
                "address": "",
                "contactType": "",
                "email": "",
                "firstName": "",
                "id": "",
                "lastName": "",
                "phone": "",
                "title": ""
            })
        ),
        "siteSettings": json!({
            "activeViewOptOut": false,
            "adBlockingOptOut": false,
            "disableNewCookie": false,
            "tagSetting": json!({
                "additionalKeyValues": "",
                "includeClickThroughUrls": false,
                "includeClickTracking": false,
                "keywordOption": ""
            }),
            "videoActiveViewOptOutTemplate": false,
            "vpaidAdapterChoiceTemplate": ""
        }),
        "subaccountId": "",
        "videoSettings": json!({
            "companionSettings": json!({
                "companionsDisabled": false,
                "enabledSizes": (
                    json!({
                        "height": 0,
                        "iab": false,
                        "id": "",
                        "kind": "",
                        "width": 0
                    })
                ),
                "imageOnly": false,
                "kind": ""
            }),
            "kind": "",
            "obaEnabled": false,
            "obaSettings": json!({
                "iconClickThroughUrl": "",
                "iconClickTrackingUrl": "",
                "iconViewTrackingUrl": "",
                "program": "",
                "resourceUrl": "",
                "size": json!({}),
                "xPosition": "",
                "yPosition": ""
            }),
            "orientation": "",
            "skippableSettings": json!({
                "kind": "",
                "progressOffset": json!({
                    "offsetPercentage": 0,
                    "offsetSeconds": 0
                }),
                "skipOffset": json!({}),
                "skippable": false
            }),
            "transcodeSettings": json!({
                "enabledVideoFormats": (),
                "kind": ""
            })
        })
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PATCH").unwrap(), url)
        .query(&querystring)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PATCH \
  --url '{{baseUrl}}/userprofiles/:profileId/sites?id=' \
  --header 'content-type: application/json' \
  --data '{
  "accountId": "",
  "approved": false,
  "directorySiteId": "",
  "directorySiteIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "id": "",
  "idDimensionValue": {},
  "keyName": "",
  "kind": "",
  "name": "",
  "siteContacts": [
    {
      "address": "",
      "contactType": "",
      "email": "",
      "firstName": "",
      "id": "",
      "lastName": "",
      "phone": "",
      "title": ""
    }
  ],
  "siteSettings": {
    "activeViewOptOut": false,
    "adBlockingOptOut": false,
    "disableNewCookie": false,
    "tagSetting": {
      "additionalKeyValues": "",
      "includeClickThroughUrls": false,
      "includeClickTracking": false,
      "keywordOption": ""
    },
    "videoActiveViewOptOutTemplate": false,
    "vpaidAdapterChoiceTemplate": ""
  },
  "subaccountId": "",
  "videoSettings": {
    "companionSettings": {
      "companionsDisabled": false,
      "enabledSizes": [
        {
          "height": 0,
          "iab": false,
          "id": "",
          "kind": "",
          "width": 0
        }
      ],
      "imageOnly": false,
      "kind": ""
    },
    "kind": "",
    "obaEnabled": false,
    "obaSettings": {
      "iconClickThroughUrl": "",
      "iconClickTrackingUrl": "",
      "iconViewTrackingUrl": "",
      "program": "",
      "resourceUrl": "",
      "size": {},
      "xPosition": "",
      "yPosition": ""
    },
    "orientation": "",
    "skippableSettings": {
      "kind": "",
      "progressOffset": {
        "offsetPercentage": 0,
        "offsetSeconds": 0
      },
      "skipOffset": {},
      "skippable": false
    },
    "transcodeSettings": {
      "enabledVideoFormats": [],
      "kind": ""
    }
  }
}'
echo '{
  "accountId": "",
  "approved": false,
  "directorySiteId": "",
  "directorySiteIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "id": "",
  "idDimensionValue": {},
  "keyName": "",
  "kind": "",
  "name": "",
  "siteContacts": [
    {
      "address": "",
      "contactType": "",
      "email": "",
      "firstName": "",
      "id": "",
      "lastName": "",
      "phone": "",
      "title": ""
    }
  ],
  "siteSettings": {
    "activeViewOptOut": false,
    "adBlockingOptOut": false,
    "disableNewCookie": false,
    "tagSetting": {
      "additionalKeyValues": "",
      "includeClickThroughUrls": false,
      "includeClickTracking": false,
      "keywordOption": ""
    },
    "videoActiveViewOptOutTemplate": false,
    "vpaidAdapterChoiceTemplate": ""
  },
  "subaccountId": "",
  "videoSettings": {
    "companionSettings": {
      "companionsDisabled": false,
      "enabledSizes": [
        {
          "height": 0,
          "iab": false,
          "id": "",
          "kind": "",
          "width": 0
        }
      ],
      "imageOnly": false,
      "kind": ""
    },
    "kind": "",
    "obaEnabled": false,
    "obaSettings": {
      "iconClickThroughUrl": "",
      "iconClickTrackingUrl": "",
      "iconViewTrackingUrl": "",
      "program": "",
      "resourceUrl": "",
      "size": {},
      "xPosition": "",
      "yPosition": ""
    },
    "orientation": "",
    "skippableSettings": {
      "kind": "",
      "progressOffset": {
        "offsetPercentage": 0,
        "offsetSeconds": 0
      },
      "skipOffset": {},
      "skippable": false
    },
    "transcodeSettings": {
      "enabledVideoFormats": [],
      "kind": ""
    }
  }
}' |  \
  http PATCH '{{baseUrl}}/userprofiles/:profileId/sites?id=' \
  content-type:application/json
wget --quiet \
  --method PATCH \
  --header 'content-type: application/json' \
  --body-data '{\n  "accountId": "",\n  "approved": false,\n  "directorySiteId": "",\n  "directorySiteIdDimensionValue": {\n    "dimensionName": "",\n    "etag": "",\n    "id": "",\n    "kind": "",\n    "matchType": "",\n    "value": ""\n  },\n  "id": "",\n  "idDimensionValue": {},\n  "keyName": "",\n  "kind": "",\n  "name": "",\n  "siteContacts": [\n    {\n      "address": "",\n      "contactType": "",\n      "email": "",\n      "firstName": "",\n      "id": "",\n      "lastName": "",\n      "phone": "",\n      "title": ""\n    }\n  ],\n  "siteSettings": {\n    "activeViewOptOut": false,\n    "adBlockingOptOut": false,\n    "disableNewCookie": false,\n    "tagSetting": {\n      "additionalKeyValues": "",\n      "includeClickThroughUrls": false,\n      "includeClickTracking": false,\n      "keywordOption": ""\n    },\n    "videoActiveViewOptOutTemplate": false,\n    "vpaidAdapterChoiceTemplate": ""\n  },\n  "subaccountId": "",\n  "videoSettings": {\n    "companionSettings": {\n      "companionsDisabled": false,\n      "enabledSizes": [\n        {\n          "height": 0,\n          "iab": false,\n          "id": "",\n          "kind": "",\n          "width": 0\n        }\n      ],\n      "imageOnly": false,\n      "kind": ""\n    },\n    "kind": "",\n    "obaEnabled": false,\n    "obaSettings": {\n      "iconClickThroughUrl": "",\n      "iconClickTrackingUrl": "",\n      "iconViewTrackingUrl": "",\n      "program": "",\n      "resourceUrl": "",\n      "size": {},\n      "xPosition": "",\n      "yPosition": ""\n    },\n    "orientation": "",\n    "skippableSettings": {\n      "kind": "",\n      "progressOffset": {\n        "offsetPercentage": 0,\n        "offsetSeconds": 0\n      },\n      "skipOffset": {},\n      "skippable": false\n    },\n    "transcodeSettings": {\n      "enabledVideoFormats": [],\n      "kind": ""\n    }\n  }\n}' \
  --output-document \
  - '{{baseUrl}}/userprofiles/:profileId/sites?id='
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "accountId": "",
  "approved": false,
  "directorySiteId": "",
  "directorySiteIdDimensionValue": [
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  ],
  "id": "",
  "idDimensionValue": [],
  "keyName": "",
  "kind": "",
  "name": "",
  "siteContacts": [
    [
      "address": "",
      "contactType": "",
      "email": "",
      "firstName": "",
      "id": "",
      "lastName": "",
      "phone": "",
      "title": ""
    ]
  ],
  "siteSettings": [
    "activeViewOptOut": false,
    "adBlockingOptOut": false,
    "disableNewCookie": false,
    "tagSetting": [
      "additionalKeyValues": "",
      "includeClickThroughUrls": false,
      "includeClickTracking": false,
      "keywordOption": ""
    ],
    "videoActiveViewOptOutTemplate": false,
    "vpaidAdapterChoiceTemplate": ""
  ],
  "subaccountId": "",
  "videoSettings": [
    "companionSettings": [
      "companionsDisabled": false,
      "enabledSizes": [
        [
          "height": 0,
          "iab": false,
          "id": "",
          "kind": "",
          "width": 0
        ]
      ],
      "imageOnly": false,
      "kind": ""
    ],
    "kind": "",
    "obaEnabled": false,
    "obaSettings": [
      "iconClickThroughUrl": "",
      "iconClickTrackingUrl": "",
      "iconViewTrackingUrl": "",
      "program": "",
      "resourceUrl": "",
      "size": [],
      "xPosition": "",
      "yPosition": ""
    ],
    "orientation": "",
    "skippableSettings": [
      "kind": "",
      "progressOffset": [
        "offsetPercentage": 0,
        "offsetSeconds": 0
      ],
      "skipOffset": [],
      "skippable": false
    ],
    "transcodeSettings": [
      "enabledVideoFormats": [],
      "kind": ""
    ]
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/sites?id=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PATCH"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
PUT dfareporting.sites.update
{{baseUrl}}/userprofiles/:profileId/sites
QUERY PARAMS

profileId
BODY json

{
  "accountId": "",
  "approved": false,
  "directorySiteId": "",
  "directorySiteIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "id": "",
  "idDimensionValue": {},
  "keyName": "",
  "kind": "",
  "name": "",
  "siteContacts": [
    {
      "address": "",
      "contactType": "",
      "email": "",
      "firstName": "",
      "id": "",
      "lastName": "",
      "phone": "",
      "title": ""
    }
  ],
  "siteSettings": {
    "activeViewOptOut": false,
    "adBlockingOptOut": false,
    "disableNewCookie": false,
    "tagSetting": {
      "additionalKeyValues": "",
      "includeClickThroughUrls": false,
      "includeClickTracking": false,
      "keywordOption": ""
    },
    "videoActiveViewOptOutTemplate": false,
    "vpaidAdapterChoiceTemplate": ""
  },
  "subaccountId": "",
  "videoSettings": {
    "companionSettings": {
      "companionsDisabled": false,
      "enabledSizes": [
        {
          "height": 0,
          "iab": false,
          "id": "",
          "kind": "",
          "width": 0
        }
      ],
      "imageOnly": false,
      "kind": ""
    },
    "kind": "",
    "obaEnabled": false,
    "obaSettings": {
      "iconClickThroughUrl": "",
      "iconClickTrackingUrl": "",
      "iconViewTrackingUrl": "",
      "program": "",
      "resourceUrl": "",
      "size": {},
      "xPosition": "",
      "yPosition": ""
    },
    "orientation": "",
    "skippableSettings": {
      "kind": "",
      "progressOffset": {
        "offsetPercentage": 0,
        "offsetSeconds": 0
      },
      "skipOffset": {},
      "skippable": false
    },
    "transcodeSettings": {
      "enabledVideoFormats": [],
      "kind": ""
    }
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/sites");

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  \"accountId\": \"\",\n  \"approved\": false,\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteContacts\": [\n    {\n      \"address\": \"\",\n      \"contactType\": \"\",\n      \"email\": \"\",\n      \"firstName\": \"\",\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"phone\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"siteSettings\": {\n    \"activeViewOptOut\": false,\n    \"adBlockingOptOut\": false,\n    \"disableNewCookie\": false,\n    \"tagSetting\": {\n      \"additionalKeyValues\": \"\",\n      \"includeClickThroughUrls\": false,\n      \"includeClickTracking\": false,\n      \"keywordOption\": \"\"\n    },\n    \"videoActiveViewOptOutTemplate\": false,\n    \"vpaidAdapterChoiceTemplate\": \"\"\n  },\n  \"subaccountId\": \"\",\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {\n          \"height\": 0,\n          \"iab\": false,\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"width\": 0\n        }\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\n    }\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/userprofiles/:profileId/sites" {:content-type :json
                                                                         :form-params {:accountId ""
                                                                                       :approved false
                                                                                       :directorySiteId ""
                                                                                       :directorySiteIdDimensionValue {:dimensionName ""
                                                                                                                       :etag ""
                                                                                                                       :id ""
                                                                                                                       :kind ""
                                                                                                                       :matchType ""
                                                                                                                       :value ""}
                                                                                       :id ""
                                                                                       :idDimensionValue {}
                                                                                       :keyName ""
                                                                                       :kind ""
                                                                                       :name ""
                                                                                       :siteContacts [{:address ""
                                                                                                       :contactType ""
                                                                                                       :email ""
                                                                                                       :firstName ""
                                                                                                       :id ""
                                                                                                       :lastName ""
                                                                                                       :phone ""
                                                                                                       :title ""}]
                                                                                       :siteSettings {:activeViewOptOut false
                                                                                                      :adBlockingOptOut false
                                                                                                      :disableNewCookie false
                                                                                                      :tagSetting {:additionalKeyValues ""
                                                                                                                   :includeClickThroughUrls false
                                                                                                                   :includeClickTracking false
                                                                                                                   :keywordOption ""}
                                                                                                      :videoActiveViewOptOutTemplate false
                                                                                                      :vpaidAdapterChoiceTemplate ""}
                                                                                       :subaccountId ""
                                                                                       :videoSettings {:companionSettings {:companionsDisabled false
                                                                                                                           :enabledSizes [{:height 0
                                                                                                                                           :iab false
                                                                                                                                           :id ""
                                                                                                                                           :kind ""
                                                                                                                                           :width 0}]
                                                                                                                           :imageOnly false
                                                                                                                           :kind ""}
                                                                                                       :kind ""
                                                                                                       :obaEnabled false
                                                                                                       :obaSettings {:iconClickThroughUrl ""
                                                                                                                     :iconClickTrackingUrl ""
                                                                                                                     :iconViewTrackingUrl ""
                                                                                                                     :program ""
                                                                                                                     :resourceUrl ""
                                                                                                                     :size {}
                                                                                                                     :xPosition ""
                                                                                                                     :yPosition ""}
                                                                                                       :orientation ""
                                                                                                       :skippableSettings {:kind ""
                                                                                                                           :progressOffset {:offsetPercentage 0
                                                                                                                                            :offsetSeconds 0}
                                                                                                                           :skipOffset {}
                                                                                                                           :skippable false}
                                                                                                       :transcodeSettings {:enabledVideoFormats []
                                                                                                                           :kind ""}}}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/sites"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"accountId\": \"\",\n  \"approved\": false,\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteContacts\": [\n    {\n      \"address\": \"\",\n      \"contactType\": \"\",\n      \"email\": \"\",\n      \"firstName\": \"\",\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"phone\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"siteSettings\": {\n    \"activeViewOptOut\": false,\n    \"adBlockingOptOut\": false,\n    \"disableNewCookie\": false,\n    \"tagSetting\": {\n      \"additionalKeyValues\": \"\",\n      \"includeClickThroughUrls\": false,\n      \"includeClickTracking\": false,\n      \"keywordOption\": \"\"\n    },\n    \"videoActiveViewOptOutTemplate\": false,\n    \"vpaidAdapterChoiceTemplate\": \"\"\n  },\n  \"subaccountId\": \"\",\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {\n          \"height\": 0,\n          \"iab\": false,\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"width\": 0\n        }\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\n    }\n  }\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/userprofiles/:profileId/sites"),
    Content = new StringContent("{\n  \"accountId\": \"\",\n  \"approved\": false,\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteContacts\": [\n    {\n      \"address\": \"\",\n      \"contactType\": \"\",\n      \"email\": \"\",\n      \"firstName\": \"\",\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"phone\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"siteSettings\": {\n    \"activeViewOptOut\": false,\n    \"adBlockingOptOut\": false,\n    \"disableNewCookie\": false,\n    \"tagSetting\": {\n      \"additionalKeyValues\": \"\",\n      \"includeClickThroughUrls\": false,\n      \"includeClickTracking\": false,\n      \"keywordOption\": \"\"\n    },\n    \"videoActiveViewOptOutTemplate\": false,\n    \"vpaidAdapterChoiceTemplate\": \"\"\n  },\n  \"subaccountId\": \"\",\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {\n          \"height\": 0,\n          \"iab\": false,\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"width\": 0\n        }\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\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}}/userprofiles/:profileId/sites");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"accountId\": \"\",\n  \"approved\": false,\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteContacts\": [\n    {\n      \"address\": \"\",\n      \"contactType\": \"\",\n      \"email\": \"\",\n      \"firstName\": \"\",\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"phone\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"siteSettings\": {\n    \"activeViewOptOut\": false,\n    \"adBlockingOptOut\": false,\n    \"disableNewCookie\": false,\n    \"tagSetting\": {\n      \"additionalKeyValues\": \"\",\n      \"includeClickThroughUrls\": false,\n      \"includeClickTracking\": false,\n      \"keywordOption\": \"\"\n    },\n    \"videoActiveViewOptOutTemplate\": false,\n    \"vpaidAdapterChoiceTemplate\": \"\"\n  },\n  \"subaccountId\": \"\",\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {\n          \"height\": 0,\n          \"iab\": false,\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"width\": 0\n        }\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\n    }\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/sites"

	payload := strings.NewReader("{\n  \"accountId\": \"\",\n  \"approved\": false,\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteContacts\": [\n    {\n      \"address\": \"\",\n      \"contactType\": \"\",\n      \"email\": \"\",\n      \"firstName\": \"\",\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"phone\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"siteSettings\": {\n    \"activeViewOptOut\": false,\n    \"adBlockingOptOut\": false,\n    \"disableNewCookie\": false,\n    \"tagSetting\": {\n      \"additionalKeyValues\": \"\",\n      \"includeClickThroughUrls\": false,\n      \"includeClickTracking\": false,\n      \"keywordOption\": \"\"\n    },\n    \"videoActiveViewOptOutTemplate\": false,\n    \"vpaidAdapterChoiceTemplate\": \"\"\n  },\n  \"subaccountId\": \"\",\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {\n          \"height\": 0,\n          \"iab\": false,\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"width\": 0\n        }\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\n    }\n  }\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/userprofiles/:profileId/sites HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 1763

{
  "accountId": "",
  "approved": false,
  "directorySiteId": "",
  "directorySiteIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "id": "",
  "idDimensionValue": {},
  "keyName": "",
  "kind": "",
  "name": "",
  "siteContacts": [
    {
      "address": "",
      "contactType": "",
      "email": "",
      "firstName": "",
      "id": "",
      "lastName": "",
      "phone": "",
      "title": ""
    }
  ],
  "siteSettings": {
    "activeViewOptOut": false,
    "adBlockingOptOut": false,
    "disableNewCookie": false,
    "tagSetting": {
      "additionalKeyValues": "",
      "includeClickThroughUrls": false,
      "includeClickTracking": false,
      "keywordOption": ""
    },
    "videoActiveViewOptOutTemplate": false,
    "vpaidAdapterChoiceTemplate": ""
  },
  "subaccountId": "",
  "videoSettings": {
    "companionSettings": {
      "companionsDisabled": false,
      "enabledSizes": [
        {
          "height": 0,
          "iab": false,
          "id": "",
          "kind": "",
          "width": 0
        }
      ],
      "imageOnly": false,
      "kind": ""
    },
    "kind": "",
    "obaEnabled": false,
    "obaSettings": {
      "iconClickThroughUrl": "",
      "iconClickTrackingUrl": "",
      "iconViewTrackingUrl": "",
      "program": "",
      "resourceUrl": "",
      "size": {},
      "xPosition": "",
      "yPosition": ""
    },
    "orientation": "",
    "skippableSettings": {
      "kind": "",
      "progressOffset": {
        "offsetPercentage": 0,
        "offsetSeconds": 0
      },
      "skipOffset": {},
      "skippable": false
    },
    "transcodeSettings": {
      "enabledVideoFormats": [],
      "kind": ""
    }
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/userprofiles/:profileId/sites")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"accountId\": \"\",\n  \"approved\": false,\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteContacts\": [\n    {\n      \"address\": \"\",\n      \"contactType\": \"\",\n      \"email\": \"\",\n      \"firstName\": \"\",\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"phone\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"siteSettings\": {\n    \"activeViewOptOut\": false,\n    \"adBlockingOptOut\": false,\n    \"disableNewCookie\": false,\n    \"tagSetting\": {\n      \"additionalKeyValues\": \"\",\n      \"includeClickThroughUrls\": false,\n      \"includeClickTracking\": false,\n      \"keywordOption\": \"\"\n    },\n    \"videoActiveViewOptOutTemplate\": false,\n    \"vpaidAdapterChoiceTemplate\": \"\"\n  },\n  \"subaccountId\": \"\",\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {\n          \"height\": 0,\n          \"iab\": false,\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"width\": 0\n        }\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\n    }\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/sites"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"accountId\": \"\",\n  \"approved\": false,\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteContacts\": [\n    {\n      \"address\": \"\",\n      \"contactType\": \"\",\n      \"email\": \"\",\n      \"firstName\": \"\",\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"phone\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"siteSettings\": {\n    \"activeViewOptOut\": false,\n    \"adBlockingOptOut\": false,\n    \"disableNewCookie\": false,\n    \"tagSetting\": {\n      \"additionalKeyValues\": \"\",\n      \"includeClickThroughUrls\": false,\n      \"includeClickTracking\": false,\n      \"keywordOption\": \"\"\n    },\n    \"videoActiveViewOptOutTemplate\": false,\n    \"vpaidAdapterChoiceTemplate\": \"\"\n  },\n  \"subaccountId\": \"\",\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {\n          \"height\": 0,\n          \"iab\": false,\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"width\": 0\n        }\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\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  \"accountId\": \"\",\n  \"approved\": false,\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteContacts\": [\n    {\n      \"address\": \"\",\n      \"contactType\": \"\",\n      \"email\": \"\",\n      \"firstName\": \"\",\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"phone\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"siteSettings\": {\n    \"activeViewOptOut\": false,\n    \"adBlockingOptOut\": false,\n    \"disableNewCookie\": false,\n    \"tagSetting\": {\n      \"additionalKeyValues\": \"\",\n      \"includeClickThroughUrls\": false,\n      \"includeClickTracking\": false,\n      \"keywordOption\": \"\"\n    },\n    \"videoActiveViewOptOutTemplate\": false,\n    \"vpaidAdapterChoiceTemplate\": \"\"\n  },\n  \"subaccountId\": \"\",\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {\n          \"height\": 0,\n          \"iab\": false,\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"width\": 0\n        }\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\n    }\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/sites")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/userprofiles/:profileId/sites")
  .header("content-type", "application/json")
  .body("{\n  \"accountId\": \"\",\n  \"approved\": false,\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteContacts\": [\n    {\n      \"address\": \"\",\n      \"contactType\": \"\",\n      \"email\": \"\",\n      \"firstName\": \"\",\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"phone\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"siteSettings\": {\n    \"activeViewOptOut\": false,\n    \"adBlockingOptOut\": false,\n    \"disableNewCookie\": false,\n    \"tagSetting\": {\n      \"additionalKeyValues\": \"\",\n      \"includeClickThroughUrls\": false,\n      \"includeClickTracking\": false,\n      \"keywordOption\": \"\"\n    },\n    \"videoActiveViewOptOutTemplate\": false,\n    \"vpaidAdapterChoiceTemplate\": \"\"\n  },\n  \"subaccountId\": \"\",\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {\n          \"height\": 0,\n          \"iab\": false,\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"width\": 0\n        }\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\n    }\n  }\n}")
  .asString();
const data = JSON.stringify({
  accountId: '',
  approved: false,
  directorySiteId: '',
  directorySiteIdDimensionValue: {
    dimensionName: '',
    etag: '',
    id: '',
    kind: '',
    matchType: '',
    value: ''
  },
  id: '',
  idDimensionValue: {},
  keyName: '',
  kind: '',
  name: '',
  siteContacts: [
    {
      address: '',
      contactType: '',
      email: '',
      firstName: '',
      id: '',
      lastName: '',
      phone: '',
      title: ''
    }
  ],
  siteSettings: {
    activeViewOptOut: false,
    adBlockingOptOut: false,
    disableNewCookie: false,
    tagSetting: {
      additionalKeyValues: '',
      includeClickThroughUrls: false,
      includeClickTracking: false,
      keywordOption: ''
    },
    videoActiveViewOptOutTemplate: false,
    vpaidAdapterChoiceTemplate: ''
  },
  subaccountId: '',
  videoSettings: {
    companionSettings: {
      companionsDisabled: false,
      enabledSizes: [
        {
          height: 0,
          iab: false,
          id: '',
          kind: '',
          width: 0
        }
      ],
      imageOnly: false,
      kind: ''
    },
    kind: '',
    obaEnabled: false,
    obaSettings: {
      iconClickThroughUrl: '',
      iconClickTrackingUrl: '',
      iconViewTrackingUrl: '',
      program: '',
      resourceUrl: '',
      size: {},
      xPosition: '',
      yPosition: ''
    },
    orientation: '',
    skippableSettings: {
      kind: '',
      progressOffset: {
        offsetPercentage: 0,
        offsetSeconds: 0
      },
      skipOffset: {},
      skippable: false
    },
    transcodeSettings: {
      enabledVideoFormats: [],
      kind: ''
    }
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/userprofiles/:profileId/sites');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/userprofiles/:profileId/sites',
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    approved: false,
    directorySiteId: '',
    directorySiteIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    id: '',
    idDimensionValue: {},
    keyName: '',
    kind: '',
    name: '',
    siteContacts: [
      {
        address: '',
        contactType: '',
        email: '',
        firstName: '',
        id: '',
        lastName: '',
        phone: '',
        title: ''
      }
    ],
    siteSettings: {
      activeViewOptOut: false,
      adBlockingOptOut: false,
      disableNewCookie: false,
      tagSetting: {
        additionalKeyValues: '',
        includeClickThroughUrls: false,
        includeClickTracking: false,
        keywordOption: ''
      },
      videoActiveViewOptOutTemplate: false,
      vpaidAdapterChoiceTemplate: ''
    },
    subaccountId: '',
    videoSettings: {
      companionSettings: {
        companionsDisabled: false,
        enabledSizes: [{height: 0, iab: false, id: '', kind: '', width: 0}],
        imageOnly: false,
        kind: ''
      },
      kind: '',
      obaEnabled: false,
      obaSettings: {
        iconClickThroughUrl: '',
        iconClickTrackingUrl: '',
        iconViewTrackingUrl: '',
        program: '',
        resourceUrl: '',
        size: {},
        xPosition: '',
        yPosition: ''
      },
      orientation: '',
      skippableSettings: {
        kind: '',
        progressOffset: {offsetPercentage: 0, offsetSeconds: 0},
        skipOffset: {},
        skippable: false
      },
      transcodeSettings: {enabledVideoFormats: [], kind: ''}
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/sites';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","approved":false,"directorySiteId":"","directorySiteIdDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"id":"","idDimensionValue":{},"keyName":"","kind":"","name":"","siteContacts":[{"address":"","contactType":"","email":"","firstName":"","id":"","lastName":"","phone":"","title":""}],"siteSettings":{"activeViewOptOut":false,"adBlockingOptOut":false,"disableNewCookie":false,"tagSetting":{"additionalKeyValues":"","includeClickThroughUrls":false,"includeClickTracking":false,"keywordOption":""},"videoActiveViewOptOutTemplate":false,"vpaidAdapterChoiceTemplate":""},"subaccountId":"","videoSettings":{"companionSettings":{"companionsDisabled":false,"enabledSizes":[{"height":0,"iab":false,"id":"","kind":"","width":0}],"imageOnly":false,"kind":""},"kind":"","obaEnabled":false,"obaSettings":{"iconClickThroughUrl":"","iconClickTrackingUrl":"","iconViewTrackingUrl":"","program":"","resourceUrl":"","size":{},"xPosition":"","yPosition":""},"orientation":"","skippableSettings":{"kind":"","progressOffset":{"offsetPercentage":0,"offsetSeconds":0},"skipOffset":{},"skippable":false},"transcodeSettings":{"enabledVideoFormats":[],"kind":""}}}'
};

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}}/userprofiles/:profileId/sites',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "accountId": "",\n  "approved": false,\n  "directorySiteId": "",\n  "directorySiteIdDimensionValue": {\n    "dimensionName": "",\n    "etag": "",\n    "id": "",\n    "kind": "",\n    "matchType": "",\n    "value": ""\n  },\n  "id": "",\n  "idDimensionValue": {},\n  "keyName": "",\n  "kind": "",\n  "name": "",\n  "siteContacts": [\n    {\n      "address": "",\n      "contactType": "",\n      "email": "",\n      "firstName": "",\n      "id": "",\n      "lastName": "",\n      "phone": "",\n      "title": ""\n    }\n  ],\n  "siteSettings": {\n    "activeViewOptOut": false,\n    "adBlockingOptOut": false,\n    "disableNewCookie": false,\n    "tagSetting": {\n      "additionalKeyValues": "",\n      "includeClickThroughUrls": false,\n      "includeClickTracking": false,\n      "keywordOption": ""\n    },\n    "videoActiveViewOptOutTemplate": false,\n    "vpaidAdapterChoiceTemplate": ""\n  },\n  "subaccountId": "",\n  "videoSettings": {\n    "companionSettings": {\n      "companionsDisabled": false,\n      "enabledSizes": [\n        {\n          "height": 0,\n          "iab": false,\n          "id": "",\n          "kind": "",\n          "width": 0\n        }\n      ],\n      "imageOnly": false,\n      "kind": ""\n    },\n    "kind": "",\n    "obaEnabled": false,\n    "obaSettings": {\n      "iconClickThroughUrl": "",\n      "iconClickTrackingUrl": "",\n      "iconViewTrackingUrl": "",\n      "program": "",\n      "resourceUrl": "",\n      "size": {},\n      "xPosition": "",\n      "yPosition": ""\n    },\n    "orientation": "",\n    "skippableSettings": {\n      "kind": "",\n      "progressOffset": {\n        "offsetPercentage": 0,\n        "offsetSeconds": 0\n      },\n      "skipOffset": {},\n      "skippable": false\n    },\n    "transcodeSettings": {\n      "enabledVideoFormats": [],\n      "kind": ""\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  \"accountId\": \"\",\n  \"approved\": false,\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteContacts\": [\n    {\n      \"address\": \"\",\n      \"contactType\": \"\",\n      \"email\": \"\",\n      \"firstName\": \"\",\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"phone\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"siteSettings\": {\n    \"activeViewOptOut\": false,\n    \"adBlockingOptOut\": false,\n    \"disableNewCookie\": false,\n    \"tagSetting\": {\n      \"additionalKeyValues\": \"\",\n      \"includeClickThroughUrls\": false,\n      \"includeClickTracking\": false,\n      \"keywordOption\": \"\"\n    },\n    \"videoActiveViewOptOutTemplate\": false,\n    \"vpaidAdapterChoiceTemplate\": \"\"\n  },\n  \"subaccountId\": \"\",\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {\n          \"height\": 0,\n          \"iab\": false,\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"width\": 0\n        }\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\n    }\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/sites")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/sites',
  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({
  accountId: '',
  approved: false,
  directorySiteId: '',
  directorySiteIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
  id: '',
  idDimensionValue: {},
  keyName: '',
  kind: '',
  name: '',
  siteContacts: [
    {
      address: '',
      contactType: '',
      email: '',
      firstName: '',
      id: '',
      lastName: '',
      phone: '',
      title: ''
    }
  ],
  siteSettings: {
    activeViewOptOut: false,
    adBlockingOptOut: false,
    disableNewCookie: false,
    tagSetting: {
      additionalKeyValues: '',
      includeClickThroughUrls: false,
      includeClickTracking: false,
      keywordOption: ''
    },
    videoActiveViewOptOutTemplate: false,
    vpaidAdapterChoiceTemplate: ''
  },
  subaccountId: '',
  videoSettings: {
    companionSettings: {
      companionsDisabled: false,
      enabledSizes: [{height: 0, iab: false, id: '', kind: '', width: 0}],
      imageOnly: false,
      kind: ''
    },
    kind: '',
    obaEnabled: false,
    obaSettings: {
      iconClickThroughUrl: '',
      iconClickTrackingUrl: '',
      iconViewTrackingUrl: '',
      program: '',
      resourceUrl: '',
      size: {},
      xPosition: '',
      yPosition: ''
    },
    orientation: '',
    skippableSettings: {
      kind: '',
      progressOffset: {offsetPercentage: 0, offsetSeconds: 0},
      skipOffset: {},
      skippable: false
    },
    transcodeSettings: {enabledVideoFormats: [], kind: ''}
  }
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/userprofiles/:profileId/sites',
  headers: {'content-type': 'application/json'},
  body: {
    accountId: '',
    approved: false,
    directorySiteId: '',
    directorySiteIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    id: '',
    idDimensionValue: {},
    keyName: '',
    kind: '',
    name: '',
    siteContacts: [
      {
        address: '',
        contactType: '',
        email: '',
        firstName: '',
        id: '',
        lastName: '',
        phone: '',
        title: ''
      }
    ],
    siteSettings: {
      activeViewOptOut: false,
      adBlockingOptOut: false,
      disableNewCookie: false,
      tagSetting: {
        additionalKeyValues: '',
        includeClickThroughUrls: false,
        includeClickTracking: false,
        keywordOption: ''
      },
      videoActiveViewOptOutTemplate: false,
      vpaidAdapterChoiceTemplate: ''
    },
    subaccountId: '',
    videoSettings: {
      companionSettings: {
        companionsDisabled: false,
        enabledSizes: [{height: 0, iab: false, id: '', kind: '', width: 0}],
        imageOnly: false,
        kind: ''
      },
      kind: '',
      obaEnabled: false,
      obaSettings: {
        iconClickThroughUrl: '',
        iconClickTrackingUrl: '',
        iconViewTrackingUrl: '',
        program: '',
        resourceUrl: '',
        size: {},
        xPosition: '',
        yPosition: ''
      },
      orientation: '',
      skippableSettings: {
        kind: '',
        progressOffset: {offsetPercentage: 0, offsetSeconds: 0},
        skipOffset: {},
        skippable: false
      },
      transcodeSettings: {enabledVideoFormats: [], kind: ''}
    }
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/userprofiles/:profileId/sites');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  accountId: '',
  approved: false,
  directorySiteId: '',
  directorySiteIdDimensionValue: {
    dimensionName: '',
    etag: '',
    id: '',
    kind: '',
    matchType: '',
    value: ''
  },
  id: '',
  idDimensionValue: {},
  keyName: '',
  kind: '',
  name: '',
  siteContacts: [
    {
      address: '',
      contactType: '',
      email: '',
      firstName: '',
      id: '',
      lastName: '',
      phone: '',
      title: ''
    }
  ],
  siteSettings: {
    activeViewOptOut: false,
    adBlockingOptOut: false,
    disableNewCookie: false,
    tagSetting: {
      additionalKeyValues: '',
      includeClickThroughUrls: false,
      includeClickTracking: false,
      keywordOption: ''
    },
    videoActiveViewOptOutTemplate: false,
    vpaidAdapterChoiceTemplate: ''
  },
  subaccountId: '',
  videoSettings: {
    companionSettings: {
      companionsDisabled: false,
      enabledSizes: [
        {
          height: 0,
          iab: false,
          id: '',
          kind: '',
          width: 0
        }
      ],
      imageOnly: false,
      kind: ''
    },
    kind: '',
    obaEnabled: false,
    obaSettings: {
      iconClickThroughUrl: '',
      iconClickTrackingUrl: '',
      iconViewTrackingUrl: '',
      program: '',
      resourceUrl: '',
      size: {},
      xPosition: '',
      yPosition: ''
    },
    orientation: '',
    skippableSettings: {
      kind: '',
      progressOffset: {
        offsetPercentage: 0,
        offsetSeconds: 0
      },
      skipOffset: {},
      skippable: false
    },
    transcodeSettings: {
      enabledVideoFormats: [],
      kind: ''
    }
  }
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/userprofiles/:profileId/sites',
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    approved: false,
    directorySiteId: '',
    directorySiteIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    id: '',
    idDimensionValue: {},
    keyName: '',
    kind: '',
    name: '',
    siteContacts: [
      {
        address: '',
        contactType: '',
        email: '',
        firstName: '',
        id: '',
        lastName: '',
        phone: '',
        title: ''
      }
    ],
    siteSettings: {
      activeViewOptOut: false,
      adBlockingOptOut: false,
      disableNewCookie: false,
      tagSetting: {
        additionalKeyValues: '',
        includeClickThroughUrls: false,
        includeClickTracking: false,
        keywordOption: ''
      },
      videoActiveViewOptOutTemplate: false,
      vpaidAdapterChoiceTemplate: ''
    },
    subaccountId: '',
    videoSettings: {
      companionSettings: {
        companionsDisabled: false,
        enabledSizes: [{height: 0, iab: false, id: '', kind: '', width: 0}],
        imageOnly: false,
        kind: ''
      },
      kind: '',
      obaEnabled: false,
      obaSettings: {
        iconClickThroughUrl: '',
        iconClickTrackingUrl: '',
        iconViewTrackingUrl: '',
        program: '',
        resourceUrl: '',
        size: {},
        xPosition: '',
        yPosition: ''
      },
      orientation: '',
      skippableSettings: {
        kind: '',
        progressOffset: {offsetPercentage: 0, offsetSeconds: 0},
        skipOffset: {},
        skippable: false
      },
      transcodeSettings: {enabledVideoFormats: [], kind: ''}
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/sites';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","approved":false,"directorySiteId":"","directorySiteIdDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"id":"","idDimensionValue":{},"keyName":"","kind":"","name":"","siteContacts":[{"address":"","contactType":"","email":"","firstName":"","id":"","lastName":"","phone":"","title":""}],"siteSettings":{"activeViewOptOut":false,"adBlockingOptOut":false,"disableNewCookie":false,"tagSetting":{"additionalKeyValues":"","includeClickThroughUrls":false,"includeClickTracking":false,"keywordOption":""},"videoActiveViewOptOutTemplate":false,"vpaidAdapterChoiceTemplate":""},"subaccountId":"","videoSettings":{"companionSettings":{"companionsDisabled":false,"enabledSizes":[{"height":0,"iab":false,"id":"","kind":"","width":0}],"imageOnly":false,"kind":""},"kind":"","obaEnabled":false,"obaSettings":{"iconClickThroughUrl":"","iconClickTrackingUrl":"","iconViewTrackingUrl":"","program":"","resourceUrl":"","size":{},"xPosition":"","yPosition":""},"orientation":"","skippableSettings":{"kind":"","progressOffset":{"offsetPercentage":0,"offsetSeconds":0},"skipOffset":{},"skippable":false},"transcodeSettings":{"enabledVideoFormats":[],"kind":""}}}'
};

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 = @{ @"accountId": @"",
                              @"approved": @NO,
                              @"directorySiteId": @"",
                              @"directorySiteIdDimensionValue": @{ @"dimensionName": @"", @"etag": @"", @"id": @"", @"kind": @"", @"matchType": @"", @"value": @"" },
                              @"id": @"",
                              @"idDimensionValue": @{  },
                              @"keyName": @"",
                              @"kind": @"",
                              @"name": @"",
                              @"siteContacts": @[ @{ @"address": @"", @"contactType": @"", @"email": @"", @"firstName": @"", @"id": @"", @"lastName": @"", @"phone": @"", @"title": @"" } ],
                              @"siteSettings": @{ @"activeViewOptOut": @NO, @"adBlockingOptOut": @NO, @"disableNewCookie": @NO, @"tagSetting": @{ @"additionalKeyValues": @"", @"includeClickThroughUrls": @NO, @"includeClickTracking": @NO, @"keywordOption": @"" }, @"videoActiveViewOptOutTemplate": @NO, @"vpaidAdapterChoiceTemplate": @"" },
                              @"subaccountId": @"",
                              @"videoSettings": @{ @"companionSettings": @{ @"companionsDisabled": @NO, @"enabledSizes": @[ @{ @"height": @0, @"iab": @NO, @"id": @"", @"kind": @"", @"width": @0 } ], @"imageOnly": @NO, @"kind": @"" }, @"kind": @"", @"obaEnabled": @NO, @"obaSettings": @{ @"iconClickThroughUrl": @"", @"iconClickTrackingUrl": @"", @"iconViewTrackingUrl": @"", @"program": @"", @"resourceUrl": @"", @"size": @{  }, @"xPosition": @"", @"yPosition": @"" }, @"orientation": @"", @"skippableSettings": @{ @"kind": @"", @"progressOffset": @{ @"offsetPercentage": @0, @"offsetSeconds": @0 }, @"skipOffset": @{  }, @"skippable": @NO }, @"transcodeSettings": @{ @"enabledVideoFormats": @[  ], @"kind": @"" } } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/userprofiles/:profileId/sites"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/userprofiles/:profileId/sites" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"accountId\": \"\",\n  \"approved\": false,\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteContacts\": [\n    {\n      \"address\": \"\",\n      \"contactType\": \"\",\n      \"email\": \"\",\n      \"firstName\": \"\",\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"phone\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"siteSettings\": {\n    \"activeViewOptOut\": false,\n    \"adBlockingOptOut\": false,\n    \"disableNewCookie\": false,\n    \"tagSetting\": {\n      \"additionalKeyValues\": \"\",\n      \"includeClickThroughUrls\": false,\n      \"includeClickTracking\": false,\n      \"keywordOption\": \"\"\n    },\n    \"videoActiveViewOptOutTemplate\": false,\n    \"vpaidAdapterChoiceTemplate\": \"\"\n  },\n  \"subaccountId\": \"\",\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {\n          \"height\": 0,\n          \"iab\": false,\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"width\": 0\n        }\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\n    }\n  }\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/sites",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'accountId' => '',
    'approved' => null,
    'directorySiteId' => '',
    'directorySiteIdDimensionValue' => [
        'dimensionName' => '',
        'etag' => '',
        'id' => '',
        'kind' => '',
        'matchType' => '',
        'value' => ''
    ],
    'id' => '',
    'idDimensionValue' => [
        
    ],
    'keyName' => '',
    'kind' => '',
    'name' => '',
    'siteContacts' => [
        [
                'address' => '',
                'contactType' => '',
                'email' => '',
                'firstName' => '',
                'id' => '',
                'lastName' => '',
                'phone' => '',
                'title' => ''
        ]
    ],
    'siteSettings' => [
        'activeViewOptOut' => null,
        'adBlockingOptOut' => null,
        'disableNewCookie' => null,
        'tagSetting' => [
                'additionalKeyValues' => '',
                'includeClickThroughUrls' => null,
                'includeClickTracking' => null,
                'keywordOption' => ''
        ],
        'videoActiveViewOptOutTemplate' => null,
        'vpaidAdapterChoiceTemplate' => ''
    ],
    'subaccountId' => '',
    'videoSettings' => [
        'companionSettings' => [
                'companionsDisabled' => null,
                'enabledSizes' => [
                                [
                                                                'height' => 0,
                                                                'iab' => null,
                                                                'id' => '',
                                                                'kind' => '',
                                                                'width' => 0
                                ]
                ],
                'imageOnly' => null,
                'kind' => ''
        ],
        'kind' => '',
        'obaEnabled' => null,
        'obaSettings' => [
                'iconClickThroughUrl' => '',
                'iconClickTrackingUrl' => '',
                'iconViewTrackingUrl' => '',
                'program' => '',
                'resourceUrl' => '',
                'size' => [
                                
                ],
                'xPosition' => '',
                'yPosition' => ''
        ],
        'orientation' => '',
        'skippableSettings' => [
                'kind' => '',
                'progressOffset' => [
                                'offsetPercentage' => 0,
                                'offsetSeconds' => 0
                ],
                'skipOffset' => [
                                
                ],
                'skippable' => null
        ],
        'transcodeSettings' => [
                'enabledVideoFormats' => [
                                
                ],
                'kind' => ''
        ]
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/userprofiles/:profileId/sites', [
  'body' => '{
  "accountId": "",
  "approved": false,
  "directorySiteId": "",
  "directorySiteIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "id": "",
  "idDimensionValue": {},
  "keyName": "",
  "kind": "",
  "name": "",
  "siteContacts": [
    {
      "address": "",
      "contactType": "",
      "email": "",
      "firstName": "",
      "id": "",
      "lastName": "",
      "phone": "",
      "title": ""
    }
  ],
  "siteSettings": {
    "activeViewOptOut": false,
    "adBlockingOptOut": false,
    "disableNewCookie": false,
    "tagSetting": {
      "additionalKeyValues": "",
      "includeClickThroughUrls": false,
      "includeClickTracking": false,
      "keywordOption": ""
    },
    "videoActiveViewOptOutTemplate": false,
    "vpaidAdapterChoiceTemplate": ""
  },
  "subaccountId": "",
  "videoSettings": {
    "companionSettings": {
      "companionsDisabled": false,
      "enabledSizes": [
        {
          "height": 0,
          "iab": false,
          "id": "",
          "kind": "",
          "width": 0
        }
      ],
      "imageOnly": false,
      "kind": ""
    },
    "kind": "",
    "obaEnabled": false,
    "obaSettings": {
      "iconClickThroughUrl": "",
      "iconClickTrackingUrl": "",
      "iconViewTrackingUrl": "",
      "program": "",
      "resourceUrl": "",
      "size": {},
      "xPosition": "",
      "yPosition": ""
    },
    "orientation": "",
    "skippableSettings": {
      "kind": "",
      "progressOffset": {
        "offsetPercentage": 0,
        "offsetSeconds": 0
      },
      "skipOffset": {},
      "skippable": false
    },
    "transcodeSettings": {
      "enabledVideoFormats": [],
      "kind": ""
    }
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/sites');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'accountId' => '',
  'approved' => null,
  'directorySiteId' => '',
  'directorySiteIdDimensionValue' => [
    'dimensionName' => '',
    'etag' => '',
    'id' => '',
    'kind' => '',
    'matchType' => '',
    'value' => ''
  ],
  'id' => '',
  'idDimensionValue' => [
    
  ],
  'keyName' => '',
  'kind' => '',
  'name' => '',
  'siteContacts' => [
    [
        'address' => '',
        'contactType' => '',
        'email' => '',
        'firstName' => '',
        'id' => '',
        'lastName' => '',
        'phone' => '',
        'title' => ''
    ]
  ],
  'siteSettings' => [
    'activeViewOptOut' => null,
    'adBlockingOptOut' => null,
    'disableNewCookie' => null,
    'tagSetting' => [
        'additionalKeyValues' => '',
        'includeClickThroughUrls' => null,
        'includeClickTracking' => null,
        'keywordOption' => ''
    ],
    'videoActiveViewOptOutTemplate' => null,
    'vpaidAdapterChoiceTemplate' => ''
  ],
  'subaccountId' => '',
  'videoSettings' => [
    'companionSettings' => [
        'companionsDisabled' => null,
        'enabledSizes' => [
                [
                                'height' => 0,
                                'iab' => null,
                                'id' => '',
                                'kind' => '',
                                'width' => 0
                ]
        ],
        'imageOnly' => null,
        'kind' => ''
    ],
    'kind' => '',
    'obaEnabled' => null,
    'obaSettings' => [
        'iconClickThroughUrl' => '',
        'iconClickTrackingUrl' => '',
        'iconViewTrackingUrl' => '',
        'program' => '',
        'resourceUrl' => '',
        'size' => [
                
        ],
        'xPosition' => '',
        'yPosition' => ''
    ],
    'orientation' => '',
    'skippableSettings' => [
        'kind' => '',
        'progressOffset' => [
                'offsetPercentage' => 0,
                'offsetSeconds' => 0
        ],
        'skipOffset' => [
                
        ],
        'skippable' => null
    ],
    'transcodeSettings' => [
        'enabledVideoFormats' => [
                
        ],
        'kind' => ''
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'accountId' => '',
  'approved' => null,
  'directorySiteId' => '',
  'directorySiteIdDimensionValue' => [
    'dimensionName' => '',
    'etag' => '',
    'id' => '',
    'kind' => '',
    'matchType' => '',
    'value' => ''
  ],
  'id' => '',
  'idDimensionValue' => [
    
  ],
  'keyName' => '',
  'kind' => '',
  'name' => '',
  'siteContacts' => [
    [
        'address' => '',
        'contactType' => '',
        'email' => '',
        'firstName' => '',
        'id' => '',
        'lastName' => '',
        'phone' => '',
        'title' => ''
    ]
  ],
  'siteSettings' => [
    'activeViewOptOut' => null,
    'adBlockingOptOut' => null,
    'disableNewCookie' => null,
    'tagSetting' => [
        'additionalKeyValues' => '',
        'includeClickThroughUrls' => null,
        'includeClickTracking' => null,
        'keywordOption' => ''
    ],
    'videoActiveViewOptOutTemplate' => null,
    'vpaidAdapterChoiceTemplate' => ''
  ],
  'subaccountId' => '',
  'videoSettings' => [
    'companionSettings' => [
        'companionsDisabled' => null,
        'enabledSizes' => [
                [
                                'height' => 0,
                                'iab' => null,
                                'id' => '',
                                'kind' => '',
                                'width' => 0
                ]
        ],
        'imageOnly' => null,
        'kind' => ''
    ],
    'kind' => '',
    'obaEnabled' => null,
    'obaSettings' => [
        'iconClickThroughUrl' => '',
        'iconClickTrackingUrl' => '',
        'iconViewTrackingUrl' => '',
        'program' => '',
        'resourceUrl' => '',
        'size' => [
                
        ],
        'xPosition' => '',
        'yPosition' => ''
    ],
    'orientation' => '',
    'skippableSettings' => [
        'kind' => '',
        'progressOffset' => [
                'offsetPercentage' => 0,
                'offsetSeconds' => 0
        ],
        'skipOffset' => [
                
        ],
        'skippable' => null
    ],
    'transcodeSettings' => [
        'enabledVideoFormats' => [
                
        ],
        'kind' => ''
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/userprofiles/:profileId/sites');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/sites' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "approved": false,
  "directorySiteId": "",
  "directorySiteIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "id": "",
  "idDimensionValue": {},
  "keyName": "",
  "kind": "",
  "name": "",
  "siteContacts": [
    {
      "address": "",
      "contactType": "",
      "email": "",
      "firstName": "",
      "id": "",
      "lastName": "",
      "phone": "",
      "title": ""
    }
  ],
  "siteSettings": {
    "activeViewOptOut": false,
    "adBlockingOptOut": false,
    "disableNewCookie": false,
    "tagSetting": {
      "additionalKeyValues": "",
      "includeClickThroughUrls": false,
      "includeClickTracking": false,
      "keywordOption": ""
    },
    "videoActiveViewOptOutTemplate": false,
    "vpaidAdapterChoiceTemplate": ""
  },
  "subaccountId": "",
  "videoSettings": {
    "companionSettings": {
      "companionsDisabled": false,
      "enabledSizes": [
        {
          "height": 0,
          "iab": false,
          "id": "",
          "kind": "",
          "width": 0
        }
      ],
      "imageOnly": false,
      "kind": ""
    },
    "kind": "",
    "obaEnabled": false,
    "obaSettings": {
      "iconClickThroughUrl": "",
      "iconClickTrackingUrl": "",
      "iconViewTrackingUrl": "",
      "program": "",
      "resourceUrl": "",
      "size": {},
      "xPosition": "",
      "yPosition": ""
    },
    "orientation": "",
    "skippableSettings": {
      "kind": "",
      "progressOffset": {
        "offsetPercentage": 0,
        "offsetSeconds": 0
      },
      "skipOffset": {},
      "skippable": false
    },
    "transcodeSettings": {
      "enabledVideoFormats": [],
      "kind": ""
    }
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/sites' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "approved": false,
  "directorySiteId": "",
  "directorySiteIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "id": "",
  "idDimensionValue": {},
  "keyName": "",
  "kind": "",
  "name": "",
  "siteContacts": [
    {
      "address": "",
      "contactType": "",
      "email": "",
      "firstName": "",
      "id": "",
      "lastName": "",
      "phone": "",
      "title": ""
    }
  ],
  "siteSettings": {
    "activeViewOptOut": false,
    "adBlockingOptOut": false,
    "disableNewCookie": false,
    "tagSetting": {
      "additionalKeyValues": "",
      "includeClickThroughUrls": false,
      "includeClickTracking": false,
      "keywordOption": ""
    },
    "videoActiveViewOptOutTemplate": false,
    "vpaidAdapterChoiceTemplate": ""
  },
  "subaccountId": "",
  "videoSettings": {
    "companionSettings": {
      "companionsDisabled": false,
      "enabledSizes": [
        {
          "height": 0,
          "iab": false,
          "id": "",
          "kind": "",
          "width": 0
        }
      ],
      "imageOnly": false,
      "kind": ""
    },
    "kind": "",
    "obaEnabled": false,
    "obaSettings": {
      "iconClickThroughUrl": "",
      "iconClickTrackingUrl": "",
      "iconViewTrackingUrl": "",
      "program": "",
      "resourceUrl": "",
      "size": {},
      "xPosition": "",
      "yPosition": ""
    },
    "orientation": "",
    "skippableSettings": {
      "kind": "",
      "progressOffset": {
        "offsetPercentage": 0,
        "offsetSeconds": 0
      },
      "skipOffset": {},
      "skippable": false
    },
    "transcodeSettings": {
      "enabledVideoFormats": [],
      "kind": ""
    }
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"accountId\": \"\",\n  \"approved\": false,\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteContacts\": [\n    {\n      \"address\": \"\",\n      \"contactType\": \"\",\n      \"email\": \"\",\n      \"firstName\": \"\",\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"phone\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"siteSettings\": {\n    \"activeViewOptOut\": false,\n    \"adBlockingOptOut\": false,\n    \"disableNewCookie\": false,\n    \"tagSetting\": {\n      \"additionalKeyValues\": \"\",\n      \"includeClickThroughUrls\": false,\n      \"includeClickTracking\": false,\n      \"keywordOption\": \"\"\n    },\n    \"videoActiveViewOptOutTemplate\": false,\n    \"vpaidAdapterChoiceTemplate\": \"\"\n  },\n  \"subaccountId\": \"\",\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {\n          \"height\": 0,\n          \"iab\": false,\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"width\": 0\n        }\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\n    }\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/userprofiles/:profileId/sites", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/sites"

payload = {
    "accountId": "",
    "approved": False,
    "directorySiteId": "",
    "directorySiteIdDimensionValue": {
        "dimensionName": "",
        "etag": "",
        "id": "",
        "kind": "",
        "matchType": "",
        "value": ""
    },
    "id": "",
    "idDimensionValue": {},
    "keyName": "",
    "kind": "",
    "name": "",
    "siteContacts": [
        {
            "address": "",
            "contactType": "",
            "email": "",
            "firstName": "",
            "id": "",
            "lastName": "",
            "phone": "",
            "title": ""
        }
    ],
    "siteSettings": {
        "activeViewOptOut": False,
        "adBlockingOptOut": False,
        "disableNewCookie": False,
        "tagSetting": {
            "additionalKeyValues": "",
            "includeClickThroughUrls": False,
            "includeClickTracking": False,
            "keywordOption": ""
        },
        "videoActiveViewOptOutTemplate": False,
        "vpaidAdapterChoiceTemplate": ""
    },
    "subaccountId": "",
    "videoSettings": {
        "companionSettings": {
            "companionsDisabled": False,
            "enabledSizes": [
                {
                    "height": 0,
                    "iab": False,
                    "id": "",
                    "kind": "",
                    "width": 0
                }
            ],
            "imageOnly": False,
            "kind": ""
        },
        "kind": "",
        "obaEnabled": False,
        "obaSettings": {
            "iconClickThroughUrl": "",
            "iconClickTrackingUrl": "",
            "iconViewTrackingUrl": "",
            "program": "",
            "resourceUrl": "",
            "size": {},
            "xPosition": "",
            "yPosition": ""
        },
        "orientation": "",
        "skippableSettings": {
            "kind": "",
            "progressOffset": {
                "offsetPercentage": 0,
                "offsetSeconds": 0
            },
            "skipOffset": {},
            "skippable": False
        },
        "transcodeSettings": {
            "enabledVideoFormats": [],
            "kind": ""
        }
    }
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/sites"

payload <- "{\n  \"accountId\": \"\",\n  \"approved\": false,\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteContacts\": [\n    {\n      \"address\": \"\",\n      \"contactType\": \"\",\n      \"email\": \"\",\n      \"firstName\": \"\",\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"phone\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"siteSettings\": {\n    \"activeViewOptOut\": false,\n    \"adBlockingOptOut\": false,\n    \"disableNewCookie\": false,\n    \"tagSetting\": {\n      \"additionalKeyValues\": \"\",\n      \"includeClickThroughUrls\": false,\n      \"includeClickTracking\": false,\n      \"keywordOption\": \"\"\n    },\n    \"videoActiveViewOptOutTemplate\": false,\n    \"vpaidAdapterChoiceTemplate\": \"\"\n  },\n  \"subaccountId\": \"\",\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {\n          \"height\": 0,\n          \"iab\": false,\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"width\": 0\n        }\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\n    }\n  }\n}"

encode <- "json"

response <- VERB("PUT", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/sites")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"accountId\": \"\",\n  \"approved\": false,\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteContacts\": [\n    {\n      \"address\": \"\",\n      \"contactType\": \"\",\n      \"email\": \"\",\n      \"firstName\": \"\",\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"phone\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"siteSettings\": {\n    \"activeViewOptOut\": false,\n    \"adBlockingOptOut\": false,\n    \"disableNewCookie\": false,\n    \"tagSetting\": {\n      \"additionalKeyValues\": \"\",\n      \"includeClickThroughUrls\": false,\n      \"includeClickTracking\": false,\n      \"keywordOption\": \"\"\n    },\n    \"videoActiveViewOptOutTemplate\": false,\n    \"vpaidAdapterChoiceTemplate\": \"\"\n  },\n  \"subaccountId\": \"\",\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {\n          \"height\": 0,\n          \"iab\": false,\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"width\": 0\n        }\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\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.put('/baseUrl/userprofiles/:profileId/sites') do |req|
  req.body = "{\n  \"accountId\": \"\",\n  \"approved\": false,\n  \"directorySiteId\": \"\",\n  \"directorySiteIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"id\": \"\",\n  \"idDimensionValue\": {},\n  \"keyName\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"siteContacts\": [\n    {\n      \"address\": \"\",\n      \"contactType\": \"\",\n      \"email\": \"\",\n      \"firstName\": \"\",\n      \"id\": \"\",\n      \"lastName\": \"\",\n      \"phone\": \"\",\n      \"title\": \"\"\n    }\n  ],\n  \"siteSettings\": {\n    \"activeViewOptOut\": false,\n    \"adBlockingOptOut\": false,\n    \"disableNewCookie\": false,\n    \"tagSetting\": {\n      \"additionalKeyValues\": \"\",\n      \"includeClickThroughUrls\": false,\n      \"includeClickTracking\": false,\n      \"keywordOption\": \"\"\n    },\n    \"videoActiveViewOptOutTemplate\": false,\n    \"vpaidAdapterChoiceTemplate\": \"\"\n  },\n  \"subaccountId\": \"\",\n  \"videoSettings\": {\n    \"companionSettings\": {\n      \"companionsDisabled\": false,\n      \"enabledSizes\": [\n        {\n          \"height\": 0,\n          \"iab\": false,\n          \"id\": \"\",\n          \"kind\": \"\",\n          \"width\": 0\n        }\n      ],\n      \"imageOnly\": false,\n      \"kind\": \"\"\n    },\n    \"kind\": \"\",\n    \"obaEnabled\": false,\n    \"obaSettings\": {\n      \"iconClickThroughUrl\": \"\",\n      \"iconClickTrackingUrl\": \"\",\n      \"iconViewTrackingUrl\": \"\",\n      \"program\": \"\",\n      \"resourceUrl\": \"\",\n      \"size\": {},\n      \"xPosition\": \"\",\n      \"yPosition\": \"\"\n    },\n    \"orientation\": \"\",\n    \"skippableSettings\": {\n      \"kind\": \"\",\n      \"progressOffset\": {\n        \"offsetPercentage\": 0,\n        \"offsetSeconds\": 0\n      },\n      \"skipOffset\": {},\n      \"skippable\": false\n    },\n    \"transcodeSettings\": {\n      \"enabledVideoFormats\": [],\n      \"kind\": \"\"\n    }\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}}/userprofiles/:profileId/sites";

    let payload = json!({
        "accountId": "",
        "approved": false,
        "directorySiteId": "",
        "directorySiteIdDimensionValue": json!({
            "dimensionName": "",
            "etag": "",
            "id": "",
            "kind": "",
            "matchType": "",
            "value": ""
        }),
        "id": "",
        "idDimensionValue": json!({}),
        "keyName": "",
        "kind": "",
        "name": "",
        "siteContacts": (
            json!({
                "address": "",
                "contactType": "",
                "email": "",
                "firstName": "",
                "id": "",
                "lastName": "",
                "phone": "",
                "title": ""
            })
        ),
        "siteSettings": json!({
            "activeViewOptOut": false,
            "adBlockingOptOut": false,
            "disableNewCookie": false,
            "tagSetting": json!({
                "additionalKeyValues": "",
                "includeClickThroughUrls": false,
                "includeClickTracking": false,
                "keywordOption": ""
            }),
            "videoActiveViewOptOutTemplate": false,
            "vpaidAdapterChoiceTemplate": ""
        }),
        "subaccountId": "",
        "videoSettings": json!({
            "companionSettings": json!({
                "companionsDisabled": false,
                "enabledSizes": (
                    json!({
                        "height": 0,
                        "iab": false,
                        "id": "",
                        "kind": "",
                        "width": 0
                    })
                ),
                "imageOnly": false,
                "kind": ""
            }),
            "kind": "",
            "obaEnabled": false,
            "obaSettings": json!({
                "iconClickThroughUrl": "",
                "iconClickTrackingUrl": "",
                "iconViewTrackingUrl": "",
                "program": "",
                "resourceUrl": "",
                "size": json!({}),
                "xPosition": "",
                "yPosition": ""
            }),
            "orientation": "",
            "skippableSettings": json!({
                "kind": "",
                "progressOffset": json!({
                    "offsetPercentage": 0,
                    "offsetSeconds": 0
                }),
                "skipOffset": json!({}),
                "skippable": false
            }),
            "transcodeSettings": json!({
                "enabledVideoFormats": (),
                "kind": ""
            })
        })
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/userprofiles/:profileId/sites \
  --header 'content-type: application/json' \
  --data '{
  "accountId": "",
  "approved": false,
  "directorySiteId": "",
  "directorySiteIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "id": "",
  "idDimensionValue": {},
  "keyName": "",
  "kind": "",
  "name": "",
  "siteContacts": [
    {
      "address": "",
      "contactType": "",
      "email": "",
      "firstName": "",
      "id": "",
      "lastName": "",
      "phone": "",
      "title": ""
    }
  ],
  "siteSettings": {
    "activeViewOptOut": false,
    "adBlockingOptOut": false,
    "disableNewCookie": false,
    "tagSetting": {
      "additionalKeyValues": "",
      "includeClickThroughUrls": false,
      "includeClickTracking": false,
      "keywordOption": ""
    },
    "videoActiveViewOptOutTemplate": false,
    "vpaidAdapterChoiceTemplate": ""
  },
  "subaccountId": "",
  "videoSettings": {
    "companionSettings": {
      "companionsDisabled": false,
      "enabledSizes": [
        {
          "height": 0,
          "iab": false,
          "id": "",
          "kind": "",
          "width": 0
        }
      ],
      "imageOnly": false,
      "kind": ""
    },
    "kind": "",
    "obaEnabled": false,
    "obaSettings": {
      "iconClickThroughUrl": "",
      "iconClickTrackingUrl": "",
      "iconViewTrackingUrl": "",
      "program": "",
      "resourceUrl": "",
      "size": {},
      "xPosition": "",
      "yPosition": ""
    },
    "orientation": "",
    "skippableSettings": {
      "kind": "",
      "progressOffset": {
        "offsetPercentage": 0,
        "offsetSeconds": 0
      },
      "skipOffset": {},
      "skippable": false
    },
    "transcodeSettings": {
      "enabledVideoFormats": [],
      "kind": ""
    }
  }
}'
echo '{
  "accountId": "",
  "approved": false,
  "directorySiteId": "",
  "directorySiteIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "id": "",
  "idDimensionValue": {},
  "keyName": "",
  "kind": "",
  "name": "",
  "siteContacts": [
    {
      "address": "",
      "contactType": "",
      "email": "",
      "firstName": "",
      "id": "",
      "lastName": "",
      "phone": "",
      "title": ""
    }
  ],
  "siteSettings": {
    "activeViewOptOut": false,
    "adBlockingOptOut": false,
    "disableNewCookie": false,
    "tagSetting": {
      "additionalKeyValues": "",
      "includeClickThroughUrls": false,
      "includeClickTracking": false,
      "keywordOption": ""
    },
    "videoActiveViewOptOutTemplate": false,
    "vpaidAdapterChoiceTemplate": ""
  },
  "subaccountId": "",
  "videoSettings": {
    "companionSettings": {
      "companionsDisabled": false,
      "enabledSizes": [
        {
          "height": 0,
          "iab": false,
          "id": "",
          "kind": "",
          "width": 0
        }
      ],
      "imageOnly": false,
      "kind": ""
    },
    "kind": "",
    "obaEnabled": false,
    "obaSettings": {
      "iconClickThroughUrl": "",
      "iconClickTrackingUrl": "",
      "iconViewTrackingUrl": "",
      "program": "",
      "resourceUrl": "",
      "size": {},
      "xPosition": "",
      "yPosition": ""
    },
    "orientation": "",
    "skippableSettings": {
      "kind": "",
      "progressOffset": {
        "offsetPercentage": 0,
        "offsetSeconds": 0
      },
      "skipOffset": {},
      "skippable": false
    },
    "transcodeSettings": {
      "enabledVideoFormats": [],
      "kind": ""
    }
  }
}' |  \
  http PUT {{baseUrl}}/userprofiles/:profileId/sites \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "accountId": "",\n  "approved": false,\n  "directorySiteId": "",\n  "directorySiteIdDimensionValue": {\n    "dimensionName": "",\n    "etag": "",\n    "id": "",\n    "kind": "",\n    "matchType": "",\n    "value": ""\n  },\n  "id": "",\n  "idDimensionValue": {},\n  "keyName": "",\n  "kind": "",\n  "name": "",\n  "siteContacts": [\n    {\n      "address": "",\n      "contactType": "",\n      "email": "",\n      "firstName": "",\n      "id": "",\n      "lastName": "",\n      "phone": "",\n      "title": ""\n    }\n  ],\n  "siteSettings": {\n    "activeViewOptOut": false,\n    "adBlockingOptOut": false,\n    "disableNewCookie": false,\n    "tagSetting": {\n      "additionalKeyValues": "",\n      "includeClickThroughUrls": false,\n      "includeClickTracking": false,\n      "keywordOption": ""\n    },\n    "videoActiveViewOptOutTemplate": false,\n    "vpaidAdapterChoiceTemplate": ""\n  },\n  "subaccountId": "",\n  "videoSettings": {\n    "companionSettings": {\n      "companionsDisabled": false,\n      "enabledSizes": [\n        {\n          "height": 0,\n          "iab": false,\n          "id": "",\n          "kind": "",\n          "width": 0\n        }\n      ],\n      "imageOnly": false,\n      "kind": ""\n    },\n    "kind": "",\n    "obaEnabled": false,\n    "obaSettings": {\n      "iconClickThroughUrl": "",\n      "iconClickTrackingUrl": "",\n      "iconViewTrackingUrl": "",\n      "program": "",\n      "resourceUrl": "",\n      "size": {},\n      "xPosition": "",\n      "yPosition": ""\n    },\n    "orientation": "",\n    "skippableSettings": {\n      "kind": "",\n      "progressOffset": {\n        "offsetPercentage": 0,\n        "offsetSeconds": 0\n      },\n      "skipOffset": {},\n      "skippable": false\n    },\n    "transcodeSettings": {\n      "enabledVideoFormats": [],\n      "kind": ""\n    }\n  }\n}' \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/sites
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "accountId": "",
  "approved": false,
  "directorySiteId": "",
  "directorySiteIdDimensionValue": [
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  ],
  "id": "",
  "idDimensionValue": [],
  "keyName": "",
  "kind": "",
  "name": "",
  "siteContacts": [
    [
      "address": "",
      "contactType": "",
      "email": "",
      "firstName": "",
      "id": "",
      "lastName": "",
      "phone": "",
      "title": ""
    ]
  ],
  "siteSettings": [
    "activeViewOptOut": false,
    "adBlockingOptOut": false,
    "disableNewCookie": false,
    "tagSetting": [
      "additionalKeyValues": "",
      "includeClickThroughUrls": false,
      "includeClickTracking": false,
      "keywordOption": ""
    ],
    "videoActiveViewOptOutTemplate": false,
    "vpaidAdapterChoiceTemplate": ""
  ],
  "subaccountId": "",
  "videoSettings": [
    "companionSettings": [
      "companionsDisabled": false,
      "enabledSizes": [
        [
          "height": 0,
          "iab": false,
          "id": "",
          "kind": "",
          "width": 0
        ]
      ],
      "imageOnly": false,
      "kind": ""
    ],
    "kind": "",
    "obaEnabled": false,
    "obaSettings": [
      "iconClickThroughUrl": "",
      "iconClickTrackingUrl": "",
      "iconViewTrackingUrl": "",
      "program": "",
      "resourceUrl": "",
      "size": [],
      "xPosition": "",
      "yPosition": ""
    ],
    "orientation": "",
    "skippableSettings": [
      "kind": "",
      "progressOffset": [
        "offsetPercentage": 0,
        "offsetSeconds": 0
      ],
      "skipOffset": [],
      "skippable": false
    ],
    "transcodeSettings": [
      "enabledVideoFormats": [],
      "kind": ""
    ]
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/sites")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET dfareporting.sizes.get
{{baseUrl}}/userprofiles/:profileId/sizes/:id
QUERY PARAMS

profileId
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/sizes/:id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/sizes/:id")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/sizes/:id"

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}}/userprofiles/:profileId/sizes/:id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/sizes/:id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/sizes/:id"

	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/userprofiles/:profileId/sizes/:id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/sizes/:id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/sizes/:id"))
    .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}}/userprofiles/:profileId/sizes/:id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/sizes/:id")
  .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}}/userprofiles/:profileId/sizes/:id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/sizes/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/sizes/:id';
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}}/userprofiles/:profileId/sizes/:id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/sizes/:id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/sizes/:id',
  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}}/userprofiles/:profileId/sizes/:id'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/sizes/:id');

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}}/userprofiles/:profileId/sizes/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/sizes/:id';
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}}/userprofiles/:profileId/sizes/:id"]
                                                       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}}/userprofiles/:profileId/sizes/:id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/sizes/:id",
  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}}/userprofiles/:profileId/sizes/:id');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/sizes/:id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/sizes/:id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/sizes/:id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/sizes/:id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/sizes/:id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/sizes/:id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/sizes/:id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/sizes/:id")

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/userprofiles/:profileId/sizes/:id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/sizes/:id";

    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}}/userprofiles/:profileId/sizes/:id
http GET {{baseUrl}}/userprofiles/:profileId/sizes/:id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/sizes/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/sizes/:id")! 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 dfareporting.sizes.insert
{{baseUrl}}/userprofiles/:profileId/sizes
QUERY PARAMS

profileId
BODY json

{
  "height": 0,
  "iab": false,
  "id": "",
  "kind": "",
  "width": 0
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/sizes");

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  \"height\": 0,\n  \"iab\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"width\": 0\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/userprofiles/:profileId/sizes" {:content-type :json
                                                                          :form-params {:height 0
                                                                                        :iab false
                                                                                        :id ""
                                                                                        :kind ""
                                                                                        :width 0}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/sizes"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"height\": 0,\n  \"iab\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"width\": 0\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}}/userprofiles/:profileId/sizes"),
    Content = new StringContent("{\n  \"height\": 0,\n  \"iab\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"width\": 0\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}}/userprofiles/:profileId/sizes");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"height\": 0,\n  \"iab\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"width\": 0\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/sizes"

	payload := strings.NewReader("{\n  \"height\": 0,\n  \"iab\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"width\": 0\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/userprofiles/:profileId/sizes HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 73

{
  "height": 0,
  "iab": false,
  "id": "",
  "kind": "",
  "width": 0
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/userprofiles/:profileId/sizes")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"height\": 0,\n  \"iab\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"width\": 0\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/sizes"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"height\": 0,\n  \"iab\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"width\": 0\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  \"height\": 0,\n  \"iab\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"width\": 0\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/sizes")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/userprofiles/:profileId/sizes")
  .header("content-type", "application/json")
  .body("{\n  \"height\": 0,\n  \"iab\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"width\": 0\n}")
  .asString();
const data = JSON.stringify({
  height: 0,
  iab: false,
  id: '',
  kind: '',
  width: 0
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/userprofiles/:profileId/sizes');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/userprofiles/:profileId/sizes',
  headers: {'content-type': 'application/json'},
  data: {height: 0, iab: false, id: '', kind: '', width: 0}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/sizes';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"height":0,"iab":false,"id":"","kind":"","width":0}'
};

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}}/userprofiles/:profileId/sizes',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "height": 0,\n  "iab": false,\n  "id": "",\n  "kind": "",\n  "width": 0\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"height\": 0,\n  \"iab\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"width\": 0\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/sizes")
  .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/userprofiles/:profileId/sizes',
  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({height: 0, iab: false, id: '', kind: '', width: 0}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/userprofiles/:profileId/sizes',
  headers: {'content-type': 'application/json'},
  body: {height: 0, iab: false, id: '', kind: '', width: 0},
  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}}/userprofiles/:profileId/sizes');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  height: 0,
  iab: false,
  id: '',
  kind: '',
  width: 0
});

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}}/userprofiles/:profileId/sizes',
  headers: {'content-type': 'application/json'},
  data: {height: 0, iab: false, id: '', kind: '', width: 0}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/sizes';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"height":0,"iab":false,"id":"","kind":"","width":0}'
};

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 = @{ @"height": @0,
                              @"iab": @NO,
                              @"id": @"",
                              @"kind": @"",
                              @"width": @0 };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/userprofiles/:profileId/sizes"]
                                                       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}}/userprofiles/:profileId/sizes" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"height\": 0,\n  \"iab\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"width\": 0\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/sizes",
  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([
    'height' => 0,
    'iab' => null,
    'id' => '',
    'kind' => '',
    'width' => 0
  ]),
  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}}/userprofiles/:profileId/sizes', [
  'body' => '{
  "height": 0,
  "iab": false,
  "id": "",
  "kind": "",
  "width": 0
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/sizes');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'height' => 0,
  'iab' => null,
  'id' => '',
  'kind' => '',
  'width' => 0
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'height' => 0,
  'iab' => null,
  'id' => '',
  'kind' => '',
  'width' => 0
]));
$request->setRequestUrl('{{baseUrl}}/userprofiles/:profileId/sizes');
$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}}/userprofiles/:profileId/sizes' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "height": 0,
  "iab": false,
  "id": "",
  "kind": "",
  "width": 0
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/sizes' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "height": 0,
  "iab": false,
  "id": "",
  "kind": "",
  "width": 0
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"height\": 0,\n  \"iab\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"width\": 0\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/userprofiles/:profileId/sizes", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/sizes"

payload = {
    "height": 0,
    "iab": False,
    "id": "",
    "kind": "",
    "width": 0
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/sizes"

payload <- "{\n  \"height\": 0,\n  \"iab\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"width\": 0\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}}/userprofiles/:profileId/sizes")

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  \"height\": 0,\n  \"iab\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"width\": 0\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/userprofiles/:profileId/sizes') do |req|
  req.body = "{\n  \"height\": 0,\n  \"iab\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"width\": 0\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/sizes";

    let payload = json!({
        "height": 0,
        "iab": false,
        "id": "",
        "kind": "",
        "width": 0
    });

    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}}/userprofiles/:profileId/sizes \
  --header 'content-type: application/json' \
  --data '{
  "height": 0,
  "iab": false,
  "id": "",
  "kind": "",
  "width": 0
}'
echo '{
  "height": 0,
  "iab": false,
  "id": "",
  "kind": "",
  "width": 0
}' |  \
  http POST {{baseUrl}}/userprofiles/:profileId/sizes \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "height": 0,\n  "iab": false,\n  "id": "",\n  "kind": "",\n  "width": 0\n}' \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/sizes
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "height": 0,
  "iab": false,
  "id": "",
  "kind": "",
  "width": 0
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/sizes")! 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 dfareporting.sizes.list
{{baseUrl}}/userprofiles/:profileId/sizes
QUERY PARAMS

profileId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/sizes");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/sizes")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/sizes"

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}}/userprofiles/:profileId/sizes"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/sizes");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/sizes"

	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/userprofiles/:profileId/sizes HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/sizes")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/sizes"))
    .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}}/userprofiles/:profileId/sizes")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/sizes")
  .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}}/userprofiles/:profileId/sizes');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/sizes'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/sizes';
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}}/userprofiles/:profileId/sizes',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/sizes")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/sizes',
  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}}/userprofiles/:profileId/sizes'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/sizes');

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}}/userprofiles/:profileId/sizes'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/sizes';
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}}/userprofiles/:profileId/sizes"]
                                                       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}}/userprofiles/:profileId/sizes" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/sizes",
  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}}/userprofiles/:profileId/sizes');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/sizes');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/sizes');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/sizes' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/sizes' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/sizes")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/sizes"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/sizes"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/sizes")

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/userprofiles/:profileId/sizes') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/sizes";

    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}}/userprofiles/:profileId/sizes
http GET {{baseUrl}}/userprofiles/:profileId/sizes
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/sizes
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/sizes")! 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 dfareporting.subaccounts.get
{{baseUrl}}/userprofiles/:profileId/subaccounts/:id
QUERY PARAMS

profileId
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/subaccounts/:id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/subaccounts/:id")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/subaccounts/:id"

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}}/userprofiles/:profileId/subaccounts/:id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/subaccounts/:id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/subaccounts/:id"

	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/userprofiles/:profileId/subaccounts/:id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/subaccounts/:id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/subaccounts/:id"))
    .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}}/userprofiles/:profileId/subaccounts/:id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/subaccounts/:id")
  .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}}/userprofiles/:profileId/subaccounts/:id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/subaccounts/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/subaccounts/:id';
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}}/userprofiles/:profileId/subaccounts/:id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/subaccounts/:id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/subaccounts/:id',
  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}}/userprofiles/:profileId/subaccounts/:id'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/subaccounts/:id');

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}}/userprofiles/:profileId/subaccounts/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/subaccounts/:id';
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}}/userprofiles/:profileId/subaccounts/:id"]
                                                       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}}/userprofiles/:profileId/subaccounts/:id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/subaccounts/:id",
  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}}/userprofiles/:profileId/subaccounts/:id');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/subaccounts/:id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/subaccounts/:id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/subaccounts/:id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/subaccounts/:id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/subaccounts/:id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/subaccounts/:id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/subaccounts/:id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/subaccounts/:id")

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/userprofiles/:profileId/subaccounts/:id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/subaccounts/:id";

    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}}/userprofiles/:profileId/subaccounts/:id
http GET {{baseUrl}}/userprofiles/:profileId/subaccounts/:id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/subaccounts/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/subaccounts/:id")! 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 dfareporting.subaccounts.insert
{{baseUrl}}/userprofiles/:profileId/subaccounts
QUERY PARAMS

profileId
BODY json

{
  "accountId": "",
  "availablePermissionIds": [],
  "id": "",
  "kind": "",
  "name": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/subaccounts");

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  \"accountId\": \"\",\n  \"availablePermissionIds\": [],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/userprofiles/:profileId/subaccounts" {:content-type :json
                                                                                :form-params {:accountId ""
                                                                                              :availablePermissionIds []
                                                                                              :id ""
                                                                                              :kind ""
                                                                                              :name ""}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/subaccounts"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"accountId\": \"\",\n  \"availablePermissionIds\": [],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"

response = HTTP::Client.post url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("{{baseUrl}}/userprofiles/:profileId/subaccounts"),
    Content = new StringContent("{\n  \"accountId\": \"\",\n  \"availablePermissionIds\": [],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/subaccounts");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"accountId\": \"\",\n  \"availablePermissionIds\": [],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/subaccounts"

	payload := strings.NewReader("{\n  \"accountId\": \"\",\n  \"availablePermissionIds\": [],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
POST /baseUrl/userprofiles/:profileId/subaccounts HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 93

{
  "accountId": "",
  "availablePermissionIds": [],
  "id": "",
  "kind": "",
  "name": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/userprofiles/:profileId/subaccounts")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"accountId\": \"\",\n  \"availablePermissionIds\": [],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/subaccounts"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"accountId\": \"\",\n  \"availablePermissionIds\": [],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"accountId\": \"\",\n  \"availablePermissionIds\": [],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/subaccounts")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/userprofiles/:profileId/subaccounts")
  .header("content-type", "application/json")
  .body("{\n  \"accountId\": \"\",\n  \"availablePermissionIds\": [],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  accountId: '',
  availablePermissionIds: [],
  id: '',
  kind: '',
  name: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/userprofiles/:profileId/subaccounts');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/userprofiles/:profileId/subaccounts',
  headers: {'content-type': 'application/json'},
  data: {accountId: '', availablePermissionIds: [], id: '', kind: '', name: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/subaccounts';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","availablePermissionIds":[],"id":"","kind":"","name":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/userprofiles/:profileId/subaccounts',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "accountId": "",\n  "availablePermissionIds": [],\n  "id": "",\n  "kind": "",\n  "name": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"accountId\": \"\",\n  \"availablePermissionIds\": [],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/subaccounts")
  .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/userprofiles/:profileId/subaccounts',
  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({accountId: '', availablePermissionIds: [], id: '', kind: '', name: ''}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/userprofiles/:profileId/subaccounts',
  headers: {'content-type': 'application/json'},
  body: {accountId: '', availablePermissionIds: [], id: '', kind: '', name: ''},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/userprofiles/:profileId/subaccounts');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  accountId: '',
  availablePermissionIds: [],
  id: '',
  kind: '',
  name: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/userprofiles/:profileId/subaccounts',
  headers: {'content-type': 'application/json'},
  data: {accountId: '', availablePermissionIds: [], id: '', kind: '', name: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/subaccounts';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","availablePermissionIds":[],"id":"","kind":"","name":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"accountId": @"",
                              @"availablePermissionIds": @[  ],
                              @"id": @"",
                              @"kind": @"",
                              @"name": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/userprofiles/:profileId/subaccounts"]
                                                       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}}/userprofiles/:profileId/subaccounts" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"accountId\": \"\",\n  \"availablePermissionIds\": [],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/subaccounts",
  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([
    'accountId' => '',
    'availablePermissionIds' => [
        
    ],
    'id' => '',
    'kind' => '',
    'name' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/userprofiles/:profileId/subaccounts', [
  'body' => '{
  "accountId": "",
  "availablePermissionIds": [],
  "id": "",
  "kind": "",
  "name": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/subaccounts');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'accountId' => '',
  'availablePermissionIds' => [
    
  ],
  'id' => '',
  'kind' => '',
  'name' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'accountId' => '',
  'availablePermissionIds' => [
    
  ],
  'id' => '',
  'kind' => '',
  'name' => ''
]));
$request->setRequestUrl('{{baseUrl}}/userprofiles/:profileId/subaccounts');
$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}}/userprofiles/:profileId/subaccounts' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "availablePermissionIds": [],
  "id": "",
  "kind": "",
  "name": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/subaccounts' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "availablePermissionIds": [],
  "id": "",
  "kind": "",
  "name": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"accountId\": \"\",\n  \"availablePermissionIds\": [],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/userprofiles/:profileId/subaccounts", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/subaccounts"

payload = {
    "accountId": "",
    "availablePermissionIds": [],
    "id": "",
    "kind": "",
    "name": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/subaccounts"

payload <- "{\n  \"accountId\": \"\",\n  \"availablePermissionIds\": [],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"

encode <- "json"

response <- VERB("POST", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/subaccounts")

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  \"accountId\": \"\",\n  \"availablePermissionIds\": [],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.post('/baseUrl/userprofiles/:profileId/subaccounts') do |req|
  req.body = "{\n  \"accountId\": \"\",\n  \"availablePermissionIds\": [],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/subaccounts";

    let payload = json!({
        "accountId": "",
        "availablePermissionIds": (),
        "id": "",
        "kind": "",
        "name": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/userprofiles/:profileId/subaccounts \
  --header 'content-type: application/json' \
  --data '{
  "accountId": "",
  "availablePermissionIds": [],
  "id": "",
  "kind": "",
  "name": ""
}'
echo '{
  "accountId": "",
  "availablePermissionIds": [],
  "id": "",
  "kind": "",
  "name": ""
}' |  \
  http POST {{baseUrl}}/userprofiles/:profileId/subaccounts \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "accountId": "",\n  "availablePermissionIds": [],\n  "id": "",\n  "kind": "",\n  "name": ""\n}' \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/subaccounts
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "accountId": "",
  "availablePermissionIds": [],
  "id": "",
  "kind": "",
  "name": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/subaccounts")! 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 dfareporting.subaccounts.list
{{baseUrl}}/userprofiles/:profileId/subaccounts
QUERY PARAMS

profileId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/subaccounts");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/subaccounts")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/subaccounts"

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}}/userprofiles/:profileId/subaccounts"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/subaccounts");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/subaccounts"

	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/userprofiles/:profileId/subaccounts HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/subaccounts")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/subaccounts"))
    .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}}/userprofiles/:profileId/subaccounts")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/subaccounts")
  .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}}/userprofiles/:profileId/subaccounts');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/subaccounts'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/subaccounts';
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}}/userprofiles/:profileId/subaccounts',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/subaccounts")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/subaccounts',
  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}}/userprofiles/:profileId/subaccounts'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/subaccounts');

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}}/userprofiles/:profileId/subaccounts'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/subaccounts';
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}}/userprofiles/:profileId/subaccounts"]
                                                       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}}/userprofiles/:profileId/subaccounts" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/subaccounts",
  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}}/userprofiles/:profileId/subaccounts');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/subaccounts');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/subaccounts');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/subaccounts' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/subaccounts' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/subaccounts")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/subaccounts"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/subaccounts"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/subaccounts")

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/userprofiles/:profileId/subaccounts') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/subaccounts";

    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}}/userprofiles/:profileId/subaccounts
http GET {{baseUrl}}/userprofiles/:profileId/subaccounts
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/subaccounts
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/subaccounts")! 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 dfareporting.subaccounts.patch
{{baseUrl}}/userprofiles/:profileId/subaccounts
QUERY PARAMS

id
profileId
BODY json

{
  "accountId": "",
  "availablePermissionIds": [],
  "id": "",
  "kind": "",
  "name": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/subaccounts?id=");

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  \"accountId\": \"\",\n  \"availablePermissionIds\": [],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/patch "{{baseUrl}}/userprofiles/:profileId/subaccounts" {:query-params {:id ""}
                                                                                 :content-type :json
                                                                                 :form-params {:accountId ""
                                                                                               :availablePermissionIds []
                                                                                               :id ""
                                                                                               :kind ""
                                                                                               :name ""}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/subaccounts?id="
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"accountId\": \"\",\n  \"availablePermissionIds\": [],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"

response = HTTP::Client.patch url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Patch,
    RequestUri = new Uri("{{baseUrl}}/userprofiles/:profileId/subaccounts?id="),
    Content = new StringContent("{\n  \"accountId\": \"\",\n  \"availablePermissionIds\": [],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/subaccounts?id=");
var request = new RestRequest("", Method.Patch);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"accountId\": \"\",\n  \"availablePermissionIds\": [],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/subaccounts?id="

	payload := strings.NewReader("{\n  \"accountId\": \"\",\n  \"availablePermissionIds\": [],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}")

	req, _ := http.NewRequest("PATCH", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PATCH /baseUrl/userprofiles/:profileId/subaccounts?id= HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 93

{
  "accountId": "",
  "availablePermissionIds": [],
  "id": "",
  "kind": "",
  "name": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/userprofiles/:profileId/subaccounts?id=")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"accountId\": \"\",\n  \"availablePermissionIds\": [],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/subaccounts?id="))
    .header("content-type", "application/json")
    .method("PATCH", HttpRequest.BodyPublishers.ofString("{\n  \"accountId\": \"\",\n  \"availablePermissionIds\": [],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"accountId\": \"\",\n  \"availablePermissionIds\": [],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/subaccounts?id=")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/userprofiles/:profileId/subaccounts?id=")
  .header("content-type", "application/json")
  .body("{\n  \"accountId\": \"\",\n  \"availablePermissionIds\": [],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  accountId: '',
  availablePermissionIds: [],
  id: '',
  kind: '',
  name: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PATCH', '{{baseUrl}}/userprofiles/:profileId/subaccounts?id=');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/userprofiles/:profileId/subaccounts',
  params: {id: ''},
  headers: {'content-type': 'application/json'},
  data: {accountId: '', availablePermissionIds: [], id: '', kind: '', name: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/subaccounts?id=';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","availablePermissionIds":[],"id":"","kind":"","name":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/userprofiles/:profileId/subaccounts?id=',
  method: 'PATCH',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "accountId": "",\n  "availablePermissionIds": [],\n  "id": "",\n  "kind": "",\n  "name": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"accountId\": \"\",\n  \"availablePermissionIds\": [],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/subaccounts?id=")
  .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/userprofiles/:profileId/subaccounts?id=',
  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({accountId: '', availablePermissionIds: [], id: '', kind: '', name: ''}));
req.end();
const request = require('request');

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/userprofiles/:profileId/subaccounts',
  qs: {id: ''},
  headers: {'content-type': 'application/json'},
  body: {accountId: '', availablePermissionIds: [], id: '', kind: '', name: ''},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PATCH', '{{baseUrl}}/userprofiles/:profileId/subaccounts');

req.query({
  id: ''
});

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  accountId: '',
  availablePermissionIds: [],
  id: '',
  kind: '',
  name: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/userprofiles/:profileId/subaccounts',
  params: {id: ''},
  headers: {'content-type': 'application/json'},
  data: {accountId: '', availablePermissionIds: [], id: '', kind: '', name: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/subaccounts?id=';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","availablePermissionIds":[],"id":"","kind":"","name":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"accountId": @"",
                              @"availablePermissionIds": @[  ],
                              @"id": @"",
                              @"kind": @"",
                              @"name": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/userprofiles/:profileId/subaccounts?id="]
                                                       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}}/userprofiles/:profileId/subaccounts?id=" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"accountId\": \"\",\n  \"availablePermissionIds\": [],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}" in

Client.call ~headers ~body `PATCH uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/subaccounts?id=",
  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([
    'accountId' => '',
    'availablePermissionIds' => [
        
    ],
    'id' => '',
    'kind' => '',
    'name' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PATCH', '{{baseUrl}}/userprofiles/:profileId/subaccounts?id=', [
  'body' => '{
  "accountId": "",
  "availablePermissionIds": [],
  "id": "",
  "kind": "",
  "name": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/subaccounts');
$request->setMethod(HttpRequest::HTTP_METH_PATCH);

$request->setQueryData([
  'id' => ''
]);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'accountId' => '',
  'availablePermissionIds' => [
    
  ],
  'id' => '',
  'kind' => '',
  'name' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'accountId' => '',
  'availablePermissionIds' => [
    
  ],
  'id' => '',
  'kind' => '',
  'name' => ''
]));
$request->setRequestUrl('{{baseUrl}}/userprofiles/:profileId/subaccounts');
$request->setRequestMethod('PATCH');
$request->setBody($body);

$request->setQuery(new http\QueryString([
  'id' => ''
]));

$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}}/userprofiles/:profileId/subaccounts?id=' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "availablePermissionIds": [],
  "id": "",
  "kind": "",
  "name": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/subaccounts?id=' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "availablePermissionIds": [],
  "id": "",
  "kind": "",
  "name": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"accountId\": \"\",\n  \"availablePermissionIds\": [],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("PATCH", "/baseUrl/userprofiles/:profileId/subaccounts?id=", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/subaccounts"

querystring = {"id":""}

payload = {
    "accountId": "",
    "availablePermissionIds": [],
    "id": "",
    "kind": "",
    "name": ""
}
headers = {"content-type": "application/json"}

response = requests.patch(url, json=payload, headers=headers, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/subaccounts"

queryString <- list(id = "")

payload <- "{\n  \"accountId\": \"\",\n  \"availablePermissionIds\": [],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"

encode <- "json"

response <- VERB("PATCH", url, body = payload, query = queryString, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/subaccounts?id=")

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  \"accountId\": \"\",\n  \"availablePermissionIds\": [],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.patch('/baseUrl/userprofiles/:profileId/subaccounts') do |req|
  req.params['id'] = ''
  req.body = "{\n  \"accountId\": \"\",\n  \"availablePermissionIds\": [],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"
end

puts response.status
puts response.body
use std::str::FromStr;
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/subaccounts";

    let querystring = [
        ("id", ""),
    ];

    let payload = json!({
        "accountId": "",
        "availablePermissionIds": (),
        "id": "",
        "kind": "",
        "name": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PATCH").unwrap(), url)
        .query(&querystring)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PATCH \
  --url '{{baseUrl}}/userprofiles/:profileId/subaccounts?id=' \
  --header 'content-type: application/json' \
  --data '{
  "accountId": "",
  "availablePermissionIds": [],
  "id": "",
  "kind": "",
  "name": ""
}'
echo '{
  "accountId": "",
  "availablePermissionIds": [],
  "id": "",
  "kind": "",
  "name": ""
}' |  \
  http PATCH '{{baseUrl}}/userprofiles/:profileId/subaccounts?id=' \
  content-type:application/json
wget --quiet \
  --method PATCH \
  --header 'content-type: application/json' \
  --body-data '{\n  "accountId": "",\n  "availablePermissionIds": [],\n  "id": "",\n  "kind": "",\n  "name": ""\n}' \
  --output-document \
  - '{{baseUrl}}/userprofiles/:profileId/subaccounts?id='
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "accountId": "",
  "availablePermissionIds": [],
  "id": "",
  "kind": "",
  "name": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/subaccounts?id=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PATCH"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
PUT dfareporting.subaccounts.update
{{baseUrl}}/userprofiles/:profileId/subaccounts
QUERY PARAMS

profileId
BODY json

{
  "accountId": "",
  "availablePermissionIds": [],
  "id": "",
  "kind": "",
  "name": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/subaccounts");

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  \"accountId\": \"\",\n  \"availablePermissionIds\": [],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/userprofiles/:profileId/subaccounts" {:content-type :json
                                                                               :form-params {:accountId ""
                                                                                             :availablePermissionIds []
                                                                                             :id ""
                                                                                             :kind ""
                                                                                             :name ""}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/subaccounts"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"accountId\": \"\",\n  \"availablePermissionIds\": [],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/userprofiles/:profileId/subaccounts"),
    Content = new StringContent("{\n  \"accountId\": \"\",\n  \"availablePermissionIds\": [],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/subaccounts");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"accountId\": \"\",\n  \"availablePermissionIds\": [],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/subaccounts"

	payload := strings.NewReader("{\n  \"accountId\": \"\",\n  \"availablePermissionIds\": [],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/userprofiles/:profileId/subaccounts HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 93

{
  "accountId": "",
  "availablePermissionIds": [],
  "id": "",
  "kind": "",
  "name": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/userprofiles/:profileId/subaccounts")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"accountId\": \"\",\n  \"availablePermissionIds\": [],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/subaccounts"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"accountId\": \"\",\n  \"availablePermissionIds\": [],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"accountId\": \"\",\n  \"availablePermissionIds\": [],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/subaccounts")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/userprofiles/:profileId/subaccounts")
  .header("content-type", "application/json")
  .body("{\n  \"accountId\": \"\",\n  \"availablePermissionIds\": [],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  accountId: '',
  availablePermissionIds: [],
  id: '',
  kind: '',
  name: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/userprofiles/:profileId/subaccounts');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/userprofiles/:profileId/subaccounts',
  headers: {'content-type': 'application/json'},
  data: {accountId: '', availablePermissionIds: [], id: '', kind: '', name: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/subaccounts';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","availablePermissionIds":[],"id":"","kind":"","name":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/userprofiles/:profileId/subaccounts',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "accountId": "",\n  "availablePermissionIds": [],\n  "id": "",\n  "kind": "",\n  "name": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"accountId\": \"\",\n  \"availablePermissionIds\": [],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/subaccounts")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/subaccounts',
  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({accountId: '', availablePermissionIds: [], id: '', kind: '', name: ''}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/userprofiles/:profileId/subaccounts',
  headers: {'content-type': 'application/json'},
  body: {accountId: '', availablePermissionIds: [], id: '', kind: '', name: ''},
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/userprofiles/:profileId/subaccounts');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  accountId: '',
  availablePermissionIds: [],
  id: '',
  kind: '',
  name: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/userprofiles/:profileId/subaccounts',
  headers: {'content-type': 'application/json'},
  data: {accountId: '', availablePermissionIds: [], id: '', kind: '', name: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/subaccounts';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","availablePermissionIds":[],"id":"","kind":"","name":""}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"accountId": @"",
                              @"availablePermissionIds": @[  ],
                              @"id": @"",
                              @"kind": @"",
                              @"name": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/userprofiles/:profileId/subaccounts"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/userprofiles/:profileId/subaccounts" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"accountId\": \"\",\n  \"availablePermissionIds\": [],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/subaccounts",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'accountId' => '',
    'availablePermissionIds' => [
        
    ],
    'id' => '',
    'kind' => '',
    'name' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/userprofiles/:profileId/subaccounts', [
  'body' => '{
  "accountId": "",
  "availablePermissionIds": [],
  "id": "",
  "kind": "",
  "name": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/subaccounts');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'accountId' => '',
  'availablePermissionIds' => [
    
  ],
  'id' => '',
  'kind' => '',
  'name' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'accountId' => '',
  'availablePermissionIds' => [
    
  ],
  'id' => '',
  'kind' => '',
  'name' => ''
]));
$request->setRequestUrl('{{baseUrl}}/userprofiles/:profileId/subaccounts');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/subaccounts' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "availablePermissionIds": [],
  "id": "",
  "kind": "",
  "name": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/subaccounts' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "availablePermissionIds": [],
  "id": "",
  "kind": "",
  "name": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"accountId\": \"\",\n  \"availablePermissionIds\": [],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/userprofiles/:profileId/subaccounts", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/subaccounts"

payload = {
    "accountId": "",
    "availablePermissionIds": [],
    "id": "",
    "kind": "",
    "name": ""
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/subaccounts"

payload <- "{\n  \"accountId\": \"\",\n  \"availablePermissionIds\": [],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"

encode <- "json"

response <- VERB("PUT", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/subaccounts")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"accountId\": \"\",\n  \"availablePermissionIds\": [],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.put('/baseUrl/userprofiles/:profileId/subaccounts') do |req|
  req.body = "{\n  \"accountId\": \"\",\n  \"availablePermissionIds\": [],\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\"\n}"
end

puts response.status
puts response.body
use std::str::FromStr;
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/subaccounts";

    let payload = json!({
        "accountId": "",
        "availablePermissionIds": (),
        "id": "",
        "kind": "",
        "name": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/userprofiles/:profileId/subaccounts \
  --header 'content-type: application/json' \
  --data '{
  "accountId": "",
  "availablePermissionIds": [],
  "id": "",
  "kind": "",
  "name": ""
}'
echo '{
  "accountId": "",
  "availablePermissionIds": [],
  "id": "",
  "kind": "",
  "name": ""
}' |  \
  http PUT {{baseUrl}}/userprofiles/:profileId/subaccounts \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "accountId": "",\n  "availablePermissionIds": [],\n  "id": "",\n  "kind": "",\n  "name": ""\n}' \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/subaccounts
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "accountId": "",
  "availablePermissionIds": [],
  "id": "",
  "kind": "",
  "name": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/subaccounts")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET dfareporting.targetableRemarketingLists.get
{{baseUrl}}/userprofiles/:profileId/targetableRemarketingLists/:id
QUERY PARAMS

profileId
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/targetableRemarketingLists/:id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/targetableRemarketingLists/:id")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/targetableRemarketingLists/:id"

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}}/userprofiles/:profileId/targetableRemarketingLists/:id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/targetableRemarketingLists/:id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/targetableRemarketingLists/:id"

	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/userprofiles/:profileId/targetableRemarketingLists/:id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/targetableRemarketingLists/:id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/targetableRemarketingLists/:id"))
    .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}}/userprofiles/:profileId/targetableRemarketingLists/:id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/targetableRemarketingLists/:id")
  .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}}/userprofiles/:profileId/targetableRemarketingLists/:id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/targetableRemarketingLists/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/targetableRemarketingLists/:id';
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}}/userprofiles/:profileId/targetableRemarketingLists/:id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/targetableRemarketingLists/:id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/targetableRemarketingLists/:id',
  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}}/userprofiles/:profileId/targetableRemarketingLists/:id'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/targetableRemarketingLists/:id');

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}}/userprofiles/:profileId/targetableRemarketingLists/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/targetableRemarketingLists/:id';
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}}/userprofiles/:profileId/targetableRemarketingLists/:id"]
                                                       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}}/userprofiles/:profileId/targetableRemarketingLists/:id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/targetableRemarketingLists/:id",
  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}}/userprofiles/:profileId/targetableRemarketingLists/:id');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/targetableRemarketingLists/:id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/targetableRemarketingLists/:id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/targetableRemarketingLists/:id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/targetableRemarketingLists/:id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/targetableRemarketingLists/:id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/targetableRemarketingLists/:id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/targetableRemarketingLists/:id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/targetableRemarketingLists/:id")

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/userprofiles/:profileId/targetableRemarketingLists/:id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/targetableRemarketingLists/:id";

    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}}/userprofiles/:profileId/targetableRemarketingLists/:id
http GET {{baseUrl}}/userprofiles/:profileId/targetableRemarketingLists/:id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/targetableRemarketingLists/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/targetableRemarketingLists/:id")! 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 dfareporting.targetableRemarketingLists.list
{{baseUrl}}/userprofiles/:profileId/targetableRemarketingLists
QUERY PARAMS

advertiserId
profileId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/targetableRemarketingLists?advertiserId=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/targetableRemarketingLists" {:query-params {:advertiserId ""}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/targetableRemarketingLists?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}}/userprofiles/:profileId/targetableRemarketingLists?advertiserId="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/targetableRemarketingLists?advertiserId=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/targetableRemarketingLists?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/userprofiles/:profileId/targetableRemarketingLists?advertiserId= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/targetableRemarketingLists?advertiserId=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/targetableRemarketingLists?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}}/userprofiles/:profileId/targetableRemarketingLists?advertiserId=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/targetableRemarketingLists?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}}/userprofiles/:profileId/targetableRemarketingLists?advertiserId=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/targetableRemarketingLists',
  params: {advertiserId: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/targetableRemarketingLists?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}}/userprofiles/:profileId/targetableRemarketingLists?advertiserId=',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/targetableRemarketingLists?advertiserId=")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/targetableRemarketingLists?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}}/userprofiles/:profileId/targetableRemarketingLists',
  qs: {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}}/userprofiles/:profileId/targetableRemarketingLists');

req.query({
  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}}/userprofiles/:profileId/targetableRemarketingLists',
  params: {advertiserId: ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/targetableRemarketingLists?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}}/userprofiles/:profileId/targetableRemarketingLists?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}}/userprofiles/:profileId/targetableRemarketingLists?advertiserId=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/targetableRemarketingLists?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}}/userprofiles/:profileId/targetableRemarketingLists?advertiserId=');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/targetableRemarketingLists');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'advertiserId' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/targetableRemarketingLists');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'advertiserId' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/targetableRemarketingLists?advertiserId=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/targetableRemarketingLists?advertiserId=' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/targetableRemarketingLists?advertiserId=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/targetableRemarketingLists"

querystring = {"advertiserId":""}

response = requests.get(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/targetableRemarketingLists"

queryString <- list(advertiserId = "")

response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/targetableRemarketingLists?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/userprofiles/:profileId/targetableRemarketingLists') do |req|
  req.params['advertiserId'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/targetableRemarketingLists";

    let querystring = [
        ("advertiserId", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/userprofiles/:profileId/targetableRemarketingLists?advertiserId='
http GET '{{baseUrl}}/userprofiles/:profileId/targetableRemarketingLists?advertiserId='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/userprofiles/:profileId/targetableRemarketingLists?advertiserId='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/targetableRemarketingLists?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()
GET dfareporting.targetingTemplates.get
{{baseUrl}}/userprofiles/:profileId/targetingTemplates/:id
QUERY PARAMS

profileId
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/targetingTemplates/:id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/targetingTemplates/:id")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/targetingTemplates/:id"

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}}/userprofiles/:profileId/targetingTemplates/:id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/targetingTemplates/:id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/targetingTemplates/:id"

	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/userprofiles/:profileId/targetingTemplates/:id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/targetingTemplates/:id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/targetingTemplates/:id"))
    .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}}/userprofiles/:profileId/targetingTemplates/:id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/targetingTemplates/:id")
  .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}}/userprofiles/:profileId/targetingTemplates/:id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/targetingTemplates/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/targetingTemplates/:id';
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}}/userprofiles/:profileId/targetingTemplates/:id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/targetingTemplates/:id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/targetingTemplates/:id',
  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}}/userprofiles/:profileId/targetingTemplates/:id'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/targetingTemplates/:id');

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}}/userprofiles/:profileId/targetingTemplates/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/targetingTemplates/:id';
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}}/userprofiles/:profileId/targetingTemplates/:id"]
                                                       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}}/userprofiles/:profileId/targetingTemplates/:id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/targetingTemplates/:id",
  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}}/userprofiles/:profileId/targetingTemplates/:id');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/targetingTemplates/:id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/targetingTemplates/:id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/targetingTemplates/:id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/targetingTemplates/:id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/targetingTemplates/:id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/targetingTemplates/:id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/targetingTemplates/:id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/targetingTemplates/:id")

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/userprofiles/:profileId/targetingTemplates/:id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/targetingTemplates/:id";

    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}}/userprofiles/:profileId/targetingTemplates/:id
http GET {{baseUrl}}/userprofiles/:profileId/targetingTemplates/:id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/targetingTemplates/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/targetingTemplates/:id")! 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 dfareporting.targetingTemplates.insert
{{baseUrl}}/userprofiles/:profileId/targetingTemplates
QUERY PARAMS

profileId
BODY json

{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "dayPartTargeting": {
    "daysOfWeek": [],
    "hoursOfDay": [],
    "userLocalTime": false
  },
  "geoTargeting": {
    "cities": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "metroCode": "",
        "metroDmaId": "",
        "name": "",
        "regionCode": "",
        "regionDartId": ""
      }
    ],
    "countries": [
      {
        "countryCode": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "sslEnabled": false
      }
    ],
    "excludeCountries": false,
    "metros": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "dmaId": "",
        "kind": "",
        "metroCode": "",
        "name": ""
      }
    ],
    "postalCodes": [
      {
        "code": "",
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": ""
      }
    ],
    "regions": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "regionCode": ""
      }
    ]
  },
  "id": "",
  "keyValueTargetingExpression": {
    "expression": ""
  },
  "kind": "",
  "languageTargeting": {
    "languages": [
      {
        "id": "",
        "kind": "",
        "languageCode": "",
        "name": ""
      }
    ]
  },
  "listTargetingExpression": {
    "expression": ""
  },
  "name": "",
  "subaccountId": "",
  "technologyTargeting": {
    "browsers": [
      {
        "browserVersionId": "",
        "dartId": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": ""
      }
    ],
    "connectionTypes": [
      {
        "id": "",
        "kind": "",
        "name": ""
      }
    ],
    "mobileCarriers": [
      {
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": "",
        "name": ""
      }
    ],
    "operatingSystemVersions": [
      {
        "id": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": "",
        "operatingSystem": {
          "dartId": "",
          "desktop": false,
          "kind": "",
          "mobile": false,
          "name": ""
        }
      }
    ],
    "operatingSystems": [
      {}
    ],
    "platformTypes": [
      {
        "id": "",
        "kind": "",
        "name": ""
      }
    ]
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/targetingTemplates");

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  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"listTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/userprofiles/:profileId/targetingTemplates" {:content-type :json
                                                                                       :form-params {:accountId ""
                                                                                                     :advertiserId ""
                                                                                                     :advertiserIdDimensionValue {:dimensionName ""
                                                                                                                                  :etag ""
                                                                                                                                  :id ""
                                                                                                                                  :kind ""
                                                                                                                                  :matchType ""
                                                                                                                                  :value ""}
                                                                                                     :dayPartTargeting {:daysOfWeek []
                                                                                                                        :hoursOfDay []
                                                                                                                        :userLocalTime false}
                                                                                                     :geoTargeting {:cities [{:countryCode ""
                                                                                                                              :countryDartId ""
                                                                                                                              :dartId ""
                                                                                                                              :kind ""
                                                                                                                              :metroCode ""
                                                                                                                              :metroDmaId ""
                                                                                                                              :name ""
                                                                                                                              :regionCode ""
                                                                                                                              :regionDartId ""}]
                                                                                                                    :countries [{:countryCode ""
                                                                                                                                 :dartId ""
                                                                                                                                 :kind ""
                                                                                                                                 :name ""
                                                                                                                                 :sslEnabled false}]
                                                                                                                    :excludeCountries false
                                                                                                                    :metros [{:countryCode ""
                                                                                                                              :countryDartId ""
                                                                                                                              :dartId ""
                                                                                                                              :dmaId ""
                                                                                                                              :kind ""
                                                                                                                              :metroCode ""
                                                                                                                              :name ""}]
                                                                                                                    :postalCodes [{:code ""
                                                                                                                                   :countryCode ""
                                                                                                                                   :countryDartId ""
                                                                                                                                   :id ""
                                                                                                                                   :kind ""}]
                                                                                                                    :regions [{:countryCode ""
                                                                                                                               :countryDartId ""
                                                                                                                               :dartId ""
                                                                                                                               :kind ""
                                                                                                                               :name ""
                                                                                                                               :regionCode ""}]}
                                                                                                     :id ""
                                                                                                     :keyValueTargetingExpression {:expression ""}
                                                                                                     :kind ""
                                                                                                     :languageTargeting {:languages [{:id ""
                                                                                                                                      :kind ""
                                                                                                                                      :languageCode ""
                                                                                                                                      :name ""}]}
                                                                                                     :listTargetingExpression {:expression ""}
                                                                                                     :name ""
                                                                                                     :subaccountId ""
                                                                                                     :technologyTargeting {:browsers [{:browserVersionId ""
                                                                                                                                       :dartId ""
                                                                                                                                       :kind ""
                                                                                                                                       :majorVersion ""
                                                                                                                                       :minorVersion ""
                                                                                                                                       :name ""}]
                                                                                                                           :connectionTypes [{:id ""
                                                                                                                                              :kind ""
                                                                                                                                              :name ""}]
                                                                                                                           :mobileCarriers [{:countryCode ""
                                                                                                                                             :countryDartId ""
                                                                                                                                             :id ""
                                                                                                                                             :kind ""
                                                                                                                                             :name ""}]
                                                                                                                           :operatingSystemVersions [{:id ""
                                                                                                                                                      :kind ""
                                                                                                                                                      :majorVersion ""
                                                                                                                                                      :minorVersion ""
                                                                                                                                                      :name ""
                                                                                                                                                      :operatingSystem {:dartId ""
                                                                                                                                                                        :desktop false
                                                                                                                                                                        :kind ""
                                                                                                                                                                        :mobile false
                                                                                                                                                                        :name ""}}]
                                                                                                                           :operatingSystems [{}]
                                                                                                                           :platformTypes [{:id ""
                                                                                                                                            :kind ""
                                                                                                                                            :name ""}]}}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/targetingTemplates"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"listTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\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}}/userprofiles/:profileId/targetingTemplates"),
    Content = new StringContent("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"listTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\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}}/userprofiles/:profileId/targetingTemplates");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"listTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/targetingTemplates"

	payload := strings.NewReader("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"listTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\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/userprofiles/:profileId/targetingTemplates HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 2605

{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "dayPartTargeting": {
    "daysOfWeek": [],
    "hoursOfDay": [],
    "userLocalTime": false
  },
  "geoTargeting": {
    "cities": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "metroCode": "",
        "metroDmaId": "",
        "name": "",
        "regionCode": "",
        "regionDartId": ""
      }
    ],
    "countries": [
      {
        "countryCode": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "sslEnabled": false
      }
    ],
    "excludeCountries": false,
    "metros": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "dmaId": "",
        "kind": "",
        "metroCode": "",
        "name": ""
      }
    ],
    "postalCodes": [
      {
        "code": "",
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": ""
      }
    ],
    "regions": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "regionCode": ""
      }
    ]
  },
  "id": "",
  "keyValueTargetingExpression": {
    "expression": ""
  },
  "kind": "",
  "languageTargeting": {
    "languages": [
      {
        "id": "",
        "kind": "",
        "languageCode": "",
        "name": ""
      }
    ]
  },
  "listTargetingExpression": {
    "expression": ""
  },
  "name": "",
  "subaccountId": "",
  "technologyTargeting": {
    "browsers": [
      {
        "browserVersionId": "",
        "dartId": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": ""
      }
    ],
    "connectionTypes": [
      {
        "id": "",
        "kind": "",
        "name": ""
      }
    ],
    "mobileCarriers": [
      {
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": "",
        "name": ""
      }
    ],
    "operatingSystemVersions": [
      {
        "id": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": "",
        "operatingSystem": {
          "dartId": "",
          "desktop": false,
          "kind": "",
          "mobile": false,
          "name": ""
        }
      }
    ],
    "operatingSystems": [
      {}
    ],
    "platformTypes": [
      {
        "id": "",
        "kind": "",
        "name": ""
      }
    ]
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/userprofiles/:profileId/targetingTemplates")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"listTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/targetingTemplates"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"listTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\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  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"listTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/targetingTemplates")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/userprofiles/:profileId/targetingTemplates")
  .header("content-type", "application/json")
  .body("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"listTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  }\n}")
  .asString();
const data = JSON.stringify({
  accountId: '',
  advertiserId: '',
  advertiserIdDimensionValue: {
    dimensionName: '',
    etag: '',
    id: '',
    kind: '',
    matchType: '',
    value: ''
  },
  dayPartTargeting: {
    daysOfWeek: [],
    hoursOfDay: [],
    userLocalTime: false
  },
  geoTargeting: {
    cities: [
      {
        countryCode: '',
        countryDartId: '',
        dartId: '',
        kind: '',
        metroCode: '',
        metroDmaId: '',
        name: '',
        regionCode: '',
        regionDartId: ''
      }
    ],
    countries: [
      {
        countryCode: '',
        dartId: '',
        kind: '',
        name: '',
        sslEnabled: false
      }
    ],
    excludeCountries: false,
    metros: [
      {
        countryCode: '',
        countryDartId: '',
        dartId: '',
        dmaId: '',
        kind: '',
        metroCode: '',
        name: ''
      }
    ],
    postalCodes: [
      {
        code: '',
        countryCode: '',
        countryDartId: '',
        id: '',
        kind: ''
      }
    ],
    regions: [
      {
        countryCode: '',
        countryDartId: '',
        dartId: '',
        kind: '',
        name: '',
        regionCode: ''
      }
    ]
  },
  id: '',
  keyValueTargetingExpression: {
    expression: ''
  },
  kind: '',
  languageTargeting: {
    languages: [
      {
        id: '',
        kind: '',
        languageCode: '',
        name: ''
      }
    ]
  },
  listTargetingExpression: {
    expression: ''
  },
  name: '',
  subaccountId: '',
  technologyTargeting: {
    browsers: [
      {
        browserVersionId: '',
        dartId: '',
        kind: '',
        majorVersion: '',
        minorVersion: '',
        name: ''
      }
    ],
    connectionTypes: [
      {
        id: '',
        kind: '',
        name: ''
      }
    ],
    mobileCarriers: [
      {
        countryCode: '',
        countryDartId: '',
        id: '',
        kind: '',
        name: ''
      }
    ],
    operatingSystemVersions: [
      {
        id: '',
        kind: '',
        majorVersion: '',
        minorVersion: '',
        name: '',
        operatingSystem: {
          dartId: '',
          desktop: false,
          kind: '',
          mobile: false,
          name: ''
        }
      }
    ],
    operatingSystems: [
      {}
    ],
    platformTypes: [
      {
        id: '',
        kind: '',
        name: ''
      }
    ]
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/userprofiles/:profileId/targetingTemplates');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/userprofiles/:profileId/targetingTemplates',
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    dayPartTargeting: {daysOfWeek: [], hoursOfDay: [], userLocalTime: false},
    geoTargeting: {
      cities: [
        {
          countryCode: '',
          countryDartId: '',
          dartId: '',
          kind: '',
          metroCode: '',
          metroDmaId: '',
          name: '',
          regionCode: '',
          regionDartId: ''
        }
      ],
      countries: [{countryCode: '', dartId: '', kind: '', name: '', sslEnabled: false}],
      excludeCountries: false,
      metros: [
        {
          countryCode: '',
          countryDartId: '',
          dartId: '',
          dmaId: '',
          kind: '',
          metroCode: '',
          name: ''
        }
      ],
      postalCodes: [{code: '', countryCode: '', countryDartId: '', id: '', kind: ''}],
      regions: [
        {
          countryCode: '',
          countryDartId: '',
          dartId: '',
          kind: '',
          name: '',
          regionCode: ''
        }
      ]
    },
    id: '',
    keyValueTargetingExpression: {expression: ''},
    kind: '',
    languageTargeting: {languages: [{id: '', kind: '', languageCode: '', name: ''}]},
    listTargetingExpression: {expression: ''},
    name: '',
    subaccountId: '',
    technologyTargeting: {
      browsers: [
        {
          browserVersionId: '',
          dartId: '',
          kind: '',
          majorVersion: '',
          minorVersion: '',
          name: ''
        }
      ],
      connectionTypes: [{id: '', kind: '', name: ''}],
      mobileCarriers: [{countryCode: '', countryDartId: '', id: '', kind: '', name: ''}],
      operatingSystemVersions: [
        {
          id: '',
          kind: '',
          majorVersion: '',
          minorVersion: '',
          name: '',
          operatingSystem: {dartId: '', desktop: false, kind: '', mobile: false, name: ''}
        }
      ],
      operatingSystems: [{}],
      platformTypes: [{id: '', kind: '', name: ''}]
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/targetingTemplates';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","advertiserId":"","advertiserIdDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"dayPartTargeting":{"daysOfWeek":[],"hoursOfDay":[],"userLocalTime":false},"geoTargeting":{"cities":[{"countryCode":"","countryDartId":"","dartId":"","kind":"","metroCode":"","metroDmaId":"","name":"","regionCode":"","regionDartId":""}],"countries":[{"countryCode":"","dartId":"","kind":"","name":"","sslEnabled":false}],"excludeCountries":false,"metros":[{"countryCode":"","countryDartId":"","dartId":"","dmaId":"","kind":"","metroCode":"","name":""}],"postalCodes":[{"code":"","countryCode":"","countryDartId":"","id":"","kind":""}],"regions":[{"countryCode":"","countryDartId":"","dartId":"","kind":"","name":"","regionCode":""}]},"id":"","keyValueTargetingExpression":{"expression":""},"kind":"","languageTargeting":{"languages":[{"id":"","kind":"","languageCode":"","name":""}]},"listTargetingExpression":{"expression":""},"name":"","subaccountId":"","technologyTargeting":{"browsers":[{"browserVersionId":"","dartId":"","kind":"","majorVersion":"","minorVersion":"","name":""}],"connectionTypes":[{"id":"","kind":"","name":""}],"mobileCarriers":[{"countryCode":"","countryDartId":"","id":"","kind":"","name":""}],"operatingSystemVersions":[{"id":"","kind":"","majorVersion":"","minorVersion":"","name":"","operatingSystem":{"dartId":"","desktop":false,"kind":"","mobile":false,"name":""}}],"operatingSystems":[{}],"platformTypes":[{"id":"","kind":"","name":""}]}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/userprofiles/:profileId/targetingTemplates',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "accountId": "",\n  "advertiserId": "",\n  "advertiserIdDimensionValue": {\n    "dimensionName": "",\n    "etag": "",\n    "id": "",\n    "kind": "",\n    "matchType": "",\n    "value": ""\n  },\n  "dayPartTargeting": {\n    "daysOfWeek": [],\n    "hoursOfDay": [],\n    "userLocalTime": false\n  },\n  "geoTargeting": {\n    "cities": [\n      {\n        "countryCode": "",\n        "countryDartId": "",\n        "dartId": "",\n        "kind": "",\n        "metroCode": "",\n        "metroDmaId": "",\n        "name": "",\n        "regionCode": "",\n        "regionDartId": ""\n      }\n    ],\n    "countries": [\n      {\n        "countryCode": "",\n        "dartId": "",\n        "kind": "",\n        "name": "",\n        "sslEnabled": false\n      }\n    ],\n    "excludeCountries": false,\n    "metros": [\n      {\n        "countryCode": "",\n        "countryDartId": "",\n        "dartId": "",\n        "dmaId": "",\n        "kind": "",\n        "metroCode": "",\n        "name": ""\n      }\n    ],\n    "postalCodes": [\n      {\n        "code": "",\n        "countryCode": "",\n        "countryDartId": "",\n        "id": "",\n        "kind": ""\n      }\n    ],\n    "regions": [\n      {\n        "countryCode": "",\n        "countryDartId": "",\n        "dartId": "",\n        "kind": "",\n        "name": "",\n        "regionCode": ""\n      }\n    ]\n  },\n  "id": "",\n  "keyValueTargetingExpression": {\n    "expression": ""\n  },\n  "kind": "",\n  "languageTargeting": {\n    "languages": [\n      {\n        "id": "",\n        "kind": "",\n        "languageCode": "",\n        "name": ""\n      }\n    ]\n  },\n  "listTargetingExpression": {\n    "expression": ""\n  },\n  "name": "",\n  "subaccountId": "",\n  "technologyTargeting": {\n    "browsers": [\n      {\n        "browserVersionId": "",\n        "dartId": "",\n        "kind": "",\n        "majorVersion": "",\n        "minorVersion": "",\n        "name": ""\n      }\n    ],\n    "connectionTypes": [\n      {\n        "id": "",\n        "kind": "",\n        "name": ""\n      }\n    ],\n    "mobileCarriers": [\n      {\n        "countryCode": "",\n        "countryDartId": "",\n        "id": "",\n        "kind": "",\n        "name": ""\n      }\n    ],\n    "operatingSystemVersions": [\n      {\n        "id": "",\n        "kind": "",\n        "majorVersion": "",\n        "minorVersion": "",\n        "name": "",\n        "operatingSystem": {\n          "dartId": "",\n          "desktop": false,\n          "kind": "",\n          "mobile": false,\n          "name": ""\n        }\n      }\n    ],\n    "operatingSystems": [\n      {}\n    ],\n    "platformTypes": [\n      {\n        "id": "",\n        "kind": "",\n        "name": ""\n      }\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  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"listTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/targetingTemplates")
  .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/userprofiles/:profileId/targetingTemplates',
  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({
  accountId: '',
  advertiserId: '',
  advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
  dayPartTargeting: {daysOfWeek: [], hoursOfDay: [], userLocalTime: false},
  geoTargeting: {
    cities: [
      {
        countryCode: '',
        countryDartId: '',
        dartId: '',
        kind: '',
        metroCode: '',
        metroDmaId: '',
        name: '',
        regionCode: '',
        regionDartId: ''
      }
    ],
    countries: [{countryCode: '', dartId: '', kind: '', name: '', sslEnabled: false}],
    excludeCountries: false,
    metros: [
      {
        countryCode: '',
        countryDartId: '',
        dartId: '',
        dmaId: '',
        kind: '',
        metroCode: '',
        name: ''
      }
    ],
    postalCodes: [{code: '', countryCode: '', countryDartId: '', id: '', kind: ''}],
    regions: [
      {
        countryCode: '',
        countryDartId: '',
        dartId: '',
        kind: '',
        name: '',
        regionCode: ''
      }
    ]
  },
  id: '',
  keyValueTargetingExpression: {expression: ''},
  kind: '',
  languageTargeting: {languages: [{id: '', kind: '', languageCode: '', name: ''}]},
  listTargetingExpression: {expression: ''},
  name: '',
  subaccountId: '',
  technologyTargeting: {
    browsers: [
      {
        browserVersionId: '',
        dartId: '',
        kind: '',
        majorVersion: '',
        minorVersion: '',
        name: ''
      }
    ],
    connectionTypes: [{id: '', kind: '', name: ''}],
    mobileCarriers: [{countryCode: '', countryDartId: '', id: '', kind: '', name: ''}],
    operatingSystemVersions: [
      {
        id: '',
        kind: '',
        majorVersion: '',
        minorVersion: '',
        name: '',
        operatingSystem: {dartId: '', desktop: false, kind: '', mobile: false, name: ''}
      }
    ],
    operatingSystems: [{}],
    platformTypes: [{id: '', kind: '', name: ''}]
  }
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/userprofiles/:profileId/targetingTemplates',
  headers: {'content-type': 'application/json'},
  body: {
    accountId: '',
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    dayPartTargeting: {daysOfWeek: [], hoursOfDay: [], userLocalTime: false},
    geoTargeting: {
      cities: [
        {
          countryCode: '',
          countryDartId: '',
          dartId: '',
          kind: '',
          metroCode: '',
          metroDmaId: '',
          name: '',
          regionCode: '',
          regionDartId: ''
        }
      ],
      countries: [{countryCode: '', dartId: '', kind: '', name: '', sslEnabled: false}],
      excludeCountries: false,
      metros: [
        {
          countryCode: '',
          countryDartId: '',
          dartId: '',
          dmaId: '',
          kind: '',
          metroCode: '',
          name: ''
        }
      ],
      postalCodes: [{code: '', countryCode: '', countryDartId: '', id: '', kind: ''}],
      regions: [
        {
          countryCode: '',
          countryDartId: '',
          dartId: '',
          kind: '',
          name: '',
          regionCode: ''
        }
      ]
    },
    id: '',
    keyValueTargetingExpression: {expression: ''},
    kind: '',
    languageTargeting: {languages: [{id: '', kind: '', languageCode: '', name: ''}]},
    listTargetingExpression: {expression: ''},
    name: '',
    subaccountId: '',
    technologyTargeting: {
      browsers: [
        {
          browserVersionId: '',
          dartId: '',
          kind: '',
          majorVersion: '',
          minorVersion: '',
          name: ''
        }
      ],
      connectionTypes: [{id: '', kind: '', name: ''}],
      mobileCarriers: [{countryCode: '', countryDartId: '', id: '', kind: '', name: ''}],
      operatingSystemVersions: [
        {
          id: '',
          kind: '',
          majorVersion: '',
          minorVersion: '',
          name: '',
          operatingSystem: {dartId: '', desktop: false, kind: '', mobile: false, name: ''}
        }
      ],
      operatingSystems: [{}],
      platformTypes: [{id: '', kind: '', name: ''}]
    }
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('POST', '{{baseUrl}}/userprofiles/:profileId/targetingTemplates');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  accountId: '',
  advertiserId: '',
  advertiserIdDimensionValue: {
    dimensionName: '',
    etag: '',
    id: '',
    kind: '',
    matchType: '',
    value: ''
  },
  dayPartTargeting: {
    daysOfWeek: [],
    hoursOfDay: [],
    userLocalTime: false
  },
  geoTargeting: {
    cities: [
      {
        countryCode: '',
        countryDartId: '',
        dartId: '',
        kind: '',
        metroCode: '',
        metroDmaId: '',
        name: '',
        regionCode: '',
        regionDartId: ''
      }
    ],
    countries: [
      {
        countryCode: '',
        dartId: '',
        kind: '',
        name: '',
        sslEnabled: false
      }
    ],
    excludeCountries: false,
    metros: [
      {
        countryCode: '',
        countryDartId: '',
        dartId: '',
        dmaId: '',
        kind: '',
        metroCode: '',
        name: ''
      }
    ],
    postalCodes: [
      {
        code: '',
        countryCode: '',
        countryDartId: '',
        id: '',
        kind: ''
      }
    ],
    regions: [
      {
        countryCode: '',
        countryDartId: '',
        dartId: '',
        kind: '',
        name: '',
        regionCode: ''
      }
    ]
  },
  id: '',
  keyValueTargetingExpression: {
    expression: ''
  },
  kind: '',
  languageTargeting: {
    languages: [
      {
        id: '',
        kind: '',
        languageCode: '',
        name: ''
      }
    ]
  },
  listTargetingExpression: {
    expression: ''
  },
  name: '',
  subaccountId: '',
  technologyTargeting: {
    browsers: [
      {
        browserVersionId: '',
        dartId: '',
        kind: '',
        majorVersion: '',
        minorVersion: '',
        name: ''
      }
    ],
    connectionTypes: [
      {
        id: '',
        kind: '',
        name: ''
      }
    ],
    mobileCarriers: [
      {
        countryCode: '',
        countryDartId: '',
        id: '',
        kind: '',
        name: ''
      }
    ],
    operatingSystemVersions: [
      {
        id: '',
        kind: '',
        majorVersion: '',
        minorVersion: '',
        name: '',
        operatingSystem: {
          dartId: '',
          desktop: false,
          kind: '',
          mobile: false,
          name: ''
        }
      }
    ],
    operatingSystems: [
      {}
    ],
    platformTypes: [
      {
        id: '',
        kind: '',
        name: ''
      }
    ]
  }
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'POST',
  url: '{{baseUrl}}/userprofiles/:profileId/targetingTemplates',
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    dayPartTargeting: {daysOfWeek: [], hoursOfDay: [], userLocalTime: false},
    geoTargeting: {
      cities: [
        {
          countryCode: '',
          countryDartId: '',
          dartId: '',
          kind: '',
          metroCode: '',
          metroDmaId: '',
          name: '',
          regionCode: '',
          regionDartId: ''
        }
      ],
      countries: [{countryCode: '', dartId: '', kind: '', name: '', sslEnabled: false}],
      excludeCountries: false,
      metros: [
        {
          countryCode: '',
          countryDartId: '',
          dartId: '',
          dmaId: '',
          kind: '',
          metroCode: '',
          name: ''
        }
      ],
      postalCodes: [{code: '', countryCode: '', countryDartId: '', id: '', kind: ''}],
      regions: [
        {
          countryCode: '',
          countryDartId: '',
          dartId: '',
          kind: '',
          name: '',
          regionCode: ''
        }
      ]
    },
    id: '',
    keyValueTargetingExpression: {expression: ''},
    kind: '',
    languageTargeting: {languages: [{id: '', kind: '', languageCode: '', name: ''}]},
    listTargetingExpression: {expression: ''},
    name: '',
    subaccountId: '',
    technologyTargeting: {
      browsers: [
        {
          browserVersionId: '',
          dartId: '',
          kind: '',
          majorVersion: '',
          minorVersion: '',
          name: ''
        }
      ],
      connectionTypes: [{id: '', kind: '', name: ''}],
      mobileCarriers: [{countryCode: '', countryDartId: '', id: '', kind: '', name: ''}],
      operatingSystemVersions: [
        {
          id: '',
          kind: '',
          majorVersion: '',
          minorVersion: '',
          name: '',
          operatingSystem: {dartId: '', desktop: false, kind: '', mobile: false, name: ''}
        }
      ],
      operatingSystems: [{}],
      platformTypes: [{id: '', kind: '', name: ''}]
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/targetingTemplates';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","advertiserId":"","advertiserIdDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"dayPartTargeting":{"daysOfWeek":[],"hoursOfDay":[],"userLocalTime":false},"geoTargeting":{"cities":[{"countryCode":"","countryDartId":"","dartId":"","kind":"","metroCode":"","metroDmaId":"","name":"","regionCode":"","regionDartId":""}],"countries":[{"countryCode":"","dartId":"","kind":"","name":"","sslEnabled":false}],"excludeCountries":false,"metros":[{"countryCode":"","countryDartId":"","dartId":"","dmaId":"","kind":"","metroCode":"","name":""}],"postalCodes":[{"code":"","countryCode":"","countryDartId":"","id":"","kind":""}],"regions":[{"countryCode":"","countryDartId":"","dartId":"","kind":"","name":"","regionCode":""}]},"id":"","keyValueTargetingExpression":{"expression":""},"kind":"","languageTargeting":{"languages":[{"id":"","kind":"","languageCode":"","name":""}]},"listTargetingExpression":{"expression":""},"name":"","subaccountId":"","technologyTargeting":{"browsers":[{"browserVersionId":"","dartId":"","kind":"","majorVersion":"","minorVersion":"","name":""}],"connectionTypes":[{"id":"","kind":"","name":""}],"mobileCarriers":[{"countryCode":"","countryDartId":"","id":"","kind":"","name":""}],"operatingSystemVersions":[{"id":"","kind":"","majorVersion":"","minorVersion":"","name":"","operatingSystem":{"dartId":"","desktop":false,"kind":"","mobile":false,"name":""}}],"operatingSystems":[{}],"platformTypes":[{"id":"","kind":"","name":""}]}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"accountId": @"",
                              @"advertiserId": @"",
                              @"advertiserIdDimensionValue": @{ @"dimensionName": @"", @"etag": @"", @"id": @"", @"kind": @"", @"matchType": @"", @"value": @"" },
                              @"dayPartTargeting": @{ @"daysOfWeek": @[  ], @"hoursOfDay": @[  ], @"userLocalTime": @NO },
                              @"geoTargeting": @{ @"cities": @[ @{ @"countryCode": @"", @"countryDartId": @"", @"dartId": @"", @"kind": @"", @"metroCode": @"", @"metroDmaId": @"", @"name": @"", @"regionCode": @"", @"regionDartId": @"" } ], @"countries": @[ @{ @"countryCode": @"", @"dartId": @"", @"kind": @"", @"name": @"", @"sslEnabled": @NO } ], @"excludeCountries": @NO, @"metros": @[ @{ @"countryCode": @"", @"countryDartId": @"", @"dartId": @"", @"dmaId": @"", @"kind": @"", @"metroCode": @"", @"name": @"" } ], @"postalCodes": @[ @{ @"code": @"", @"countryCode": @"", @"countryDartId": @"", @"id": @"", @"kind": @"" } ], @"regions": @[ @{ @"countryCode": @"", @"countryDartId": @"", @"dartId": @"", @"kind": @"", @"name": @"", @"regionCode": @"" } ] },
                              @"id": @"",
                              @"keyValueTargetingExpression": @{ @"expression": @"" },
                              @"kind": @"",
                              @"languageTargeting": @{ @"languages": @[ @{ @"id": @"", @"kind": @"", @"languageCode": @"", @"name": @"" } ] },
                              @"listTargetingExpression": @{ @"expression": @"" },
                              @"name": @"",
                              @"subaccountId": @"",
                              @"technologyTargeting": @{ @"browsers": @[ @{ @"browserVersionId": @"", @"dartId": @"", @"kind": @"", @"majorVersion": @"", @"minorVersion": @"", @"name": @"" } ], @"connectionTypes": @[ @{ @"id": @"", @"kind": @"", @"name": @"" } ], @"mobileCarriers": @[ @{ @"countryCode": @"", @"countryDartId": @"", @"id": @"", @"kind": @"", @"name": @"" } ], @"operatingSystemVersions": @[ @{ @"id": @"", @"kind": @"", @"majorVersion": @"", @"minorVersion": @"", @"name": @"", @"operatingSystem": @{ @"dartId": @"", @"desktop": @NO, @"kind": @"", @"mobile": @NO, @"name": @"" } } ], @"operatingSystems": @[ @{  } ], @"platformTypes": @[ @{ @"id": @"", @"kind": @"", @"name": @"" } ] } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/userprofiles/:profileId/targetingTemplates"]
                                                       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}}/userprofiles/:profileId/targetingTemplates" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"listTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  }\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/targetingTemplates",
  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([
    'accountId' => '',
    'advertiserId' => '',
    'advertiserIdDimensionValue' => [
        'dimensionName' => '',
        'etag' => '',
        'id' => '',
        'kind' => '',
        'matchType' => '',
        'value' => ''
    ],
    'dayPartTargeting' => [
        'daysOfWeek' => [
                
        ],
        'hoursOfDay' => [
                
        ],
        'userLocalTime' => null
    ],
    'geoTargeting' => [
        'cities' => [
                [
                                'countryCode' => '',
                                'countryDartId' => '',
                                'dartId' => '',
                                'kind' => '',
                                'metroCode' => '',
                                'metroDmaId' => '',
                                'name' => '',
                                'regionCode' => '',
                                'regionDartId' => ''
                ]
        ],
        'countries' => [
                [
                                'countryCode' => '',
                                'dartId' => '',
                                'kind' => '',
                                'name' => '',
                                'sslEnabled' => null
                ]
        ],
        'excludeCountries' => null,
        'metros' => [
                [
                                'countryCode' => '',
                                'countryDartId' => '',
                                'dartId' => '',
                                'dmaId' => '',
                                'kind' => '',
                                'metroCode' => '',
                                'name' => ''
                ]
        ],
        'postalCodes' => [
                [
                                'code' => '',
                                'countryCode' => '',
                                'countryDartId' => '',
                                'id' => '',
                                'kind' => ''
                ]
        ],
        'regions' => [
                [
                                'countryCode' => '',
                                'countryDartId' => '',
                                'dartId' => '',
                                'kind' => '',
                                'name' => '',
                                'regionCode' => ''
                ]
        ]
    ],
    'id' => '',
    'keyValueTargetingExpression' => [
        'expression' => ''
    ],
    'kind' => '',
    'languageTargeting' => [
        'languages' => [
                [
                                'id' => '',
                                'kind' => '',
                                'languageCode' => '',
                                'name' => ''
                ]
        ]
    ],
    'listTargetingExpression' => [
        'expression' => ''
    ],
    'name' => '',
    'subaccountId' => '',
    'technologyTargeting' => [
        'browsers' => [
                [
                                'browserVersionId' => '',
                                'dartId' => '',
                                'kind' => '',
                                'majorVersion' => '',
                                'minorVersion' => '',
                                'name' => ''
                ]
        ],
        'connectionTypes' => [
                [
                                'id' => '',
                                'kind' => '',
                                'name' => ''
                ]
        ],
        'mobileCarriers' => [
                [
                                'countryCode' => '',
                                'countryDartId' => '',
                                'id' => '',
                                'kind' => '',
                                'name' => ''
                ]
        ],
        'operatingSystemVersions' => [
                [
                                'id' => '',
                                'kind' => '',
                                'majorVersion' => '',
                                'minorVersion' => '',
                                'name' => '',
                                'operatingSystem' => [
                                                                'dartId' => '',
                                                                'desktop' => null,
                                                                'kind' => '',
                                                                'mobile' => null,
                                                                'name' => ''
                                ]
                ]
        ],
        'operatingSystems' => [
                [
                                
                ]
        ],
        'platformTypes' => [
                [
                                'id' => '',
                                'kind' => '',
                                'name' => ''
                ]
        ]
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('POST', '{{baseUrl}}/userprofiles/:profileId/targetingTemplates', [
  'body' => '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "dayPartTargeting": {
    "daysOfWeek": [],
    "hoursOfDay": [],
    "userLocalTime": false
  },
  "geoTargeting": {
    "cities": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "metroCode": "",
        "metroDmaId": "",
        "name": "",
        "regionCode": "",
        "regionDartId": ""
      }
    ],
    "countries": [
      {
        "countryCode": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "sslEnabled": false
      }
    ],
    "excludeCountries": false,
    "metros": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "dmaId": "",
        "kind": "",
        "metroCode": "",
        "name": ""
      }
    ],
    "postalCodes": [
      {
        "code": "",
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": ""
      }
    ],
    "regions": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "regionCode": ""
      }
    ]
  },
  "id": "",
  "keyValueTargetingExpression": {
    "expression": ""
  },
  "kind": "",
  "languageTargeting": {
    "languages": [
      {
        "id": "",
        "kind": "",
        "languageCode": "",
        "name": ""
      }
    ]
  },
  "listTargetingExpression": {
    "expression": ""
  },
  "name": "",
  "subaccountId": "",
  "technologyTargeting": {
    "browsers": [
      {
        "browserVersionId": "",
        "dartId": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": ""
      }
    ],
    "connectionTypes": [
      {
        "id": "",
        "kind": "",
        "name": ""
      }
    ],
    "mobileCarriers": [
      {
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": "",
        "name": ""
      }
    ],
    "operatingSystemVersions": [
      {
        "id": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": "",
        "operatingSystem": {
          "dartId": "",
          "desktop": false,
          "kind": "",
          "mobile": false,
          "name": ""
        }
      }
    ],
    "operatingSystems": [
      {}
    ],
    "platformTypes": [
      {
        "id": "",
        "kind": "",
        "name": ""
      }
    ]
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/targetingTemplates');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'accountId' => '',
  'advertiserId' => '',
  'advertiserIdDimensionValue' => [
    'dimensionName' => '',
    'etag' => '',
    'id' => '',
    'kind' => '',
    'matchType' => '',
    'value' => ''
  ],
  'dayPartTargeting' => [
    'daysOfWeek' => [
        
    ],
    'hoursOfDay' => [
        
    ],
    'userLocalTime' => null
  ],
  'geoTargeting' => [
    'cities' => [
        [
                'countryCode' => '',
                'countryDartId' => '',
                'dartId' => '',
                'kind' => '',
                'metroCode' => '',
                'metroDmaId' => '',
                'name' => '',
                'regionCode' => '',
                'regionDartId' => ''
        ]
    ],
    'countries' => [
        [
                'countryCode' => '',
                'dartId' => '',
                'kind' => '',
                'name' => '',
                'sslEnabled' => null
        ]
    ],
    'excludeCountries' => null,
    'metros' => [
        [
                'countryCode' => '',
                'countryDartId' => '',
                'dartId' => '',
                'dmaId' => '',
                'kind' => '',
                'metroCode' => '',
                'name' => ''
        ]
    ],
    'postalCodes' => [
        [
                'code' => '',
                'countryCode' => '',
                'countryDartId' => '',
                'id' => '',
                'kind' => ''
        ]
    ],
    'regions' => [
        [
                'countryCode' => '',
                'countryDartId' => '',
                'dartId' => '',
                'kind' => '',
                'name' => '',
                'regionCode' => ''
        ]
    ]
  ],
  'id' => '',
  'keyValueTargetingExpression' => [
    'expression' => ''
  ],
  'kind' => '',
  'languageTargeting' => [
    'languages' => [
        [
                'id' => '',
                'kind' => '',
                'languageCode' => '',
                'name' => ''
        ]
    ]
  ],
  'listTargetingExpression' => [
    'expression' => ''
  ],
  'name' => '',
  'subaccountId' => '',
  'technologyTargeting' => [
    'browsers' => [
        [
                'browserVersionId' => '',
                'dartId' => '',
                'kind' => '',
                'majorVersion' => '',
                'minorVersion' => '',
                'name' => ''
        ]
    ],
    'connectionTypes' => [
        [
                'id' => '',
                'kind' => '',
                'name' => ''
        ]
    ],
    'mobileCarriers' => [
        [
                'countryCode' => '',
                'countryDartId' => '',
                'id' => '',
                'kind' => '',
                'name' => ''
        ]
    ],
    'operatingSystemVersions' => [
        [
                'id' => '',
                'kind' => '',
                'majorVersion' => '',
                'minorVersion' => '',
                'name' => '',
                'operatingSystem' => [
                                'dartId' => '',
                                'desktop' => null,
                                'kind' => '',
                                'mobile' => null,
                                'name' => ''
                ]
        ]
    ],
    'operatingSystems' => [
        [
                
        ]
    ],
    'platformTypes' => [
        [
                'id' => '',
                'kind' => '',
                'name' => ''
        ]
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'accountId' => '',
  'advertiserId' => '',
  'advertiserIdDimensionValue' => [
    'dimensionName' => '',
    'etag' => '',
    'id' => '',
    'kind' => '',
    'matchType' => '',
    'value' => ''
  ],
  'dayPartTargeting' => [
    'daysOfWeek' => [
        
    ],
    'hoursOfDay' => [
        
    ],
    'userLocalTime' => null
  ],
  'geoTargeting' => [
    'cities' => [
        [
                'countryCode' => '',
                'countryDartId' => '',
                'dartId' => '',
                'kind' => '',
                'metroCode' => '',
                'metroDmaId' => '',
                'name' => '',
                'regionCode' => '',
                'regionDartId' => ''
        ]
    ],
    'countries' => [
        [
                'countryCode' => '',
                'dartId' => '',
                'kind' => '',
                'name' => '',
                'sslEnabled' => null
        ]
    ],
    'excludeCountries' => null,
    'metros' => [
        [
                'countryCode' => '',
                'countryDartId' => '',
                'dartId' => '',
                'dmaId' => '',
                'kind' => '',
                'metroCode' => '',
                'name' => ''
        ]
    ],
    'postalCodes' => [
        [
                'code' => '',
                'countryCode' => '',
                'countryDartId' => '',
                'id' => '',
                'kind' => ''
        ]
    ],
    'regions' => [
        [
                'countryCode' => '',
                'countryDartId' => '',
                'dartId' => '',
                'kind' => '',
                'name' => '',
                'regionCode' => ''
        ]
    ]
  ],
  'id' => '',
  'keyValueTargetingExpression' => [
    'expression' => ''
  ],
  'kind' => '',
  'languageTargeting' => [
    'languages' => [
        [
                'id' => '',
                'kind' => '',
                'languageCode' => '',
                'name' => ''
        ]
    ]
  ],
  'listTargetingExpression' => [
    'expression' => ''
  ],
  'name' => '',
  'subaccountId' => '',
  'technologyTargeting' => [
    'browsers' => [
        [
                'browserVersionId' => '',
                'dartId' => '',
                'kind' => '',
                'majorVersion' => '',
                'minorVersion' => '',
                'name' => ''
        ]
    ],
    'connectionTypes' => [
        [
                'id' => '',
                'kind' => '',
                'name' => ''
        ]
    ],
    'mobileCarriers' => [
        [
                'countryCode' => '',
                'countryDartId' => '',
                'id' => '',
                'kind' => '',
                'name' => ''
        ]
    ],
    'operatingSystemVersions' => [
        [
                'id' => '',
                'kind' => '',
                'majorVersion' => '',
                'minorVersion' => '',
                'name' => '',
                'operatingSystem' => [
                                'dartId' => '',
                                'desktop' => null,
                                'kind' => '',
                                'mobile' => null,
                                'name' => ''
                ]
        ]
    ],
    'operatingSystems' => [
        [
                
        ]
    ],
    'platformTypes' => [
        [
                'id' => '',
                'kind' => '',
                'name' => ''
        ]
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/userprofiles/:profileId/targetingTemplates');
$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}}/userprofiles/:profileId/targetingTemplates' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "dayPartTargeting": {
    "daysOfWeek": [],
    "hoursOfDay": [],
    "userLocalTime": false
  },
  "geoTargeting": {
    "cities": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "metroCode": "",
        "metroDmaId": "",
        "name": "",
        "regionCode": "",
        "regionDartId": ""
      }
    ],
    "countries": [
      {
        "countryCode": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "sslEnabled": false
      }
    ],
    "excludeCountries": false,
    "metros": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "dmaId": "",
        "kind": "",
        "metroCode": "",
        "name": ""
      }
    ],
    "postalCodes": [
      {
        "code": "",
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": ""
      }
    ],
    "regions": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "regionCode": ""
      }
    ]
  },
  "id": "",
  "keyValueTargetingExpression": {
    "expression": ""
  },
  "kind": "",
  "languageTargeting": {
    "languages": [
      {
        "id": "",
        "kind": "",
        "languageCode": "",
        "name": ""
      }
    ]
  },
  "listTargetingExpression": {
    "expression": ""
  },
  "name": "",
  "subaccountId": "",
  "technologyTargeting": {
    "browsers": [
      {
        "browserVersionId": "",
        "dartId": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": ""
      }
    ],
    "connectionTypes": [
      {
        "id": "",
        "kind": "",
        "name": ""
      }
    ],
    "mobileCarriers": [
      {
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": "",
        "name": ""
      }
    ],
    "operatingSystemVersions": [
      {
        "id": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": "",
        "operatingSystem": {
          "dartId": "",
          "desktop": false,
          "kind": "",
          "mobile": false,
          "name": ""
        }
      }
    ],
    "operatingSystems": [
      {}
    ],
    "platformTypes": [
      {
        "id": "",
        "kind": "",
        "name": ""
      }
    ]
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/targetingTemplates' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "dayPartTargeting": {
    "daysOfWeek": [],
    "hoursOfDay": [],
    "userLocalTime": false
  },
  "geoTargeting": {
    "cities": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "metroCode": "",
        "metroDmaId": "",
        "name": "",
        "regionCode": "",
        "regionDartId": ""
      }
    ],
    "countries": [
      {
        "countryCode": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "sslEnabled": false
      }
    ],
    "excludeCountries": false,
    "metros": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "dmaId": "",
        "kind": "",
        "metroCode": "",
        "name": ""
      }
    ],
    "postalCodes": [
      {
        "code": "",
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": ""
      }
    ],
    "regions": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "regionCode": ""
      }
    ]
  },
  "id": "",
  "keyValueTargetingExpression": {
    "expression": ""
  },
  "kind": "",
  "languageTargeting": {
    "languages": [
      {
        "id": "",
        "kind": "",
        "languageCode": "",
        "name": ""
      }
    ]
  },
  "listTargetingExpression": {
    "expression": ""
  },
  "name": "",
  "subaccountId": "",
  "technologyTargeting": {
    "browsers": [
      {
        "browserVersionId": "",
        "dartId": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": ""
      }
    ],
    "connectionTypes": [
      {
        "id": "",
        "kind": "",
        "name": ""
      }
    ],
    "mobileCarriers": [
      {
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": "",
        "name": ""
      }
    ],
    "operatingSystemVersions": [
      {
        "id": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": "",
        "operatingSystem": {
          "dartId": "",
          "desktop": false,
          "kind": "",
          "mobile": false,
          "name": ""
        }
      }
    ],
    "operatingSystems": [
      {}
    ],
    "platformTypes": [
      {
        "id": "",
        "kind": "",
        "name": ""
      }
    ]
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"listTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/userprofiles/:profileId/targetingTemplates", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/targetingTemplates"

payload = {
    "accountId": "",
    "advertiserId": "",
    "advertiserIdDimensionValue": {
        "dimensionName": "",
        "etag": "",
        "id": "",
        "kind": "",
        "matchType": "",
        "value": ""
    },
    "dayPartTargeting": {
        "daysOfWeek": [],
        "hoursOfDay": [],
        "userLocalTime": False
    },
    "geoTargeting": {
        "cities": [
            {
                "countryCode": "",
                "countryDartId": "",
                "dartId": "",
                "kind": "",
                "metroCode": "",
                "metroDmaId": "",
                "name": "",
                "regionCode": "",
                "regionDartId": ""
            }
        ],
        "countries": [
            {
                "countryCode": "",
                "dartId": "",
                "kind": "",
                "name": "",
                "sslEnabled": False
            }
        ],
        "excludeCountries": False,
        "metros": [
            {
                "countryCode": "",
                "countryDartId": "",
                "dartId": "",
                "dmaId": "",
                "kind": "",
                "metroCode": "",
                "name": ""
            }
        ],
        "postalCodes": [
            {
                "code": "",
                "countryCode": "",
                "countryDartId": "",
                "id": "",
                "kind": ""
            }
        ],
        "regions": [
            {
                "countryCode": "",
                "countryDartId": "",
                "dartId": "",
                "kind": "",
                "name": "",
                "regionCode": ""
            }
        ]
    },
    "id": "",
    "keyValueTargetingExpression": { "expression": "" },
    "kind": "",
    "languageTargeting": { "languages": [
            {
                "id": "",
                "kind": "",
                "languageCode": "",
                "name": ""
            }
        ] },
    "listTargetingExpression": { "expression": "" },
    "name": "",
    "subaccountId": "",
    "technologyTargeting": {
        "browsers": [
            {
                "browserVersionId": "",
                "dartId": "",
                "kind": "",
                "majorVersion": "",
                "minorVersion": "",
                "name": ""
            }
        ],
        "connectionTypes": [
            {
                "id": "",
                "kind": "",
                "name": ""
            }
        ],
        "mobileCarriers": [
            {
                "countryCode": "",
                "countryDartId": "",
                "id": "",
                "kind": "",
                "name": ""
            }
        ],
        "operatingSystemVersions": [
            {
                "id": "",
                "kind": "",
                "majorVersion": "",
                "minorVersion": "",
                "name": "",
                "operatingSystem": {
                    "dartId": "",
                    "desktop": False,
                    "kind": "",
                    "mobile": False,
                    "name": ""
                }
            }
        ],
        "operatingSystems": [{}],
        "platformTypes": [
            {
                "id": "",
                "kind": "",
                "name": ""
            }
        ]
    }
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/targetingTemplates"

payload <- "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"listTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\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}}/userprofiles/:profileId/targetingTemplates")

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  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"listTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\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/userprofiles/:profileId/targetingTemplates') do |req|
  req.body = "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"listTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\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}}/userprofiles/:profileId/targetingTemplates";

    let payload = json!({
        "accountId": "",
        "advertiserId": "",
        "advertiserIdDimensionValue": json!({
            "dimensionName": "",
            "etag": "",
            "id": "",
            "kind": "",
            "matchType": "",
            "value": ""
        }),
        "dayPartTargeting": json!({
            "daysOfWeek": (),
            "hoursOfDay": (),
            "userLocalTime": false
        }),
        "geoTargeting": json!({
            "cities": (
                json!({
                    "countryCode": "",
                    "countryDartId": "",
                    "dartId": "",
                    "kind": "",
                    "metroCode": "",
                    "metroDmaId": "",
                    "name": "",
                    "regionCode": "",
                    "regionDartId": ""
                })
            ),
            "countries": (
                json!({
                    "countryCode": "",
                    "dartId": "",
                    "kind": "",
                    "name": "",
                    "sslEnabled": false
                })
            ),
            "excludeCountries": false,
            "metros": (
                json!({
                    "countryCode": "",
                    "countryDartId": "",
                    "dartId": "",
                    "dmaId": "",
                    "kind": "",
                    "metroCode": "",
                    "name": ""
                })
            ),
            "postalCodes": (
                json!({
                    "code": "",
                    "countryCode": "",
                    "countryDartId": "",
                    "id": "",
                    "kind": ""
                })
            ),
            "regions": (
                json!({
                    "countryCode": "",
                    "countryDartId": "",
                    "dartId": "",
                    "kind": "",
                    "name": "",
                    "regionCode": ""
                })
            )
        }),
        "id": "",
        "keyValueTargetingExpression": json!({"expression": ""}),
        "kind": "",
        "languageTargeting": json!({"languages": (
                json!({
                    "id": "",
                    "kind": "",
                    "languageCode": "",
                    "name": ""
                })
            )}),
        "listTargetingExpression": json!({"expression": ""}),
        "name": "",
        "subaccountId": "",
        "technologyTargeting": json!({
            "browsers": (
                json!({
                    "browserVersionId": "",
                    "dartId": "",
                    "kind": "",
                    "majorVersion": "",
                    "minorVersion": "",
                    "name": ""
                })
            ),
            "connectionTypes": (
                json!({
                    "id": "",
                    "kind": "",
                    "name": ""
                })
            ),
            "mobileCarriers": (
                json!({
                    "countryCode": "",
                    "countryDartId": "",
                    "id": "",
                    "kind": "",
                    "name": ""
                })
            ),
            "operatingSystemVersions": (
                json!({
                    "id": "",
                    "kind": "",
                    "majorVersion": "",
                    "minorVersion": "",
                    "name": "",
                    "operatingSystem": json!({
                        "dartId": "",
                        "desktop": false,
                        "kind": "",
                        "mobile": false,
                        "name": ""
                    })
                })
            ),
            "operatingSystems": (json!({})),
            "platformTypes": (
                json!({
                    "id": "",
                    "kind": "",
                    "name": ""
                })
            )
        })
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.post(url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request POST \
  --url {{baseUrl}}/userprofiles/:profileId/targetingTemplates \
  --header 'content-type: application/json' \
  --data '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "dayPartTargeting": {
    "daysOfWeek": [],
    "hoursOfDay": [],
    "userLocalTime": false
  },
  "geoTargeting": {
    "cities": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "metroCode": "",
        "metroDmaId": "",
        "name": "",
        "regionCode": "",
        "regionDartId": ""
      }
    ],
    "countries": [
      {
        "countryCode": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "sslEnabled": false
      }
    ],
    "excludeCountries": false,
    "metros": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "dmaId": "",
        "kind": "",
        "metroCode": "",
        "name": ""
      }
    ],
    "postalCodes": [
      {
        "code": "",
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": ""
      }
    ],
    "regions": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "regionCode": ""
      }
    ]
  },
  "id": "",
  "keyValueTargetingExpression": {
    "expression": ""
  },
  "kind": "",
  "languageTargeting": {
    "languages": [
      {
        "id": "",
        "kind": "",
        "languageCode": "",
        "name": ""
      }
    ]
  },
  "listTargetingExpression": {
    "expression": ""
  },
  "name": "",
  "subaccountId": "",
  "technologyTargeting": {
    "browsers": [
      {
        "browserVersionId": "",
        "dartId": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": ""
      }
    ],
    "connectionTypes": [
      {
        "id": "",
        "kind": "",
        "name": ""
      }
    ],
    "mobileCarriers": [
      {
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": "",
        "name": ""
      }
    ],
    "operatingSystemVersions": [
      {
        "id": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": "",
        "operatingSystem": {
          "dartId": "",
          "desktop": false,
          "kind": "",
          "mobile": false,
          "name": ""
        }
      }
    ],
    "operatingSystems": [
      {}
    ],
    "platformTypes": [
      {
        "id": "",
        "kind": "",
        "name": ""
      }
    ]
  }
}'
echo '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "dayPartTargeting": {
    "daysOfWeek": [],
    "hoursOfDay": [],
    "userLocalTime": false
  },
  "geoTargeting": {
    "cities": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "metroCode": "",
        "metroDmaId": "",
        "name": "",
        "regionCode": "",
        "regionDartId": ""
      }
    ],
    "countries": [
      {
        "countryCode": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "sslEnabled": false
      }
    ],
    "excludeCountries": false,
    "metros": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "dmaId": "",
        "kind": "",
        "metroCode": "",
        "name": ""
      }
    ],
    "postalCodes": [
      {
        "code": "",
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": ""
      }
    ],
    "regions": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "regionCode": ""
      }
    ]
  },
  "id": "",
  "keyValueTargetingExpression": {
    "expression": ""
  },
  "kind": "",
  "languageTargeting": {
    "languages": [
      {
        "id": "",
        "kind": "",
        "languageCode": "",
        "name": ""
      }
    ]
  },
  "listTargetingExpression": {
    "expression": ""
  },
  "name": "",
  "subaccountId": "",
  "technologyTargeting": {
    "browsers": [
      {
        "browserVersionId": "",
        "dartId": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": ""
      }
    ],
    "connectionTypes": [
      {
        "id": "",
        "kind": "",
        "name": ""
      }
    ],
    "mobileCarriers": [
      {
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": "",
        "name": ""
      }
    ],
    "operatingSystemVersions": [
      {
        "id": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": "",
        "operatingSystem": {
          "dartId": "",
          "desktop": false,
          "kind": "",
          "mobile": false,
          "name": ""
        }
      }
    ],
    "operatingSystems": [
      {}
    ],
    "platformTypes": [
      {
        "id": "",
        "kind": "",
        "name": ""
      }
    ]
  }
}' |  \
  http POST {{baseUrl}}/userprofiles/:profileId/targetingTemplates \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "accountId": "",\n  "advertiserId": "",\n  "advertiserIdDimensionValue": {\n    "dimensionName": "",\n    "etag": "",\n    "id": "",\n    "kind": "",\n    "matchType": "",\n    "value": ""\n  },\n  "dayPartTargeting": {\n    "daysOfWeek": [],\n    "hoursOfDay": [],\n    "userLocalTime": false\n  },\n  "geoTargeting": {\n    "cities": [\n      {\n        "countryCode": "",\n        "countryDartId": "",\n        "dartId": "",\n        "kind": "",\n        "metroCode": "",\n        "metroDmaId": "",\n        "name": "",\n        "regionCode": "",\n        "regionDartId": ""\n      }\n    ],\n    "countries": [\n      {\n        "countryCode": "",\n        "dartId": "",\n        "kind": "",\n        "name": "",\n        "sslEnabled": false\n      }\n    ],\n    "excludeCountries": false,\n    "metros": [\n      {\n        "countryCode": "",\n        "countryDartId": "",\n        "dartId": "",\n        "dmaId": "",\n        "kind": "",\n        "metroCode": "",\n        "name": ""\n      }\n    ],\n    "postalCodes": [\n      {\n        "code": "",\n        "countryCode": "",\n        "countryDartId": "",\n        "id": "",\n        "kind": ""\n      }\n    ],\n    "regions": [\n      {\n        "countryCode": "",\n        "countryDartId": "",\n        "dartId": "",\n        "kind": "",\n        "name": "",\n        "regionCode": ""\n      }\n    ]\n  },\n  "id": "",\n  "keyValueTargetingExpression": {\n    "expression": ""\n  },\n  "kind": "",\n  "languageTargeting": {\n    "languages": [\n      {\n        "id": "",\n        "kind": "",\n        "languageCode": "",\n        "name": ""\n      }\n    ]\n  },\n  "listTargetingExpression": {\n    "expression": ""\n  },\n  "name": "",\n  "subaccountId": "",\n  "technologyTargeting": {\n    "browsers": [\n      {\n        "browserVersionId": "",\n        "dartId": "",\n        "kind": "",\n        "majorVersion": "",\n        "minorVersion": "",\n        "name": ""\n      }\n    ],\n    "connectionTypes": [\n      {\n        "id": "",\n        "kind": "",\n        "name": ""\n      }\n    ],\n    "mobileCarriers": [\n      {\n        "countryCode": "",\n        "countryDartId": "",\n        "id": "",\n        "kind": "",\n        "name": ""\n      }\n    ],\n    "operatingSystemVersions": [\n      {\n        "id": "",\n        "kind": "",\n        "majorVersion": "",\n        "minorVersion": "",\n        "name": "",\n        "operatingSystem": {\n          "dartId": "",\n          "desktop": false,\n          "kind": "",\n          "mobile": false,\n          "name": ""\n        }\n      }\n    ],\n    "operatingSystems": [\n      {}\n    ],\n    "platformTypes": [\n      {\n        "id": "",\n        "kind": "",\n        "name": ""\n      }\n    ]\n  }\n}' \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/targetingTemplates
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": [
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  ],
  "dayPartTargeting": [
    "daysOfWeek": [],
    "hoursOfDay": [],
    "userLocalTime": false
  ],
  "geoTargeting": [
    "cities": [
      [
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "metroCode": "",
        "metroDmaId": "",
        "name": "",
        "regionCode": "",
        "regionDartId": ""
      ]
    ],
    "countries": [
      [
        "countryCode": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "sslEnabled": false
      ]
    ],
    "excludeCountries": false,
    "metros": [
      [
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "dmaId": "",
        "kind": "",
        "metroCode": "",
        "name": ""
      ]
    ],
    "postalCodes": [
      [
        "code": "",
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": ""
      ]
    ],
    "regions": [
      [
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "regionCode": ""
      ]
    ]
  ],
  "id": "",
  "keyValueTargetingExpression": ["expression": ""],
  "kind": "",
  "languageTargeting": ["languages": [
      [
        "id": "",
        "kind": "",
        "languageCode": "",
        "name": ""
      ]
    ]],
  "listTargetingExpression": ["expression": ""],
  "name": "",
  "subaccountId": "",
  "technologyTargeting": [
    "browsers": [
      [
        "browserVersionId": "",
        "dartId": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": ""
      ]
    ],
    "connectionTypes": [
      [
        "id": "",
        "kind": "",
        "name": ""
      ]
    ],
    "mobileCarriers": [
      [
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": "",
        "name": ""
      ]
    ],
    "operatingSystemVersions": [
      [
        "id": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": "",
        "operatingSystem": [
          "dartId": "",
          "desktop": false,
          "kind": "",
          "mobile": false,
          "name": ""
        ]
      ]
    ],
    "operatingSystems": [[]],
    "platformTypes": [
      [
        "id": "",
        "kind": "",
        "name": ""
      ]
    ]
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/targetingTemplates")! 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 dfareporting.targetingTemplates.list
{{baseUrl}}/userprofiles/:profileId/targetingTemplates
QUERY PARAMS

profileId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/targetingTemplates");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/targetingTemplates")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/targetingTemplates"

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}}/userprofiles/:profileId/targetingTemplates"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/targetingTemplates");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/targetingTemplates"

	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/userprofiles/:profileId/targetingTemplates HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/targetingTemplates")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/targetingTemplates"))
    .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}}/userprofiles/:profileId/targetingTemplates")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/targetingTemplates")
  .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}}/userprofiles/:profileId/targetingTemplates');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/targetingTemplates'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/targetingTemplates';
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}}/userprofiles/:profileId/targetingTemplates',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/targetingTemplates")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/targetingTemplates',
  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}}/userprofiles/:profileId/targetingTemplates'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/targetingTemplates');

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}}/userprofiles/:profileId/targetingTemplates'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/targetingTemplates';
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}}/userprofiles/:profileId/targetingTemplates"]
                                                       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}}/userprofiles/:profileId/targetingTemplates" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/targetingTemplates",
  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}}/userprofiles/:profileId/targetingTemplates');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/targetingTemplates');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/targetingTemplates');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/targetingTemplates' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/targetingTemplates' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/targetingTemplates")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/targetingTemplates"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/targetingTemplates"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/targetingTemplates")

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/userprofiles/:profileId/targetingTemplates') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/targetingTemplates";

    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}}/userprofiles/:profileId/targetingTemplates
http GET {{baseUrl}}/userprofiles/:profileId/targetingTemplates
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/targetingTemplates
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/targetingTemplates")! 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 dfareporting.targetingTemplates.patch
{{baseUrl}}/userprofiles/:profileId/targetingTemplates
QUERY PARAMS

id
profileId
BODY json

{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "dayPartTargeting": {
    "daysOfWeek": [],
    "hoursOfDay": [],
    "userLocalTime": false
  },
  "geoTargeting": {
    "cities": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "metroCode": "",
        "metroDmaId": "",
        "name": "",
        "regionCode": "",
        "regionDartId": ""
      }
    ],
    "countries": [
      {
        "countryCode": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "sslEnabled": false
      }
    ],
    "excludeCountries": false,
    "metros": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "dmaId": "",
        "kind": "",
        "metroCode": "",
        "name": ""
      }
    ],
    "postalCodes": [
      {
        "code": "",
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": ""
      }
    ],
    "regions": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "regionCode": ""
      }
    ]
  },
  "id": "",
  "keyValueTargetingExpression": {
    "expression": ""
  },
  "kind": "",
  "languageTargeting": {
    "languages": [
      {
        "id": "",
        "kind": "",
        "languageCode": "",
        "name": ""
      }
    ]
  },
  "listTargetingExpression": {
    "expression": ""
  },
  "name": "",
  "subaccountId": "",
  "technologyTargeting": {
    "browsers": [
      {
        "browserVersionId": "",
        "dartId": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": ""
      }
    ],
    "connectionTypes": [
      {
        "id": "",
        "kind": "",
        "name": ""
      }
    ],
    "mobileCarriers": [
      {
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": "",
        "name": ""
      }
    ],
    "operatingSystemVersions": [
      {
        "id": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": "",
        "operatingSystem": {
          "dartId": "",
          "desktop": false,
          "kind": "",
          "mobile": false,
          "name": ""
        }
      }
    ],
    "operatingSystems": [
      {}
    ],
    "platformTypes": [
      {
        "id": "",
        "kind": "",
        "name": ""
      }
    ]
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/targetingTemplates?id=");

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  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"listTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/patch "{{baseUrl}}/userprofiles/:profileId/targetingTemplates" {:query-params {:id ""}
                                                                                        :content-type :json
                                                                                        :form-params {:accountId ""
                                                                                                      :advertiserId ""
                                                                                                      :advertiserIdDimensionValue {:dimensionName ""
                                                                                                                                   :etag ""
                                                                                                                                   :id ""
                                                                                                                                   :kind ""
                                                                                                                                   :matchType ""
                                                                                                                                   :value ""}
                                                                                                      :dayPartTargeting {:daysOfWeek []
                                                                                                                         :hoursOfDay []
                                                                                                                         :userLocalTime false}
                                                                                                      :geoTargeting {:cities [{:countryCode ""
                                                                                                                               :countryDartId ""
                                                                                                                               :dartId ""
                                                                                                                               :kind ""
                                                                                                                               :metroCode ""
                                                                                                                               :metroDmaId ""
                                                                                                                               :name ""
                                                                                                                               :regionCode ""
                                                                                                                               :regionDartId ""}]
                                                                                                                     :countries [{:countryCode ""
                                                                                                                                  :dartId ""
                                                                                                                                  :kind ""
                                                                                                                                  :name ""
                                                                                                                                  :sslEnabled false}]
                                                                                                                     :excludeCountries false
                                                                                                                     :metros [{:countryCode ""
                                                                                                                               :countryDartId ""
                                                                                                                               :dartId ""
                                                                                                                               :dmaId ""
                                                                                                                               :kind ""
                                                                                                                               :metroCode ""
                                                                                                                               :name ""}]
                                                                                                                     :postalCodes [{:code ""
                                                                                                                                    :countryCode ""
                                                                                                                                    :countryDartId ""
                                                                                                                                    :id ""
                                                                                                                                    :kind ""}]
                                                                                                                     :regions [{:countryCode ""
                                                                                                                                :countryDartId ""
                                                                                                                                :dartId ""
                                                                                                                                :kind ""
                                                                                                                                :name ""
                                                                                                                                :regionCode ""}]}
                                                                                                      :id ""
                                                                                                      :keyValueTargetingExpression {:expression ""}
                                                                                                      :kind ""
                                                                                                      :languageTargeting {:languages [{:id ""
                                                                                                                                       :kind ""
                                                                                                                                       :languageCode ""
                                                                                                                                       :name ""}]}
                                                                                                      :listTargetingExpression {:expression ""}
                                                                                                      :name ""
                                                                                                      :subaccountId ""
                                                                                                      :technologyTargeting {:browsers [{:browserVersionId ""
                                                                                                                                        :dartId ""
                                                                                                                                        :kind ""
                                                                                                                                        :majorVersion ""
                                                                                                                                        :minorVersion ""
                                                                                                                                        :name ""}]
                                                                                                                            :connectionTypes [{:id ""
                                                                                                                                               :kind ""
                                                                                                                                               :name ""}]
                                                                                                                            :mobileCarriers [{:countryCode ""
                                                                                                                                              :countryDartId ""
                                                                                                                                              :id ""
                                                                                                                                              :kind ""
                                                                                                                                              :name ""}]
                                                                                                                            :operatingSystemVersions [{:id ""
                                                                                                                                                       :kind ""
                                                                                                                                                       :majorVersion ""
                                                                                                                                                       :minorVersion ""
                                                                                                                                                       :name ""
                                                                                                                                                       :operatingSystem {:dartId ""
                                                                                                                                                                         :desktop false
                                                                                                                                                                         :kind ""
                                                                                                                                                                         :mobile false
                                                                                                                                                                         :name ""}}]
                                                                                                                            :operatingSystems [{}]
                                                                                                                            :platformTypes [{:id ""
                                                                                                                                             :kind ""
                                                                                                                                             :name ""}]}}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/targetingTemplates?id="
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"listTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ]\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}}/userprofiles/:profileId/targetingTemplates?id="),
    Content = new StringContent("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"listTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\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}}/userprofiles/:profileId/targetingTemplates?id=");
var request = new RestRequest("", Method.Patch);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"listTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/targetingTemplates?id="

	payload := strings.NewReader("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"listTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ]\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/userprofiles/:profileId/targetingTemplates?id= HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 2605

{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "dayPartTargeting": {
    "daysOfWeek": [],
    "hoursOfDay": [],
    "userLocalTime": false
  },
  "geoTargeting": {
    "cities": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "metroCode": "",
        "metroDmaId": "",
        "name": "",
        "regionCode": "",
        "regionDartId": ""
      }
    ],
    "countries": [
      {
        "countryCode": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "sslEnabled": false
      }
    ],
    "excludeCountries": false,
    "metros": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "dmaId": "",
        "kind": "",
        "metroCode": "",
        "name": ""
      }
    ],
    "postalCodes": [
      {
        "code": "",
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": ""
      }
    ],
    "regions": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "regionCode": ""
      }
    ]
  },
  "id": "",
  "keyValueTargetingExpression": {
    "expression": ""
  },
  "kind": "",
  "languageTargeting": {
    "languages": [
      {
        "id": "",
        "kind": "",
        "languageCode": "",
        "name": ""
      }
    ]
  },
  "listTargetingExpression": {
    "expression": ""
  },
  "name": "",
  "subaccountId": "",
  "technologyTargeting": {
    "browsers": [
      {
        "browserVersionId": "",
        "dartId": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": ""
      }
    ],
    "connectionTypes": [
      {
        "id": "",
        "kind": "",
        "name": ""
      }
    ],
    "mobileCarriers": [
      {
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": "",
        "name": ""
      }
    ],
    "operatingSystemVersions": [
      {
        "id": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": "",
        "operatingSystem": {
          "dartId": "",
          "desktop": false,
          "kind": "",
          "mobile": false,
          "name": ""
        }
      }
    ],
    "operatingSystems": [
      {}
    ],
    "platformTypes": [
      {
        "id": "",
        "kind": "",
        "name": ""
      }
    ]
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/userprofiles/:profileId/targetingTemplates?id=")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"listTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/targetingTemplates?id="))
    .header("content-type", "application/json")
    .method("PATCH", HttpRequest.BodyPublishers.ofString("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"listTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\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  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"listTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/targetingTemplates?id=")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/userprofiles/:profileId/targetingTemplates?id=")
  .header("content-type", "application/json")
  .body("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"listTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  }\n}")
  .asString();
const data = JSON.stringify({
  accountId: '',
  advertiserId: '',
  advertiserIdDimensionValue: {
    dimensionName: '',
    etag: '',
    id: '',
    kind: '',
    matchType: '',
    value: ''
  },
  dayPartTargeting: {
    daysOfWeek: [],
    hoursOfDay: [],
    userLocalTime: false
  },
  geoTargeting: {
    cities: [
      {
        countryCode: '',
        countryDartId: '',
        dartId: '',
        kind: '',
        metroCode: '',
        metroDmaId: '',
        name: '',
        regionCode: '',
        regionDartId: ''
      }
    ],
    countries: [
      {
        countryCode: '',
        dartId: '',
        kind: '',
        name: '',
        sslEnabled: false
      }
    ],
    excludeCountries: false,
    metros: [
      {
        countryCode: '',
        countryDartId: '',
        dartId: '',
        dmaId: '',
        kind: '',
        metroCode: '',
        name: ''
      }
    ],
    postalCodes: [
      {
        code: '',
        countryCode: '',
        countryDartId: '',
        id: '',
        kind: ''
      }
    ],
    regions: [
      {
        countryCode: '',
        countryDartId: '',
        dartId: '',
        kind: '',
        name: '',
        regionCode: ''
      }
    ]
  },
  id: '',
  keyValueTargetingExpression: {
    expression: ''
  },
  kind: '',
  languageTargeting: {
    languages: [
      {
        id: '',
        kind: '',
        languageCode: '',
        name: ''
      }
    ]
  },
  listTargetingExpression: {
    expression: ''
  },
  name: '',
  subaccountId: '',
  technologyTargeting: {
    browsers: [
      {
        browserVersionId: '',
        dartId: '',
        kind: '',
        majorVersion: '',
        minorVersion: '',
        name: ''
      }
    ],
    connectionTypes: [
      {
        id: '',
        kind: '',
        name: ''
      }
    ],
    mobileCarriers: [
      {
        countryCode: '',
        countryDartId: '',
        id: '',
        kind: '',
        name: ''
      }
    ],
    operatingSystemVersions: [
      {
        id: '',
        kind: '',
        majorVersion: '',
        minorVersion: '',
        name: '',
        operatingSystem: {
          dartId: '',
          desktop: false,
          kind: '',
          mobile: false,
          name: ''
        }
      }
    ],
    operatingSystems: [
      {}
    ],
    platformTypes: [
      {
        id: '',
        kind: '',
        name: ''
      }
    ]
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PATCH', '{{baseUrl}}/userprofiles/:profileId/targetingTemplates?id=');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/userprofiles/:profileId/targetingTemplates',
  params: {id: ''},
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    dayPartTargeting: {daysOfWeek: [], hoursOfDay: [], userLocalTime: false},
    geoTargeting: {
      cities: [
        {
          countryCode: '',
          countryDartId: '',
          dartId: '',
          kind: '',
          metroCode: '',
          metroDmaId: '',
          name: '',
          regionCode: '',
          regionDartId: ''
        }
      ],
      countries: [{countryCode: '', dartId: '', kind: '', name: '', sslEnabled: false}],
      excludeCountries: false,
      metros: [
        {
          countryCode: '',
          countryDartId: '',
          dartId: '',
          dmaId: '',
          kind: '',
          metroCode: '',
          name: ''
        }
      ],
      postalCodes: [{code: '', countryCode: '', countryDartId: '', id: '', kind: ''}],
      regions: [
        {
          countryCode: '',
          countryDartId: '',
          dartId: '',
          kind: '',
          name: '',
          regionCode: ''
        }
      ]
    },
    id: '',
    keyValueTargetingExpression: {expression: ''},
    kind: '',
    languageTargeting: {languages: [{id: '', kind: '', languageCode: '', name: ''}]},
    listTargetingExpression: {expression: ''},
    name: '',
    subaccountId: '',
    technologyTargeting: {
      browsers: [
        {
          browserVersionId: '',
          dartId: '',
          kind: '',
          majorVersion: '',
          minorVersion: '',
          name: ''
        }
      ],
      connectionTypes: [{id: '', kind: '', name: ''}],
      mobileCarriers: [{countryCode: '', countryDartId: '', id: '', kind: '', name: ''}],
      operatingSystemVersions: [
        {
          id: '',
          kind: '',
          majorVersion: '',
          minorVersion: '',
          name: '',
          operatingSystem: {dartId: '', desktop: false, kind: '', mobile: false, name: ''}
        }
      ],
      operatingSystems: [{}],
      platformTypes: [{id: '', kind: '', name: ''}]
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/targetingTemplates?id=';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","advertiserId":"","advertiserIdDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"dayPartTargeting":{"daysOfWeek":[],"hoursOfDay":[],"userLocalTime":false},"geoTargeting":{"cities":[{"countryCode":"","countryDartId":"","dartId":"","kind":"","metroCode":"","metroDmaId":"","name":"","regionCode":"","regionDartId":""}],"countries":[{"countryCode":"","dartId":"","kind":"","name":"","sslEnabled":false}],"excludeCountries":false,"metros":[{"countryCode":"","countryDartId":"","dartId":"","dmaId":"","kind":"","metroCode":"","name":""}],"postalCodes":[{"code":"","countryCode":"","countryDartId":"","id":"","kind":""}],"regions":[{"countryCode":"","countryDartId":"","dartId":"","kind":"","name":"","regionCode":""}]},"id":"","keyValueTargetingExpression":{"expression":""},"kind":"","languageTargeting":{"languages":[{"id":"","kind":"","languageCode":"","name":""}]},"listTargetingExpression":{"expression":""},"name":"","subaccountId":"","technologyTargeting":{"browsers":[{"browserVersionId":"","dartId":"","kind":"","majorVersion":"","minorVersion":"","name":""}],"connectionTypes":[{"id":"","kind":"","name":""}],"mobileCarriers":[{"countryCode":"","countryDartId":"","id":"","kind":"","name":""}],"operatingSystemVersions":[{"id":"","kind":"","majorVersion":"","minorVersion":"","name":"","operatingSystem":{"dartId":"","desktop":false,"kind":"","mobile":false,"name":""}}],"operatingSystems":[{}],"platformTypes":[{"id":"","kind":"","name":""}]}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/userprofiles/:profileId/targetingTemplates?id=',
  method: 'PATCH',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "accountId": "",\n  "advertiserId": "",\n  "advertiserIdDimensionValue": {\n    "dimensionName": "",\n    "etag": "",\n    "id": "",\n    "kind": "",\n    "matchType": "",\n    "value": ""\n  },\n  "dayPartTargeting": {\n    "daysOfWeek": [],\n    "hoursOfDay": [],\n    "userLocalTime": false\n  },\n  "geoTargeting": {\n    "cities": [\n      {\n        "countryCode": "",\n        "countryDartId": "",\n        "dartId": "",\n        "kind": "",\n        "metroCode": "",\n        "metroDmaId": "",\n        "name": "",\n        "regionCode": "",\n        "regionDartId": ""\n      }\n    ],\n    "countries": [\n      {\n        "countryCode": "",\n        "dartId": "",\n        "kind": "",\n        "name": "",\n        "sslEnabled": false\n      }\n    ],\n    "excludeCountries": false,\n    "metros": [\n      {\n        "countryCode": "",\n        "countryDartId": "",\n        "dartId": "",\n        "dmaId": "",\n        "kind": "",\n        "metroCode": "",\n        "name": ""\n      }\n    ],\n    "postalCodes": [\n      {\n        "code": "",\n        "countryCode": "",\n        "countryDartId": "",\n        "id": "",\n        "kind": ""\n      }\n    ],\n    "regions": [\n      {\n        "countryCode": "",\n        "countryDartId": "",\n        "dartId": "",\n        "kind": "",\n        "name": "",\n        "regionCode": ""\n      }\n    ]\n  },\n  "id": "",\n  "keyValueTargetingExpression": {\n    "expression": ""\n  },\n  "kind": "",\n  "languageTargeting": {\n    "languages": [\n      {\n        "id": "",\n        "kind": "",\n        "languageCode": "",\n        "name": ""\n      }\n    ]\n  },\n  "listTargetingExpression": {\n    "expression": ""\n  },\n  "name": "",\n  "subaccountId": "",\n  "technologyTargeting": {\n    "browsers": [\n      {\n        "browserVersionId": "",\n        "dartId": "",\n        "kind": "",\n        "majorVersion": "",\n        "minorVersion": "",\n        "name": ""\n      }\n    ],\n    "connectionTypes": [\n      {\n        "id": "",\n        "kind": "",\n        "name": ""\n      }\n    ],\n    "mobileCarriers": [\n      {\n        "countryCode": "",\n        "countryDartId": "",\n        "id": "",\n        "kind": "",\n        "name": ""\n      }\n    ],\n    "operatingSystemVersions": [\n      {\n        "id": "",\n        "kind": "",\n        "majorVersion": "",\n        "minorVersion": "",\n        "name": "",\n        "operatingSystem": {\n          "dartId": "",\n          "desktop": false,\n          "kind": "",\n          "mobile": false,\n          "name": ""\n        }\n      }\n    ],\n    "operatingSystems": [\n      {}\n    ],\n    "platformTypes": [\n      {\n        "id": "",\n        "kind": "",\n        "name": ""\n      }\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  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"listTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/targetingTemplates?id=")
  .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/userprofiles/:profileId/targetingTemplates?id=',
  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({
  accountId: '',
  advertiserId: '',
  advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
  dayPartTargeting: {daysOfWeek: [], hoursOfDay: [], userLocalTime: false},
  geoTargeting: {
    cities: [
      {
        countryCode: '',
        countryDartId: '',
        dartId: '',
        kind: '',
        metroCode: '',
        metroDmaId: '',
        name: '',
        regionCode: '',
        regionDartId: ''
      }
    ],
    countries: [{countryCode: '', dartId: '', kind: '', name: '', sslEnabled: false}],
    excludeCountries: false,
    metros: [
      {
        countryCode: '',
        countryDartId: '',
        dartId: '',
        dmaId: '',
        kind: '',
        metroCode: '',
        name: ''
      }
    ],
    postalCodes: [{code: '', countryCode: '', countryDartId: '', id: '', kind: ''}],
    regions: [
      {
        countryCode: '',
        countryDartId: '',
        dartId: '',
        kind: '',
        name: '',
        regionCode: ''
      }
    ]
  },
  id: '',
  keyValueTargetingExpression: {expression: ''},
  kind: '',
  languageTargeting: {languages: [{id: '', kind: '', languageCode: '', name: ''}]},
  listTargetingExpression: {expression: ''},
  name: '',
  subaccountId: '',
  technologyTargeting: {
    browsers: [
      {
        browserVersionId: '',
        dartId: '',
        kind: '',
        majorVersion: '',
        minorVersion: '',
        name: ''
      }
    ],
    connectionTypes: [{id: '', kind: '', name: ''}],
    mobileCarriers: [{countryCode: '', countryDartId: '', id: '', kind: '', name: ''}],
    operatingSystemVersions: [
      {
        id: '',
        kind: '',
        majorVersion: '',
        minorVersion: '',
        name: '',
        operatingSystem: {dartId: '', desktop: false, kind: '', mobile: false, name: ''}
      }
    ],
    operatingSystems: [{}],
    platformTypes: [{id: '', kind: '', name: ''}]
  }
}));
req.end();
const request = require('request');

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/userprofiles/:profileId/targetingTemplates',
  qs: {id: ''},
  headers: {'content-type': 'application/json'},
  body: {
    accountId: '',
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    dayPartTargeting: {daysOfWeek: [], hoursOfDay: [], userLocalTime: false},
    geoTargeting: {
      cities: [
        {
          countryCode: '',
          countryDartId: '',
          dartId: '',
          kind: '',
          metroCode: '',
          metroDmaId: '',
          name: '',
          regionCode: '',
          regionDartId: ''
        }
      ],
      countries: [{countryCode: '', dartId: '', kind: '', name: '', sslEnabled: false}],
      excludeCountries: false,
      metros: [
        {
          countryCode: '',
          countryDartId: '',
          dartId: '',
          dmaId: '',
          kind: '',
          metroCode: '',
          name: ''
        }
      ],
      postalCodes: [{code: '', countryCode: '', countryDartId: '', id: '', kind: ''}],
      regions: [
        {
          countryCode: '',
          countryDartId: '',
          dartId: '',
          kind: '',
          name: '',
          regionCode: ''
        }
      ]
    },
    id: '',
    keyValueTargetingExpression: {expression: ''},
    kind: '',
    languageTargeting: {languages: [{id: '', kind: '', languageCode: '', name: ''}]},
    listTargetingExpression: {expression: ''},
    name: '',
    subaccountId: '',
    technologyTargeting: {
      browsers: [
        {
          browserVersionId: '',
          dartId: '',
          kind: '',
          majorVersion: '',
          minorVersion: '',
          name: ''
        }
      ],
      connectionTypes: [{id: '', kind: '', name: ''}],
      mobileCarriers: [{countryCode: '', countryDartId: '', id: '', kind: '', name: ''}],
      operatingSystemVersions: [
        {
          id: '',
          kind: '',
          majorVersion: '',
          minorVersion: '',
          name: '',
          operatingSystem: {dartId: '', desktop: false, kind: '', mobile: false, name: ''}
        }
      ],
      operatingSystems: [{}],
      platformTypes: [{id: '', kind: '', name: ''}]
    }
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PATCH', '{{baseUrl}}/userprofiles/:profileId/targetingTemplates');

req.query({
  id: ''
});

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  accountId: '',
  advertiserId: '',
  advertiserIdDimensionValue: {
    dimensionName: '',
    etag: '',
    id: '',
    kind: '',
    matchType: '',
    value: ''
  },
  dayPartTargeting: {
    daysOfWeek: [],
    hoursOfDay: [],
    userLocalTime: false
  },
  geoTargeting: {
    cities: [
      {
        countryCode: '',
        countryDartId: '',
        dartId: '',
        kind: '',
        metroCode: '',
        metroDmaId: '',
        name: '',
        regionCode: '',
        regionDartId: ''
      }
    ],
    countries: [
      {
        countryCode: '',
        dartId: '',
        kind: '',
        name: '',
        sslEnabled: false
      }
    ],
    excludeCountries: false,
    metros: [
      {
        countryCode: '',
        countryDartId: '',
        dartId: '',
        dmaId: '',
        kind: '',
        metroCode: '',
        name: ''
      }
    ],
    postalCodes: [
      {
        code: '',
        countryCode: '',
        countryDartId: '',
        id: '',
        kind: ''
      }
    ],
    regions: [
      {
        countryCode: '',
        countryDartId: '',
        dartId: '',
        kind: '',
        name: '',
        regionCode: ''
      }
    ]
  },
  id: '',
  keyValueTargetingExpression: {
    expression: ''
  },
  kind: '',
  languageTargeting: {
    languages: [
      {
        id: '',
        kind: '',
        languageCode: '',
        name: ''
      }
    ]
  },
  listTargetingExpression: {
    expression: ''
  },
  name: '',
  subaccountId: '',
  technologyTargeting: {
    browsers: [
      {
        browserVersionId: '',
        dartId: '',
        kind: '',
        majorVersion: '',
        minorVersion: '',
        name: ''
      }
    ],
    connectionTypes: [
      {
        id: '',
        kind: '',
        name: ''
      }
    ],
    mobileCarriers: [
      {
        countryCode: '',
        countryDartId: '',
        id: '',
        kind: '',
        name: ''
      }
    ],
    operatingSystemVersions: [
      {
        id: '',
        kind: '',
        majorVersion: '',
        minorVersion: '',
        name: '',
        operatingSystem: {
          dartId: '',
          desktop: false,
          kind: '',
          mobile: false,
          name: ''
        }
      }
    ],
    operatingSystems: [
      {}
    ],
    platformTypes: [
      {
        id: '',
        kind: '',
        name: ''
      }
    ]
  }
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/userprofiles/:profileId/targetingTemplates',
  params: {id: ''},
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    dayPartTargeting: {daysOfWeek: [], hoursOfDay: [], userLocalTime: false},
    geoTargeting: {
      cities: [
        {
          countryCode: '',
          countryDartId: '',
          dartId: '',
          kind: '',
          metroCode: '',
          metroDmaId: '',
          name: '',
          regionCode: '',
          regionDartId: ''
        }
      ],
      countries: [{countryCode: '', dartId: '', kind: '', name: '', sslEnabled: false}],
      excludeCountries: false,
      metros: [
        {
          countryCode: '',
          countryDartId: '',
          dartId: '',
          dmaId: '',
          kind: '',
          metroCode: '',
          name: ''
        }
      ],
      postalCodes: [{code: '', countryCode: '', countryDartId: '', id: '', kind: ''}],
      regions: [
        {
          countryCode: '',
          countryDartId: '',
          dartId: '',
          kind: '',
          name: '',
          regionCode: ''
        }
      ]
    },
    id: '',
    keyValueTargetingExpression: {expression: ''},
    kind: '',
    languageTargeting: {languages: [{id: '', kind: '', languageCode: '', name: ''}]},
    listTargetingExpression: {expression: ''},
    name: '',
    subaccountId: '',
    technologyTargeting: {
      browsers: [
        {
          browserVersionId: '',
          dartId: '',
          kind: '',
          majorVersion: '',
          minorVersion: '',
          name: ''
        }
      ],
      connectionTypes: [{id: '', kind: '', name: ''}],
      mobileCarriers: [{countryCode: '', countryDartId: '', id: '', kind: '', name: ''}],
      operatingSystemVersions: [
        {
          id: '',
          kind: '',
          majorVersion: '',
          minorVersion: '',
          name: '',
          operatingSystem: {dartId: '', desktop: false, kind: '', mobile: false, name: ''}
        }
      ],
      operatingSystems: [{}],
      platformTypes: [{id: '', kind: '', name: ''}]
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/targetingTemplates?id=';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","advertiserId":"","advertiserIdDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"dayPartTargeting":{"daysOfWeek":[],"hoursOfDay":[],"userLocalTime":false},"geoTargeting":{"cities":[{"countryCode":"","countryDartId":"","dartId":"","kind":"","metroCode":"","metroDmaId":"","name":"","regionCode":"","regionDartId":""}],"countries":[{"countryCode":"","dartId":"","kind":"","name":"","sslEnabled":false}],"excludeCountries":false,"metros":[{"countryCode":"","countryDartId":"","dartId":"","dmaId":"","kind":"","metroCode":"","name":""}],"postalCodes":[{"code":"","countryCode":"","countryDartId":"","id":"","kind":""}],"regions":[{"countryCode":"","countryDartId":"","dartId":"","kind":"","name":"","regionCode":""}]},"id":"","keyValueTargetingExpression":{"expression":""},"kind":"","languageTargeting":{"languages":[{"id":"","kind":"","languageCode":"","name":""}]},"listTargetingExpression":{"expression":""},"name":"","subaccountId":"","technologyTargeting":{"browsers":[{"browserVersionId":"","dartId":"","kind":"","majorVersion":"","minorVersion":"","name":""}],"connectionTypes":[{"id":"","kind":"","name":""}],"mobileCarriers":[{"countryCode":"","countryDartId":"","id":"","kind":"","name":""}],"operatingSystemVersions":[{"id":"","kind":"","majorVersion":"","minorVersion":"","name":"","operatingSystem":{"dartId":"","desktop":false,"kind":"","mobile":false,"name":""}}],"operatingSystems":[{}],"platformTypes":[{"id":"","kind":"","name":""}]}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"accountId": @"",
                              @"advertiserId": @"",
                              @"advertiserIdDimensionValue": @{ @"dimensionName": @"", @"etag": @"", @"id": @"", @"kind": @"", @"matchType": @"", @"value": @"" },
                              @"dayPartTargeting": @{ @"daysOfWeek": @[  ], @"hoursOfDay": @[  ], @"userLocalTime": @NO },
                              @"geoTargeting": @{ @"cities": @[ @{ @"countryCode": @"", @"countryDartId": @"", @"dartId": @"", @"kind": @"", @"metroCode": @"", @"metroDmaId": @"", @"name": @"", @"regionCode": @"", @"regionDartId": @"" } ], @"countries": @[ @{ @"countryCode": @"", @"dartId": @"", @"kind": @"", @"name": @"", @"sslEnabled": @NO } ], @"excludeCountries": @NO, @"metros": @[ @{ @"countryCode": @"", @"countryDartId": @"", @"dartId": @"", @"dmaId": @"", @"kind": @"", @"metroCode": @"", @"name": @"" } ], @"postalCodes": @[ @{ @"code": @"", @"countryCode": @"", @"countryDartId": @"", @"id": @"", @"kind": @"" } ], @"regions": @[ @{ @"countryCode": @"", @"countryDartId": @"", @"dartId": @"", @"kind": @"", @"name": @"", @"regionCode": @"" } ] },
                              @"id": @"",
                              @"keyValueTargetingExpression": @{ @"expression": @"" },
                              @"kind": @"",
                              @"languageTargeting": @{ @"languages": @[ @{ @"id": @"", @"kind": @"", @"languageCode": @"", @"name": @"" } ] },
                              @"listTargetingExpression": @{ @"expression": @"" },
                              @"name": @"",
                              @"subaccountId": @"",
                              @"technologyTargeting": @{ @"browsers": @[ @{ @"browserVersionId": @"", @"dartId": @"", @"kind": @"", @"majorVersion": @"", @"minorVersion": @"", @"name": @"" } ], @"connectionTypes": @[ @{ @"id": @"", @"kind": @"", @"name": @"" } ], @"mobileCarriers": @[ @{ @"countryCode": @"", @"countryDartId": @"", @"id": @"", @"kind": @"", @"name": @"" } ], @"operatingSystemVersions": @[ @{ @"id": @"", @"kind": @"", @"majorVersion": @"", @"minorVersion": @"", @"name": @"", @"operatingSystem": @{ @"dartId": @"", @"desktop": @NO, @"kind": @"", @"mobile": @NO, @"name": @"" } } ], @"operatingSystems": @[ @{  } ], @"platformTypes": @[ @{ @"id": @"", @"kind": @"", @"name": @"" } ] } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/userprofiles/:profileId/targetingTemplates?id="]
                                                       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}}/userprofiles/:profileId/targetingTemplates?id=" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"listTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  }\n}" in

Client.call ~headers ~body `PATCH uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/targetingTemplates?id=",
  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([
    'accountId' => '',
    'advertiserId' => '',
    'advertiserIdDimensionValue' => [
        'dimensionName' => '',
        'etag' => '',
        'id' => '',
        'kind' => '',
        'matchType' => '',
        'value' => ''
    ],
    'dayPartTargeting' => [
        'daysOfWeek' => [
                
        ],
        'hoursOfDay' => [
                
        ],
        'userLocalTime' => null
    ],
    'geoTargeting' => [
        'cities' => [
                [
                                'countryCode' => '',
                                'countryDartId' => '',
                                'dartId' => '',
                                'kind' => '',
                                'metroCode' => '',
                                'metroDmaId' => '',
                                'name' => '',
                                'regionCode' => '',
                                'regionDartId' => ''
                ]
        ],
        'countries' => [
                [
                                'countryCode' => '',
                                'dartId' => '',
                                'kind' => '',
                                'name' => '',
                                'sslEnabled' => null
                ]
        ],
        'excludeCountries' => null,
        'metros' => [
                [
                                'countryCode' => '',
                                'countryDartId' => '',
                                'dartId' => '',
                                'dmaId' => '',
                                'kind' => '',
                                'metroCode' => '',
                                'name' => ''
                ]
        ],
        'postalCodes' => [
                [
                                'code' => '',
                                'countryCode' => '',
                                'countryDartId' => '',
                                'id' => '',
                                'kind' => ''
                ]
        ],
        'regions' => [
                [
                                'countryCode' => '',
                                'countryDartId' => '',
                                'dartId' => '',
                                'kind' => '',
                                'name' => '',
                                'regionCode' => ''
                ]
        ]
    ],
    'id' => '',
    'keyValueTargetingExpression' => [
        'expression' => ''
    ],
    'kind' => '',
    'languageTargeting' => [
        'languages' => [
                [
                                'id' => '',
                                'kind' => '',
                                'languageCode' => '',
                                'name' => ''
                ]
        ]
    ],
    'listTargetingExpression' => [
        'expression' => ''
    ],
    'name' => '',
    'subaccountId' => '',
    'technologyTargeting' => [
        'browsers' => [
                [
                                'browserVersionId' => '',
                                'dartId' => '',
                                'kind' => '',
                                'majorVersion' => '',
                                'minorVersion' => '',
                                'name' => ''
                ]
        ],
        'connectionTypes' => [
                [
                                'id' => '',
                                'kind' => '',
                                'name' => ''
                ]
        ],
        'mobileCarriers' => [
                [
                                'countryCode' => '',
                                'countryDartId' => '',
                                'id' => '',
                                'kind' => '',
                                'name' => ''
                ]
        ],
        'operatingSystemVersions' => [
                [
                                'id' => '',
                                'kind' => '',
                                'majorVersion' => '',
                                'minorVersion' => '',
                                'name' => '',
                                'operatingSystem' => [
                                                                'dartId' => '',
                                                                'desktop' => null,
                                                                'kind' => '',
                                                                'mobile' => null,
                                                                'name' => ''
                                ]
                ]
        ],
        'operatingSystems' => [
                [
                                
                ]
        ],
        'platformTypes' => [
                [
                                'id' => '',
                                'kind' => '',
                                'name' => ''
                ]
        ]
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PATCH', '{{baseUrl}}/userprofiles/:profileId/targetingTemplates?id=', [
  'body' => '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "dayPartTargeting": {
    "daysOfWeek": [],
    "hoursOfDay": [],
    "userLocalTime": false
  },
  "geoTargeting": {
    "cities": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "metroCode": "",
        "metroDmaId": "",
        "name": "",
        "regionCode": "",
        "regionDartId": ""
      }
    ],
    "countries": [
      {
        "countryCode": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "sslEnabled": false
      }
    ],
    "excludeCountries": false,
    "metros": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "dmaId": "",
        "kind": "",
        "metroCode": "",
        "name": ""
      }
    ],
    "postalCodes": [
      {
        "code": "",
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": ""
      }
    ],
    "regions": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "regionCode": ""
      }
    ]
  },
  "id": "",
  "keyValueTargetingExpression": {
    "expression": ""
  },
  "kind": "",
  "languageTargeting": {
    "languages": [
      {
        "id": "",
        "kind": "",
        "languageCode": "",
        "name": ""
      }
    ]
  },
  "listTargetingExpression": {
    "expression": ""
  },
  "name": "",
  "subaccountId": "",
  "technologyTargeting": {
    "browsers": [
      {
        "browserVersionId": "",
        "dartId": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": ""
      }
    ],
    "connectionTypes": [
      {
        "id": "",
        "kind": "",
        "name": ""
      }
    ],
    "mobileCarriers": [
      {
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": "",
        "name": ""
      }
    ],
    "operatingSystemVersions": [
      {
        "id": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": "",
        "operatingSystem": {
          "dartId": "",
          "desktop": false,
          "kind": "",
          "mobile": false,
          "name": ""
        }
      }
    ],
    "operatingSystems": [
      {}
    ],
    "platformTypes": [
      {
        "id": "",
        "kind": "",
        "name": ""
      }
    ]
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/targetingTemplates');
$request->setMethod(HttpRequest::HTTP_METH_PATCH);

$request->setQueryData([
  'id' => ''
]);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'accountId' => '',
  'advertiserId' => '',
  'advertiserIdDimensionValue' => [
    'dimensionName' => '',
    'etag' => '',
    'id' => '',
    'kind' => '',
    'matchType' => '',
    'value' => ''
  ],
  'dayPartTargeting' => [
    'daysOfWeek' => [
        
    ],
    'hoursOfDay' => [
        
    ],
    'userLocalTime' => null
  ],
  'geoTargeting' => [
    'cities' => [
        [
                'countryCode' => '',
                'countryDartId' => '',
                'dartId' => '',
                'kind' => '',
                'metroCode' => '',
                'metroDmaId' => '',
                'name' => '',
                'regionCode' => '',
                'regionDartId' => ''
        ]
    ],
    'countries' => [
        [
                'countryCode' => '',
                'dartId' => '',
                'kind' => '',
                'name' => '',
                'sslEnabled' => null
        ]
    ],
    'excludeCountries' => null,
    'metros' => [
        [
                'countryCode' => '',
                'countryDartId' => '',
                'dartId' => '',
                'dmaId' => '',
                'kind' => '',
                'metroCode' => '',
                'name' => ''
        ]
    ],
    'postalCodes' => [
        [
                'code' => '',
                'countryCode' => '',
                'countryDartId' => '',
                'id' => '',
                'kind' => ''
        ]
    ],
    'regions' => [
        [
                'countryCode' => '',
                'countryDartId' => '',
                'dartId' => '',
                'kind' => '',
                'name' => '',
                'regionCode' => ''
        ]
    ]
  ],
  'id' => '',
  'keyValueTargetingExpression' => [
    'expression' => ''
  ],
  'kind' => '',
  'languageTargeting' => [
    'languages' => [
        [
                'id' => '',
                'kind' => '',
                'languageCode' => '',
                'name' => ''
        ]
    ]
  ],
  'listTargetingExpression' => [
    'expression' => ''
  ],
  'name' => '',
  'subaccountId' => '',
  'technologyTargeting' => [
    'browsers' => [
        [
                'browserVersionId' => '',
                'dartId' => '',
                'kind' => '',
                'majorVersion' => '',
                'minorVersion' => '',
                'name' => ''
        ]
    ],
    'connectionTypes' => [
        [
                'id' => '',
                'kind' => '',
                'name' => ''
        ]
    ],
    'mobileCarriers' => [
        [
                'countryCode' => '',
                'countryDartId' => '',
                'id' => '',
                'kind' => '',
                'name' => ''
        ]
    ],
    'operatingSystemVersions' => [
        [
                'id' => '',
                'kind' => '',
                'majorVersion' => '',
                'minorVersion' => '',
                'name' => '',
                'operatingSystem' => [
                                'dartId' => '',
                                'desktop' => null,
                                'kind' => '',
                                'mobile' => null,
                                'name' => ''
                ]
        ]
    ],
    'operatingSystems' => [
        [
                
        ]
    ],
    'platformTypes' => [
        [
                'id' => '',
                'kind' => '',
                'name' => ''
        ]
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'accountId' => '',
  'advertiserId' => '',
  'advertiserIdDimensionValue' => [
    'dimensionName' => '',
    'etag' => '',
    'id' => '',
    'kind' => '',
    'matchType' => '',
    'value' => ''
  ],
  'dayPartTargeting' => [
    'daysOfWeek' => [
        
    ],
    'hoursOfDay' => [
        
    ],
    'userLocalTime' => null
  ],
  'geoTargeting' => [
    'cities' => [
        [
                'countryCode' => '',
                'countryDartId' => '',
                'dartId' => '',
                'kind' => '',
                'metroCode' => '',
                'metroDmaId' => '',
                'name' => '',
                'regionCode' => '',
                'regionDartId' => ''
        ]
    ],
    'countries' => [
        [
                'countryCode' => '',
                'dartId' => '',
                'kind' => '',
                'name' => '',
                'sslEnabled' => null
        ]
    ],
    'excludeCountries' => null,
    'metros' => [
        [
                'countryCode' => '',
                'countryDartId' => '',
                'dartId' => '',
                'dmaId' => '',
                'kind' => '',
                'metroCode' => '',
                'name' => ''
        ]
    ],
    'postalCodes' => [
        [
                'code' => '',
                'countryCode' => '',
                'countryDartId' => '',
                'id' => '',
                'kind' => ''
        ]
    ],
    'regions' => [
        [
                'countryCode' => '',
                'countryDartId' => '',
                'dartId' => '',
                'kind' => '',
                'name' => '',
                'regionCode' => ''
        ]
    ]
  ],
  'id' => '',
  'keyValueTargetingExpression' => [
    'expression' => ''
  ],
  'kind' => '',
  'languageTargeting' => [
    'languages' => [
        [
                'id' => '',
                'kind' => '',
                'languageCode' => '',
                'name' => ''
        ]
    ]
  ],
  'listTargetingExpression' => [
    'expression' => ''
  ],
  'name' => '',
  'subaccountId' => '',
  'technologyTargeting' => [
    'browsers' => [
        [
                'browserVersionId' => '',
                'dartId' => '',
                'kind' => '',
                'majorVersion' => '',
                'minorVersion' => '',
                'name' => ''
        ]
    ],
    'connectionTypes' => [
        [
                'id' => '',
                'kind' => '',
                'name' => ''
        ]
    ],
    'mobileCarriers' => [
        [
                'countryCode' => '',
                'countryDartId' => '',
                'id' => '',
                'kind' => '',
                'name' => ''
        ]
    ],
    'operatingSystemVersions' => [
        [
                'id' => '',
                'kind' => '',
                'majorVersion' => '',
                'minorVersion' => '',
                'name' => '',
                'operatingSystem' => [
                                'dartId' => '',
                                'desktop' => null,
                                'kind' => '',
                                'mobile' => null,
                                'name' => ''
                ]
        ]
    ],
    'operatingSystems' => [
        [
                
        ]
    ],
    'platformTypes' => [
        [
                'id' => '',
                'kind' => '',
                'name' => ''
        ]
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/userprofiles/:profileId/targetingTemplates');
$request->setRequestMethod('PATCH');
$request->setBody($body);

$request->setQuery(new http\QueryString([
  'id' => ''
]));

$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}}/userprofiles/:profileId/targetingTemplates?id=' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "dayPartTargeting": {
    "daysOfWeek": [],
    "hoursOfDay": [],
    "userLocalTime": false
  },
  "geoTargeting": {
    "cities": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "metroCode": "",
        "metroDmaId": "",
        "name": "",
        "regionCode": "",
        "regionDartId": ""
      }
    ],
    "countries": [
      {
        "countryCode": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "sslEnabled": false
      }
    ],
    "excludeCountries": false,
    "metros": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "dmaId": "",
        "kind": "",
        "metroCode": "",
        "name": ""
      }
    ],
    "postalCodes": [
      {
        "code": "",
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": ""
      }
    ],
    "regions": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "regionCode": ""
      }
    ]
  },
  "id": "",
  "keyValueTargetingExpression": {
    "expression": ""
  },
  "kind": "",
  "languageTargeting": {
    "languages": [
      {
        "id": "",
        "kind": "",
        "languageCode": "",
        "name": ""
      }
    ]
  },
  "listTargetingExpression": {
    "expression": ""
  },
  "name": "",
  "subaccountId": "",
  "technologyTargeting": {
    "browsers": [
      {
        "browserVersionId": "",
        "dartId": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": ""
      }
    ],
    "connectionTypes": [
      {
        "id": "",
        "kind": "",
        "name": ""
      }
    ],
    "mobileCarriers": [
      {
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": "",
        "name": ""
      }
    ],
    "operatingSystemVersions": [
      {
        "id": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": "",
        "operatingSystem": {
          "dartId": "",
          "desktop": false,
          "kind": "",
          "mobile": false,
          "name": ""
        }
      }
    ],
    "operatingSystems": [
      {}
    ],
    "platformTypes": [
      {
        "id": "",
        "kind": "",
        "name": ""
      }
    ]
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/targetingTemplates?id=' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "dayPartTargeting": {
    "daysOfWeek": [],
    "hoursOfDay": [],
    "userLocalTime": false
  },
  "geoTargeting": {
    "cities": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "metroCode": "",
        "metroDmaId": "",
        "name": "",
        "regionCode": "",
        "regionDartId": ""
      }
    ],
    "countries": [
      {
        "countryCode": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "sslEnabled": false
      }
    ],
    "excludeCountries": false,
    "metros": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "dmaId": "",
        "kind": "",
        "metroCode": "",
        "name": ""
      }
    ],
    "postalCodes": [
      {
        "code": "",
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": ""
      }
    ],
    "regions": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "regionCode": ""
      }
    ]
  },
  "id": "",
  "keyValueTargetingExpression": {
    "expression": ""
  },
  "kind": "",
  "languageTargeting": {
    "languages": [
      {
        "id": "",
        "kind": "",
        "languageCode": "",
        "name": ""
      }
    ]
  },
  "listTargetingExpression": {
    "expression": ""
  },
  "name": "",
  "subaccountId": "",
  "technologyTargeting": {
    "browsers": [
      {
        "browserVersionId": "",
        "dartId": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": ""
      }
    ],
    "connectionTypes": [
      {
        "id": "",
        "kind": "",
        "name": ""
      }
    ],
    "mobileCarriers": [
      {
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": "",
        "name": ""
      }
    ],
    "operatingSystemVersions": [
      {
        "id": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": "",
        "operatingSystem": {
          "dartId": "",
          "desktop": false,
          "kind": "",
          "mobile": false,
          "name": ""
        }
      }
    ],
    "operatingSystems": [
      {}
    ],
    "platformTypes": [
      {
        "id": "",
        "kind": "",
        "name": ""
      }
    ]
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"listTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("PATCH", "/baseUrl/userprofiles/:profileId/targetingTemplates?id=", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/targetingTemplates"

querystring = {"id":""}

payload = {
    "accountId": "",
    "advertiserId": "",
    "advertiserIdDimensionValue": {
        "dimensionName": "",
        "etag": "",
        "id": "",
        "kind": "",
        "matchType": "",
        "value": ""
    },
    "dayPartTargeting": {
        "daysOfWeek": [],
        "hoursOfDay": [],
        "userLocalTime": False
    },
    "geoTargeting": {
        "cities": [
            {
                "countryCode": "",
                "countryDartId": "",
                "dartId": "",
                "kind": "",
                "metroCode": "",
                "metroDmaId": "",
                "name": "",
                "regionCode": "",
                "regionDartId": ""
            }
        ],
        "countries": [
            {
                "countryCode": "",
                "dartId": "",
                "kind": "",
                "name": "",
                "sslEnabled": False
            }
        ],
        "excludeCountries": False,
        "metros": [
            {
                "countryCode": "",
                "countryDartId": "",
                "dartId": "",
                "dmaId": "",
                "kind": "",
                "metroCode": "",
                "name": ""
            }
        ],
        "postalCodes": [
            {
                "code": "",
                "countryCode": "",
                "countryDartId": "",
                "id": "",
                "kind": ""
            }
        ],
        "regions": [
            {
                "countryCode": "",
                "countryDartId": "",
                "dartId": "",
                "kind": "",
                "name": "",
                "regionCode": ""
            }
        ]
    },
    "id": "",
    "keyValueTargetingExpression": { "expression": "" },
    "kind": "",
    "languageTargeting": { "languages": [
            {
                "id": "",
                "kind": "",
                "languageCode": "",
                "name": ""
            }
        ] },
    "listTargetingExpression": { "expression": "" },
    "name": "",
    "subaccountId": "",
    "technologyTargeting": {
        "browsers": [
            {
                "browserVersionId": "",
                "dartId": "",
                "kind": "",
                "majorVersion": "",
                "minorVersion": "",
                "name": ""
            }
        ],
        "connectionTypes": [
            {
                "id": "",
                "kind": "",
                "name": ""
            }
        ],
        "mobileCarriers": [
            {
                "countryCode": "",
                "countryDartId": "",
                "id": "",
                "kind": "",
                "name": ""
            }
        ],
        "operatingSystemVersions": [
            {
                "id": "",
                "kind": "",
                "majorVersion": "",
                "minorVersion": "",
                "name": "",
                "operatingSystem": {
                    "dartId": "",
                    "desktop": False,
                    "kind": "",
                    "mobile": False,
                    "name": ""
                }
            }
        ],
        "operatingSystems": [{}],
        "platformTypes": [
            {
                "id": "",
                "kind": "",
                "name": ""
            }
        ]
    }
}
headers = {"content-type": "application/json"}

response = requests.patch(url, json=payload, headers=headers, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/targetingTemplates"

queryString <- list(id = "")

payload <- "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"listTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  }\n}"

encode <- "json"

response <- VERB("PATCH", url, body = payload, query = queryString, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/targetingTemplates?id=")

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  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"listTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\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.patch('/baseUrl/userprofiles/:profileId/targetingTemplates') do |req|
  req.params['id'] = ''
  req.body = "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"listTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ]\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}}/userprofiles/:profileId/targetingTemplates";

    let querystring = [
        ("id", ""),
    ];

    let payload = json!({
        "accountId": "",
        "advertiserId": "",
        "advertiserIdDimensionValue": json!({
            "dimensionName": "",
            "etag": "",
            "id": "",
            "kind": "",
            "matchType": "",
            "value": ""
        }),
        "dayPartTargeting": json!({
            "daysOfWeek": (),
            "hoursOfDay": (),
            "userLocalTime": false
        }),
        "geoTargeting": json!({
            "cities": (
                json!({
                    "countryCode": "",
                    "countryDartId": "",
                    "dartId": "",
                    "kind": "",
                    "metroCode": "",
                    "metroDmaId": "",
                    "name": "",
                    "regionCode": "",
                    "regionDartId": ""
                })
            ),
            "countries": (
                json!({
                    "countryCode": "",
                    "dartId": "",
                    "kind": "",
                    "name": "",
                    "sslEnabled": false
                })
            ),
            "excludeCountries": false,
            "metros": (
                json!({
                    "countryCode": "",
                    "countryDartId": "",
                    "dartId": "",
                    "dmaId": "",
                    "kind": "",
                    "metroCode": "",
                    "name": ""
                })
            ),
            "postalCodes": (
                json!({
                    "code": "",
                    "countryCode": "",
                    "countryDartId": "",
                    "id": "",
                    "kind": ""
                })
            ),
            "regions": (
                json!({
                    "countryCode": "",
                    "countryDartId": "",
                    "dartId": "",
                    "kind": "",
                    "name": "",
                    "regionCode": ""
                })
            )
        }),
        "id": "",
        "keyValueTargetingExpression": json!({"expression": ""}),
        "kind": "",
        "languageTargeting": json!({"languages": (
                json!({
                    "id": "",
                    "kind": "",
                    "languageCode": "",
                    "name": ""
                })
            )}),
        "listTargetingExpression": json!({"expression": ""}),
        "name": "",
        "subaccountId": "",
        "technologyTargeting": json!({
            "browsers": (
                json!({
                    "browserVersionId": "",
                    "dartId": "",
                    "kind": "",
                    "majorVersion": "",
                    "minorVersion": "",
                    "name": ""
                })
            ),
            "connectionTypes": (
                json!({
                    "id": "",
                    "kind": "",
                    "name": ""
                })
            ),
            "mobileCarriers": (
                json!({
                    "countryCode": "",
                    "countryDartId": "",
                    "id": "",
                    "kind": "",
                    "name": ""
                })
            ),
            "operatingSystemVersions": (
                json!({
                    "id": "",
                    "kind": "",
                    "majorVersion": "",
                    "minorVersion": "",
                    "name": "",
                    "operatingSystem": json!({
                        "dartId": "",
                        "desktop": false,
                        "kind": "",
                        "mobile": false,
                        "name": ""
                    })
                })
            ),
            "operatingSystems": (json!({})),
            "platformTypes": (
                json!({
                    "id": "",
                    "kind": "",
                    "name": ""
                })
            )
        })
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PATCH").unwrap(), url)
        .query(&querystring)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PATCH \
  --url '{{baseUrl}}/userprofiles/:profileId/targetingTemplates?id=' \
  --header 'content-type: application/json' \
  --data '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "dayPartTargeting": {
    "daysOfWeek": [],
    "hoursOfDay": [],
    "userLocalTime": false
  },
  "geoTargeting": {
    "cities": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "metroCode": "",
        "metroDmaId": "",
        "name": "",
        "regionCode": "",
        "regionDartId": ""
      }
    ],
    "countries": [
      {
        "countryCode": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "sslEnabled": false
      }
    ],
    "excludeCountries": false,
    "metros": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "dmaId": "",
        "kind": "",
        "metroCode": "",
        "name": ""
      }
    ],
    "postalCodes": [
      {
        "code": "",
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": ""
      }
    ],
    "regions": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "regionCode": ""
      }
    ]
  },
  "id": "",
  "keyValueTargetingExpression": {
    "expression": ""
  },
  "kind": "",
  "languageTargeting": {
    "languages": [
      {
        "id": "",
        "kind": "",
        "languageCode": "",
        "name": ""
      }
    ]
  },
  "listTargetingExpression": {
    "expression": ""
  },
  "name": "",
  "subaccountId": "",
  "technologyTargeting": {
    "browsers": [
      {
        "browserVersionId": "",
        "dartId": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": ""
      }
    ],
    "connectionTypes": [
      {
        "id": "",
        "kind": "",
        "name": ""
      }
    ],
    "mobileCarriers": [
      {
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": "",
        "name": ""
      }
    ],
    "operatingSystemVersions": [
      {
        "id": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": "",
        "operatingSystem": {
          "dartId": "",
          "desktop": false,
          "kind": "",
          "mobile": false,
          "name": ""
        }
      }
    ],
    "operatingSystems": [
      {}
    ],
    "platformTypes": [
      {
        "id": "",
        "kind": "",
        "name": ""
      }
    ]
  }
}'
echo '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "dayPartTargeting": {
    "daysOfWeek": [],
    "hoursOfDay": [],
    "userLocalTime": false
  },
  "geoTargeting": {
    "cities": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "metroCode": "",
        "metroDmaId": "",
        "name": "",
        "regionCode": "",
        "regionDartId": ""
      }
    ],
    "countries": [
      {
        "countryCode": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "sslEnabled": false
      }
    ],
    "excludeCountries": false,
    "metros": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "dmaId": "",
        "kind": "",
        "metroCode": "",
        "name": ""
      }
    ],
    "postalCodes": [
      {
        "code": "",
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": ""
      }
    ],
    "regions": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "regionCode": ""
      }
    ]
  },
  "id": "",
  "keyValueTargetingExpression": {
    "expression": ""
  },
  "kind": "",
  "languageTargeting": {
    "languages": [
      {
        "id": "",
        "kind": "",
        "languageCode": "",
        "name": ""
      }
    ]
  },
  "listTargetingExpression": {
    "expression": ""
  },
  "name": "",
  "subaccountId": "",
  "technologyTargeting": {
    "browsers": [
      {
        "browserVersionId": "",
        "dartId": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": ""
      }
    ],
    "connectionTypes": [
      {
        "id": "",
        "kind": "",
        "name": ""
      }
    ],
    "mobileCarriers": [
      {
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": "",
        "name": ""
      }
    ],
    "operatingSystemVersions": [
      {
        "id": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": "",
        "operatingSystem": {
          "dartId": "",
          "desktop": false,
          "kind": "",
          "mobile": false,
          "name": ""
        }
      }
    ],
    "operatingSystems": [
      {}
    ],
    "platformTypes": [
      {
        "id": "",
        "kind": "",
        "name": ""
      }
    ]
  }
}' |  \
  http PATCH '{{baseUrl}}/userprofiles/:profileId/targetingTemplates?id=' \
  content-type:application/json
wget --quiet \
  --method PATCH \
  --header 'content-type: application/json' \
  --body-data '{\n  "accountId": "",\n  "advertiserId": "",\n  "advertiserIdDimensionValue": {\n    "dimensionName": "",\n    "etag": "",\n    "id": "",\n    "kind": "",\n    "matchType": "",\n    "value": ""\n  },\n  "dayPartTargeting": {\n    "daysOfWeek": [],\n    "hoursOfDay": [],\n    "userLocalTime": false\n  },\n  "geoTargeting": {\n    "cities": [\n      {\n        "countryCode": "",\n        "countryDartId": "",\n        "dartId": "",\n        "kind": "",\n        "metroCode": "",\n        "metroDmaId": "",\n        "name": "",\n        "regionCode": "",\n        "regionDartId": ""\n      }\n    ],\n    "countries": [\n      {\n        "countryCode": "",\n        "dartId": "",\n        "kind": "",\n        "name": "",\n        "sslEnabled": false\n      }\n    ],\n    "excludeCountries": false,\n    "metros": [\n      {\n        "countryCode": "",\n        "countryDartId": "",\n        "dartId": "",\n        "dmaId": "",\n        "kind": "",\n        "metroCode": "",\n        "name": ""\n      }\n    ],\n    "postalCodes": [\n      {\n        "code": "",\n        "countryCode": "",\n        "countryDartId": "",\n        "id": "",\n        "kind": ""\n      }\n    ],\n    "regions": [\n      {\n        "countryCode": "",\n        "countryDartId": "",\n        "dartId": "",\n        "kind": "",\n        "name": "",\n        "regionCode": ""\n      }\n    ]\n  },\n  "id": "",\n  "keyValueTargetingExpression": {\n    "expression": ""\n  },\n  "kind": "",\n  "languageTargeting": {\n    "languages": [\n      {\n        "id": "",\n        "kind": "",\n        "languageCode": "",\n        "name": ""\n      }\n    ]\n  },\n  "listTargetingExpression": {\n    "expression": ""\n  },\n  "name": "",\n  "subaccountId": "",\n  "technologyTargeting": {\n    "browsers": [\n      {\n        "browserVersionId": "",\n        "dartId": "",\n        "kind": "",\n        "majorVersion": "",\n        "minorVersion": "",\n        "name": ""\n      }\n    ],\n    "connectionTypes": [\n      {\n        "id": "",\n        "kind": "",\n        "name": ""\n      }\n    ],\n    "mobileCarriers": [\n      {\n        "countryCode": "",\n        "countryDartId": "",\n        "id": "",\n        "kind": "",\n        "name": ""\n      }\n    ],\n    "operatingSystemVersions": [\n      {\n        "id": "",\n        "kind": "",\n        "majorVersion": "",\n        "minorVersion": "",\n        "name": "",\n        "operatingSystem": {\n          "dartId": "",\n          "desktop": false,\n          "kind": "",\n          "mobile": false,\n          "name": ""\n        }\n      }\n    ],\n    "operatingSystems": [\n      {}\n    ],\n    "platformTypes": [\n      {\n        "id": "",\n        "kind": "",\n        "name": ""\n      }\n    ]\n  }\n}' \
  --output-document \
  - '{{baseUrl}}/userprofiles/:profileId/targetingTemplates?id='
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": [
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  ],
  "dayPartTargeting": [
    "daysOfWeek": [],
    "hoursOfDay": [],
    "userLocalTime": false
  ],
  "geoTargeting": [
    "cities": [
      [
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "metroCode": "",
        "metroDmaId": "",
        "name": "",
        "regionCode": "",
        "regionDartId": ""
      ]
    ],
    "countries": [
      [
        "countryCode": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "sslEnabled": false
      ]
    ],
    "excludeCountries": false,
    "metros": [
      [
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "dmaId": "",
        "kind": "",
        "metroCode": "",
        "name": ""
      ]
    ],
    "postalCodes": [
      [
        "code": "",
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": ""
      ]
    ],
    "regions": [
      [
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "regionCode": ""
      ]
    ]
  ],
  "id": "",
  "keyValueTargetingExpression": ["expression": ""],
  "kind": "",
  "languageTargeting": ["languages": [
      [
        "id": "",
        "kind": "",
        "languageCode": "",
        "name": ""
      ]
    ]],
  "listTargetingExpression": ["expression": ""],
  "name": "",
  "subaccountId": "",
  "technologyTargeting": [
    "browsers": [
      [
        "browserVersionId": "",
        "dartId": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": ""
      ]
    ],
    "connectionTypes": [
      [
        "id": "",
        "kind": "",
        "name": ""
      ]
    ],
    "mobileCarriers": [
      [
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": "",
        "name": ""
      ]
    ],
    "operatingSystemVersions": [
      [
        "id": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": "",
        "operatingSystem": [
          "dartId": "",
          "desktop": false,
          "kind": "",
          "mobile": false,
          "name": ""
        ]
      ]
    ],
    "operatingSystems": [[]],
    "platformTypes": [
      [
        "id": "",
        "kind": "",
        "name": ""
      ]
    ]
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/targetingTemplates?id=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PATCH"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
PUT dfareporting.targetingTemplates.update
{{baseUrl}}/userprofiles/:profileId/targetingTemplates
QUERY PARAMS

profileId
BODY json

{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "dayPartTargeting": {
    "daysOfWeek": [],
    "hoursOfDay": [],
    "userLocalTime": false
  },
  "geoTargeting": {
    "cities": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "metroCode": "",
        "metroDmaId": "",
        "name": "",
        "regionCode": "",
        "regionDartId": ""
      }
    ],
    "countries": [
      {
        "countryCode": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "sslEnabled": false
      }
    ],
    "excludeCountries": false,
    "metros": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "dmaId": "",
        "kind": "",
        "metroCode": "",
        "name": ""
      }
    ],
    "postalCodes": [
      {
        "code": "",
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": ""
      }
    ],
    "regions": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "regionCode": ""
      }
    ]
  },
  "id": "",
  "keyValueTargetingExpression": {
    "expression": ""
  },
  "kind": "",
  "languageTargeting": {
    "languages": [
      {
        "id": "",
        "kind": "",
        "languageCode": "",
        "name": ""
      }
    ]
  },
  "listTargetingExpression": {
    "expression": ""
  },
  "name": "",
  "subaccountId": "",
  "technologyTargeting": {
    "browsers": [
      {
        "browserVersionId": "",
        "dartId": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": ""
      }
    ],
    "connectionTypes": [
      {
        "id": "",
        "kind": "",
        "name": ""
      }
    ],
    "mobileCarriers": [
      {
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": "",
        "name": ""
      }
    ],
    "operatingSystemVersions": [
      {
        "id": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": "",
        "operatingSystem": {
          "dartId": "",
          "desktop": false,
          "kind": "",
          "mobile": false,
          "name": ""
        }
      }
    ],
    "operatingSystems": [
      {}
    ],
    "platformTypes": [
      {
        "id": "",
        "kind": "",
        "name": ""
      }
    ]
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/targetingTemplates");

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  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"listTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/userprofiles/:profileId/targetingTemplates" {:content-type :json
                                                                                      :form-params {:accountId ""
                                                                                                    :advertiserId ""
                                                                                                    :advertiserIdDimensionValue {:dimensionName ""
                                                                                                                                 :etag ""
                                                                                                                                 :id ""
                                                                                                                                 :kind ""
                                                                                                                                 :matchType ""
                                                                                                                                 :value ""}
                                                                                                    :dayPartTargeting {:daysOfWeek []
                                                                                                                       :hoursOfDay []
                                                                                                                       :userLocalTime false}
                                                                                                    :geoTargeting {:cities [{:countryCode ""
                                                                                                                             :countryDartId ""
                                                                                                                             :dartId ""
                                                                                                                             :kind ""
                                                                                                                             :metroCode ""
                                                                                                                             :metroDmaId ""
                                                                                                                             :name ""
                                                                                                                             :regionCode ""
                                                                                                                             :regionDartId ""}]
                                                                                                                   :countries [{:countryCode ""
                                                                                                                                :dartId ""
                                                                                                                                :kind ""
                                                                                                                                :name ""
                                                                                                                                :sslEnabled false}]
                                                                                                                   :excludeCountries false
                                                                                                                   :metros [{:countryCode ""
                                                                                                                             :countryDartId ""
                                                                                                                             :dartId ""
                                                                                                                             :dmaId ""
                                                                                                                             :kind ""
                                                                                                                             :metroCode ""
                                                                                                                             :name ""}]
                                                                                                                   :postalCodes [{:code ""
                                                                                                                                  :countryCode ""
                                                                                                                                  :countryDartId ""
                                                                                                                                  :id ""
                                                                                                                                  :kind ""}]
                                                                                                                   :regions [{:countryCode ""
                                                                                                                              :countryDartId ""
                                                                                                                              :dartId ""
                                                                                                                              :kind ""
                                                                                                                              :name ""
                                                                                                                              :regionCode ""}]}
                                                                                                    :id ""
                                                                                                    :keyValueTargetingExpression {:expression ""}
                                                                                                    :kind ""
                                                                                                    :languageTargeting {:languages [{:id ""
                                                                                                                                     :kind ""
                                                                                                                                     :languageCode ""
                                                                                                                                     :name ""}]}
                                                                                                    :listTargetingExpression {:expression ""}
                                                                                                    :name ""
                                                                                                    :subaccountId ""
                                                                                                    :technologyTargeting {:browsers [{:browserVersionId ""
                                                                                                                                      :dartId ""
                                                                                                                                      :kind ""
                                                                                                                                      :majorVersion ""
                                                                                                                                      :minorVersion ""
                                                                                                                                      :name ""}]
                                                                                                                          :connectionTypes [{:id ""
                                                                                                                                             :kind ""
                                                                                                                                             :name ""}]
                                                                                                                          :mobileCarriers [{:countryCode ""
                                                                                                                                            :countryDartId ""
                                                                                                                                            :id ""
                                                                                                                                            :kind ""
                                                                                                                                            :name ""}]
                                                                                                                          :operatingSystemVersions [{:id ""
                                                                                                                                                     :kind ""
                                                                                                                                                     :majorVersion ""
                                                                                                                                                     :minorVersion ""
                                                                                                                                                     :name ""
                                                                                                                                                     :operatingSystem {:dartId ""
                                                                                                                                                                       :desktop false
                                                                                                                                                                       :kind ""
                                                                                                                                                                       :mobile false
                                                                                                                                                                       :name ""}}]
                                                                                                                          :operatingSystems [{}]
                                                                                                                          :platformTypes [{:id ""
                                                                                                                                           :kind ""
                                                                                                                                           :name ""}]}}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/targetingTemplates"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"listTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  }\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/userprofiles/:profileId/targetingTemplates"),
    Content = new StringContent("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"listTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\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}}/userprofiles/:profileId/targetingTemplates");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"listTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/targetingTemplates"

	payload := strings.NewReader("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"listTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  }\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/userprofiles/:profileId/targetingTemplates HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 2605

{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "dayPartTargeting": {
    "daysOfWeek": [],
    "hoursOfDay": [],
    "userLocalTime": false
  },
  "geoTargeting": {
    "cities": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "metroCode": "",
        "metroDmaId": "",
        "name": "",
        "regionCode": "",
        "regionDartId": ""
      }
    ],
    "countries": [
      {
        "countryCode": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "sslEnabled": false
      }
    ],
    "excludeCountries": false,
    "metros": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "dmaId": "",
        "kind": "",
        "metroCode": "",
        "name": ""
      }
    ],
    "postalCodes": [
      {
        "code": "",
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": ""
      }
    ],
    "regions": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "regionCode": ""
      }
    ]
  },
  "id": "",
  "keyValueTargetingExpression": {
    "expression": ""
  },
  "kind": "",
  "languageTargeting": {
    "languages": [
      {
        "id": "",
        "kind": "",
        "languageCode": "",
        "name": ""
      }
    ]
  },
  "listTargetingExpression": {
    "expression": ""
  },
  "name": "",
  "subaccountId": "",
  "technologyTargeting": {
    "browsers": [
      {
        "browserVersionId": "",
        "dartId": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": ""
      }
    ],
    "connectionTypes": [
      {
        "id": "",
        "kind": "",
        "name": ""
      }
    ],
    "mobileCarriers": [
      {
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": "",
        "name": ""
      }
    ],
    "operatingSystemVersions": [
      {
        "id": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": "",
        "operatingSystem": {
          "dartId": "",
          "desktop": false,
          "kind": "",
          "mobile": false,
          "name": ""
        }
      }
    ],
    "operatingSystems": [
      {}
    ],
    "platformTypes": [
      {
        "id": "",
        "kind": "",
        "name": ""
      }
    ]
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/userprofiles/:profileId/targetingTemplates")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"listTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/targetingTemplates"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"listTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\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  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"listTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/targetingTemplates")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/userprofiles/:profileId/targetingTemplates")
  .header("content-type", "application/json")
  .body("{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"listTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  }\n}")
  .asString();
const data = JSON.stringify({
  accountId: '',
  advertiserId: '',
  advertiserIdDimensionValue: {
    dimensionName: '',
    etag: '',
    id: '',
    kind: '',
    matchType: '',
    value: ''
  },
  dayPartTargeting: {
    daysOfWeek: [],
    hoursOfDay: [],
    userLocalTime: false
  },
  geoTargeting: {
    cities: [
      {
        countryCode: '',
        countryDartId: '',
        dartId: '',
        kind: '',
        metroCode: '',
        metroDmaId: '',
        name: '',
        regionCode: '',
        regionDartId: ''
      }
    ],
    countries: [
      {
        countryCode: '',
        dartId: '',
        kind: '',
        name: '',
        sslEnabled: false
      }
    ],
    excludeCountries: false,
    metros: [
      {
        countryCode: '',
        countryDartId: '',
        dartId: '',
        dmaId: '',
        kind: '',
        metroCode: '',
        name: ''
      }
    ],
    postalCodes: [
      {
        code: '',
        countryCode: '',
        countryDartId: '',
        id: '',
        kind: ''
      }
    ],
    regions: [
      {
        countryCode: '',
        countryDartId: '',
        dartId: '',
        kind: '',
        name: '',
        regionCode: ''
      }
    ]
  },
  id: '',
  keyValueTargetingExpression: {
    expression: ''
  },
  kind: '',
  languageTargeting: {
    languages: [
      {
        id: '',
        kind: '',
        languageCode: '',
        name: ''
      }
    ]
  },
  listTargetingExpression: {
    expression: ''
  },
  name: '',
  subaccountId: '',
  technologyTargeting: {
    browsers: [
      {
        browserVersionId: '',
        dartId: '',
        kind: '',
        majorVersion: '',
        minorVersion: '',
        name: ''
      }
    ],
    connectionTypes: [
      {
        id: '',
        kind: '',
        name: ''
      }
    ],
    mobileCarriers: [
      {
        countryCode: '',
        countryDartId: '',
        id: '',
        kind: '',
        name: ''
      }
    ],
    operatingSystemVersions: [
      {
        id: '',
        kind: '',
        majorVersion: '',
        minorVersion: '',
        name: '',
        operatingSystem: {
          dartId: '',
          desktop: false,
          kind: '',
          mobile: false,
          name: ''
        }
      }
    ],
    operatingSystems: [
      {}
    ],
    platformTypes: [
      {
        id: '',
        kind: '',
        name: ''
      }
    ]
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/userprofiles/:profileId/targetingTemplates');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/userprofiles/:profileId/targetingTemplates',
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    dayPartTargeting: {daysOfWeek: [], hoursOfDay: [], userLocalTime: false},
    geoTargeting: {
      cities: [
        {
          countryCode: '',
          countryDartId: '',
          dartId: '',
          kind: '',
          metroCode: '',
          metroDmaId: '',
          name: '',
          regionCode: '',
          regionDartId: ''
        }
      ],
      countries: [{countryCode: '', dartId: '', kind: '', name: '', sslEnabled: false}],
      excludeCountries: false,
      metros: [
        {
          countryCode: '',
          countryDartId: '',
          dartId: '',
          dmaId: '',
          kind: '',
          metroCode: '',
          name: ''
        }
      ],
      postalCodes: [{code: '', countryCode: '', countryDartId: '', id: '', kind: ''}],
      regions: [
        {
          countryCode: '',
          countryDartId: '',
          dartId: '',
          kind: '',
          name: '',
          regionCode: ''
        }
      ]
    },
    id: '',
    keyValueTargetingExpression: {expression: ''},
    kind: '',
    languageTargeting: {languages: [{id: '', kind: '', languageCode: '', name: ''}]},
    listTargetingExpression: {expression: ''},
    name: '',
    subaccountId: '',
    technologyTargeting: {
      browsers: [
        {
          browserVersionId: '',
          dartId: '',
          kind: '',
          majorVersion: '',
          minorVersion: '',
          name: ''
        }
      ],
      connectionTypes: [{id: '', kind: '', name: ''}],
      mobileCarriers: [{countryCode: '', countryDartId: '', id: '', kind: '', name: ''}],
      operatingSystemVersions: [
        {
          id: '',
          kind: '',
          majorVersion: '',
          minorVersion: '',
          name: '',
          operatingSystem: {dartId: '', desktop: false, kind: '', mobile: false, name: ''}
        }
      ],
      operatingSystems: [{}],
      platformTypes: [{id: '', kind: '', name: ''}]
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/targetingTemplates';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","advertiserId":"","advertiserIdDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"dayPartTargeting":{"daysOfWeek":[],"hoursOfDay":[],"userLocalTime":false},"geoTargeting":{"cities":[{"countryCode":"","countryDartId":"","dartId":"","kind":"","metroCode":"","metroDmaId":"","name":"","regionCode":"","regionDartId":""}],"countries":[{"countryCode":"","dartId":"","kind":"","name":"","sslEnabled":false}],"excludeCountries":false,"metros":[{"countryCode":"","countryDartId":"","dartId":"","dmaId":"","kind":"","metroCode":"","name":""}],"postalCodes":[{"code":"","countryCode":"","countryDartId":"","id":"","kind":""}],"regions":[{"countryCode":"","countryDartId":"","dartId":"","kind":"","name":"","regionCode":""}]},"id":"","keyValueTargetingExpression":{"expression":""},"kind":"","languageTargeting":{"languages":[{"id":"","kind":"","languageCode":"","name":""}]},"listTargetingExpression":{"expression":""},"name":"","subaccountId":"","technologyTargeting":{"browsers":[{"browserVersionId":"","dartId":"","kind":"","majorVersion":"","minorVersion":"","name":""}],"connectionTypes":[{"id":"","kind":"","name":""}],"mobileCarriers":[{"countryCode":"","countryDartId":"","id":"","kind":"","name":""}],"operatingSystemVersions":[{"id":"","kind":"","majorVersion":"","minorVersion":"","name":"","operatingSystem":{"dartId":"","desktop":false,"kind":"","mobile":false,"name":""}}],"operatingSystems":[{}],"platformTypes":[{"id":"","kind":"","name":""}]}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/userprofiles/:profileId/targetingTemplates',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "accountId": "",\n  "advertiserId": "",\n  "advertiserIdDimensionValue": {\n    "dimensionName": "",\n    "etag": "",\n    "id": "",\n    "kind": "",\n    "matchType": "",\n    "value": ""\n  },\n  "dayPartTargeting": {\n    "daysOfWeek": [],\n    "hoursOfDay": [],\n    "userLocalTime": false\n  },\n  "geoTargeting": {\n    "cities": [\n      {\n        "countryCode": "",\n        "countryDartId": "",\n        "dartId": "",\n        "kind": "",\n        "metroCode": "",\n        "metroDmaId": "",\n        "name": "",\n        "regionCode": "",\n        "regionDartId": ""\n      }\n    ],\n    "countries": [\n      {\n        "countryCode": "",\n        "dartId": "",\n        "kind": "",\n        "name": "",\n        "sslEnabled": false\n      }\n    ],\n    "excludeCountries": false,\n    "metros": [\n      {\n        "countryCode": "",\n        "countryDartId": "",\n        "dartId": "",\n        "dmaId": "",\n        "kind": "",\n        "metroCode": "",\n        "name": ""\n      }\n    ],\n    "postalCodes": [\n      {\n        "code": "",\n        "countryCode": "",\n        "countryDartId": "",\n        "id": "",\n        "kind": ""\n      }\n    ],\n    "regions": [\n      {\n        "countryCode": "",\n        "countryDartId": "",\n        "dartId": "",\n        "kind": "",\n        "name": "",\n        "regionCode": ""\n      }\n    ]\n  },\n  "id": "",\n  "keyValueTargetingExpression": {\n    "expression": ""\n  },\n  "kind": "",\n  "languageTargeting": {\n    "languages": [\n      {\n        "id": "",\n        "kind": "",\n        "languageCode": "",\n        "name": ""\n      }\n    ]\n  },\n  "listTargetingExpression": {\n    "expression": ""\n  },\n  "name": "",\n  "subaccountId": "",\n  "technologyTargeting": {\n    "browsers": [\n      {\n        "browserVersionId": "",\n        "dartId": "",\n        "kind": "",\n        "majorVersion": "",\n        "minorVersion": "",\n        "name": ""\n      }\n    ],\n    "connectionTypes": [\n      {\n        "id": "",\n        "kind": "",\n        "name": ""\n      }\n    ],\n    "mobileCarriers": [\n      {\n        "countryCode": "",\n        "countryDartId": "",\n        "id": "",\n        "kind": "",\n        "name": ""\n      }\n    ],\n    "operatingSystemVersions": [\n      {\n        "id": "",\n        "kind": "",\n        "majorVersion": "",\n        "minorVersion": "",\n        "name": "",\n        "operatingSystem": {\n          "dartId": "",\n          "desktop": false,\n          "kind": "",\n          "mobile": false,\n          "name": ""\n        }\n      }\n    ],\n    "operatingSystems": [\n      {}\n    ],\n    "platformTypes": [\n      {\n        "id": "",\n        "kind": "",\n        "name": ""\n      }\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  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"listTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/targetingTemplates")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/targetingTemplates',
  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({
  accountId: '',
  advertiserId: '',
  advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
  dayPartTargeting: {daysOfWeek: [], hoursOfDay: [], userLocalTime: false},
  geoTargeting: {
    cities: [
      {
        countryCode: '',
        countryDartId: '',
        dartId: '',
        kind: '',
        metroCode: '',
        metroDmaId: '',
        name: '',
        regionCode: '',
        regionDartId: ''
      }
    ],
    countries: [{countryCode: '', dartId: '', kind: '', name: '', sslEnabled: false}],
    excludeCountries: false,
    metros: [
      {
        countryCode: '',
        countryDartId: '',
        dartId: '',
        dmaId: '',
        kind: '',
        metroCode: '',
        name: ''
      }
    ],
    postalCodes: [{code: '', countryCode: '', countryDartId: '', id: '', kind: ''}],
    regions: [
      {
        countryCode: '',
        countryDartId: '',
        dartId: '',
        kind: '',
        name: '',
        regionCode: ''
      }
    ]
  },
  id: '',
  keyValueTargetingExpression: {expression: ''},
  kind: '',
  languageTargeting: {languages: [{id: '', kind: '', languageCode: '', name: ''}]},
  listTargetingExpression: {expression: ''},
  name: '',
  subaccountId: '',
  technologyTargeting: {
    browsers: [
      {
        browserVersionId: '',
        dartId: '',
        kind: '',
        majorVersion: '',
        minorVersion: '',
        name: ''
      }
    ],
    connectionTypes: [{id: '', kind: '', name: ''}],
    mobileCarriers: [{countryCode: '', countryDartId: '', id: '', kind: '', name: ''}],
    operatingSystemVersions: [
      {
        id: '',
        kind: '',
        majorVersion: '',
        minorVersion: '',
        name: '',
        operatingSystem: {dartId: '', desktop: false, kind: '', mobile: false, name: ''}
      }
    ],
    operatingSystems: [{}],
    platformTypes: [{id: '', kind: '', name: ''}]
  }
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/userprofiles/:profileId/targetingTemplates',
  headers: {'content-type': 'application/json'},
  body: {
    accountId: '',
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    dayPartTargeting: {daysOfWeek: [], hoursOfDay: [], userLocalTime: false},
    geoTargeting: {
      cities: [
        {
          countryCode: '',
          countryDartId: '',
          dartId: '',
          kind: '',
          metroCode: '',
          metroDmaId: '',
          name: '',
          regionCode: '',
          regionDartId: ''
        }
      ],
      countries: [{countryCode: '', dartId: '', kind: '', name: '', sslEnabled: false}],
      excludeCountries: false,
      metros: [
        {
          countryCode: '',
          countryDartId: '',
          dartId: '',
          dmaId: '',
          kind: '',
          metroCode: '',
          name: ''
        }
      ],
      postalCodes: [{code: '', countryCode: '', countryDartId: '', id: '', kind: ''}],
      regions: [
        {
          countryCode: '',
          countryDartId: '',
          dartId: '',
          kind: '',
          name: '',
          regionCode: ''
        }
      ]
    },
    id: '',
    keyValueTargetingExpression: {expression: ''},
    kind: '',
    languageTargeting: {languages: [{id: '', kind: '', languageCode: '', name: ''}]},
    listTargetingExpression: {expression: ''},
    name: '',
    subaccountId: '',
    technologyTargeting: {
      browsers: [
        {
          browserVersionId: '',
          dartId: '',
          kind: '',
          majorVersion: '',
          minorVersion: '',
          name: ''
        }
      ],
      connectionTypes: [{id: '', kind: '', name: ''}],
      mobileCarriers: [{countryCode: '', countryDartId: '', id: '', kind: '', name: ''}],
      operatingSystemVersions: [
        {
          id: '',
          kind: '',
          majorVersion: '',
          minorVersion: '',
          name: '',
          operatingSystem: {dartId: '', desktop: false, kind: '', mobile: false, name: ''}
        }
      ],
      operatingSystems: [{}],
      platformTypes: [{id: '', kind: '', name: ''}]
    }
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/userprofiles/:profileId/targetingTemplates');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  accountId: '',
  advertiserId: '',
  advertiserIdDimensionValue: {
    dimensionName: '',
    etag: '',
    id: '',
    kind: '',
    matchType: '',
    value: ''
  },
  dayPartTargeting: {
    daysOfWeek: [],
    hoursOfDay: [],
    userLocalTime: false
  },
  geoTargeting: {
    cities: [
      {
        countryCode: '',
        countryDartId: '',
        dartId: '',
        kind: '',
        metroCode: '',
        metroDmaId: '',
        name: '',
        regionCode: '',
        regionDartId: ''
      }
    ],
    countries: [
      {
        countryCode: '',
        dartId: '',
        kind: '',
        name: '',
        sslEnabled: false
      }
    ],
    excludeCountries: false,
    metros: [
      {
        countryCode: '',
        countryDartId: '',
        dartId: '',
        dmaId: '',
        kind: '',
        metroCode: '',
        name: ''
      }
    ],
    postalCodes: [
      {
        code: '',
        countryCode: '',
        countryDartId: '',
        id: '',
        kind: ''
      }
    ],
    regions: [
      {
        countryCode: '',
        countryDartId: '',
        dartId: '',
        kind: '',
        name: '',
        regionCode: ''
      }
    ]
  },
  id: '',
  keyValueTargetingExpression: {
    expression: ''
  },
  kind: '',
  languageTargeting: {
    languages: [
      {
        id: '',
        kind: '',
        languageCode: '',
        name: ''
      }
    ]
  },
  listTargetingExpression: {
    expression: ''
  },
  name: '',
  subaccountId: '',
  technologyTargeting: {
    browsers: [
      {
        browserVersionId: '',
        dartId: '',
        kind: '',
        majorVersion: '',
        minorVersion: '',
        name: ''
      }
    ],
    connectionTypes: [
      {
        id: '',
        kind: '',
        name: ''
      }
    ],
    mobileCarriers: [
      {
        countryCode: '',
        countryDartId: '',
        id: '',
        kind: '',
        name: ''
      }
    ],
    operatingSystemVersions: [
      {
        id: '',
        kind: '',
        majorVersion: '',
        minorVersion: '',
        name: '',
        operatingSystem: {
          dartId: '',
          desktop: false,
          kind: '',
          mobile: false,
          name: ''
        }
      }
    ],
    operatingSystems: [
      {}
    ],
    platformTypes: [
      {
        id: '',
        kind: '',
        name: ''
      }
    ]
  }
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/userprofiles/:profileId/targetingTemplates',
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    advertiserId: '',
    advertiserIdDimensionValue: {dimensionName: '', etag: '', id: '', kind: '', matchType: '', value: ''},
    dayPartTargeting: {daysOfWeek: [], hoursOfDay: [], userLocalTime: false},
    geoTargeting: {
      cities: [
        {
          countryCode: '',
          countryDartId: '',
          dartId: '',
          kind: '',
          metroCode: '',
          metroDmaId: '',
          name: '',
          regionCode: '',
          regionDartId: ''
        }
      ],
      countries: [{countryCode: '', dartId: '', kind: '', name: '', sslEnabled: false}],
      excludeCountries: false,
      metros: [
        {
          countryCode: '',
          countryDartId: '',
          dartId: '',
          dmaId: '',
          kind: '',
          metroCode: '',
          name: ''
        }
      ],
      postalCodes: [{code: '', countryCode: '', countryDartId: '', id: '', kind: ''}],
      regions: [
        {
          countryCode: '',
          countryDartId: '',
          dartId: '',
          kind: '',
          name: '',
          regionCode: ''
        }
      ]
    },
    id: '',
    keyValueTargetingExpression: {expression: ''},
    kind: '',
    languageTargeting: {languages: [{id: '', kind: '', languageCode: '', name: ''}]},
    listTargetingExpression: {expression: ''},
    name: '',
    subaccountId: '',
    technologyTargeting: {
      browsers: [
        {
          browserVersionId: '',
          dartId: '',
          kind: '',
          majorVersion: '',
          minorVersion: '',
          name: ''
        }
      ],
      connectionTypes: [{id: '', kind: '', name: ''}],
      mobileCarriers: [{countryCode: '', countryDartId: '', id: '', kind: '', name: ''}],
      operatingSystemVersions: [
        {
          id: '',
          kind: '',
          majorVersion: '',
          minorVersion: '',
          name: '',
          operatingSystem: {dartId: '', desktop: false, kind: '', mobile: false, name: ''}
        }
      ],
      operatingSystems: [{}],
      platformTypes: [{id: '', kind: '', name: ''}]
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/targetingTemplates';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","advertiserId":"","advertiserIdDimensionValue":{"dimensionName":"","etag":"","id":"","kind":"","matchType":"","value":""},"dayPartTargeting":{"daysOfWeek":[],"hoursOfDay":[],"userLocalTime":false},"geoTargeting":{"cities":[{"countryCode":"","countryDartId":"","dartId":"","kind":"","metroCode":"","metroDmaId":"","name":"","regionCode":"","regionDartId":""}],"countries":[{"countryCode":"","dartId":"","kind":"","name":"","sslEnabled":false}],"excludeCountries":false,"metros":[{"countryCode":"","countryDartId":"","dartId":"","dmaId":"","kind":"","metroCode":"","name":""}],"postalCodes":[{"code":"","countryCode":"","countryDartId":"","id":"","kind":""}],"regions":[{"countryCode":"","countryDartId":"","dartId":"","kind":"","name":"","regionCode":""}]},"id":"","keyValueTargetingExpression":{"expression":""},"kind":"","languageTargeting":{"languages":[{"id":"","kind":"","languageCode":"","name":""}]},"listTargetingExpression":{"expression":""},"name":"","subaccountId":"","technologyTargeting":{"browsers":[{"browserVersionId":"","dartId":"","kind":"","majorVersion":"","minorVersion":"","name":""}],"connectionTypes":[{"id":"","kind":"","name":""}],"mobileCarriers":[{"countryCode":"","countryDartId":"","id":"","kind":"","name":""}],"operatingSystemVersions":[{"id":"","kind":"","majorVersion":"","minorVersion":"","name":"","operatingSystem":{"dartId":"","desktop":false,"kind":"","mobile":false,"name":""}}],"operatingSystems":[{}],"platformTypes":[{"id":"","kind":"","name":""}]}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"accountId": @"",
                              @"advertiserId": @"",
                              @"advertiserIdDimensionValue": @{ @"dimensionName": @"", @"etag": @"", @"id": @"", @"kind": @"", @"matchType": @"", @"value": @"" },
                              @"dayPartTargeting": @{ @"daysOfWeek": @[  ], @"hoursOfDay": @[  ], @"userLocalTime": @NO },
                              @"geoTargeting": @{ @"cities": @[ @{ @"countryCode": @"", @"countryDartId": @"", @"dartId": @"", @"kind": @"", @"metroCode": @"", @"metroDmaId": @"", @"name": @"", @"regionCode": @"", @"regionDartId": @"" } ], @"countries": @[ @{ @"countryCode": @"", @"dartId": @"", @"kind": @"", @"name": @"", @"sslEnabled": @NO } ], @"excludeCountries": @NO, @"metros": @[ @{ @"countryCode": @"", @"countryDartId": @"", @"dartId": @"", @"dmaId": @"", @"kind": @"", @"metroCode": @"", @"name": @"" } ], @"postalCodes": @[ @{ @"code": @"", @"countryCode": @"", @"countryDartId": @"", @"id": @"", @"kind": @"" } ], @"regions": @[ @{ @"countryCode": @"", @"countryDartId": @"", @"dartId": @"", @"kind": @"", @"name": @"", @"regionCode": @"" } ] },
                              @"id": @"",
                              @"keyValueTargetingExpression": @{ @"expression": @"" },
                              @"kind": @"",
                              @"languageTargeting": @{ @"languages": @[ @{ @"id": @"", @"kind": @"", @"languageCode": @"", @"name": @"" } ] },
                              @"listTargetingExpression": @{ @"expression": @"" },
                              @"name": @"",
                              @"subaccountId": @"",
                              @"technologyTargeting": @{ @"browsers": @[ @{ @"browserVersionId": @"", @"dartId": @"", @"kind": @"", @"majorVersion": @"", @"minorVersion": @"", @"name": @"" } ], @"connectionTypes": @[ @{ @"id": @"", @"kind": @"", @"name": @"" } ], @"mobileCarriers": @[ @{ @"countryCode": @"", @"countryDartId": @"", @"id": @"", @"kind": @"", @"name": @"" } ], @"operatingSystemVersions": @[ @{ @"id": @"", @"kind": @"", @"majorVersion": @"", @"minorVersion": @"", @"name": @"", @"operatingSystem": @{ @"dartId": @"", @"desktop": @NO, @"kind": @"", @"mobile": @NO, @"name": @"" } } ], @"operatingSystems": @[ @{  } ], @"platformTypes": @[ @{ @"id": @"", @"kind": @"", @"name": @"" } ] } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/userprofiles/:profileId/targetingTemplates"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/userprofiles/:profileId/targetingTemplates" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"listTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  }\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/targetingTemplates",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'accountId' => '',
    'advertiserId' => '',
    'advertiserIdDimensionValue' => [
        'dimensionName' => '',
        'etag' => '',
        'id' => '',
        'kind' => '',
        'matchType' => '',
        'value' => ''
    ],
    'dayPartTargeting' => [
        'daysOfWeek' => [
                
        ],
        'hoursOfDay' => [
                
        ],
        'userLocalTime' => null
    ],
    'geoTargeting' => [
        'cities' => [
                [
                                'countryCode' => '',
                                'countryDartId' => '',
                                'dartId' => '',
                                'kind' => '',
                                'metroCode' => '',
                                'metroDmaId' => '',
                                'name' => '',
                                'regionCode' => '',
                                'regionDartId' => ''
                ]
        ],
        'countries' => [
                [
                                'countryCode' => '',
                                'dartId' => '',
                                'kind' => '',
                                'name' => '',
                                'sslEnabled' => null
                ]
        ],
        'excludeCountries' => null,
        'metros' => [
                [
                                'countryCode' => '',
                                'countryDartId' => '',
                                'dartId' => '',
                                'dmaId' => '',
                                'kind' => '',
                                'metroCode' => '',
                                'name' => ''
                ]
        ],
        'postalCodes' => [
                [
                                'code' => '',
                                'countryCode' => '',
                                'countryDartId' => '',
                                'id' => '',
                                'kind' => ''
                ]
        ],
        'regions' => [
                [
                                'countryCode' => '',
                                'countryDartId' => '',
                                'dartId' => '',
                                'kind' => '',
                                'name' => '',
                                'regionCode' => ''
                ]
        ]
    ],
    'id' => '',
    'keyValueTargetingExpression' => [
        'expression' => ''
    ],
    'kind' => '',
    'languageTargeting' => [
        'languages' => [
                [
                                'id' => '',
                                'kind' => '',
                                'languageCode' => '',
                                'name' => ''
                ]
        ]
    ],
    'listTargetingExpression' => [
        'expression' => ''
    ],
    'name' => '',
    'subaccountId' => '',
    'technologyTargeting' => [
        'browsers' => [
                [
                                'browserVersionId' => '',
                                'dartId' => '',
                                'kind' => '',
                                'majorVersion' => '',
                                'minorVersion' => '',
                                'name' => ''
                ]
        ],
        'connectionTypes' => [
                [
                                'id' => '',
                                'kind' => '',
                                'name' => ''
                ]
        ],
        'mobileCarriers' => [
                [
                                'countryCode' => '',
                                'countryDartId' => '',
                                'id' => '',
                                'kind' => '',
                                'name' => ''
                ]
        ],
        'operatingSystemVersions' => [
                [
                                'id' => '',
                                'kind' => '',
                                'majorVersion' => '',
                                'minorVersion' => '',
                                'name' => '',
                                'operatingSystem' => [
                                                                'dartId' => '',
                                                                'desktop' => null,
                                                                'kind' => '',
                                                                'mobile' => null,
                                                                'name' => ''
                                ]
                ]
        ],
        'operatingSystems' => [
                [
                                
                ]
        ],
        'platformTypes' => [
                [
                                'id' => '',
                                'kind' => '',
                                'name' => ''
                ]
        ]
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/userprofiles/:profileId/targetingTemplates', [
  'body' => '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "dayPartTargeting": {
    "daysOfWeek": [],
    "hoursOfDay": [],
    "userLocalTime": false
  },
  "geoTargeting": {
    "cities": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "metroCode": "",
        "metroDmaId": "",
        "name": "",
        "regionCode": "",
        "regionDartId": ""
      }
    ],
    "countries": [
      {
        "countryCode": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "sslEnabled": false
      }
    ],
    "excludeCountries": false,
    "metros": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "dmaId": "",
        "kind": "",
        "metroCode": "",
        "name": ""
      }
    ],
    "postalCodes": [
      {
        "code": "",
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": ""
      }
    ],
    "regions": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "regionCode": ""
      }
    ]
  },
  "id": "",
  "keyValueTargetingExpression": {
    "expression": ""
  },
  "kind": "",
  "languageTargeting": {
    "languages": [
      {
        "id": "",
        "kind": "",
        "languageCode": "",
        "name": ""
      }
    ]
  },
  "listTargetingExpression": {
    "expression": ""
  },
  "name": "",
  "subaccountId": "",
  "technologyTargeting": {
    "browsers": [
      {
        "browserVersionId": "",
        "dartId": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": ""
      }
    ],
    "connectionTypes": [
      {
        "id": "",
        "kind": "",
        "name": ""
      }
    ],
    "mobileCarriers": [
      {
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": "",
        "name": ""
      }
    ],
    "operatingSystemVersions": [
      {
        "id": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": "",
        "operatingSystem": {
          "dartId": "",
          "desktop": false,
          "kind": "",
          "mobile": false,
          "name": ""
        }
      }
    ],
    "operatingSystems": [
      {}
    ],
    "platformTypes": [
      {
        "id": "",
        "kind": "",
        "name": ""
      }
    ]
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/targetingTemplates');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'accountId' => '',
  'advertiserId' => '',
  'advertiserIdDimensionValue' => [
    'dimensionName' => '',
    'etag' => '',
    'id' => '',
    'kind' => '',
    'matchType' => '',
    'value' => ''
  ],
  'dayPartTargeting' => [
    'daysOfWeek' => [
        
    ],
    'hoursOfDay' => [
        
    ],
    'userLocalTime' => null
  ],
  'geoTargeting' => [
    'cities' => [
        [
                'countryCode' => '',
                'countryDartId' => '',
                'dartId' => '',
                'kind' => '',
                'metroCode' => '',
                'metroDmaId' => '',
                'name' => '',
                'regionCode' => '',
                'regionDartId' => ''
        ]
    ],
    'countries' => [
        [
                'countryCode' => '',
                'dartId' => '',
                'kind' => '',
                'name' => '',
                'sslEnabled' => null
        ]
    ],
    'excludeCountries' => null,
    'metros' => [
        [
                'countryCode' => '',
                'countryDartId' => '',
                'dartId' => '',
                'dmaId' => '',
                'kind' => '',
                'metroCode' => '',
                'name' => ''
        ]
    ],
    'postalCodes' => [
        [
                'code' => '',
                'countryCode' => '',
                'countryDartId' => '',
                'id' => '',
                'kind' => ''
        ]
    ],
    'regions' => [
        [
                'countryCode' => '',
                'countryDartId' => '',
                'dartId' => '',
                'kind' => '',
                'name' => '',
                'regionCode' => ''
        ]
    ]
  ],
  'id' => '',
  'keyValueTargetingExpression' => [
    'expression' => ''
  ],
  'kind' => '',
  'languageTargeting' => [
    'languages' => [
        [
                'id' => '',
                'kind' => '',
                'languageCode' => '',
                'name' => ''
        ]
    ]
  ],
  'listTargetingExpression' => [
    'expression' => ''
  ],
  'name' => '',
  'subaccountId' => '',
  'technologyTargeting' => [
    'browsers' => [
        [
                'browserVersionId' => '',
                'dartId' => '',
                'kind' => '',
                'majorVersion' => '',
                'minorVersion' => '',
                'name' => ''
        ]
    ],
    'connectionTypes' => [
        [
                'id' => '',
                'kind' => '',
                'name' => ''
        ]
    ],
    'mobileCarriers' => [
        [
                'countryCode' => '',
                'countryDartId' => '',
                'id' => '',
                'kind' => '',
                'name' => ''
        ]
    ],
    'operatingSystemVersions' => [
        [
                'id' => '',
                'kind' => '',
                'majorVersion' => '',
                'minorVersion' => '',
                'name' => '',
                'operatingSystem' => [
                                'dartId' => '',
                                'desktop' => null,
                                'kind' => '',
                                'mobile' => null,
                                'name' => ''
                ]
        ]
    ],
    'operatingSystems' => [
        [
                
        ]
    ],
    'platformTypes' => [
        [
                'id' => '',
                'kind' => '',
                'name' => ''
        ]
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'accountId' => '',
  'advertiserId' => '',
  'advertiserIdDimensionValue' => [
    'dimensionName' => '',
    'etag' => '',
    'id' => '',
    'kind' => '',
    'matchType' => '',
    'value' => ''
  ],
  'dayPartTargeting' => [
    'daysOfWeek' => [
        
    ],
    'hoursOfDay' => [
        
    ],
    'userLocalTime' => null
  ],
  'geoTargeting' => [
    'cities' => [
        [
                'countryCode' => '',
                'countryDartId' => '',
                'dartId' => '',
                'kind' => '',
                'metroCode' => '',
                'metroDmaId' => '',
                'name' => '',
                'regionCode' => '',
                'regionDartId' => ''
        ]
    ],
    'countries' => [
        [
                'countryCode' => '',
                'dartId' => '',
                'kind' => '',
                'name' => '',
                'sslEnabled' => null
        ]
    ],
    'excludeCountries' => null,
    'metros' => [
        [
                'countryCode' => '',
                'countryDartId' => '',
                'dartId' => '',
                'dmaId' => '',
                'kind' => '',
                'metroCode' => '',
                'name' => ''
        ]
    ],
    'postalCodes' => [
        [
                'code' => '',
                'countryCode' => '',
                'countryDartId' => '',
                'id' => '',
                'kind' => ''
        ]
    ],
    'regions' => [
        [
                'countryCode' => '',
                'countryDartId' => '',
                'dartId' => '',
                'kind' => '',
                'name' => '',
                'regionCode' => ''
        ]
    ]
  ],
  'id' => '',
  'keyValueTargetingExpression' => [
    'expression' => ''
  ],
  'kind' => '',
  'languageTargeting' => [
    'languages' => [
        [
                'id' => '',
                'kind' => '',
                'languageCode' => '',
                'name' => ''
        ]
    ]
  ],
  'listTargetingExpression' => [
    'expression' => ''
  ],
  'name' => '',
  'subaccountId' => '',
  'technologyTargeting' => [
    'browsers' => [
        [
                'browserVersionId' => '',
                'dartId' => '',
                'kind' => '',
                'majorVersion' => '',
                'minorVersion' => '',
                'name' => ''
        ]
    ],
    'connectionTypes' => [
        [
                'id' => '',
                'kind' => '',
                'name' => ''
        ]
    ],
    'mobileCarriers' => [
        [
                'countryCode' => '',
                'countryDartId' => '',
                'id' => '',
                'kind' => '',
                'name' => ''
        ]
    ],
    'operatingSystemVersions' => [
        [
                'id' => '',
                'kind' => '',
                'majorVersion' => '',
                'minorVersion' => '',
                'name' => '',
                'operatingSystem' => [
                                'dartId' => '',
                                'desktop' => null,
                                'kind' => '',
                                'mobile' => null,
                                'name' => ''
                ]
        ]
    ],
    'operatingSystems' => [
        [
                
        ]
    ],
    'platformTypes' => [
        [
                'id' => '',
                'kind' => '',
                'name' => ''
        ]
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/userprofiles/:profileId/targetingTemplates');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/targetingTemplates' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "dayPartTargeting": {
    "daysOfWeek": [],
    "hoursOfDay": [],
    "userLocalTime": false
  },
  "geoTargeting": {
    "cities": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "metroCode": "",
        "metroDmaId": "",
        "name": "",
        "regionCode": "",
        "regionDartId": ""
      }
    ],
    "countries": [
      {
        "countryCode": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "sslEnabled": false
      }
    ],
    "excludeCountries": false,
    "metros": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "dmaId": "",
        "kind": "",
        "metroCode": "",
        "name": ""
      }
    ],
    "postalCodes": [
      {
        "code": "",
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": ""
      }
    ],
    "regions": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "regionCode": ""
      }
    ]
  },
  "id": "",
  "keyValueTargetingExpression": {
    "expression": ""
  },
  "kind": "",
  "languageTargeting": {
    "languages": [
      {
        "id": "",
        "kind": "",
        "languageCode": "",
        "name": ""
      }
    ]
  },
  "listTargetingExpression": {
    "expression": ""
  },
  "name": "",
  "subaccountId": "",
  "technologyTargeting": {
    "browsers": [
      {
        "browserVersionId": "",
        "dartId": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": ""
      }
    ],
    "connectionTypes": [
      {
        "id": "",
        "kind": "",
        "name": ""
      }
    ],
    "mobileCarriers": [
      {
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": "",
        "name": ""
      }
    ],
    "operatingSystemVersions": [
      {
        "id": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": "",
        "operatingSystem": {
          "dartId": "",
          "desktop": false,
          "kind": "",
          "mobile": false,
          "name": ""
        }
      }
    ],
    "operatingSystems": [
      {}
    ],
    "platformTypes": [
      {
        "id": "",
        "kind": "",
        "name": ""
      }
    ]
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/targetingTemplates' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "dayPartTargeting": {
    "daysOfWeek": [],
    "hoursOfDay": [],
    "userLocalTime": false
  },
  "geoTargeting": {
    "cities": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "metroCode": "",
        "metroDmaId": "",
        "name": "",
        "regionCode": "",
        "regionDartId": ""
      }
    ],
    "countries": [
      {
        "countryCode": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "sslEnabled": false
      }
    ],
    "excludeCountries": false,
    "metros": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "dmaId": "",
        "kind": "",
        "metroCode": "",
        "name": ""
      }
    ],
    "postalCodes": [
      {
        "code": "",
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": ""
      }
    ],
    "regions": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "regionCode": ""
      }
    ]
  },
  "id": "",
  "keyValueTargetingExpression": {
    "expression": ""
  },
  "kind": "",
  "languageTargeting": {
    "languages": [
      {
        "id": "",
        "kind": "",
        "languageCode": "",
        "name": ""
      }
    ]
  },
  "listTargetingExpression": {
    "expression": ""
  },
  "name": "",
  "subaccountId": "",
  "technologyTargeting": {
    "browsers": [
      {
        "browserVersionId": "",
        "dartId": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": ""
      }
    ],
    "connectionTypes": [
      {
        "id": "",
        "kind": "",
        "name": ""
      }
    ],
    "mobileCarriers": [
      {
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": "",
        "name": ""
      }
    ],
    "operatingSystemVersions": [
      {
        "id": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": "",
        "operatingSystem": {
          "dartId": "",
          "desktop": false,
          "kind": "",
          "mobile": false,
          "name": ""
        }
      }
    ],
    "operatingSystems": [
      {}
    ],
    "platformTypes": [
      {
        "id": "",
        "kind": "",
        "name": ""
      }
    ]
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"listTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/userprofiles/:profileId/targetingTemplates", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/targetingTemplates"

payload = {
    "accountId": "",
    "advertiserId": "",
    "advertiserIdDimensionValue": {
        "dimensionName": "",
        "etag": "",
        "id": "",
        "kind": "",
        "matchType": "",
        "value": ""
    },
    "dayPartTargeting": {
        "daysOfWeek": [],
        "hoursOfDay": [],
        "userLocalTime": False
    },
    "geoTargeting": {
        "cities": [
            {
                "countryCode": "",
                "countryDartId": "",
                "dartId": "",
                "kind": "",
                "metroCode": "",
                "metroDmaId": "",
                "name": "",
                "regionCode": "",
                "regionDartId": ""
            }
        ],
        "countries": [
            {
                "countryCode": "",
                "dartId": "",
                "kind": "",
                "name": "",
                "sslEnabled": False
            }
        ],
        "excludeCountries": False,
        "metros": [
            {
                "countryCode": "",
                "countryDartId": "",
                "dartId": "",
                "dmaId": "",
                "kind": "",
                "metroCode": "",
                "name": ""
            }
        ],
        "postalCodes": [
            {
                "code": "",
                "countryCode": "",
                "countryDartId": "",
                "id": "",
                "kind": ""
            }
        ],
        "regions": [
            {
                "countryCode": "",
                "countryDartId": "",
                "dartId": "",
                "kind": "",
                "name": "",
                "regionCode": ""
            }
        ]
    },
    "id": "",
    "keyValueTargetingExpression": { "expression": "" },
    "kind": "",
    "languageTargeting": { "languages": [
            {
                "id": "",
                "kind": "",
                "languageCode": "",
                "name": ""
            }
        ] },
    "listTargetingExpression": { "expression": "" },
    "name": "",
    "subaccountId": "",
    "technologyTargeting": {
        "browsers": [
            {
                "browserVersionId": "",
                "dartId": "",
                "kind": "",
                "majorVersion": "",
                "minorVersion": "",
                "name": ""
            }
        ],
        "connectionTypes": [
            {
                "id": "",
                "kind": "",
                "name": ""
            }
        ],
        "mobileCarriers": [
            {
                "countryCode": "",
                "countryDartId": "",
                "id": "",
                "kind": "",
                "name": ""
            }
        ],
        "operatingSystemVersions": [
            {
                "id": "",
                "kind": "",
                "majorVersion": "",
                "minorVersion": "",
                "name": "",
                "operatingSystem": {
                    "dartId": "",
                    "desktop": False,
                    "kind": "",
                    "mobile": False,
                    "name": ""
                }
            }
        ],
        "operatingSystems": [{}],
        "platformTypes": [
            {
                "id": "",
                "kind": "",
                "name": ""
            }
        ]
    }
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/targetingTemplates"

payload <- "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"listTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  }\n}"

encode <- "json"

response <- VERB("PUT", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/targetingTemplates")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"listTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\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.put('/baseUrl/userprofiles/:profileId/targetingTemplates') do |req|
  req.body = "{\n  \"accountId\": \"\",\n  \"advertiserId\": \"\",\n  \"advertiserIdDimensionValue\": {\n    \"dimensionName\": \"\",\n    \"etag\": \"\",\n    \"id\": \"\",\n    \"kind\": \"\",\n    \"matchType\": \"\",\n    \"value\": \"\"\n  },\n  \"dayPartTargeting\": {\n    \"daysOfWeek\": [],\n    \"hoursOfDay\": [],\n    \"userLocalTime\": false\n  },\n  \"geoTargeting\": {\n    \"cities\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"metroDmaId\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\",\n        \"regionDartId\": \"\"\n      }\n    ],\n    \"countries\": [\n      {\n        \"countryCode\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"sslEnabled\": false\n      }\n    ],\n    \"excludeCountries\": false,\n    \"metros\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"dmaId\": \"\",\n        \"kind\": \"\",\n        \"metroCode\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"postalCodes\": [\n      {\n        \"code\": \"\",\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\"\n      }\n    ],\n    \"regions\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\",\n        \"regionCode\": \"\"\n      }\n    ]\n  },\n  \"id\": \"\",\n  \"keyValueTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"kind\": \"\",\n  \"languageTargeting\": {\n    \"languages\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"languageCode\": \"\",\n        \"name\": \"\"\n      }\n    ]\n  },\n  \"listTargetingExpression\": {\n    \"expression\": \"\"\n  },\n  \"name\": \"\",\n  \"subaccountId\": \"\",\n  \"technologyTargeting\": {\n    \"browsers\": [\n      {\n        \"browserVersionId\": \"\",\n        \"dartId\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"connectionTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"mobileCarriers\": [\n      {\n        \"countryCode\": \"\",\n        \"countryDartId\": \"\",\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ],\n    \"operatingSystemVersions\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"majorVersion\": \"\",\n        \"minorVersion\": \"\",\n        \"name\": \"\",\n        \"operatingSystem\": {\n          \"dartId\": \"\",\n          \"desktop\": false,\n          \"kind\": \"\",\n          \"mobile\": false,\n          \"name\": \"\"\n        }\n      }\n    ],\n    \"operatingSystems\": [\n      {}\n    ],\n    \"platformTypes\": [\n      {\n        \"id\": \"\",\n        \"kind\": \"\",\n        \"name\": \"\"\n      }\n    ]\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}}/userprofiles/:profileId/targetingTemplates";

    let payload = json!({
        "accountId": "",
        "advertiserId": "",
        "advertiserIdDimensionValue": json!({
            "dimensionName": "",
            "etag": "",
            "id": "",
            "kind": "",
            "matchType": "",
            "value": ""
        }),
        "dayPartTargeting": json!({
            "daysOfWeek": (),
            "hoursOfDay": (),
            "userLocalTime": false
        }),
        "geoTargeting": json!({
            "cities": (
                json!({
                    "countryCode": "",
                    "countryDartId": "",
                    "dartId": "",
                    "kind": "",
                    "metroCode": "",
                    "metroDmaId": "",
                    "name": "",
                    "regionCode": "",
                    "regionDartId": ""
                })
            ),
            "countries": (
                json!({
                    "countryCode": "",
                    "dartId": "",
                    "kind": "",
                    "name": "",
                    "sslEnabled": false
                })
            ),
            "excludeCountries": false,
            "metros": (
                json!({
                    "countryCode": "",
                    "countryDartId": "",
                    "dartId": "",
                    "dmaId": "",
                    "kind": "",
                    "metroCode": "",
                    "name": ""
                })
            ),
            "postalCodes": (
                json!({
                    "code": "",
                    "countryCode": "",
                    "countryDartId": "",
                    "id": "",
                    "kind": ""
                })
            ),
            "regions": (
                json!({
                    "countryCode": "",
                    "countryDartId": "",
                    "dartId": "",
                    "kind": "",
                    "name": "",
                    "regionCode": ""
                })
            )
        }),
        "id": "",
        "keyValueTargetingExpression": json!({"expression": ""}),
        "kind": "",
        "languageTargeting": json!({"languages": (
                json!({
                    "id": "",
                    "kind": "",
                    "languageCode": "",
                    "name": ""
                })
            )}),
        "listTargetingExpression": json!({"expression": ""}),
        "name": "",
        "subaccountId": "",
        "technologyTargeting": json!({
            "browsers": (
                json!({
                    "browserVersionId": "",
                    "dartId": "",
                    "kind": "",
                    "majorVersion": "",
                    "minorVersion": "",
                    "name": ""
                })
            ),
            "connectionTypes": (
                json!({
                    "id": "",
                    "kind": "",
                    "name": ""
                })
            ),
            "mobileCarriers": (
                json!({
                    "countryCode": "",
                    "countryDartId": "",
                    "id": "",
                    "kind": "",
                    "name": ""
                })
            ),
            "operatingSystemVersions": (
                json!({
                    "id": "",
                    "kind": "",
                    "majorVersion": "",
                    "minorVersion": "",
                    "name": "",
                    "operatingSystem": json!({
                        "dartId": "",
                        "desktop": false,
                        "kind": "",
                        "mobile": false,
                        "name": ""
                    })
                })
            ),
            "operatingSystems": (json!({})),
            "platformTypes": (
                json!({
                    "id": "",
                    "kind": "",
                    "name": ""
                })
            )
        })
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/userprofiles/:profileId/targetingTemplates \
  --header 'content-type: application/json' \
  --data '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "dayPartTargeting": {
    "daysOfWeek": [],
    "hoursOfDay": [],
    "userLocalTime": false
  },
  "geoTargeting": {
    "cities": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "metroCode": "",
        "metroDmaId": "",
        "name": "",
        "regionCode": "",
        "regionDartId": ""
      }
    ],
    "countries": [
      {
        "countryCode": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "sslEnabled": false
      }
    ],
    "excludeCountries": false,
    "metros": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "dmaId": "",
        "kind": "",
        "metroCode": "",
        "name": ""
      }
    ],
    "postalCodes": [
      {
        "code": "",
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": ""
      }
    ],
    "regions": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "regionCode": ""
      }
    ]
  },
  "id": "",
  "keyValueTargetingExpression": {
    "expression": ""
  },
  "kind": "",
  "languageTargeting": {
    "languages": [
      {
        "id": "",
        "kind": "",
        "languageCode": "",
        "name": ""
      }
    ]
  },
  "listTargetingExpression": {
    "expression": ""
  },
  "name": "",
  "subaccountId": "",
  "technologyTargeting": {
    "browsers": [
      {
        "browserVersionId": "",
        "dartId": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": ""
      }
    ],
    "connectionTypes": [
      {
        "id": "",
        "kind": "",
        "name": ""
      }
    ],
    "mobileCarriers": [
      {
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": "",
        "name": ""
      }
    ],
    "operatingSystemVersions": [
      {
        "id": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": "",
        "operatingSystem": {
          "dartId": "",
          "desktop": false,
          "kind": "",
          "mobile": false,
          "name": ""
        }
      }
    ],
    "operatingSystems": [
      {}
    ],
    "platformTypes": [
      {
        "id": "",
        "kind": "",
        "name": ""
      }
    ]
  }
}'
echo '{
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": {
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  },
  "dayPartTargeting": {
    "daysOfWeek": [],
    "hoursOfDay": [],
    "userLocalTime": false
  },
  "geoTargeting": {
    "cities": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "metroCode": "",
        "metroDmaId": "",
        "name": "",
        "regionCode": "",
        "regionDartId": ""
      }
    ],
    "countries": [
      {
        "countryCode": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "sslEnabled": false
      }
    ],
    "excludeCountries": false,
    "metros": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "dmaId": "",
        "kind": "",
        "metroCode": "",
        "name": ""
      }
    ],
    "postalCodes": [
      {
        "code": "",
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": ""
      }
    ],
    "regions": [
      {
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "regionCode": ""
      }
    ]
  },
  "id": "",
  "keyValueTargetingExpression": {
    "expression": ""
  },
  "kind": "",
  "languageTargeting": {
    "languages": [
      {
        "id": "",
        "kind": "",
        "languageCode": "",
        "name": ""
      }
    ]
  },
  "listTargetingExpression": {
    "expression": ""
  },
  "name": "",
  "subaccountId": "",
  "technologyTargeting": {
    "browsers": [
      {
        "browserVersionId": "",
        "dartId": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": ""
      }
    ],
    "connectionTypes": [
      {
        "id": "",
        "kind": "",
        "name": ""
      }
    ],
    "mobileCarriers": [
      {
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": "",
        "name": ""
      }
    ],
    "operatingSystemVersions": [
      {
        "id": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": "",
        "operatingSystem": {
          "dartId": "",
          "desktop": false,
          "kind": "",
          "mobile": false,
          "name": ""
        }
      }
    ],
    "operatingSystems": [
      {}
    ],
    "platformTypes": [
      {
        "id": "",
        "kind": "",
        "name": ""
      }
    ]
  }
}' |  \
  http PUT {{baseUrl}}/userprofiles/:profileId/targetingTemplates \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "accountId": "",\n  "advertiserId": "",\n  "advertiserIdDimensionValue": {\n    "dimensionName": "",\n    "etag": "",\n    "id": "",\n    "kind": "",\n    "matchType": "",\n    "value": ""\n  },\n  "dayPartTargeting": {\n    "daysOfWeek": [],\n    "hoursOfDay": [],\n    "userLocalTime": false\n  },\n  "geoTargeting": {\n    "cities": [\n      {\n        "countryCode": "",\n        "countryDartId": "",\n        "dartId": "",\n        "kind": "",\n        "metroCode": "",\n        "metroDmaId": "",\n        "name": "",\n        "regionCode": "",\n        "regionDartId": ""\n      }\n    ],\n    "countries": [\n      {\n        "countryCode": "",\n        "dartId": "",\n        "kind": "",\n        "name": "",\n        "sslEnabled": false\n      }\n    ],\n    "excludeCountries": false,\n    "metros": [\n      {\n        "countryCode": "",\n        "countryDartId": "",\n        "dartId": "",\n        "dmaId": "",\n        "kind": "",\n        "metroCode": "",\n        "name": ""\n      }\n    ],\n    "postalCodes": [\n      {\n        "code": "",\n        "countryCode": "",\n        "countryDartId": "",\n        "id": "",\n        "kind": ""\n      }\n    ],\n    "regions": [\n      {\n        "countryCode": "",\n        "countryDartId": "",\n        "dartId": "",\n        "kind": "",\n        "name": "",\n        "regionCode": ""\n      }\n    ]\n  },\n  "id": "",\n  "keyValueTargetingExpression": {\n    "expression": ""\n  },\n  "kind": "",\n  "languageTargeting": {\n    "languages": [\n      {\n        "id": "",\n        "kind": "",\n        "languageCode": "",\n        "name": ""\n      }\n    ]\n  },\n  "listTargetingExpression": {\n    "expression": ""\n  },\n  "name": "",\n  "subaccountId": "",\n  "technologyTargeting": {\n    "browsers": [\n      {\n        "browserVersionId": "",\n        "dartId": "",\n        "kind": "",\n        "majorVersion": "",\n        "minorVersion": "",\n        "name": ""\n      }\n    ],\n    "connectionTypes": [\n      {\n        "id": "",\n        "kind": "",\n        "name": ""\n      }\n    ],\n    "mobileCarriers": [\n      {\n        "countryCode": "",\n        "countryDartId": "",\n        "id": "",\n        "kind": "",\n        "name": ""\n      }\n    ],\n    "operatingSystemVersions": [\n      {\n        "id": "",\n        "kind": "",\n        "majorVersion": "",\n        "minorVersion": "",\n        "name": "",\n        "operatingSystem": {\n          "dartId": "",\n          "desktop": false,\n          "kind": "",\n          "mobile": false,\n          "name": ""\n        }\n      }\n    ],\n    "operatingSystems": [\n      {}\n    ],\n    "platformTypes": [\n      {\n        "id": "",\n        "kind": "",\n        "name": ""\n      }\n    ]\n  }\n}' \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/targetingTemplates
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "accountId": "",
  "advertiserId": "",
  "advertiserIdDimensionValue": [
    "dimensionName": "",
    "etag": "",
    "id": "",
    "kind": "",
    "matchType": "",
    "value": ""
  ],
  "dayPartTargeting": [
    "daysOfWeek": [],
    "hoursOfDay": [],
    "userLocalTime": false
  ],
  "geoTargeting": [
    "cities": [
      [
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "metroCode": "",
        "metroDmaId": "",
        "name": "",
        "regionCode": "",
        "regionDartId": ""
      ]
    ],
    "countries": [
      [
        "countryCode": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "sslEnabled": false
      ]
    ],
    "excludeCountries": false,
    "metros": [
      [
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "dmaId": "",
        "kind": "",
        "metroCode": "",
        "name": ""
      ]
    ],
    "postalCodes": [
      [
        "code": "",
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": ""
      ]
    ],
    "regions": [
      [
        "countryCode": "",
        "countryDartId": "",
        "dartId": "",
        "kind": "",
        "name": "",
        "regionCode": ""
      ]
    ]
  ],
  "id": "",
  "keyValueTargetingExpression": ["expression": ""],
  "kind": "",
  "languageTargeting": ["languages": [
      [
        "id": "",
        "kind": "",
        "languageCode": "",
        "name": ""
      ]
    ]],
  "listTargetingExpression": ["expression": ""],
  "name": "",
  "subaccountId": "",
  "technologyTargeting": [
    "browsers": [
      [
        "browserVersionId": "",
        "dartId": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": ""
      ]
    ],
    "connectionTypes": [
      [
        "id": "",
        "kind": "",
        "name": ""
      ]
    ],
    "mobileCarriers": [
      [
        "countryCode": "",
        "countryDartId": "",
        "id": "",
        "kind": "",
        "name": ""
      ]
    ],
    "operatingSystemVersions": [
      [
        "id": "",
        "kind": "",
        "majorVersion": "",
        "minorVersion": "",
        "name": "",
        "operatingSystem": [
          "dartId": "",
          "desktop": false,
          "kind": "",
          "mobile": false,
          "name": ""
        ]
      ]
    ],
    "operatingSystems": [[]],
    "platformTypes": [
      [
        "id": "",
        "kind": "",
        "name": ""
      ]
    ]
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/targetingTemplates")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET dfareporting.userProfiles.get
{{baseUrl}}/userprofiles/:profileId
QUERY PARAMS

profileId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId"

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}}/userprofiles/:profileId"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId"

	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/userprofiles/:profileId HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId"))
    .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}}/userprofiles/:profileId")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId")
  .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}}/userprofiles/:profileId');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/userprofiles/:profileId'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId';
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}}/userprofiles/:profileId',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId',
  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}}/userprofiles/:profileId'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId');

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}}/userprofiles/:profileId'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId';
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}}/userprofiles/:profileId"]
                                                       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}}/userprofiles/:profileId" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId",
  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}}/userprofiles/:profileId');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId")

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/userprofiles/:profileId') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId";

    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}}/userprofiles/:profileId
http GET {{baseUrl}}/userprofiles/:profileId
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId")! 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 dfareporting.userProfiles.list
{{baseUrl}}/userprofiles
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles")
require "http/client"

url = "{{baseUrl}}/userprofiles"

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}}/userprofiles"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles"

	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/userprofiles HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles"))
    .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}}/userprofiles")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles")
  .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}}/userprofiles');

xhr.send(data);
import axios from 'axios';

const options = {method: 'GET', url: '{{baseUrl}}/userprofiles'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles';
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}}/userprofiles',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles',
  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}}/userprofiles'};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/userprofiles');

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}}/userprofiles'};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles';
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}}/userprofiles"]
                                                       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}}/userprofiles" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles",
  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}}/userprofiles');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles")

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/userprofiles') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles";

    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}}/userprofiles
http GET {{baseUrl}}/userprofiles
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles")! 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 dfareporting.userRolePermissionGroups.get
{{baseUrl}}/userprofiles/:profileId/userRolePermissionGroups/:id
QUERY PARAMS

profileId
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/userRolePermissionGroups/:id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/userRolePermissionGroups/:id")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/userRolePermissionGroups/:id"

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}}/userprofiles/:profileId/userRolePermissionGroups/:id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/userRolePermissionGroups/:id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/userRolePermissionGroups/:id"

	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/userprofiles/:profileId/userRolePermissionGroups/:id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/userRolePermissionGroups/:id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/userRolePermissionGroups/:id"))
    .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}}/userprofiles/:profileId/userRolePermissionGroups/:id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/userRolePermissionGroups/:id")
  .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}}/userprofiles/:profileId/userRolePermissionGroups/:id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/userRolePermissionGroups/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/userRolePermissionGroups/:id';
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}}/userprofiles/:profileId/userRolePermissionGroups/:id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/userRolePermissionGroups/:id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/userRolePermissionGroups/:id',
  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}}/userprofiles/:profileId/userRolePermissionGroups/:id'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/userRolePermissionGroups/:id');

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}}/userprofiles/:profileId/userRolePermissionGroups/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/userRolePermissionGroups/:id';
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}}/userprofiles/:profileId/userRolePermissionGroups/:id"]
                                                       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}}/userprofiles/:profileId/userRolePermissionGroups/:id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/userRolePermissionGroups/:id",
  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}}/userprofiles/:profileId/userRolePermissionGroups/:id');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/userRolePermissionGroups/:id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/userRolePermissionGroups/:id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/userRolePermissionGroups/:id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/userRolePermissionGroups/:id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/userRolePermissionGroups/:id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/userRolePermissionGroups/:id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/userRolePermissionGroups/:id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/userRolePermissionGroups/:id")

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/userprofiles/:profileId/userRolePermissionGroups/:id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/userRolePermissionGroups/:id";

    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}}/userprofiles/:profileId/userRolePermissionGroups/:id
http GET {{baseUrl}}/userprofiles/:profileId/userRolePermissionGroups/:id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/userRolePermissionGroups/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/userRolePermissionGroups/:id")! 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 dfareporting.userRolePermissionGroups.list
{{baseUrl}}/userprofiles/:profileId/userRolePermissionGroups
QUERY PARAMS

profileId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/userRolePermissionGroups");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/userRolePermissionGroups")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/userRolePermissionGroups"

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}}/userprofiles/:profileId/userRolePermissionGroups"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/userRolePermissionGroups");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/userRolePermissionGroups"

	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/userprofiles/:profileId/userRolePermissionGroups HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/userRolePermissionGroups")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/userRolePermissionGroups"))
    .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}}/userprofiles/:profileId/userRolePermissionGroups")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/userRolePermissionGroups")
  .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}}/userprofiles/:profileId/userRolePermissionGroups');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/userRolePermissionGroups'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/userRolePermissionGroups';
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}}/userprofiles/:profileId/userRolePermissionGroups',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/userRolePermissionGroups")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/userRolePermissionGroups',
  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}}/userprofiles/:profileId/userRolePermissionGroups'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/userRolePermissionGroups');

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}}/userprofiles/:profileId/userRolePermissionGroups'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/userRolePermissionGroups';
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}}/userprofiles/:profileId/userRolePermissionGroups"]
                                                       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}}/userprofiles/:profileId/userRolePermissionGroups" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/userRolePermissionGroups",
  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}}/userprofiles/:profileId/userRolePermissionGroups');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/userRolePermissionGroups');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/userRolePermissionGroups');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/userRolePermissionGroups' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/userRolePermissionGroups' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/userRolePermissionGroups")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/userRolePermissionGroups"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/userRolePermissionGroups"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/userRolePermissionGroups")

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/userprofiles/:profileId/userRolePermissionGroups') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/userRolePermissionGroups";

    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}}/userprofiles/:profileId/userRolePermissionGroups
http GET {{baseUrl}}/userprofiles/:profileId/userRolePermissionGroups
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/userRolePermissionGroups
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/userRolePermissionGroups")! 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 dfareporting.userRolePermissions.get
{{baseUrl}}/userprofiles/:profileId/userRolePermissions/:id
QUERY PARAMS

profileId
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/userRolePermissions/:id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/userRolePermissions/:id")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/userRolePermissions/:id"

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}}/userprofiles/:profileId/userRolePermissions/:id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/userRolePermissions/:id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/userRolePermissions/:id"

	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/userprofiles/:profileId/userRolePermissions/:id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/userRolePermissions/:id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/userRolePermissions/:id"))
    .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}}/userprofiles/:profileId/userRolePermissions/:id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/userRolePermissions/:id")
  .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}}/userprofiles/:profileId/userRolePermissions/:id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/userRolePermissions/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/userRolePermissions/:id';
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}}/userprofiles/:profileId/userRolePermissions/:id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/userRolePermissions/:id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/userRolePermissions/:id',
  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}}/userprofiles/:profileId/userRolePermissions/:id'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/userRolePermissions/:id');

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}}/userprofiles/:profileId/userRolePermissions/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/userRolePermissions/:id';
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}}/userprofiles/:profileId/userRolePermissions/:id"]
                                                       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}}/userprofiles/:profileId/userRolePermissions/:id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/userRolePermissions/:id",
  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}}/userprofiles/:profileId/userRolePermissions/:id');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/userRolePermissions/:id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/userRolePermissions/:id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/userRolePermissions/:id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/userRolePermissions/:id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/userRolePermissions/:id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/userRolePermissions/:id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/userRolePermissions/:id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/userRolePermissions/:id")

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/userprofiles/:profileId/userRolePermissions/:id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/userRolePermissions/:id";

    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}}/userprofiles/:profileId/userRolePermissions/:id
http GET {{baseUrl}}/userprofiles/:profileId/userRolePermissions/:id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/userRolePermissions/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/userRolePermissions/:id")! 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 dfareporting.userRolePermissions.list
{{baseUrl}}/userprofiles/:profileId/userRolePermissions
QUERY PARAMS

profileId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/userRolePermissions");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/userRolePermissions")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/userRolePermissions"

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}}/userprofiles/:profileId/userRolePermissions"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/userRolePermissions");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/userRolePermissions"

	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/userprofiles/:profileId/userRolePermissions HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/userRolePermissions")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/userRolePermissions"))
    .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}}/userprofiles/:profileId/userRolePermissions")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/userRolePermissions")
  .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}}/userprofiles/:profileId/userRolePermissions');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/userRolePermissions'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/userRolePermissions';
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}}/userprofiles/:profileId/userRolePermissions',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/userRolePermissions")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/userRolePermissions',
  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}}/userprofiles/:profileId/userRolePermissions'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/userRolePermissions');

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}}/userprofiles/:profileId/userRolePermissions'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/userRolePermissions';
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}}/userprofiles/:profileId/userRolePermissions"]
                                                       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}}/userprofiles/:profileId/userRolePermissions" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/userRolePermissions",
  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}}/userprofiles/:profileId/userRolePermissions');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/userRolePermissions');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/userRolePermissions');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/userRolePermissions' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/userRolePermissions' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/userRolePermissions")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/userRolePermissions"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/userRolePermissions"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/userRolePermissions")

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/userprofiles/:profileId/userRolePermissions') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/userRolePermissions";

    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}}/userprofiles/:profileId/userRolePermissions
http GET {{baseUrl}}/userprofiles/:profileId/userRolePermissions
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/userRolePermissions
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/userRolePermissions")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
DELETE dfareporting.userRoles.delete
{{baseUrl}}/userprofiles/:profileId/userRoles/:id
QUERY PARAMS

profileId
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/userRoles/:id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/userprofiles/:profileId/userRoles/:id")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/userRoles/:id"

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}}/userprofiles/:profileId/userRoles/:id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/userRoles/:id");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/userRoles/:id"

	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/userprofiles/:profileId/userRoles/:id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/userprofiles/:profileId/userRoles/:id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/userRoles/:id"))
    .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}}/userprofiles/:profileId/userRoles/:id")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/userprofiles/:profileId/userRoles/:id")
  .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}}/userprofiles/:profileId/userRoles/:id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/userprofiles/:profileId/userRoles/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/userRoles/:id';
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}}/userprofiles/:profileId/userRoles/:id',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/userRoles/:id")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/userRoles/:id',
  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}}/userprofiles/:profileId/userRoles/:id'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/userprofiles/:profileId/userRoles/:id');

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}}/userprofiles/:profileId/userRoles/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/userRoles/:id';
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}}/userprofiles/:profileId/userRoles/:id"]
                                                       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}}/userprofiles/:profileId/userRoles/:id" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/userRoles/:id",
  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}}/userprofiles/:profileId/userRoles/:id');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/userRoles/:id');
$request->setMethod(HTTP_METH_DELETE);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/userRoles/:id');
$request->setRequestMethod('DELETE');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/userRoles/:id' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/userRoles/:id' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/userprofiles/:profileId/userRoles/:id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/userRoles/:id"

response = requests.delete(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/userRoles/:id"

response <- VERB("DELETE", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/userRoles/:id")

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/userprofiles/:profileId/userRoles/:id') do |req|
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/userRoles/:id";

    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}}/userprofiles/:profileId/userRoles/:id
http DELETE {{baseUrl}}/userprofiles/:profileId/userRoles/:id
wget --quiet \
  --method DELETE \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/userRoles/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/userRoles/:id")! 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 dfareporting.userRoles.get
{{baseUrl}}/userprofiles/:profileId/userRoles/:id
QUERY PARAMS

profileId
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/userRoles/:id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/userRoles/:id")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/userRoles/:id"

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}}/userprofiles/:profileId/userRoles/:id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/userRoles/:id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/userRoles/:id"

	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/userprofiles/:profileId/userRoles/:id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/userRoles/:id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/userRoles/:id"))
    .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}}/userprofiles/:profileId/userRoles/:id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/userRoles/:id")
  .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}}/userprofiles/:profileId/userRoles/:id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/userRoles/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/userRoles/:id';
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}}/userprofiles/:profileId/userRoles/:id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/userRoles/:id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/userRoles/:id',
  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}}/userprofiles/:profileId/userRoles/:id'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/userRoles/:id');

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}}/userprofiles/:profileId/userRoles/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/userRoles/:id';
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}}/userprofiles/:profileId/userRoles/:id"]
                                                       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}}/userprofiles/:profileId/userRoles/:id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/userRoles/:id",
  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}}/userprofiles/:profileId/userRoles/:id');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/userRoles/:id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/userRoles/:id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/userRoles/:id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/userRoles/:id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/userRoles/:id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/userRoles/:id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/userRoles/:id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/userRoles/:id")

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/userprofiles/:profileId/userRoles/:id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/userRoles/:id";

    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}}/userprofiles/:profileId/userRoles/:id
http GET {{baseUrl}}/userprofiles/:profileId/userRoles/:id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/userRoles/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/userRoles/:id")! 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 dfareporting.userRoles.insert
{{baseUrl}}/userprofiles/:profileId/userRoles
QUERY PARAMS

profileId
BODY json

{
  "accountId": "",
  "defaultUserRole": false,
  "id": "",
  "kind": "",
  "name": "",
  "parentUserRoleId": "",
  "permissions": [
    {
      "availability": "",
      "id": "",
      "kind": "",
      "name": "",
      "permissionGroupId": ""
    }
  ],
  "subaccountId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/userRoles");

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  \"accountId\": \"\",\n  \"defaultUserRole\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"parentUserRoleId\": \"\",\n  \"permissions\": [\n    {\n      \"availability\": \"\",\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"permissionGroupId\": \"\"\n    }\n  ],\n  \"subaccountId\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/post "{{baseUrl}}/userprofiles/:profileId/userRoles" {:content-type :json
                                                                              :form-params {:accountId ""
                                                                                            :defaultUserRole false
                                                                                            :id ""
                                                                                            :kind ""
                                                                                            :name ""
                                                                                            :parentUserRoleId ""
                                                                                            :permissions [{:availability ""
                                                                                                           :id ""
                                                                                                           :kind ""
                                                                                                           :name ""
                                                                                                           :permissionGroupId ""}]
                                                                                            :subaccountId ""}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/userRoles"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"accountId\": \"\",\n  \"defaultUserRole\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"parentUserRoleId\": \"\",\n  \"permissions\": [\n    {\n      \"availability\": \"\",\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"permissionGroupId\": \"\"\n    }\n  ],\n  \"subaccountId\": \"\"\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}}/userprofiles/:profileId/userRoles"),
    Content = new StringContent("{\n  \"accountId\": \"\",\n  \"defaultUserRole\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"parentUserRoleId\": \"\",\n  \"permissions\": [\n    {\n      \"availability\": \"\",\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"permissionGroupId\": \"\"\n    }\n  ],\n  \"subaccountId\": \"\"\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}}/userprofiles/:profileId/userRoles");
var request = new RestRequest("", Method.Post);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"accountId\": \"\",\n  \"defaultUserRole\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"parentUserRoleId\": \"\",\n  \"permissions\": [\n    {\n      \"availability\": \"\",\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"permissionGroupId\": \"\"\n    }\n  ],\n  \"subaccountId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/userRoles"

	payload := strings.NewReader("{\n  \"accountId\": \"\",\n  \"defaultUserRole\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"parentUserRoleId\": \"\",\n  \"permissions\": [\n    {\n      \"availability\": \"\",\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"permissionGroupId\": \"\"\n    }\n  ],\n  \"subaccountId\": \"\"\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/userprofiles/:profileId/userRoles HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 281

{
  "accountId": "",
  "defaultUserRole": false,
  "id": "",
  "kind": "",
  "name": "",
  "parentUserRoleId": "",
  "permissions": [
    {
      "availability": "",
      "id": "",
      "kind": "",
      "name": "",
      "permissionGroupId": ""
    }
  ],
  "subaccountId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/userprofiles/:profileId/userRoles")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"accountId\": \"\",\n  \"defaultUserRole\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"parentUserRoleId\": \"\",\n  \"permissions\": [\n    {\n      \"availability\": \"\",\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"permissionGroupId\": \"\"\n    }\n  ],\n  \"subaccountId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/userRoles"))
    .header("content-type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"accountId\": \"\",\n  \"defaultUserRole\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"parentUserRoleId\": \"\",\n  \"permissions\": [\n    {\n      \"availability\": \"\",\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"permissionGroupId\": \"\"\n    }\n  ],\n  \"subaccountId\": \"\"\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  \"accountId\": \"\",\n  \"defaultUserRole\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"parentUserRoleId\": \"\",\n  \"permissions\": [\n    {\n      \"availability\": \"\",\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"permissionGroupId\": \"\"\n    }\n  ],\n  \"subaccountId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/userRoles")
  .post(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/userprofiles/:profileId/userRoles")
  .header("content-type", "application/json")
  .body("{\n  \"accountId\": \"\",\n  \"defaultUserRole\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"parentUserRoleId\": \"\",\n  \"permissions\": [\n    {\n      \"availability\": \"\",\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"permissionGroupId\": \"\"\n    }\n  ],\n  \"subaccountId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  accountId: '',
  defaultUserRole: false,
  id: '',
  kind: '',
  name: '',
  parentUserRoleId: '',
  permissions: [
    {
      availability: '',
      id: '',
      kind: '',
      name: '',
      permissionGroupId: ''
    }
  ],
  subaccountId: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('POST', '{{baseUrl}}/userprofiles/:profileId/userRoles');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'POST',
  url: '{{baseUrl}}/userprofiles/:profileId/userRoles',
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    defaultUserRole: false,
    id: '',
    kind: '',
    name: '',
    parentUserRoleId: '',
    permissions: [{availability: '', id: '', kind: '', name: '', permissionGroupId: ''}],
    subaccountId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/userRoles';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","defaultUserRole":false,"id":"","kind":"","name":"","parentUserRoleId":"","permissions":[{"availability":"","id":"","kind":"","name":"","permissionGroupId":""}],"subaccountId":""}'
};

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}}/userprofiles/:profileId/userRoles',
  method: 'POST',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "accountId": "",\n  "defaultUserRole": false,\n  "id": "",\n  "kind": "",\n  "name": "",\n  "parentUserRoleId": "",\n  "permissions": [\n    {\n      "availability": "",\n      "id": "",\n      "kind": "",\n      "name": "",\n      "permissionGroupId": ""\n    }\n  ],\n  "subaccountId": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"accountId\": \"\",\n  \"defaultUserRole\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"parentUserRoleId\": \"\",\n  \"permissions\": [\n    {\n      \"availability\": \"\",\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"permissionGroupId\": \"\"\n    }\n  ],\n  \"subaccountId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/userRoles")
  .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/userprofiles/:profileId/userRoles',
  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({
  accountId: '',
  defaultUserRole: false,
  id: '',
  kind: '',
  name: '',
  parentUserRoleId: '',
  permissions: [{availability: '', id: '', kind: '', name: '', permissionGroupId: ''}],
  subaccountId: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'POST',
  url: '{{baseUrl}}/userprofiles/:profileId/userRoles',
  headers: {'content-type': 'application/json'},
  body: {
    accountId: '',
    defaultUserRole: false,
    id: '',
    kind: '',
    name: '',
    parentUserRoleId: '',
    permissions: [{availability: '', id: '', kind: '', name: '', permissionGroupId: ''}],
    subaccountId: ''
  },
  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}}/userprofiles/:profileId/userRoles');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  accountId: '',
  defaultUserRole: false,
  id: '',
  kind: '',
  name: '',
  parentUserRoleId: '',
  permissions: [
    {
      availability: '',
      id: '',
      kind: '',
      name: '',
      permissionGroupId: ''
    }
  ],
  subaccountId: ''
});

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}}/userprofiles/:profileId/userRoles',
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    defaultUserRole: false,
    id: '',
    kind: '',
    name: '',
    parentUserRoleId: '',
    permissions: [{availability: '', id: '', kind: '', name: '', permissionGroupId: ''}],
    subaccountId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/userRoles';
const options = {
  method: 'POST',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","defaultUserRole":false,"id":"","kind":"","name":"","parentUserRoleId":"","permissions":[{"availability":"","id":"","kind":"","name":"","permissionGroupId":""}],"subaccountId":""}'
};

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 = @{ @"accountId": @"",
                              @"defaultUserRole": @NO,
                              @"id": @"",
                              @"kind": @"",
                              @"name": @"",
                              @"parentUserRoleId": @"",
                              @"permissions": @[ @{ @"availability": @"", @"id": @"", @"kind": @"", @"name": @"", @"permissionGroupId": @"" } ],
                              @"subaccountId": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/userprofiles/:profileId/userRoles"]
                                                       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}}/userprofiles/:profileId/userRoles" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"accountId\": \"\",\n  \"defaultUserRole\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"parentUserRoleId\": \"\",\n  \"permissions\": [\n    {\n      \"availability\": \"\",\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"permissionGroupId\": \"\"\n    }\n  ],\n  \"subaccountId\": \"\"\n}" in

Client.call ~headers ~body `POST uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/userRoles",
  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([
    'accountId' => '',
    'defaultUserRole' => null,
    'id' => '',
    'kind' => '',
    'name' => '',
    'parentUserRoleId' => '',
    'permissions' => [
        [
                'availability' => '',
                'id' => '',
                'kind' => '',
                'name' => '',
                'permissionGroupId' => ''
        ]
    ],
    'subaccountId' => ''
  ]),
  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}}/userprofiles/:profileId/userRoles', [
  'body' => '{
  "accountId": "",
  "defaultUserRole": false,
  "id": "",
  "kind": "",
  "name": "",
  "parentUserRoleId": "",
  "permissions": [
    {
      "availability": "",
      "id": "",
      "kind": "",
      "name": "",
      "permissionGroupId": ""
    }
  ],
  "subaccountId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/userRoles');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'accountId' => '',
  'defaultUserRole' => null,
  'id' => '',
  'kind' => '',
  'name' => '',
  'parentUserRoleId' => '',
  'permissions' => [
    [
        'availability' => '',
        'id' => '',
        'kind' => '',
        'name' => '',
        'permissionGroupId' => ''
    ]
  ],
  'subaccountId' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'accountId' => '',
  'defaultUserRole' => null,
  'id' => '',
  'kind' => '',
  'name' => '',
  'parentUserRoleId' => '',
  'permissions' => [
    [
        'availability' => '',
        'id' => '',
        'kind' => '',
        'name' => '',
        'permissionGroupId' => ''
    ]
  ],
  'subaccountId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/userprofiles/:profileId/userRoles');
$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}}/userprofiles/:profileId/userRoles' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "defaultUserRole": false,
  "id": "",
  "kind": "",
  "name": "",
  "parentUserRoleId": "",
  "permissions": [
    {
      "availability": "",
      "id": "",
      "kind": "",
      "name": "",
      "permissionGroupId": ""
    }
  ],
  "subaccountId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/userRoles' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "defaultUserRole": false,
  "id": "",
  "kind": "",
  "name": "",
  "parentUserRoleId": "",
  "permissions": [
    {
      "availability": "",
      "id": "",
      "kind": "",
      "name": "",
      "permissionGroupId": ""
    }
  ],
  "subaccountId": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"accountId\": \"\",\n  \"defaultUserRole\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"parentUserRoleId\": \"\",\n  \"permissions\": [\n    {\n      \"availability\": \"\",\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"permissionGroupId\": \"\"\n    }\n  ],\n  \"subaccountId\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("POST", "/baseUrl/userprofiles/:profileId/userRoles", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/userRoles"

payload = {
    "accountId": "",
    "defaultUserRole": False,
    "id": "",
    "kind": "",
    "name": "",
    "parentUserRoleId": "",
    "permissions": [
        {
            "availability": "",
            "id": "",
            "kind": "",
            "name": "",
            "permissionGroupId": ""
        }
    ],
    "subaccountId": ""
}
headers = {"content-type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/userRoles"

payload <- "{\n  \"accountId\": \"\",\n  \"defaultUserRole\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"parentUserRoleId\": \"\",\n  \"permissions\": [\n    {\n      \"availability\": \"\",\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"permissionGroupId\": \"\"\n    }\n  ],\n  \"subaccountId\": \"\"\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}}/userprofiles/:profileId/userRoles")

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  \"accountId\": \"\",\n  \"defaultUserRole\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"parentUserRoleId\": \"\",\n  \"permissions\": [\n    {\n      \"availability\": \"\",\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"permissionGroupId\": \"\"\n    }\n  ],\n  \"subaccountId\": \"\"\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/userprofiles/:profileId/userRoles') do |req|
  req.body = "{\n  \"accountId\": \"\",\n  \"defaultUserRole\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"parentUserRoleId\": \"\",\n  \"permissions\": [\n    {\n      \"availability\": \"\",\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"permissionGroupId\": \"\"\n    }\n  ],\n  \"subaccountId\": \"\"\n}"
end

puts response.status
puts response.body
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/userRoles";

    let payload = json!({
        "accountId": "",
        "defaultUserRole": false,
        "id": "",
        "kind": "",
        "name": "",
        "parentUserRoleId": "",
        "permissions": (
            json!({
                "availability": "",
                "id": "",
                "kind": "",
                "name": "",
                "permissionGroupId": ""
            })
        ),
        "subaccountId": ""
    });

    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}}/userprofiles/:profileId/userRoles \
  --header 'content-type: application/json' \
  --data '{
  "accountId": "",
  "defaultUserRole": false,
  "id": "",
  "kind": "",
  "name": "",
  "parentUserRoleId": "",
  "permissions": [
    {
      "availability": "",
      "id": "",
      "kind": "",
      "name": "",
      "permissionGroupId": ""
    }
  ],
  "subaccountId": ""
}'
echo '{
  "accountId": "",
  "defaultUserRole": false,
  "id": "",
  "kind": "",
  "name": "",
  "parentUserRoleId": "",
  "permissions": [
    {
      "availability": "",
      "id": "",
      "kind": "",
      "name": "",
      "permissionGroupId": ""
    }
  ],
  "subaccountId": ""
}' |  \
  http POST {{baseUrl}}/userprofiles/:profileId/userRoles \
  content-type:application/json
wget --quiet \
  --method POST \
  --header 'content-type: application/json' \
  --body-data '{\n  "accountId": "",\n  "defaultUserRole": false,\n  "id": "",\n  "kind": "",\n  "name": "",\n  "parentUserRoleId": "",\n  "permissions": [\n    {\n      "availability": "",\n      "id": "",\n      "kind": "",\n      "name": "",\n      "permissionGroupId": ""\n    }\n  ],\n  "subaccountId": ""\n}' \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/userRoles
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "accountId": "",
  "defaultUserRole": false,
  "id": "",
  "kind": "",
  "name": "",
  "parentUserRoleId": "",
  "permissions": [
    [
      "availability": "",
      "id": "",
      "kind": "",
      "name": "",
      "permissionGroupId": ""
    ]
  ],
  "subaccountId": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/userRoles")! 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 dfareporting.userRoles.list
{{baseUrl}}/userprofiles/:profileId/userRoles
QUERY PARAMS

profileId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/userRoles");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/userRoles")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/userRoles"

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}}/userprofiles/:profileId/userRoles"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/userRoles");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/userRoles"

	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/userprofiles/:profileId/userRoles HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/userRoles")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/userRoles"))
    .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}}/userprofiles/:profileId/userRoles")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/userRoles")
  .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}}/userprofiles/:profileId/userRoles');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/userRoles'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/userRoles';
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}}/userprofiles/:profileId/userRoles',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/userRoles")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/userRoles',
  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}}/userprofiles/:profileId/userRoles'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/userRoles');

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}}/userprofiles/:profileId/userRoles'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/userRoles';
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}}/userprofiles/:profileId/userRoles"]
                                                       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}}/userprofiles/:profileId/userRoles" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/userRoles",
  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}}/userprofiles/:profileId/userRoles');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/userRoles');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/userRoles');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/userRoles' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/userRoles' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/userRoles")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/userRoles"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/userRoles"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/userRoles")

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/userprofiles/:profileId/userRoles') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/userRoles";

    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}}/userprofiles/:profileId/userRoles
http GET {{baseUrl}}/userprofiles/:profileId/userRoles
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/userRoles
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/userRoles")! 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 dfareporting.userRoles.patch
{{baseUrl}}/userprofiles/:profileId/userRoles
QUERY PARAMS

id
profileId
BODY json

{
  "accountId": "",
  "defaultUserRole": false,
  "id": "",
  "kind": "",
  "name": "",
  "parentUserRoleId": "",
  "permissions": [
    {
      "availability": "",
      "id": "",
      "kind": "",
      "name": "",
      "permissionGroupId": ""
    }
  ],
  "subaccountId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/userRoles?id=");

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  \"accountId\": \"\",\n  \"defaultUserRole\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"parentUserRoleId\": \"\",\n  \"permissions\": [\n    {\n      \"availability\": \"\",\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"permissionGroupId\": \"\"\n    }\n  ],\n  \"subaccountId\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/patch "{{baseUrl}}/userprofiles/:profileId/userRoles" {:query-params {:id ""}
                                                                               :content-type :json
                                                                               :form-params {:accountId ""
                                                                                             :defaultUserRole false
                                                                                             :id ""
                                                                                             :kind ""
                                                                                             :name ""
                                                                                             :parentUserRoleId ""
                                                                                             :permissions [{:availability ""
                                                                                                            :id ""
                                                                                                            :kind ""
                                                                                                            :name ""
                                                                                                            :permissionGroupId ""}]
                                                                                             :subaccountId ""}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/userRoles?id="
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"accountId\": \"\",\n  \"defaultUserRole\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"parentUserRoleId\": \"\",\n  \"permissions\": [\n    {\n      \"availability\": \"\",\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"permissionGroupId\": \"\"\n    }\n  ],\n  \"subaccountId\": \"\"\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}}/userprofiles/:profileId/userRoles?id="),
    Content = new StringContent("{\n  \"accountId\": \"\",\n  \"defaultUserRole\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"parentUserRoleId\": \"\",\n  \"permissions\": [\n    {\n      \"availability\": \"\",\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"permissionGroupId\": \"\"\n    }\n  ],\n  \"subaccountId\": \"\"\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}}/userprofiles/:profileId/userRoles?id=");
var request = new RestRequest("", Method.Patch);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"accountId\": \"\",\n  \"defaultUserRole\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"parentUserRoleId\": \"\",\n  \"permissions\": [\n    {\n      \"availability\": \"\",\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"permissionGroupId\": \"\"\n    }\n  ],\n  \"subaccountId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/userRoles?id="

	payload := strings.NewReader("{\n  \"accountId\": \"\",\n  \"defaultUserRole\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"parentUserRoleId\": \"\",\n  \"permissions\": [\n    {\n      \"availability\": \"\",\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"permissionGroupId\": \"\"\n    }\n  ],\n  \"subaccountId\": \"\"\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/userprofiles/:profileId/userRoles?id= HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 281

{
  "accountId": "",
  "defaultUserRole": false,
  "id": "",
  "kind": "",
  "name": "",
  "parentUserRoleId": "",
  "permissions": [
    {
      "availability": "",
      "id": "",
      "kind": "",
      "name": "",
      "permissionGroupId": ""
    }
  ],
  "subaccountId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PATCH", "{{baseUrl}}/userprofiles/:profileId/userRoles?id=")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"accountId\": \"\",\n  \"defaultUserRole\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"parentUserRoleId\": \"\",\n  \"permissions\": [\n    {\n      \"availability\": \"\",\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"permissionGroupId\": \"\"\n    }\n  ],\n  \"subaccountId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/userRoles?id="))
    .header("content-type", "application/json")
    .method("PATCH", HttpRequest.BodyPublishers.ofString("{\n  \"accountId\": \"\",\n  \"defaultUserRole\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"parentUserRoleId\": \"\",\n  \"permissions\": [\n    {\n      \"availability\": \"\",\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"permissionGroupId\": \"\"\n    }\n  ],\n  \"subaccountId\": \"\"\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  \"accountId\": \"\",\n  \"defaultUserRole\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"parentUserRoleId\": \"\",\n  \"permissions\": [\n    {\n      \"availability\": \"\",\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"permissionGroupId\": \"\"\n    }\n  ],\n  \"subaccountId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/userRoles?id=")
  .patch(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.patch("{{baseUrl}}/userprofiles/:profileId/userRoles?id=")
  .header("content-type", "application/json")
  .body("{\n  \"accountId\": \"\",\n  \"defaultUserRole\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"parentUserRoleId\": \"\",\n  \"permissions\": [\n    {\n      \"availability\": \"\",\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"permissionGroupId\": \"\"\n    }\n  ],\n  \"subaccountId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  accountId: '',
  defaultUserRole: false,
  id: '',
  kind: '',
  name: '',
  parentUserRoleId: '',
  permissions: [
    {
      availability: '',
      id: '',
      kind: '',
      name: '',
      permissionGroupId: ''
    }
  ],
  subaccountId: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PATCH', '{{baseUrl}}/userprofiles/:profileId/userRoles?id=');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/userprofiles/:profileId/userRoles',
  params: {id: ''},
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    defaultUserRole: false,
    id: '',
    kind: '',
    name: '',
    parentUserRoleId: '',
    permissions: [{availability: '', id: '', kind: '', name: '', permissionGroupId: ''}],
    subaccountId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/userRoles?id=';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","defaultUserRole":false,"id":"","kind":"","name":"","parentUserRoleId":"","permissions":[{"availability":"","id":"","kind":"","name":"","permissionGroupId":""}],"subaccountId":""}'
};

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}}/userprofiles/:profileId/userRoles?id=',
  method: 'PATCH',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "accountId": "",\n  "defaultUserRole": false,\n  "id": "",\n  "kind": "",\n  "name": "",\n  "parentUserRoleId": "",\n  "permissions": [\n    {\n      "availability": "",\n      "id": "",\n      "kind": "",\n      "name": "",\n      "permissionGroupId": ""\n    }\n  ],\n  "subaccountId": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"accountId\": \"\",\n  \"defaultUserRole\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"parentUserRoleId\": \"\",\n  \"permissions\": [\n    {\n      \"availability\": \"\",\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"permissionGroupId\": \"\"\n    }\n  ],\n  \"subaccountId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/userRoles?id=")
  .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/userprofiles/:profileId/userRoles?id=',
  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({
  accountId: '',
  defaultUserRole: false,
  id: '',
  kind: '',
  name: '',
  parentUserRoleId: '',
  permissions: [{availability: '', id: '', kind: '', name: '', permissionGroupId: ''}],
  subaccountId: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'PATCH',
  url: '{{baseUrl}}/userprofiles/:profileId/userRoles',
  qs: {id: ''},
  headers: {'content-type': 'application/json'},
  body: {
    accountId: '',
    defaultUserRole: false,
    id: '',
    kind: '',
    name: '',
    parentUserRoleId: '',
    permissions: [{availability: '', id: '', kind: '', name: '', permissionGroupId: ''}],
    subaccountId: ''
  },
  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}}/userprofiles/:profileId/userRoles');

req.query({
  id: ''
});

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  accountId: '',
  defaultUserRole: false,
  id: '',
  kind: '',
  name: '',
  parentUserRoleId: '',
  permissions: [
    {
      availability: '',
      id: '',
      kind: '',
      name: '',
      permissionGroupId: ''
    }
  ],
  subaccountId: ''
});

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}}/userprofiles/:profileId/userRoles',
  params: {id: ''},
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    defaultUserRole: false,
    id: '',
    kind: '',
    name: '',
    parentUserRoleId: '',
    permissions: [{availability: '', id: '', kind: '', name: '', permissionGroupId: ''}],
    subaccountId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/userRoles?id=';
const options = {
  method: 'PATCH',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","defaultUserRole":false,"id":"","kind":"","name":"","parentUserRoleId":"","permissions":[{"availability":"","id":"","kind":"","name":"","permissionGroupId":""}],"subaccountId":""}'
};

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 = @{ @"accountId": @"",
                              @"defaultUserRole": @NO,
                              @"id": @"",
                              @"kind": @"",
                              @"name": @"",
                              @"parentUserRoleId": @"",
                              @"permissions": @[ @{ @"availability": @"", @"id": @"", @"kind": @"", @"name": @"", @"permissionGroupId": @"" } ],
                              @"subaccountId": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/userprofiles/:profileId/userRoles?id="]
                                                       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}}/userprofiles/:profileId/userRoles?id=" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"accountId\": \"\",\n  \"defaultUserRole\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"parentUserRoleId\": \"\",\n  \"permissions\": [\n    {\n      \"availability\": \"\",\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"permissionGroupId\": \"\"\n    }\n  ],\n  \"subaccountId\": \"\"\n}" in

Client.call ~headers ~body `PATCH uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/userRoles?id=",
  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([
    'accountId' => '',
    'defaultUserRole' => null,
    'id' => '',
    'kind' => '',
    'name' => '',
    'parentUserRoleId' => '',
    'permissions' => [
        [
                'availability' => '',
                'id' => '',
                'kind' => '',
                'name' => '',
                'permissionGroupId' => ''
        ]
    ],
    'subaccountId' => ''
  ]),
  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}}/userprofiles/:profileId/userRoles?id=', [
  'body' => '{
  "accountId": "",
  "defaultUserRole": false,
  "id": "",
  "kind": "",
  "name": "",
  "parentUserRoleId": "",
  "permissions": [
    {
      "availability": "",
      "id": "",
      "kind": "",
      "name": "",
      "permissionGroupId": ""
    }
  ],
  "subaccountId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/userRoles');
$request->setMethod(HttpRequest::HTTP_METH_PATCH);

$request->setQueryData([
  'id' => ''
]);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'accountId' => '',
  'defaultUserRole' => null,
  'id' => '',
  'kind' => '',
  'name' => '',
  'parentUserRoleId' => '',
  'permissions' => [
    [
        'availability' => '',
        'id' => '',
        'kind' => '',
        'name' => '',
        'permissionGroupId' => ''
    ]
  ],
  'subaccountId' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'accountId' => '',
  'defaultUserRole' => null,
  'id' => '',
  'kind' => '',
  'name' => '',
  'parentUserRoleId' => '',
  'permissions' => [
    [
        'availability' => '',
        'id' => '',
        'kind' => '',
        'name' => '',
        'permissionGroupId' => ''
    ]
  ],
  'subaccountId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/userprofiles/:profileId/userRoles');
$request->setRequestMethod('PATCH');
$request->setBody($body);

$request->setQuery(new http\QueryString([
  'id' => ''
]));

$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}}/userprofiles/:profileId/userRoles?id=' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "defaultUserRole": false,
  "id": "",
  "kind": "",
  "name": "",
  "parentUserRoleId": "",
  "permissions": [
    {
      "availability": "",
      "id": "",
      "kind": "",
      "name": "",
      "permissionGroupId": ""
    }
  ],
  "subaccountId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/userRoles?id=' -Method PATCH -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "defaultUserRole": false,
  "id": "",
  "kind": "",
  "name": "",
  "parentUserRoleId": "",
  "permissions": [
    {
      "availability": "",
      "id": "",
      "kind": "",
      "name": "",
      "permissionGroupId": ""
    }
  ],
  "subaccountId": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"accountId\": \"\",\n  \"defaultUserRole\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"parentUserRoleId\": \"\",\n  \"permissions\": [\n    {\n      \"availability\": \"\",\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"permissionGroupId\": \"\"\n    }\n  ],\n  \"subaccountId\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("PATCH", "/baseUrl/userprofiles/:profileId/userRoles?id=", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/userRoles"

querystring = {"id":""}

payload = {
    "accountId": "",
    "defaultUserRole": False,
    "id": "",
    "kind": "",
    "name": "",
    "parentUserRoleId": "",
    "permissions": [
        {
            "availability": "",
            "id": "",
            "kind": "",
            "name": "",
            "permissionGroupId": ""
        }
    ],
    "subaccountId": ""
}
headers = {"content-type": "application/json"}

response = requests.patch(url, json=payload, headers=headers, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/userRoles"

queryString <- list(id = "")

payload <- "{\n  \"accountId\": \"\",\n  \"defaultUserRole\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"parentUserRoleId\": \"\",\n  \"permissions\": [\n    {\n      \"availability\": \"\",\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"permissionGroupId\": \"\"\n    }\n  ],\n  \"subaccountId\": \"\"\n}"

encode <- "json"

response <- VERB("PATCH", url, body = payload, query = queryString, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/userRoles?id=")

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  \"accountId\": \"\",\n  \"defaultUserRole\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"parentUserRoleId\": \"\",\n  \"permissions\": [\n    {\n      \"availability\": \"\",\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"permissionGroupId\": \"\"\n    }\n  ],\n  \"subaccountId\": \"\"\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/userprofiles/:profileId/userRoles') do |req|
  req.params['id'] = ''
  req.body = "{\n  \"accountId\": \"\",\n  \"defaultUserRole\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"parentUserRoleId\": \"\",\n  \"permissions\": [\n    {\n      \"availability\": \"\",\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"permissionGroupId\": \"\"\n    }\n  ],\n  \"subaccountId\": \"\"\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}}/userprofiles/:profileId/userRoles";

    let querystring = [
        ("id", ""),
    ];

    let payload = json!({
        "accountId": "",
        "defaultUserRole": false,
        "id": "",
        "kind": "",
        "name": "",
        "parentUserRoleId": "",
        "permissions": (
            json!({
                "availability": "",
                "id": "",
                "kind": "",
                "name": "",
                "permissionGroupId": ""
            })
        ),
        "subaccountId": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PATCH").unwrap(), url)
        .query(&querystring)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PATCH \
  --url '{{baseUrl}}/userprofiles/:profileId/userRoles?id=' \
  --header 'content-type: application/json' \
  --data '{
  "accountId": "",
  "defaultUserRole": false,
  "id": "",
  "kind": "",
  "name": "",
  "parentUserRoleId": "",
  "permissions": [
    {
      "availability": "",
      "id": "",
      "kind": "",
      "name": "",
      "permissionGroupId": ""
    }
  ],
  "subaccountId": ""
}'
echo '{
  "accountId": "",
  "defaultUserRole": false,
  "id": "",
  "kind": "",
  "name": "",
  "parentUserRoleId": "",
  "permissions": [
    {
      "availability": "",
      "id": "",
      "kind": "",
      "name": "",
      "permissionGroupId": ""
    }
  ],
  "subaccountId": ""
}' |  \
  http PATCH '{{baseUrl}}/userprofiles/:profileId/userRoles?id=' \
  content-type:application/json
wget --quiet \
  --method PATCH \
  --header 'content-type: application/json' \
  --body-data '{\n  "accountId": "",\n  "defaultUserRole": false,\n  "id": "",\n  "kind": "",\n  "name": "",\n  "parentUserRoleId": "",\n  "permissions": [\n    {\n      "availability": "",\n      "id": "",\n      "kind": "",\n      "name": "",\n      "permissionGroupId": ""\n    }\n  ],\n  "subaccountId": ""\n}' \
  --output-document \
  - '{{baseUrl}}/userprofiles/:profileId/userRoles?id='
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "accountId": "",
  "defaultUserRole": false,
  "id": "",
  "kind": "",
  "name": "",
  "parentUserRoleId": "",
  "permissions": [
    [
      "availability": "",
      "id": "",
      "kind": "",
      "name": "",
      "permissionGroupId": ""
    ]
  ],
  "subaccountId": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/userRoles?id=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PATCH"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
PUT dfareporting.userRoles.update
{{baseUrl}}/userprofiles/:profileId/userRoles
QUERY PARAMS

profileId
BODY json

{
  "accountId": "",
  "defaultUserRole": false,
  "id": "",
  "kind": "",
  "name": "",
  "parentUserRoleId": "",
  "permissions": [
    {
      "availability": "",
      "id": "",
      "kind": "",
      "name": "",
      "permissionGroupId": ""
    }
  ],
  "subaccountId": ""
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/userRoles");

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  \"accountId\": \"\",\n  \"defaultUserRole\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"parentUserRoleId\": \"\",\n  \"permissions\": [\n    {\n      \"availability\": \"\",\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"permissionGroupId\": \"\"\n    }\n  ],\n  \"subaccountId\": \"\"\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/userprofiles/:profileId/userRoles" {:content-type :json
                                                                             :form-params {:accountId ""
                                                                                           :defaultUserRole false
                                                                                           :id ""
                                                                                           :kind ""
                                                                                           :name ""
                                                                                           :parentUserRoleId ""
                                                                                           :permissions [{:availability ""
                                                                                                          :id ""
                                                                                                          :kind ""
                                                                                                          :name ""
                                                                                                          :permissionGroupId ""}]
                                                                                           :subaccountId ""}})
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/userRoles"
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"accountId\": \"\",\n  \"defaultUserRole\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"parentUserRoleId\": \"\",\n  \"permissions\": [\n    {\n      \"availability\": \"\",\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"permissionGroupId\": \"\"\n    }\n  ],\n  \"subaccountId\": \"\"\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/userprofiles/:profileId/userRoles"),
    Content = new StringContent("{\n  \"accountId\": \"\",\n  \"defaultUserRole\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"parentUserRoleId\": \"\",\n  \"permissions\": [\n    {\n      \"availability\": \"\",\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"permissionGroupId\": \"\"\n    }\n  ],\n  \"subaccountId\": \"\"\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}}/userprofiles/:profileId/userRoles");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"accountId\": \"\",\n  \"defaultUserRole\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"parentUserRoleId\": \"\",\n  \"permissions\": [\n    {\n      \"availability\": \"\",\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"permissionGroupId\": \"\"\n    }\n  ],\n  \"subaccountId\": \"\"\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/userRoles"

	payload := strings.NewReader("{\n  \"accountId\": \"\",\n  \"defaultUserRole\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"parentUserRoleId\": \"\",\n  \"permissions\": [\n    {\n      \"availability\": \"\",\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"permissionGroupId\": \"\"\n    }\n  ],\n  \"subaccountId\": \"\"\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/userprofiles/:profileId/userRoles HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 281

{
  "accountId": "",
  "defaultUserRole": false,
  "id": "",
  "kind": "",
  "name": "",
  "parentUserRoleId": "",
  "permissions": [
    {
      "availability": "",
      "id": "",
      "kind": "",
      "name": "",
      "permissionGroupId": ""
    }
  ],
  "subaccountId": ""
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/userprofiles/:profileId/userRoles")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"accountId\": \"\",\n  \"defaultUserRole\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"parentUserRoleId\": \"\",\n  \"permissions\": [\n    {\n      \"availability\": \"\",\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"permissionGroupId\": \"\"\n    }\n  ],\n  \"subaccountId\": \"\"\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/userRoles"))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"accountId\": \"\",\n  \"defaultUserRole\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"parentUserRoleId\": \"\",\n  \"permissions\": [\n    {\n      \"availability\": \"\",\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"permissionGroupId\": \"\"\n    }\n  ],\n  \"subaccountId\": \"\"\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  \"accountId\": \"\",\n  \"defaultUserRole\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"parentUserRoleId\": \"\",\n  \"permissions\": [\n    {\n      \"availability\": \"\",\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"permissionGroupId\": \"\"\n    }\n  ],\n  \"subaccountId\": \"\"\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/userRoles")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/userprofiles/:profileId/userRoles")
  .header("content-type", "application/json")
  .body("{\n  \"accountId\": \"\",\n  \"defaultUserRole\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"parentUserRoleId\": \"\",\n  \"permissions\": [\n    {\n      \"availability\": \"\",\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"permissionGroupId\": \"\"\n    }\n  ],\n  \"subaccountId\": \"\"\n}")
  .asString();
const data = JSON.stringify({
  accountId: '',
  defaultUserRole: false,
  id: '',
  kind: '',
  name: '',
  parentUserRoleId: '',
  permissions: [
    {
      availability: '',
      id: '',
      kind: '',
      name: '',
      permissionGroupId: ''
    }
  ],
  subaccountId: ''
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/userprofiles/:profileId/userRoles');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/userprofiles/:profileId/userRoles',
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    defaultUserRole: false,
    id: '',
    kind: '',
    name: '',
    parentUserRoleId: '',
    permissions: [{availability: '', id: '', kind: '', name: '', permissionGroupId: ''}],
    subaccountId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/userRoles';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","defaultUserRole":false,"id":"","kind":"","name":"","parentUserRoleId":"","permissions":[{"availability":"","id":"","kind":"","name":"","permissionGroupId":""}],"subaccountId":""}'
};

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}}/userprofiles/:profileId/userRoles',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "accountId": "",\n  "defaultUserRole": false,\n  "id": "",\n  "kind": "",\n  "name": "",\n  "parentUserRoleId": "",\n  "permissions": [\n    {\n      "availability": "",\n      "id": "",\n      "kind": "",\n      "name": "",\n      "permissionGroupId": ""\n    }\n  ],\n  "subaccountId": ""\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"accountId\": \"\",\n  \"defaultUserRole\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"parentUserRoleId\": \"\",\n  \"permissions\": [\n    {\n      \"availability\": \"\",\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"permissionGroupId\": \"\"\n    }\n  ],\n  \"subaccountId\": \"\"\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/userRoles")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/userRoles',
  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({
  accountId: '',
  defaultUserRole: false,
  id: '',
  kind: '',
  name: '',
  parentUserRoleId: '',
  permissions: [{availability: '', id: '', kind: '', name: '', permissionGroupId: ''}],
  subaccountId: ''
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/userprofiles/:profileId/userRoles',
  headers: {'content-type': 'application/json'},
  body: {
    accountId: '',
    defaultUserRole: false,
    id: '',
    kind: '',
    name: '',
    parentUserRoleId: '',
    permissions: [{availability: '', id: '', kind: '', name: '', permissionGroupId: ''}],
    subaccountId: ''
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/userprofiles/:profileId/userRoles');

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  accountId: '',
  defaultUserRole: false,
  id: '',
  kind: '',
  name: '',
  parentUserRoleId: '',
  permissions: [
    {
      availability: '',
      id: '',
      kind: '',
      name: '',
      permissionGroupId: ''
    }
  ],
  subaccountId: ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/userprofiles/:profileId/userRoles',
  headers: {'content-type': 'application/json'},
  data: {
    accountId: '',
    defaultUserRole: false,
    id: '',
    kind: '',
    name: '',
    parentUserRoleId: '',
    permissions: [{availability: '', id: '', kind: '', name: '', permissionGroupId: ''}],
    subaccountId: ''
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/userRoles';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"accountId":"","defaultUserRole":false,"id":"","kind":"","name":"","parentUserRoleId":"","permissions":[{"availability":"","id":"","kind":"","name":"","permissionGroupId":""}],"subaccountId":""}'
};

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 = @{ @"accountId": @"",
                              @"defaultUserRole": @NO,
                              @"id": @"",
                              @"kind": @"",
                              @"name": @"",
                              @"parentUserRoleId": @"",
                              @"permissions": @[ @{ @"availability": @"", @"id": @"", @"kind": @"", @"name": @"", @"permissionGroupId": @"" } ],
                              @"subaccountId": @"" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/userprofiles/:profileId/userRoles"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/userprofiles/:profileId/userRoles" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"accountId\": \"\",\n  \"defaultUserRole\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"parentUserRoleId\": \"\",\n  \"permissions\": [\n    {\n      \"availability\": \"\",\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"permissionGroupId\": \"\"\n    }\n  ],\n  \"subaccountId\": \"\"\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/userRoles",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'accountId' => '',
    'defaultUserRole' => null,
    'id' => '',
    'kind' => '',
    'name' => '',
    'parentUserRoleId' => '',
    'permissions' => [
        [
                'availability' => '',
                'id' => '',
                'kind' => '',
                'name' => '',
                'permissionGroupId' => ''
        ]
    ],
    'subaccountId' => ''
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/userprofiles/:profileId/userRoles', [
  'body' => '{
  "accountId": "",
  "defaultUserRole": false,
  "id": "",
  "kind": "",
  "name": "",
  "parentUserRoleId": "",
  "permissions": [
    {
      "availability": "",
      "id": "",
      "kind": "",
      "name": "",
      "permissionGroupId": ""
    }
  ],
  "subaccountId": ""
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/userRoles');
$request->setMethod(HTTP_METH_PUT);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'accountId' => '',
  'defaultUserRole' => null,
  'id' => '',
  'kind' => '',
  'name' => '',
  'parentUserRoleId' => '',
  'permissions' => [
    [
        'availability' => '',
        'id' => '',
        'kind' => '',
        'name' => '',
        'permissionGroupId' => ''
    ]
  ],
  'subaccountId' => ''
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'accountId' => '',
  'defaultUserRole' => null,
  'id' => '',
  'kind' => '',
  'name' => '',
  'parentUserRoleId' => '',
  'permissions' => [
    [
        'availability' => '',
        'id' => '',
        'kind' => '',
        'name' => '',
        'permissionGroupId' => ''
    ]
  ],
  'subaccountId' => ''
]));
$request->setRequestUrl('{{baseUrl}}/userprofiles/:profileId/userRoles');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/userRoles' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "defaultUserRole": false,
  "id": "",
  "kind": "",
  "name": "",
  "parentUserRoleId": "",
  "permissions": [
    {
      "availability": "",
      "id": "",
      "kind": "",
      "name": "",
      "permissionGroupId": ""
    }
  ],
  "subaccountId": ""
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/userRoles' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "accountId": "",
  "defaultUserRole": false,
  "id": "",
  "kind": "",
  "name": "",
  "parentUserRoleId": "",
  "permissions": [
    {
      "availability": "",
      "id": "",
      "kind": "",
      "name": "",
      "permissionGroupId": ""
    }
  ],
  "subaccountId": ""
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"accountId\": \"\",\n  \"defaultUserRole\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"parentUserRoleId\": \"\",\n  \"permissions\": [\n    {\n      \"availability\": \"\",\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"permissionGroupId\": \"\"\n    }\n  ],\n  \"subaccountId\": \"\"\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/userprofiles/:profileId/userRoles", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/userRoles"

payload = {
    "accountId": "",
    "defaultUserRole": False,
    "id": "",
    "kind": "",
    "name": "",
    "parentUserRoleId": "",
    "permissions": [
        {
            "availability": "",
            "id": "",
            "kind": "",
            "name": "",
            "permissionGroupId": ""
        }
    ],
    "subaccountId": ""
}
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/userRoles"

payload <- "{\n  \"accountId\": \"\",\n  \"defaultUserRole\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"parentUserRoleId\": \"\",\n  \"permissions\": [\n    {\n      \"availability\": \"\",\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"permissionGroupId\": \"\"\n    }\n  ],\n  \"subaccountId\": \"\"\n}"

encode <- "json"

response <- VERB("PUT", url, body = payload, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/userRoles")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"accountId\": \"\",\n  \"defaultUserRole\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"parentUserRoleId\": \"\",\n  \"permissions\": [\n    {\n      \"availability\": \"\",\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"permissionGroupId\": \"\"\n    }\n  ],\n  \"subaccountId\": \"\"\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.put('/baseUrl/userprofiles/:profileId/userRoles') do |req|
  req.body = "{\n  \"accountId\": \"\",\n  \"defaultUserRole\": false,\n  \"id\": \"\",\n  \"kind\": \"\",\n  \"name\": \"\",\n  \"parentUserRoleId\": \"\",\n  \"permissions\": [\n    {\n      \"availability\": \"\",\n      \"id\": \"\",\n      \"kind\": \"\",\n      \"name\": \"\",\n      \"permissionGroupId\": \"\"\n    }\n  ],\n  \"subaccountId\": \"\"\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}}/userprofiles/:profileId/userRoles";

    let payload = json!({
        "accountId": "",
        "defaultUserRole": false,
        "id": "",
        "kind": "",
        "name": "",
        "parentUserRoleId": "",
        "permissions": (
            json!({
                "availability": "",
                "id": "",
                "kind": "",
                "name": "",
                "permissionGroupId": ""
            })
        ),
        "subaccountId": ""
    });

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url {{baseUrl}}/userprofiles/:profileId/userRoles \
  --header 'content-type: application/json' \
  --data '{
  "accountId": "",
  "defaultUserRole": false,
  "id": "",
  "kind": "",
  "name": "",
  "parentUserRoleId": "",
  "permissions": [
    {
      "availability": "",
      "id": "",
      "kind": "",
      "name": "",
      "permissionGroupId": ""
    }
  ],
  "subaccountId": ""
}'
echo '{
  "accountId": "",
  "defaultUserRole": false,
  "id": "",
  "kind": "",
  "name": "",
  "parentUserRoleId": "",
  "permissions": [
    {
      "availability": "",
      "id": "",
      "kind": "",
      "name": "",
      "permissionGroupId": ""
    }
  ],
  "subaccountId": ""
}' |  \
  http PUT {{baseUrl}}/userprofiles/:profileId/userRoles \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "accountId": "",\n  "defaultUserRole": false,\n  "id": "",\n  "kind": "",\n  "name": "",\n  "parentUserRoleId": "",\n  "permissions": [\n    {\n      "availability": "",\n      "id": "",\n      "kind": "",\n      "name": "",\n      "permissionGroupId": ""\n    }\n  ],\n  "subaccountId": ""\n}' \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/userRoles
import Foundation

let headers = ["content-type": "application/json"]
let parameters = [
  "accountId": "",
  "defaultUserRole": false,
  "id": "",
  "kind": "",
  "name": "",
  "parentUserRoleId": "",
  "permissions": [
    [
      "availability": "",
      "id": "",
      "kind": "",
      "name": "",
      "permissionGroupId": ""
    ]
  ],
  "subaccountId": ""
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/userRoles")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET dfareporting.videoFormats.get
{{baseUrl}}/userprofiles/:profileId/videoFormats/:id
QUERY PARAMS

profileId
id
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/videoFormats/:id");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/videoFormats/:id")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/videoFormats/:id"

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}}/userprofiles/:profileId/videoFormats/:id"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/videoFormats/:id");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/videoFormats/:id"

	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/userprofiles/:profileId/videoFormats/:id HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/videoFormats/:id")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/videoFormats/:id"))
    .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}}/userprofiles/:profileId/videoFormats/:id")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/videoFormats/:id")
  .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}}/userprofiles/:profileId/videoFormats/:id');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/videoFormats/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/videoFormats/:id';
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}}/userprofiles/:profileId/videoFormats/:id',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/videoFormats/:id")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/videoFormats/:id',
  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}}/userprofiles/:profileId/videoFormats/:id'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/videoFormats/:id');

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}}/userprofiles/:profileId/videoFormats/:id'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/videoFormats/:id';
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}}/userprofiles/:profileId/videoFormats/:id"]
                                                       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}}/userprofiles/:profileId/videoFormats/:id" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/videoFormats/:id",
  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}}/userprofiles/:profileId/videoFormats/:id');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/videoFormats/:id');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/videoFormats/:id');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/videoFormats/:id' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/videoFormats/:id' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/videoFormats/:id")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/videoFormats/:id"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/videoFormats/:id"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/videoFormats/:id")

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/userprofiles/:profileId/videoFormats/:id') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/videoFormats/:id";

    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}}/userprofiles/:profileId/videoFormats/:id
http GET {{baseUrl}}/userprofiles/:profileId/videoFormats/:id
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/videoFormats/:id
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/videoFormats/:id")! 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 dfareporting.videoFormats.list
{{baseUrl}}/userprofiles/:profileId/videoFormats
QUERY PARAMS

profileId
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/userprofiles/:profileId/videoFormats");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/userprofiles/:profileId/videoFormats")
require "http/client"

url = "{{baseUrl}}/userprofiles/:profileId/videoFormats"

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}}/userprofiles/:profileId/videoFormats"),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/userprofiles/:profileId/videoFormats");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/userprofiles/:profileId/videoFormats"

	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/userprofiles/:profileId/videoFormats HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/userprofiles/:profileId/videoFormats")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/userprofiles/:profileId/videoFormats"))
    .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}}/userprofiles/:profileId/videoFormats")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/userprofiles/:profileId/videoFormats")
  .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}}/userprofiles/:profileId/videoFormats');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/userprofiles/:profileId/videoFormats'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/userprofiles/:profileId/videoFormats';
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}}/userprofiles/:profileId/videoFormats',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/userprofiles/:profileId/videoFormats")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/userprofiles/:profileId/videoFormats',
  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}}/userprofiles/:profileId/videoFormats'
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/userprofiles/:profileId/videoFormats');

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}}/userprofiles/:profileId/videoFormats'
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/userprofiles/:profileId/videoFormats';
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}}/userprofiles/:profileId/videoFormats"]
                                                       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}}/userprofiles/:profileId/videoFormats" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/userprofiles/:profileId/videoFormats",
  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}}/userprofiles/:profileId/videoFormats');

echo $response->getBody();
setUrl('{{baseUrl}}/userprofiles/:profileId/videoFormats');
$request->setMethod(HTTP_METH_GET);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/userprofiles/:profileId/videoFormats');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/userprofiles/:profileId/videoFormats' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/userprofiles/:profileId/videoFormats' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/userprofiles/:profileId/videoFormats")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/userprofiles/:profileId/videoFormats"

response = requests.get(url)

print(response.json())
library(httr)

url <- "{{baseUrl}}/userprofiles/:profileId/videoFormats"

response <- VERB("GET", url, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/userprofiles/:profileId/videoFormats")

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/userprofiles/:profileId/videoFormats') do |req|
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/userprofiles/:profileId/videoFormats";

    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}}/userprofiles/:profileId/videoFormats
http GET {{baseUrl}}/userprofiles/:profileId/videoFormats
wget --quiet \
  --method GET \
  --output-document \
  - {{baseUrl}}/userprofiles/:profileId/videoFormats
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/userprofiles/:profileId/videoFormats")! 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()